1 2003-07-24 Nick Clifton <nickc@redhat.com>
3 * po/fr.po: Updated French translation.
5 2003-07-23 Stephane Carrez <stcarrez@nerim.fr>
7 * scripttempl/elfm68hc11.sc: Keep ctor/dtor sections; Take into
8 account .tramp sections;
9 * scripttempl/elfm68hc12.sc: Likewise.
11 2003-07-17 Charles Wilson <cwilson@ece.gatech.edu>
13 * ld/pe-dll.c: Add libcygwin to autofilter_liblist[]
15 2003-07-17 Nick Clifton <nickc@redhat.com>
17 * po/es.po: New Spanish translation.
19 2003-07-11 Alan Modra <amodra@bigpond.net.au>
21 * po/ld.pot: Regenerate.
23 2003-07-10 Bob Wilson <bob.wilson@acm.org>
25 * emulparams/elf32xtensa.sh (OTHER_READONLY_SECTIONS): Replace .xt.lit
26 with new .got.loc section.
27 (OTHER_READWRITE_SECTIONS): Do not combine linkonce sections for
29 (OTHER_SECTIONS): Add .xt.lit here. Change it to keep linkonce
30 sections separate for non-relocating links; likewise for .xt.insn.
32 2003-07-10 Alexandre Oliva <aoliva@redhat.com>
34 2001-08-22 Alexandre Oliva <aoliva@redhat.com>
35 * emulparams/elf32am33lin.sh: Adjust to match kernel parameters.
36 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
37 * configure.host (am33_2.0-*-linux*): Added.
38 * configure.tgt (am33_2.0-*-linux*): Likewise.
39 * emulparams/elf32am33lin.sh: New.
40 * Makefile.am (eelf32am33lin.c): New rule.
41 * Makefile.in: Rebuilt.
43 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
45 2001-04-17 Alexandre Oliva <aoliva@redhat.com>
46 * emulparams/mn10300.sh (TEMPLATE_NAME): Define.
47 (GENERATE_SHLIB_SCRIPT): Likewise.
49 2003-07-10 Alan Modra <amodra@bigpond.net.au>
51 * emulparams/elf64ppc.sh (OTHER_GOT_SECTIONS): Don't define.
53 * emultempl/ppc64elf.em (stub_added): New static var.
54 (ppc_create_output_section_statements): Call ppc64_elf_init_stub_bfd.
55 (ppc_add_stub_section): Set stub_added.
56 (gld${EMULATION_NAME}_finish): Look for .got rather than .toc. Adjust
57 ppc64_elf_size_stubs call and test for stubs.
58 * scripttempl/elf.sc (GOT): Define and use.
60 2003-07-08 J"orn Rennecke <joern.rennecke@superh.com>
62 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_after_allocation):
63 Allow second call from ldemul_finish.
65 2003-07-04 J"orn Rennecke <joern.rennecke@superh.com>
67 * emulparams/shelf32.sh (STACK_ADDR): Don't define.
68 (OTHER_SECTIONS): Include .stack.
69 * emulparams/shelf64.sh (OTHER_SECTIONS): Likewise.
71 2003-07-02 Jakub Jelinek <jakub@redhat.com>
73 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't include
75 (OTHER_READWRITE_SECTIONS): Include .opd if -pie.
76 * scripttempl/elf.sc: Use SHLIB_DATA_ADDR instead of DATA_ADDR
79 2003-06-28 Alan Modra <amodra@bigpond.net.au>
81 * ld.h: Convert to C90, remove unnecessary prototypes and casts.
82 Replace PTR with void *. Formatting.
100 * ldwrite.c: Likewise.
101 * ldwrite.h: Likewise.
102 * lexsup.c: Likewise.
105 * pe-dll.c: Likewise.
106 * pe-dll.h: Likewise.
107 * deffilep.y: Likewise.
108 * deffile.h: Likewise. Don't include ansidecl.h.
109 * emulparams/elf32mcore.sh: Remove unnecessary cast.
110 * emultempl/m68kcoff.em: Likewise.
111 * emultempl/m68kelf.em: Likewise.
112 * emultempl/ticoff.em: Remove lang_add_output_format declaration.
113 * sysdep.h: Don't include ansidecl.h.
114 * Makefile.am: Run "make dep-am".
115 * Makefile.in: Regenerate.
117 2003-06-27 Nick Clifton <nickc@redhat.com>
119 * deffilep.y (def_file_add_directive): Cope with NUL seperated
120 directives. Fix reporting of unparseable directives.
121 (def_error): Check for a NULL def_filename.
123 2003-06-27 Alan Modra <amodra@bigpond.net.au>
125 * emultempl/aix.em: Convert to C90, remove unnecessary prototypes
126 and casts. Replace PTR with void *. Formatting.
127 * emultempl/alphaelf.em: Likewise.
128 * emultempl/armcoff.em: Likewise.
129 * emultempl/armelf.em: Likewise.
130 * emultempl/armelf_oabi.em: Likewise.
131 * emultempl/beos.em: Likewise.
132 * emultempl/elf32.em: Likewise.
133 * emultempl/generic.em: Likewise.
134 * emultempl/gld960.em: Likewise.
135 * emultempl/gld960c.em: Likewise.
136 * emultempl/hppaelf.em: Likewise.
137 * emultempl/linux.em: Likewise.
138 * emultempl/lnk960.em: Likewise.
139 * emultempl/m68hc1xelf.em: Likewise.
140 * emultempl/m68kcoff.em: Likewise.
141 * emultempl/m68kelf.em: Likewise.
142 * emultempl/mipsecoff.em: Likewise.
143 * emultempl/mipself.em: Likewise.
144 * emultempl/mmix-elfnmmo.em: Likewise.
145 * emultempl/mmixelf.em: Likewise.
146 * emultempl/mmo.em: Likewise.
147 * emultempl/needrelax.em: Likewise.
148 * emultempl/netbsd.em: Likewise.
149 * emultempl/pe.em: Likewise.
150 * emultempl/sh64elf.em: Likewise.
151 * emultempl/sunos.em: Likewise.
152 * emultempl/ticoff.em: Likewise.
153 * emultempl/vanilla.em: Likewise.
154 * emultempl/xtensaelf.em: Likewise.
155 * Makefile.am: Correct dependencies.
156 * Makefile.in: Regenerate.
158 2003-06-25 Alan Modra <amodra@bigpond.net.au>
160 * ld.texinfo: Correct spelling of "relocatable".
161 * ldctor.c: Likewise.
163 * ldfile.c: Likewise.
164 * ldint.texinfo: Likewise.
165 * ldlang.c: Likewise.
166 * ldmain.c: Likewise.
167 * ldwrite.c: Likewise.
168 * lexsup.c: Likewise.
169 * emultempl/aix.em: Likewise.
170 * emultempl/alphaelf.em: Likewise.
171 * emultempl/armcoff.em: Likewise.
172 * emultempl/armelf_oabi.em: Likewise.
173 * emultempl/beos.em: Likewise.
174 * emultempl/elf32.em: Likewise.
175 * emultempl/generic.em: Likewise.
176 * emultempl/gld960.em: Likewise.
177 * emultempl/gld960c.em: Likewise.
178 * emultempl/hppaelf.em: Likewise.
179 * emultempl/linux.em: Likewise.
180 * emultempl/lnk960.em: Likewise.
181 * emultempl/m68hc1xelf.em: Likewise.
182 * emultempl/m68kcoff.em: Likewise.
183 * emultempl/m68kelf.em: Likewise.
184 * emultempl/mipsecoff.em: Likewise.
185 * emultempl/mipself.em: Likewise.
186 * emultempl/mmix-elfnmmo.em: Likewise.
187 * emultempl/mmo.em: Likewise.
188 * emultempl/needrelax.em: Likewise.
189 * emultempl/pe.em: Likewise.
190 * emultempl/ppc64elf.em: Likewise.
191 * emultempl/sh64elf.em: Likewise.
192 * emultempl/sunos.em: Likewise.
193 * emultempl/ticoff.em: Likewise.
194 * emultempl/xtensaelf.em: Likewise.
196 2003-06-24 Alan Modra <amodra@bigpond.net.au>
198 * emultempl/ppc32elf.em: Convert to C90.
200 2003-06-20 Alan Modra <amodra@bigpond.net.au>
202 * emultempl/ppc64elf.em: Convert to C90 function definitions, remove
203 unnecessary prototypes and casts.
205 2003-06-19 Alan Modra <amodra@bigpond.net.au>
207 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Dump out
208 statistics from ppc64_elf_build_stubs.
210 2003-06-19 Alan Modra <amodra@bigpond.net.au>
212 * emultempl/ppc64elf.em (build_section_lists): Check return status
213 from ppc64_elf_next_input_section.
215 2003-06-17 H.J. Lu <hongjiu.lu@intel.com>
217 * ldlang.c (section_already_linked): Put back assignment of
220 2003-06-17 Rainer Keuchel <rkeuchel@allgeier.com>
222 * pe-dll.c (generate_reloc): Catch and ignore an ARM_26D
225 2003-06-17 Loren James Rittle <rittle@latour.rsch.comm.mot.com>
227 * configure.host (*-*-freebsd*): Add known path for ld-elf.so.1
228 if not produced by gcc.
230 2003-06-16 Hans-Peter Nilsson <hp@axis.com>
232 * configure.tgt: Add specific case for cris-*-linux-gnu*
233 with crislinux emulation only.
235 2003-06-13 Robert Millan <zeratul2@wanadoo.es>
237 * configure.tgt: Add i386-netbsd-gnu target.
239 2003-06-12 Richard Sandiford <rsandifo@redhat.com>
241 * configure.tgt (mips*-sgi-irix6*): Add the o32 and n64 emulations
242 to $targ_extra_libpath.
244 2003-06-11 H.J. Lu <hongjiu.lu@intel.com>
246 * po/Make-in (DESTDIR): New.
247 (install-data-yes): Support $(DESTDIR).
248 (uninstall): Likewise.
250 2003-06-10 Doug Evans <dje@sebabeach.org>
252 * Makefile.am (ALL_EMULATIONS): Add em32relf.o.
253 * Makefile.in: Regenerate.
255 2003-06-10 Richard Sandiford <rsandifo@redhat.com>
257 * configure.tgt (h8300*): Add h8300sxn emulations.
258 * Makefile.am (ALL_EMULATIONS): Add eh8300sxn.o and eh8300sxnelf.o.
259 (eh8300sxn.c, eh8300sxnelf.c): New rules.
260 * Makefile.in: Regenerate.
261 * emulparams/h8300sxnelf.sh, emulparams/h8300sxn.sh: New files.
262 * scripttempl/h8300sxn.sc: New file.
264 2003-06-10 Alan Modra <amodra@bigpond.net.au>
266 * emulparams/elf64ppc.sh (EXECUTABLE_SYMBOLS, OTHER_BSS_END_SYMBOLS,
267 CTOR_START, CTOR_END, DTOR_START, DTOR_END): Don't define.
269 2003-06-08 Alan Modra <amodra@bigpond.net.au>
271 * emultempl/ppc64elf.em (emit_stub_syms, toc_section): New vars.
272 (build_toc_list): New function.
273 (gld${EMULATION_NAME}_finish): Call build_toc_list and
274 ppc64_elf_reinit_toc. Adjust ppc64_elf_build_stubs call.
275 (OPTION_STUBSYMS): Define.
276 (PARSE_AND_LIST_LONGOPTS): Add emit-stub-syms.
277 (PARSE_AND_LIST_OPTIONS): Document.
278 (PARSE_AND_LIST_ARGS_CASES): Handle.
280 2003-06-05 Roland McGrath <roland@redhat.com>
282 * emultempl/elf32.em (gld${EMULATION_NAME}_list_options): Remove
283 extra \t in -z noexecstack line.
285 2003-05-23 Jakub Jelinek <jakub@redhat.com>
287 * ldgram.y (phdr_type): Grok PT_GNU_STACK.
288 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Add
289 -z execstack and -z noexecstack.
290 (gld${EMULATION_NAME}_list_options): Likewise.
291 * scripttempl/elf.sc: If not -r, discard .note.GNU-stack section.
293 2003-06-03 Michael Snyder <msnyder@redhat.com>
294 and Bernd Schmidt <bernds@redhat.com>
295 and Alexandre Oliva <aoliva@redhat.com>
297 * Makefile.am: Add new emulations for h8300sx.
298 * Makefile.in: Regenerate.
299 * configure.tgt: Add new emulations.
300 * emulparams/h8300sx.sh: New emulation.
301 * emulparams/h8300sxelf.sh: Ditto.
302 * scripttempl/h8300sx.sc: Ditto.
304 2003-06-03 H.J. Lu <hongjiu.lu@intel.com>
306 * ldmisc.c: Include "bfdlink.h".
307 (error_handler): Handle LD_DEFINITION_IN_DISCARDED_SECTION
308 and -LD_DEFINITION_IN_DISCARDED_SECTION.
310 * Makefile.am: Rebuild dependency.
311 * Makefile.in: Regenerated.
313 2003-06-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
315 * emulparams/shlelf_linux.sh (GENERATE_PIE_SCRIPT): Set to yes.
316 * emulparams/shlelf32_linux.sh (GENERATE_PIE_SCRIPT): Likewize.
318 2003-06-02 Fabrizio Gennari <fabrizio.ge@tiscalinet.it>
320 * pe-dll.c (fill_edata): Scan table pe_dll->exports, which is
321 sorted alphabetically, instead of exported_symbols, which is
324 2003-05-30 Ulrich Drepper <drepper@redhat.com>
325 Jakub Jelinek <jakub@redhat.com>
327 * lexsup.c (OPTION_PIE): Define.
328 (ld_options): Add -pie and --pic-executable options.
329 (parse_args): Handle OPTION_PIE.
330 * ldmain.c (main): Initialize link_info.pie and
331 link_info.executable.
332 * genscripts.sh: Generate PIE scripts.
333 * ld.texinfo: Document -pie and --pic-executable options.
334 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open):
335 (gld${EMULATION_NAME}_place_orphan): Likewise.
336 (gld${EMULATION_NAME}_get_script): Include PIE scripts.
337 * scripttempl/elf.sc: In PIE scripts set . the same way as in
339 * emulparams/elf_i386.sh (GENERATE_PIE_SCRIPT): Set to yes.
340 * emulparams/elf64_ia64.sh (GENERATE_PIE_SCRIPT): Likewise.
341 * emulparams/elf32ppc.sh (GENERATE_PIE_SCRIPT): Likewise.
342 * emulparams/elf64ppc.sh (GENERATE_PIE_SCRIPT): Likewise.
343 * emulparams/elf_x86_64.sh (GENERATE_PIE_SCRIPT): Likewise.
344 * emulparams/elf_s390.sh (GENERATE_PIE_SCRIPT): Likewise.
345 * emulparams/elf32_sparc.sh (GENERATE_PIE_SCRIPT): Likewise.
346 * emulparams/elf64_sparc.sh (GENERATE_PIE_SCRIPT): Likewise.
347 * emulparams/elf64alpha.sh (GENERATE_PIE_SCRIPT): Likewise.
348 * emulparams/elf64_s390.sh (GENERATE_PIE_SCRIPT): Likewise.
349 * emulparams/elf_i386.sh (GENERATE_PIE_SCRIPT): Likewise.
351 2003-05-30 H.J. Lu <hongjiu.lu@intel.com>
353 * genscripts.sh: Create tmpdir/libpath.exp.
355 2003-05-30 Nick Clifton <nickc@redhat.com>
357 * emultempl/armelf.em (arm_elf_before_allocation): Replace ASSERT
358 with a test for a NULL bfd_for_interworking.
360 2003-05-29 Jason Thorpe <thorpej@wasabisystems.com>
362 * configure.host (*-*-netbsd*): Set HOSTING_CRT0 and HOSTING_LIBS
363 correctly for more recent versions of NetBSD.
364 (alpha*-*-netbsd*): Remove.
365 (i[3-7]86-*-netbsd*): Remove.
367 2003-05-29 Nick Clifton <nickc@redhat.com>
369 * emultempl/pe.em: Include "safe-ctype.h" instead of <ctype.h>.
371 2003-05-26 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
373 * emulparams/elf64btsmip.sh: Set TEXT_START_ADDR to 0x120000000 to
374 trap on pointer crops.
376 2003-05-21 Marcus Comstedt <marcus@mc.pp.se>
378 * configure.tgt: Check for a target triplet of shl-...-netbsdelf
379 as well as shle-...-netbsdelf.
381 2003-05-16 Kelley Cook <kelleycook@wideopenwest.com>
383 * configure.host: Accept i[3-7]86 variants.
384 * configure.tgt: Likewise.
386 2003-05-15 H.J. Lu <hongjiu.lu@intel.com>
388 * emulparams/elf64_ia64.sh: Don't set COMMONPAGESIZE for now.
390 2003-05-09 Daniel Jacobowitz <drow@mvista.com>
392 * Makefile.am (ALL_EMULATIONS): Add earmelfb.o and earmelfb_linux.o.
393 (earmelfb.c, earmelfb_linux.c): New rules.
394 * Makefile.in: Regenerated.
395 * emulparams/armelfb.sh, emulparams/armelfb_linux.sh: New files.
396 * configure.tgt: Add armeb-elf and arm*b-*-linux-gnu.
398 2003-05-09 Nick Clifton <nickc@redhat.com>
400 * ldlang.c (lang_size_sections_1): Default to generating a
401 fatal error message if a loadable section is not allocated
402 to a memory region when regions are defined.
404 2003-05-09 Alan Modra <amodra@bigpond.net.au>
406 * Makefile.am (em68hc11elf.c): Correct dependencies.
407 (em68hc11elfb.c, em68hc12elf.c, em68hc12elfb.c): Likewise.
408 * Makefile.in: Regenerate.
409 * emultempl/elf32.em (find_exp_assignment): Adjust for changed
410 bfd_elf_record_link_assignment name.
412 2003-05-07 Alexandre Oliva <aoliva@redhat.com>
414 * ldmain.h (overflow_cutoff_limit): Declare.
415 * ldmain.c (overflow_cutoff_limit): Define, initialized to 10.
416 (reloc_overflow): Limit error messages based on it.
417 * lexsup.c (parse_args) <OPTION_VERBOSE>: Set cutoff to
420 2003-05-05 Alan Modra <amodra@bigpond.net.au>
422 * ldlex.l: Accept C style comments in version scripts.
424 2003-04-28 H.J. Lu <hjl@gnu.org>
426 * ldlang.c (lang_process): Add the relax finalize pass.
428 * ldmain.c (main): Initialize link_info.relax_finalizing to
431 2003-04-24 Roland McGrath <roland@redhat.com>
433 * ldgram.y (phdr_type): Grok PT_TLS and PT_GNU_EH_FRAME names.
434 If a name string is unknown, give an error rather than crashing later.
436 2003-04-23 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
438 * Makefile.am (ALL_EMULATIONS): Add eh8300hn.o, eh8300sn.o,
439 eh8300hnelf.o, eh8300snelf.o and respective rules.
440 * Makefile.in: Regenerate.
441 * configure.tgt: Add h8300hn, h8300sn, h8300hnelf, h8300snelf
442 * emulparams/h8300hn.sh: New
443 * emulparams/h8300sn.sh: New
444 * emulparams/h8300hnelf.sh: New
445 * emulparams/h8300snelf.sh: New
446 * scripttempl/h8300hn.sc: new
447 * scripttempl/h8300sn.sc: new
449 2003-04-23 H.J. Lu <hjl@gnu.org>
451 * ldmain.c (link_callbacks): Initialize error_handler.
453 * ldmisc.c (error_handler): New function.
455 * ldmisc.h (error_handler): New prototype.
457 2003-04-21 Stephane Carrez <stcarrez@nerim.fr>
459 * emulparams/m68hc11elf.sh: Use m68hc1xelf.em extra.
460 * emulparams/m68hc11elfb.sh: Likewise.
461 * emulparams/m68hc12elf.sh: Likewise.
462 * emulparams/m68hc12elfb.sh: Likewise.
464 2003-04-19 Stephane Carrez <stcarrez@nerim.fr>
466 * emultempl/m68hc1xelf.em: New file to generate far trampolines on
468 (LDEMUL_BEFORE_ALLOCATION): Override to gather the trampolines to
470 (LDEMUL_FINISH): Override to generate the trampolines after gc and
472 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Override to create the
473 stub file for trampolines.
474 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_LONGOPTS): New options
475 --no-trampoline and --bank-window to control the memory bank window.
477 2003-04-18 H.J. Lu <hjl@gnu.org>
479 * ldfile.c (ldfile_add_library_path): Remove the unused
482 2003-04-18 Andrew Haley <aph@cambridge.redhat.com>
484 * scripttempl/xstormy16.sc (__data, __rdata): New.
486 2003-04-16 Nick Clifton <nickc@redhat.com>
488 * scripttempl/xstormy16.sc: Add .jcr section mapping.
490 2003-04-15 H.J. Lu <hjl@gnu.org>
492 From Debian by Jack Howarth <howarth@nitro.med.uc.edu>:
494 * ldlex.l: Use YY_CURRENT_BUFFER instead of yy_current_buffer.
496 2003-04-15 Rohit Kumar Srivastava <rohits@kpitcummins.com>
498 * h8-doc.texi: Replace occurrances of 'Hitachi' with 'Renesas'.
499 * ld.texinfo: Likewise.
501 2003-04-14 Alan Modra <amodra@bigpond.net.au>
503 From Prashanth Tamraparni <prashanth_t@in.ibm.com>
504 * scripttempl/elf.sc (CTOR): Handle crtbeginS.o, crtendS.o and
505 other variants of crtbegin.o, crtend.o.
507 * scripttempl/crisaout.sc (ctors, dtors): Likewise.
508 * scripttempl/elf_chaos.sc (CTOR, DTOR): Likewise.
509 * scripttempl/elfd10v.sc (CTOR, DTOR): Likewise.
510 * scripttempl/elfd30v.sc (CTOR, DTOR): Likewise.
511 * scripttempl/elfxtensa.sc (CTOR, DTOR): Likewise.
512 * scripttempl/iq2000.sc (CTOR, DTOR): Likewise.
513 * scripttempl/mmo.sc (ctors, dtors): Likewise.
514 * scripttempl/xstormy16.sc (CTOR, DTOR): Likewise.
516 2003-04-09 Dmitry Diky <diwil@mail.ru>
518 * scripttempl/elf32msp430.sc: Add initX, finiX, ctors, dtors
519 sections to respect C++ constructor/destructor. Add ctors/dtors
520 start/stop definitions.
521 * scripttempl/elf32msp430_3.sc: Likewise.
523 2003-04-06 Nick Clifton <nickc@redhat.com>
525 * ld.texinfo (Options): Add a reminder of the target specific
526 nature to the description of the i386 PE specific options, for
527 readers who have not read all the way through the manual.
529 2003-04-04 Svein E. Seldal <Svein.Seldal@solidas.com>
531 * configure.tgt: Fixed bug in list of targ_extra_emuls.
532 * emulparams/tic3xcoff.sh (SCRIPT_NAME): Namespace
533 cleanup. Replace s/c4x/tic4x and s/c3x/tic3x/
534 * emulparams/tic3xcoff_onchip.sh: Ditto
535 * emulparams/tic4xcoff.sh: Ditto
536 * scripttempl/tic4xcoff.sc: Ditto
538 2003-04-03 Nick Clifton <nickc@redhat.com>
540 * NEWS: Mention support for Xtensa architecture.
542 2003-04-02 Nick Clifton <nickc@redhat.com>
544 * pe-dll.c (pe_detail_list): arm-pe targets use underscores.
546 2003-04-01 Danny Smith <dannysmith@users.sourceforge.net>
548 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open):
549 Don't call pe_dll_build_section() if link_info.relocateable.
550 (gld_${EMULATION_NAME}_finish): Don't call pe_dll_fill_sections()
551 if link_info.relocateable.
553 2003-04-01 Fabrizio Gennari <fabrizio.ge@tiscalinet.it>
555 * pe-dll.c (process_def_file): Don't create an export
556 section if there are no exports and we're building an exe
557 (pe_dll_build_sections): Ditto
558 (pe_dll_fill_sections): Conditionalize setting
559 abfd->dll true on info->shared
560 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open):
561 If i386pe or armpe, call pe_dll_build_section()
562 for both exe's and dll's, not just dll's.
563 (gld_${EMULATION_NAME}_finish): For all targets except
564 shpe and mipspe, call pe_dll_fill_sections() for both
565 exe's and dll's, not just dll's.
567 2003-04-02 Bob Wilson <bob.wilson@acm.org>
569 * emulparams/xtensa-config.sh: Remove comment indicating that this is
572 2003-04-01 Bob Wilson <bob.wilson@acm.org>
574 * Makefile.am (ALL_EMULATIONS): Add eelf32xtensa.o.
575 (eelf32xtensa.c): New target.
576 * Makefile.in: Regenerate.
577 * configure.tgt: Handle xtensa-*-*.
578 * gen-doc.texi: Set XTENSA variable.
579 * ld.texinfo: Set XTENSA variable. Add new Xtensa node.
580 * emulparams/elf32xtensa.sh: New file.
581 * emulparams/xtensa-config.sh: Likewise.
582 * emultempl/xtensaelf.em: Likewise.
583 * scripttempl/elfxtensa.sc: Likewise.
585 2003-04-01 Jakub Jelinek <jakub@redhat.com>
587 * configure.tgt (powerpc*-*-linux*): Add elf32ppc to ppc64
588 targ_extra_libpath. Add elf64ppc to ppc targ_extra_libpath
589 if --enable-64-bit-bfd.
591 2003-04-01 Nick Clifton <nickc@redhat.com>
593 * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Change name of
595 * emulparams/armelf_linux.sh (OTHER_READONLY_SECTIONS): Change
596 name of note section.
598 2003-03-31 Alexandre Oliva <aoliva@redhat.com>
600 * ld.texinfo (-Tbss, -Tdata, -Ttext): Document in terms of
603 2003-03-31 David Heine <dlheine@suif.stanford.edu>
605 * ldfile.c (ldfile_add_library_path): Always allocate space for
607 * ldlang.c (lang_register_vers_node): Free the node if it cannot
609 * ldmain.c (set_scripts_dir): Always free the constructed
611 (add_keepsyms_file): Fix memory leak.
612 * ldmisc.c (vfinfo): Likewise.
613 * lexsup.c (parse_args): Likewise.
615 2003-03-25 Stan Cox <scox@redhat.com>
616 Nick Clifton <nickc@redhat.com>
618 Contribute support for Intel's iWMMXt chip - an ARM variant:
620 * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Define.
621 * emulparams/armelf_linux.sh (OTHER_READONLY_SECTIONS): Define.
622 * scripttempl/armcoff.sc (.data): Ensure 8 byte alignment.
625 2003-03-25 Alexandre Oliva <aoliva@redhat.com>
627 * ldmain.h (ld_canon_sysroot, ld_canon_sysroot_len): Declare.
628 * ldmain.c (ld_canon_sysroot, ld_canon_sysroot_len): Define.
629 (main): Initialize them.
630 * ldfile.c: Include pathnames.h.
631 (is_sysrooted_pathname): New.
632 (ldfile_add_library_path): Use it.
633 (ldfile_open_file_search): Likewise. Use IS_ABSOLUTE_PATH. Don't
634 search_dirs if given an absolute pathname.
635 (ldfile_open_file): Issue error message for sysrooted
637 * Makefile.am: Updated dependencies.
638 * Makefile.in: Rebuild.
640 2003-03-24 Daniel Néri <dne@mayonnaise.net>
642 * ld.texinfo: Rename all occurances of C54X to TIC54X.
644 2003-03-19 Andreas Schwab <schwab@suse.de>
646 * ldfile.c (ldfile_try_open_bfd): Pop lexer start condition after
649 2003-03-18 Danny Smith <dannysmith@users.sourceforge.net>
651 * defilep.y (opt_base): If no number given, set to default
654 2003-03-13 Danny Smith <dannysmith@users.sourceforge.net>
656 * deffilep.y (def_import): Use default extension of "dll"
657 if no extension provided in parsed IMPORT definition.
659 * deffilep.y (def_lex): Revert 2003-03-12 change.
660 (dot_name): New id type and rule.
661 (expline): Use instead of ID.
662 (opt_equal_name): Likewise.
664 2003-03-12 Danny Smith <dannysmith@users.sourceforge.net>
666 * deffilep.y (def_lex): Accept '.' as valid non-lead char.
668 2003-03-07 Christopher Faylor <cgf@redhat.com>
670 * configure.tgt: Add NATIVE_LIB_DIRS for cygwin target back after
671 apparent accidental removal on 2003-01-06.
673 2003-03-04 Dmitry Diky <diwil@mail.ru>
675 * Makefile.am: Add new devices x1122 x1132 emulation
676 * configure.tgt: Likewise.
677 * Makefile.in: Regenerate.
678 * emulparams/msp430x1122.sh: New file.
679 * emulparams/msp430x1132.sh: New file.
681 2003-03-03 Alexandre Oliva <aoliva@redhat.com>
683 * ldmain.c (set_scripts_dir): Look for relative to TOOLBINDIR as
686 * ldfile.h (struct search_dirs): Added sysrooted field.
687 * ldlang.h (struct lang_input_statement_struct): Likewise.
688 * ldfile.c (ldfile_add_library_path): Mark sysrooted paths.
689 (ldfile_open_file_search): Look for sysrooted filename starting
690 with / in ld_sysroot instead of in the current directory. Clear
691 sysrooted flag if it's found in the current directory. Set it
692 from the search directory's sysrooted flag where it is found
694 * ldlang.c (ldlang_sysrooted_script): New static variable.
695 (new_afile): Mark search_file_enums as sysrooted if
696 ldlang_sysrooted_script.
697 (load_symbols): Set ldlang_sysrooted_script according to the
698 script's sysrooted field while processing it.
699 * ld.texinfo: Document INPUT behavior in sysroot.
701 2003-03-02 Danny Smith <dannysmith@users.sourceforge.net>
703 * scripttempl/pe.sc: Use PROVIDE with etext, end, _end,
705 2003-03-03 Alan Modra <amodra@bigpond.net.au>
707 * emulparams/elf64alpha.sh (EXTRA_EM_FILE): Define.
708 (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS,
709 PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES,
710 PARSE_AND_LIST_EPILOGUE): Don't define.
711 * emultempl/alphaelf.em: New file.
713 2003-03-01 Alan Modra <amodra@bigpond.net.au>
715 * ldemul.c: Include getopt.h.
716 * emultempl/elf32.em: Include getopt.h earlier.
717 * emultempl/ticoff.em: Likewise.
719 2003-02-28 Alan Modra <amodra@bigpond.net.au>
721 * emultempl/elf32.em (gld${EMULATION_NAME}_get_script): Add combreloc
722 support when scripts read from files.
724 2003-02-28 Alan Modra <amodra@bigpond.net.au>
726 * ldemul.c (ldemul_parse_args): Return FALSE by default.
727 * ldemul.h (struct ld_emulation_xfer_struct): Update parse_args
730 * ldemul.c (ldemul_add_options, ldemul_handle_option): New functions.
731 (ldemul_parse_args): Return bfd_boolean. Formatting.
732 * ldemul.h (ldemul_add_options, ldemul_handle_option): Declare.
733 (ldemul_parse_args): Adjust.
734 (struct ld_emulation_xfer_struct): Add add_options and handle_option.
735 Return bfd_boolean from parse_args.
736 * lexsup.c (parse_args): Malloc shortopts, longopts and
737 really_longopts. Call ldemul_add_options and ldemul_handle_option.
738 * emultempl/aix.em (gld${EMULATION_NAME}_add_options): Split out from
739 gld${EMULATION_NAME}_parse_args.
740 (gld${EMULATION_NAME}_handle_option): Likewise.
741 (ld_${EMULATION_NAME}_emulation): Adjust initializer.
742 * emultempl/armcoff.em: As for aix.em, but remove parse_args.
743 * emultempl/beos.em: Likewise.
744 * emultempl/pe.em: Likewise.
745 * emultempl/ticoff.em: Likewise.
746 * emultempl/elf32.em: Likewise. Don't duplicate long options either.
747 (gld${EMULATION_NAME}_add_sysroot): Prototype.
748 * emultempl/armelf.em (PARSE_AND_LIST_LONGOPTS): Don't duplicate
750 * emultempl/hppaelf.em (PARSE_AND_LIST_LONGOPTS): Likewise.
751 * emultempl/ppc32elf.em (PARSE_AND_LIST_LONGOPTS): Likewise.
752 * emultempl/ppc64elf.em (PARSE_AND_LIST_LONGOPTS): Likewise.
753 * emultempl/armelf_oabi.em (ld_${EMULATION_NAME}_emulation): Adjust
755 * emultempl/generic.em: Likewise.
756 * emultempl/gld960.em: Likewise.
757 * emultempl/gld960c.em: Likewise.
758 * emultempl/linux.em: Likewise.
759 * emultempl/lnk960.em: Likewise.
760 * emultempl/m68kcoff.em: Likewise.
761 * emultempl/mipsecoff.em: Likewise.
762 * emultempl/sunos.em: Likewise.
763 * emultempl/vanilla.em: Likewise.
764 * emultempl/netbsd.em (gldnetbsd_before_parse): Prototype.
766 2003-02-25 Alexandre Oliva <aoliva@redhat.com>
768 * emultempl/elf32.em (gld${EMULATION_NAME}_add_sysroot): Fix
769 memory allocation error.
771 * Makefile.am (ldmain.o): Define TOOLBINDIR.
772 * Makefile.in: Rebuilt.
773 * ldmain.c (ld_sysroot): Try to set from TOOLBINDIR too.
775 2003-02-21 Bob Wilson <bob.wilson@acm.org>
777 * ldlang.c (lang_size_sections_1): Add CHECK_REGIONS argument and only
778 call os_region_check when it is set.
779 (lang_size_sections): Add CHECK_REGIONS argument and pass it through to
780 lang_size_sections_1.
781 (lang_process): Change lang_size_sections calls to set CHECK_REGIONS
782 only for the last call, not on every relaxation iteration.
783 * ldlang.h (lang_size_sections): Update prototype.
784 * pe-dll.c (pe_dll_fill_sections): Set CHECK_REGIONS argument in calls
785 to lang_size_sections.
786 (pe_exe_fill_sections): Likewise.
787 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Likewise.
788 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
789 * emultempl/ppc64elf.em (ppc_before_allocation): Likewise.
790 (ppc_layout_sections_again): Likewise.
792 2003-02-21 Bob Wilson <bob.wilson@acm.org>
794 * gen-doc.texi: Set ARM and HPPA variables.
795 * ld.texinfo: Fix typos and obvious texinfo mistakes. Make section
796 title capitalization more consistent. Add missing menu entries for
797 machine-specific sections and conditionalize them consistently.
798 Conditionalize text that is irrelevant when SingleFormat is set.
799 Add @group divisions to improve page breaks in long examples.
800 Use @iftex/@ifnottex instead of @iftex/@ifinfo so that HTML output
801 is correct. Remove "FIXME" comment about not using
802 @raisesections/@lowersections. Use @raisesections/@lowersections
803 consistently for machine-specific sections. Change to be more polite
804 about poor bug reports. Replace FDL appendix with include of fdl.texi.
805 Move WIN32 node to match its order in the menus.
806 * fdl.texi: New file.
808 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
810 * configure.in (TARGET_SYSTEM_ROOT): Set default to
811 ${exec_prefix}/${target_alias}/sys-root. Match explicit
812 '${exec_prefix}' (in addition to the expansion thereof) as
814 * configure: Rebuilt.
816 2003-02-20 Phil Edwards <pme@gcc.gnu.org>
818 * ldgram.y (vers_defns): Also recurse with 'EXTERN NAME' patterns.
820 2003-02-20 Harri Porten <porten@kde.org>
822 * ldgram.y (vers_defns): Allow optional trailing semicolon in
825 2003-02-18 Alan Modra <amodra@bigpond.net.au>
827 * emultempl/ppc32elf.em: New file.
828 * emulparams/elf32ppc.sh (EXTRA_EM_FILE): Define.
829 * Makefile.am (eelf32lppc.c): Depend on emultempl/ppc32elf.em.
830 (eelf32lppcnto.c): Likewise.
831 (eelf32lppcsim.c): Likewise.
832 (eelf32ppcnto.c): Likewise.
833 (eelf32ppc.c): Likewise.
834 (eelf32ppc_fbsd.c): Likewise.
835 (eelf32ppcsim.c): Likewise.
836 (eelf32ppclinux.c): Likewise.
837 * Makefile.in: Regenerate.
839 2003-02-18 Alan Modra <amodra@bigpond.net.au>
841 * ld.texinfo: Remove spaces between @samp and opening brace.
843 2003-02-18 Alan Modra <amodra@bigpond.net.au>
845 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Check
847 (ppc_before_allocation): Don't do optimizations if wrong hash table.
848 (gld${EMULATION_NAME}_finish): Ditto.
850 2003-02-17 Nick Clifton <nickc@redhat.com>
852 * ldmain.c (main) Default allow_shlib_undefined to true.
853 * lexsup.c (ld_options): Add --no-allow-shlib-undefined.
854 (parse_args): Parse the new switch.
855 * ld.texinfo: Document new switch and default behaviour of
856 allowing undefined symbols in shared libraries.
858 2003-02-11 Dmitry Diky <diwil@mail.ru>
860 * scripttempl/elf32msp430.sc: Add new data anchors definitions.
861 * scripttempl/elf32msp430_3.sc: Likewise.
863 2003-02-11 Uwe Stieber <uwe@wwws.de>
865 * configure.tgt: Add support for kaOS as cross build target
868 2003-02-10 John Daivid Anglin <dave.anglin@nrc-cnrc.gc.ca>
870 * hppaelf.em (group_size): Change default back to 1.
872 2003-02-09 Alan Modra <amodra@bigpond.net.au>
874 * emultempl/ppc64elf.em: Add "no-tls-optimize" option and support code.
876 2003-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
878 * hppaelf.em (group_size): Change default to -1.
880 2003-02-07 Nick Clifton <nickc@redhat.com>
882 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Remove 'n' short
884 (PARSE_AND_LIST_LONGOPTS): Add duplicate entry for
885 no-pipeline-knowledge. This will prevent the getopt package from
886 thinking that there are any shorter abbreviations for
887 --no-pipeline-knowledge.
889 2003-02-07 Jakub Jelinek <jakub@redhat.com>
891 * genscripts.sh (LIB_PATH): Don't append LIBPATH_SUFFIX to paths
892 which already have it. Avoid duplicates.
894 2003-02-06 Jakub Jelinek <jakub@redhat.com>
896 * emulparams/elf64_s390.sh (LIBPATH_SUFFIX): Set to 64.
897 * emulparams/elf_x86_64.sh (LIBPATH_SUFFIX): Likewise.
898 * emulparams/elf64_sparc.sh (LIBPATH_SUFFIX): Set instead of suffix.
900 2003-02-05 Alan Modra <amodra@bigpond.net.au>
902 * emultempl/ppc64elf.em (ppc_before_allocation): Size sections then
903 call ppc64_elf_tls_optimize.
905 2003-02-03 Daniel Jacobowitz <drow@mvista.com>
907 * emultempl/elf32.em: Move gld${EMULATION_NAME}_add_sysroot
908 outside of GNU/Linux conditional.
910 2003-01-28 Ralf Habacker <ralf.habacker@freenet.de>
912 * deffilep.y (def_get_module): New function: locate an already
914 * deffile.h (def_get_module): New prototype.
915 * pe-dll.c (pe_implied_import_dll): Add code to prevent importing
916 a dll multiple times.
918 2003-01-23 Alan Modra <amodra@bigpond.net.au>
920 * emultempl/sh64elf.em: Include elf32-sh64.h.
921 (sh64_elf_${EMULATION_NAME}_before_allocation): Adjust for changed
922 sh64_elf_section_data.
923 (sh64_elf_${EMULATION_NAME}_after_allocation): Likewise.
925 2003-01-23 Wu Yongwei <adah@netstd.com>
927 * ld.texinfo: Remove an extra "i" in --dll-search-prefix.
928 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Move a
929 cross-80th-column-margin "an" to the next line.
931 2003-01-21 Nick Clifton <nickc@redhat.com>
933 * emulparams/tic3xcoff-onchip.sh: Rename to ...z
934 * emulparams/tic3xcoff_onchip.sh: ...this.
935 * Makefile.am (etic3xcoff_onchip.c): Fix name of generated C file.
936 * Makefile.in: Regenerate.
938 2003-01-21 Fabio Alemagna <falemagn@aros.org>
940 * configure.tgt: Handle i[3456]86-*-aros*
942 2003-01-19 Svein E. Seldal <Svein.Seldal@solidas.com>
944 * Makefile.am: Added etic3xcoff.o and etic4xcoff_onchip.o
945 * Makefile.in: Regenerate
946 * configure.tgt: Added extra target emulations
947 * emulparams/tic3xcoff.sh: Remove old settings
948 * emulparams/tic4xcoff.sh: Ditto
949 * emulparams/tic3xcoff-onchip.sh: Added new
950 * scripttempl/tic4xcoff.sc: Revise and combine both c3x and c4x
951 * scripttempl/tic3xcoff.sc: Remove
953 2003-01-17 Andreas Jaeger <aj@suse.de>
955 * emultempl/elf32.em (gld${EMULATION_NAME}_add_sysroot): Do not
958 2003-01-16 Alan Modra <amodra@bigpond.net.au>
960 * Makefile.in: Regenerate.
962 2002-01-14 Charles Wilson <cwilson@ece.gatech.edu>
964 * ld.texinfo (node WIN32): Some clarifications
965 and formatting fixups.
967 2003-01-09 Chris Demetriou <cgd@broadcom.com>
969 * ldmain.c (get_emulation): Sort -mipsNN checks in the usual
970 order, and handle (ignore) -mips32r2.
972 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
974 * ldmain.c (main): Make sure ld_sysroot is initialized.
976 2003-01-06 Daniel Jacobowitz <drow@mvista.com>
978 * Makefile.am (eelf32iq10.c): Fix tab/whitespace mixup.
980 * Makefile.am (ldmain.o): Add @TARGET_SYSTEM_ROOT_DEFINE@.
981 (GENSCRIPTS): Add @use_sysroot@.
982 * Makefile.in: Regenerated.
983 * configure.host: Move setting of NATIVE_LIB_DIRS to...
984 * configure.tgt: ... here. Use ${target} instead of ${host}
986 * configure.in: Add --with-sysroot.
987 * configure: Regenerated.
988 * genscripts.sh: Accept use_sysroot option. Set new variables
989 NATIVE and USE_LIBPATH. Prepend "=" to directory names if
990 $use_sysroot. Don't search $tool_lib if $use_sysroot.
991 * ldfile.c (ldfile_add_library_path): Handle leading '='.
992 * ldmain.c (TARGET_SYSTEM_ROOT): Define if not defined.
993 (ld_sysroot): New variable.
994 (main): Initialize ld_sysroot.
995 * ldmain.h (ld_sysroot): New extern.
996 * emultempl/elf32.em: Use NATIVE and USE_LIBPATH instead of
997 searching $EMULATION_LIBPATH.
998 (gld${EMULATION_NAME}_add_sysroot): New function.
999 (gld${EMULATION_NAME}_check_ld_so_conf): Use it. Honor ld_sysroot.
1000 (gld${EMULATION_NAME}_after_open): Likewise. Only search
1001 environment variables if $NATIVE.
1002 * ld.texinfo (Options): Mention "=" prefix in the description of -L.
1003 * NEWS: Mention --with-sysroot.
1005 * emulparams/elf32bmipn32-defs.sh: Set NATIVE and LIBPATH_SUFFIX
1006 instead of setting LIB_PATH.
1007 * emulparams/elf32ppc.sh: Likewise.
1008 * emulparams/elf64_s390.sh: Likewise.
1009 * emulparams/elf64_sparc.sh: Likewise.
1010 * emulparams/elf64ppc.sh: Likewise.
1011 * emulparams/elf_x86_64.sh: Likewise.
1013 * emulparams/elf64_aix.sh: Add "=" prefixes to LIB_PATH.
1014 * emulparams/elf64hppa.sh: Add "=" prefixes to LIB_PATH.
1016 2003-01-03 Charles Wilson <cwilson@ece.gatech.edu>
1018 * pe-dll.c (autofilter_symbollist): Add cygwin_crt0.
1020 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
1022 * Makefile.am (ldmain.o): Pass BINDIR.
1023 * Makefile.in: Regenerated.
1024 * ldmain.c (set_scripts_dir): Use make_relative_prefix for the first
1027 2003-01-02 Ben Elliston <bje@redhat.com>
1029 * Makefile.am (ALL_EMULATIONS): Add eelf32iq2000.o.
1030 (eelf32iq2000.c): New target.
1031 * Makefile.in: Regenerate.
1032 * configure.tgt: Handle iq2000-*-elf.
1033 * emulparams/elf32iq10.sh: New file.
1034 * emulparams/elf32iq2000.sh: New file.
1035 * scripttempl/iq2000.sc: New file.
1037 2003-01-02 Charles Wilson <cwilson@ece.gatech.edu>
1039 * pe-dll.c (autofilter_symbollist): Add do_pseudo_reloc
1040 and _pei386_runtime_relocator to the exclude list.
1042 2003-01-01 Kazu Hirata <kazu@cs.umass.edu>
1044 * ldfile.c: Fix comment typos.
1045 * ldlang.c: Likewise.
1047 * pe-dll.c: Likewise.
1049 2003-01-01 Daniel Jacobowitz <drow@mvista.com>
1051 Suggested by Manfred Hollstein <manfred.h@gmx.net>:
1052 * Makefile.am (ld.1): Depend on configdoc.texi
1054 * Makefile.in: Regenerated.
1056 2002-12-24 Dmitry Diky <diwil@mail.ru>
1058 * Makefile.am: Add msp430 target.
1059 * configure.tgt: Likewise.
1060 * Makefile.in: Regenerate.
1061 * emulparams/msp430x???.sh: New files. Linker script parameters
1062 for various msp430 configurations.
1063 * gen-doc.texi: Enable msp430 documenation.
1064 * ld.texinfo: Document msp430 sections.
1065 * scripttempl/elf32msp430.sc: New file. Linker script for msp430.
1066 * scripttempl/elf32msp430_3.sc: New file. Linker script for msp430.
1068 2002-12-30 Ralf Habacker <Ralf.Habacker@freenet.de>
1069 Charles Wilson <cwilson@ece.gatech.edu>
1071 * config.in (HAVE_REALPATH): New entry.
1072 (HAVE_SYS_STAT_H, HAVE_SYS_TYPES_H): Removed: obsolete.
1074 2002-12-30 Ralf Habacker <ralf.habacker@freenet.de>
1076 * ld.texinfo: New win32 topics: 'symbol aliasing' and 'export dll
1079 2002-12-23 Alan Modra <amodra@bigpond.net.au>
1081 * ldmain.c (main): Init "strip_discarded".
1082 * lexsup.c (OPTION_STRIP_DISCARDED): Define.
1083 (OPTION_NO_STRIP_DISCARDED): Define.
1084 (ld_options): Add "strip-discarded" and "no-strip-discarded".
1085 (parse_args): Handle them.
1087 2002-12-23 Nick Clifton <nickc@redhat.com>
1089 * ld.h (struct args_type): Add new field
1090 'accept_unknown_input_architecture'.
1091 * ldmain.c (main): Initialise 'accept_unknown_input_architecture'
1093 * ldlang.c (lang_check): Pass accept_unknown_input_architecture to
1094 bfd_arch_get_compatible.
1095 * ldfile.c (ldfile_try_open_bfd): Likewise.
1096 * lexsup.c (ld_options): Add new command line switch
1097 --accept-unknown-input-architecture and its inverse.
1098 (parse_args): Handle --accept-unknown-input-architecture.
1099 * ld.texinfo: Document new linker option.
1100 * NEWS: Mention new linker option.
1102 2002-12-20 Alan Modra <amodra@bigpond.net.au>
1104 * ldmain.c (main): Re-order link_info initialization. Init all
1107 2002-12-19 Charles Wilson <cwilson@ece.gatech.edu>
1109 * ld.texinfo: Clarify and extend the documentation
1110 in the Machine Dependent, WIN32 section.
1112 2002-12-18 Ralf Habacker <ralf.habacker@freenet.de>
1114 * ld.texinfo: Add win32 machine depending section.
1115 * gen-doc.texi: Enable win32 machine depending section.
1117 * configure.host: Add win32 library search path.
1119 2002-12-17 Ralf Habacker <ralf.habacker@freenet.de>
1121 * emultempl/pe.em (pe_find_data_imports): Don't search for data
1122 import when auto-import is disabled.
1124 2002-12-17 Danny Smith <dannysmith@users.sourceforge.net>
1126 * emultempl/pe.em (..._recognized_file): Use LD_PATHMAX+1 to
1127 account for trailing '\0'.
1129 2002-12-17 Nick Clifton <nickc@redhat.com>
1131 * emultempl/pe.em (longopts): Duplicate entry for --compact-implib
1132 so that it is not confused with -c.
1134 2002-12-13 Ralf Habacker <Ralf.Habacker@freenet.de>
1135 Charles Wilson <cwilson@ece.gatech.edu>
1137 * configure.in: Add check for realpath function.
1138 * configure: Regenerate.
1139 * config.in: Regenerate.
1140 * aclocal.m4: Regenerate.
1141 * deffile.h: Add .data field to def_file_import
1143 * pe-dll.c (pe_proces_import_defs): Use .data field of
1144 def_file_import structure to initialize flag_data field of
1145 def_file_export structure.
1146 (pe_implied_import_dll): New variables exp_funcbase and
1147 [data|bss]_[start|end]. Use DLL's internal name to set dll_name,
1148 not filename (which may be a symlink). Scan the sections and
1149 initialize [data|bss]_[start|end]. When scanning the export
1150 table, skip _nm_ symbols, and mark any symbols whose rva indicates
1151 that it is in the .bss or .data sections as data.
1152 * sysdep.h: Include limits.h and sys/param.h, and define
1153 LD_PATHMAX as appropriate. Also define REALPATH as realpath if it
1154 exists, NULL otherwise.
1155 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Call
1156 pe_process_import_defs before pe_find_data_imports, so that
1157 auto-import will check the virtual implib as well as "real"
1159 (gld_${EMULATION_NAME}_recognized_file): Use REALPATH to follow
1160 symlinks to their target; check that the target's extension is
1161 .dll before calling pe_implied_import_dll(), not the filename
1162 itself (which may be a symlink).
1164 2002-12-10 Alan Modra <amodra@bigpond.net.au>
1166 * emultempl/elf32.em (struct orphan_save): Add os_tail field.
1167 (gld${EMULATION_NAME}_place_orphan): Re-order output_section_statement
1170 2002-12-08 Alan Modra <amodra@bigpond.net.au>
1172 * ldlang.h: Formatting.
1174 2002-12-07 Alan Modra <amodra@bigpond.net.au>
1176 * ldlang.c (init_os): Ensure sections mentioned in load_base
1179 2002-12-05 Alan Modra <amodra@bigpond.net.au>
1181 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Set
1182 load_base for orphans that follow a section with load_base set.
1184 2002-12-01 H.J. Lu <hjl@gnu.org>
1186 * ld.texinfo: Remove the extra `;' in sample version script.
1188 2002-11-30 Alan Modra <amodra@bigpond.net.au>
1190 * configure.host: Correct dynamic-linker for powerpc64 hosts.
1192 * Makefile.am (eelf32ppcwindiss.c): Correct dependencies.
1193 * Makefile.in: Regenerate.
1195 * ld.h, ldcref.c, ldctor.c, ldctor.h, ldemul.c, ldemul.h, ldexp.c,
1196 ldexp.h, ldfile.c, ldfile.h, ldgram.y, ldlang.c, ldlang.h, ldmain.c,
1197 ldmain.h, ldmisc.c, ldwrite.c, lexsup.c, mri.c, pe-dll.c, pe-dll.h,
1198 emulparams/elf32b4300.sh, emultempl/aix.em, emultempl/armcoff.em,
1199 emultempl/armelf.em, emultempl/armelf_oabi.em, emultempl/beos.em,
1200 emultempl/elf32.em, emultempl/generic.em, emultempl/gld960.em,
1201 emultempl/gld960c.em, emultempl/hppaelf.em, emultempl/linux.em,
1202 emultempl/lnk960.em, emultempl/m68kcoff.em, emultempl/mipsecoff.em,
1203 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em, emultempl/mmo.em,
1204 emultempl/needrelax.em, emultempl/pe.em, emultempl/ppc64elf.em,
1205 emultempl/sh64elf.em, emultempl/sunos.em, emultempl/ticoff.em: Replace
1206 boolean with bfd_boolean, true with TRUE, false with FALSE. Simplify
1207 comparisons of bfd_boolean vars with TRUE/FALSE. Formatting.
1209 2002-11-27 David O'Brien <obrien@FreeBSD.org>
1211 * configure.host: Fix generic FreeBSD configuration entry.
1213 2002-11-27 H.J. Lu <hjl@gnu.org>
1215 * ld.texinfo: Add the missing `;' to sample version scripts.
1217 2002-11-20 Alan Modra <amodra@bigpond.net.au>
1219 * emulparams/elf64ppc.sh (SEGMENT_SIZE): Don't define.
1221 2002-11-14 Egor Duda <deo@logos-m.ru>
1223 * ldmain.c (main): Make runtime relocs disabled by default. Remove
1224 assignment which has no effect.
1225 * pe-dll.h (pe_create_import_fixup): Change prototype.
1226 * pe-dll.c (make_runtime_pseudo_reloc): New function.
1227 (pe_create_runtime_relocator_reference): Ditto.
1228 (pe_create_import_fixup): Handle relocations with non-zero addends.
1229 * emultempl/pe.em: Add options --enable-runtime-pseudo-reloc and
1230 --disable-runtime-pseudo-reloc.
1231 (make_import_fixup): Handle relocations with non-zero addends. Create
1232 an external reference to _pei386_runtime_relocator symbol if at least
1233 one pseudo reloc was created.
1234 * ld.texinfo: Document --enable-runtime-pseudo-reloc and
1235 --disable-runtime-pseudo-reloc options.
1237 2002-11-12 Earl Chew <earl_chew@agilent.com>
1239 * ldlang.c (lang_add_section): Discard debugging sections that have
1240 been marked SEC_EXCLUDE.
1242 2002-11-12 Nick Clifton <nickc@redhat.com>
1244 * configure.in (ALL_LINGUAS): Add da.
1245 * configure: Regenerate.
1246 * po/da.po: New Danish translation.
1248 2002-11-12 Alan Modra <amodra@bigpond.net.au>
1250 * emultempl/ppc64elf.em (ppc_before_allocation): New function.
1251 (LDEMUL_BEFORE_ALLOCATION): Define.
1252 (gld${EMULATION_NAME}_finish): Run discard_info for relocatable
1254 * emultemp/hppaelf.em ((gld${EMULATION_NAME}_finish): Likewise.
1256 2002-11-11 Christopher Faylor <cgf@redhat.com>
1258 * configure.tgt (LIB_PATH): Default to searching w32api directory under
1261 2002-11-11 Charles Wilson <cwilson@ece.gatech.edu>
1263 * pe-dll.c (autofilter_liblist): add libmingwex and libgcj to the list
1264 of restricted auto-export libs.
1266 2002-11-11 Charles Wilson <cwilson@ece.gatech.edu>
1268 * pe-dll.c (autofilter_liblist): Generalize library names to catch more
1269 creative library naming instances like, e.g., libstdc++-2.a.
1271 2002-11-06 Alexandre Oliva <aoliva@redhat.com>
1273 * emulparams/elf32btsmipn32.sh (TEXT_DYNAMIC): Define.
1274 * emulparams/elf64btsmip.sh (TEXT_DYNAMIC): Likewise.
1276 2002-11-07 Danny Smith <dannysmith@users.sourceforge.net>
1278 * deffilep.y (def_lex): Handle '@' as first character of an ID.
1279 * pe-dll.c (auto-export): Filter on "_imp_" prefix, not "_imp__".
1280 (make_one): Don't prefix decorated fastcall symbols with '_'.
1281 (pe_process_import_defs): Likewise.
1282 * emultempl/pe.em (pe_fixup_stdcalls): Don't fixup fastcall
1283 symbols to cdecl names or vise-versa.
1285 2002-10-13 Eric Kohl <ekohl@rz-online.de>
1287 * pe-dll.c (process_def_file): Handle fastcall symbols when
1288 generating undecorated aliases. Don't prefix decorated fastcall
1290 (fill_exported_offsets): Don't prefix decorated fastcall symbols
1293 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
1295 * emultempl/aix.em: Use include <> for generated headers.
1296 * emultempl/beos.em: Likewise.
1297 * emultempl/elf32.em: Likewise.
1298 * emultempl/pe.em: Likewise.
1299 * ldctor.c: Likewise.
1300 * ldexp.c: Likewise.
1301 * ldfile.c: Likewise.
1302 * ldlang.c: Likewise.
1303 * ldlex.c: Likewise.
1304 * ldlex.l: Likewise.
1305 * ldmain.c: Likewise.
1306 * ldmisc.c: Likewise.
1307 * ldwrite.c: Likewise.
1308 * lexsup.c: Likewise.
1310 * pe-dll.c: Likewise.
1312 2002-10-23 Jakub Jelinek <jakub@redhat.com>
1314 * emultempl/elf32.em (place_orphan): Don't put non-allocated .rel*
1315 sections into .rel{,a}.dyn.
1317 2002-10-23 Nick Clifton <nickc@redhat.com>
1319 * lexsup.c (OPTION_NO_OMAGIC): Define.
1320 (ld_options): Add "no-omagic" option.
1321 (parse_args): Parse --no-omagic.
1322 * ld.texinfo: Document --no-omagic.
1323 * NEWS: Mention new option.
1325 2002-10-21 Danny Smith <dannysmith@users.sourceforeg.net>
1327 * scripttempl/pe.sc (__RUNTIME_PSEUDO_RELOC_LIST__,
1328 __RUNTIME_PSEUDO_RELOC_LIST_END__): Add only when relocating.
1330 2002-10-22 Alexandre Oliva <aoliva@redhat.com>
1332 * emulparams/elf32bmipn32-defs.sh: Set ELFSIZE according to
1333 emulation name. Set LIB_PATH only for native tools, and
1334 search the ABI-specific versions of NATIVE_LIB_DIRS before the
1335 .../lib variants, not instead of them. Mostly copied from...
1336 * emulparams/elf32ppc.sh: ... here. Fixed typo.
1337 * emulparams/elf64bmip-defs.sh: Backed out.
1338 * emulparams/elf64bmip.sh: Import elf32bmipn32-defs.sh again.
1339 * emulparams/elf64btsmip.sh: Likewise.
1340 (DATA_ADDR, NONPAGED_TEXT_START_ADDR, SHLIB_TEXT_START_ADDR,
1341 TEXT_DYNAMIC): Removed.
1343 2002-10-17 Alexandre Oliva <aoliva@redhat.com>
1345 * emulparams/elf32bmipn32-defs.sh (LIB_PATH): Set to /usr/lib32.
1346 (GENERATE_SHLIB_SCRIPT): Set to yes.
1347 (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Moved to...
1348 * emulparams/elf32bmipn32.sh: here.
1349 (GENERATE_SHLIB_SCRIPT): Deleted as redundant.
1350 * emulparams/elf32btsmipn32.sh: Delete redundant unsets.
1351 * emulparams/elf64bmip-defs.sh: New file. Extend
1352 elf32bmipn32-defs.sh by overiding ELFSIZE and LIB_PATH.
1353 * emulparams/elf64bmip.sh: Bring in definitions from
1355 (ELFSIZE, GENERATE_SHLIB_SCRIPT, LIB_PATH): Delete redundant
1357 (WRITABLE_RODATA): Moved from elf32bmipn32-defs.sh.
1358 * emulparams/elf64btsmip.sh: Bring in definitions from
1360 (ELFSIZE, GENERATE_SHLIB_SCRIPT): Delete, redundant.
1361 (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Delete redundant unsets.
1363 2002-10-16 Jakub Jelinek <jakub@redhat.com>
1365 * configure.tgt (s390x-*-linux*): Add elf_s390 emulation.
1366 (s390-*-linux*): Add elf64_s390 emulation if want64.
1367 * emulparams/elf64_sparc.sh (LIB_PATH): Update to match 2002-05-22
1368 genscript.sh changes.
1369 * emulparams/elf_x86_64.sh (LIB_PATH): Likewise.
1370 * emulparams/elf64_s390.sh (LIB_PATH): Set up native 64 bit dirs.
1372 2002-10-15 Alan Modra <amodra@bigpond.net.au>
1374 * ldlang.c (load_symbols): Revert last change.
1376 2002-10-14 Alan Modra <amodra@bigpond.net.au>
1378 * ldlang.c (load_symbols): Don't call bfd_link_add_symbols when
1380 (lang_reasonable_defaults): Don't compare against false.
1381 (size_input_section): Likewise.
1382 (lang_size_sections_1): Likewise.
1383 (lang_do_assignments): Likewise.
1384 (lang_add_output): Likewise.
1386 * Makefile.am: Run "make dep-am".
1387 * Makefile.in: Regenerate.
1388 * ldver.c: #include "bfdver.h".
1390 2002-10-13 Stephane Carrez <stcarrez@nerim.fr>
1392 * scripttempl/elfm68hc11.sc: Use KEEP for .vectors, .installN,
1394 * scripttempl/elfm68hc12.sc: Likewise.
1396 2002-10-11 Alan Modra <amodra@bigpond.net.au>
1398 * pe-dll.c (make_import_fixup_mark): Avoid type-punned pointer.
1400 * ldgram.y (memory_spec): Provide empty action.
1401 (section <NAME>): Likewise.
1403 2002-10-10 Jakub Jelinek <jakub@redhat.com>
1405 * ldfile.c (ldfile_try_open_bfd): When searching skip linker scripts if
1406 they have OUTPUT_FORMAT not matching actual output format.
1407 * ldlang.c (lang_get_output_target): New function.
1408 (open_output): Use it.
1409 * ldlang.h (lang_get_output_target): New prototype.
1411 2002-10-10 Alan Modra <amodra@bigpond.net.au>
1413 * emultempl/elf32.em (output_rel_find): Prefer .rel script sections
1414 when orphan is .rel, .rela when orphan is .rela.
1415 (gld${EMULATION_NAME}_place_orphan): Handle combreloc .rel* case
1416 first. Remove outsecname var.
1418 2002-10-09 Richard Shann <richard.shann@superh.com>
1419 Stephen Clarke <stephen.clarke@superh.com>
1421 * Makefile.am: Add eshelf32_linux.o and
1422 eshlelf32_linux.o, new emulations for sh64 Linux.
1423 * Makefile.in: Regenerate.
1424 * configure.tgt: Add sh64eb-*-linux* and sh64-*-linux* emulations.
1425 * emulparams/shelf32_linux.sh: New file.
1426 * emulparams/shlelf32_linux.sh: New file.
1428 2002-10-08 H.J. Lu <hjl@gnu.org>
1430 * ldlang.c (lang_file_exist): Removed.
1431 (new_afile): Revert the last change.
1432 * ldlang.h (lang_file_exist): Removed.
1433 * lexsup.c (parse_args): Revert the last change.
1435 2002-10-07 Ralf Habacker <Ralf.Habacker@freenet.de>
1437 * pe-dll.cc (autofilter_symbolprefixlist): Don't re-export
1438 auto-import symbols.
1439 (make_one): Create _nm_<symbol> for data only.
1441 2002-10-05 Elias Athanasopoulos <eathan@otenet.gr>
1443 * ldlang.c (lang_file_exist): New function.
1444 (new_afile): Abort if the filename to be added matches the linker
1446 * ldlang.h: Add prototype for lang_file_exist.
1447 * lexsup.c (parse_args): Abort if the output filename matches
1448 one of the input filenames.
1450 2002-10-02 Alan Modra <amodra@bigpond.net.au>
1452 * emulparams/elf64ppc.sh (MAXPAGESIZE): Set to 0x10000.
1454 2002-09-30 Alan Modra <amodra@bigpond.net.au>
1456 * scripttempl/elfd30v.sc: Order reloc sections placing .plt last.
1457 * scripttempl/elfm68hc11.sc: Likewise.
1458 * scripttempl/elfm68hc12.sc: Likewise.
1460 * emultempl/elf32.em (output_rel_find): Always place orphan loadable
1461 reloc sections just before .rel.plt/.rela.plt.
1462 (gld${EMULATION_NAME}_place_orphan <.rel>): Remove combreloc code.
1463 Only put loadable reloc sections in hold_rel.
1465 2002-09-29 H.J. Lu <hjl@gnu.org>
1467 * emulparams/elf32ppc.sh (OTHER_GOT_RELOC_SECTIONS): New.
1469 2002-09-25 Daniel Jacobowitz <drow@mvista.com>
1471 From "Anita Kulkarni" <AnitaK@kpit.com>
1472 * scripttempl/sh.sc: Handle .eh_frame* and .gcc_exc*
1475 2002-09-25 Alan Modra <amodra@bigpond.net.au>
1477 * genscripts.sh (SEGMENT_SIZE): Use MAXPAGESIZE before
1479 * scripttempl/elf.sc (DATA_SEGMENT_ALIGN): Incorporate
1480 SEGMENT_SIZE alignment.
1481 * emulparams/elf64ppc.sh (DATA_ADDR): Delete.
1482 (SEGMENT_SIZE): Define.
1484 * ldexp.c (fold_unary): New. Split out from exp_fold_tree.
1485 (fold_binary): Correct abs - non-abs case.
1486 (fold_trinary): New. Split out from exp_fold_tree.
1488 2002-09-24 Alan Modra <amodra@bigpond.net.au>
1490 * emulparams/elf64ppc.sh (DATA_ADDR): Define.
1491 * emulparams/elf64_aix.sh (DATA_ADDR): Don't use a fixed address
1492 for start of .data, instead align up to 256M boundary.
1493 * scripttempl/aix.sc: Likewise.
1495 2002-09-22 Mark Elbrecht <snowball3@softhome.net>
1497 * scripttempl/i386go32.sc: Handle bss unique sections.
1499 2002-09-21 Alan Modra <amodra@bigpond.net.au>
1501 * ldmisc.c (vfinfo <%C,%D,%G>): Always output bfd, section and offset.
1503 2002-09-17 Stan Cox <scox@redhat.com>
1505 * emulparams/elf32bmipn32-defs.sh: New file.
1506 * emulparams/elf32bmipn32.sh: Use elf32bmipn32-defs.sh.
1507 * emulparams/elf32btsmipn32.sh: Likewise.
1508 * emulparams/elf64bmip.sh: Likewise.
1509 * emulparams/elf64btsmip.sh: Likewise.
1511 2002-09-16 Bruno Haible <bruno@clisp.org>
1513 * emulparams/elf_i386_fbsd.sh: Set OUTPUT_FORMAT to
1515 * emulparams/elf64alpha_fbsd.sh: Set OUTPUT_FORMAT to
1516 elf64-alpha-freebsd.
1518 2002-09-11 Nick Clifton <nickc@redhat.com>
1520 * NEWS: New TI port supports both C4x and C3x series of DSPs.
1522 * po/tr.po: Updated Turkish translation.
1524 2002-09-06 Jeffrey A Law (law@redhat.com)
1526 * configure.tgt (h8300-*-hms*, h8500-*-hms*): Restore.
1528 2002-09-02 Nick Clifton <nickc@redhat.com>
1530 * scripttempl/v850.sc: Add EXTERN references to __ctbpm __gp and
1532 * emulparams/v850.sh (TEMPLATE_NAME): Define.
1534 2002-08-30 Nick Clifton <nickc@redhat.com>
1536 * scripttempl/elfd10v.sc (MEMORY): Remove UNIFIED, it is not
1537 used. Change INSN to start at 0x01000000 and extend for
1538 256K (ignoring holes). Start the STACK on a word aligned
1540 (.rodata): Start it at the READONLY_START_ADDR.
1542 2002-08-30 Alan Modra <amodra@bigpond.net.au>
1544 * emulparams/elf32ppc.sh (ARCH): Set to "powerpc:common".
1546 2002-08-28 Svein E. Seldal <Svein.Seldal@solidas.com>
1548 * Makefile.am: Add etic4xcoff.o in ALL_EMULATIONS list and
1549 added makefile targets for this file.
1550 * Makefile.in: Regenerate.
1551 * configure.tgt: Added tic4x-coff and c4x-coff emulations.
1552 * NEWS: Mention new port.
1554 2002-08-28 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
1556 * emulparams/tic3xcoff.sh: New file.
1557 * emulparams/tic4xcoff.sh: New file.
1558 * scripttempl/tic3xcoff.sc: New file.
1559 * scripttempl/tic4xcoff.sc: New file.
1561 2002-08-28 Alan Modra <amodra@bigpond.net.au>
1563 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Replace strtoll,
1564 strtoul and strtoull with bfd_scan_vma.
1565 (gld${EMULATION_NAME}_read_file): Likewise.
1567 2002-08-28 Alan Modra <amodra@bigpond.net.au>
1569 * configure.tgt: Remove h8[35]00-*-hms*. Add h8500-*-rtems*.
1571 2002-08-27 Egor Duda <deo@logos-m.ru>
1573 * scripttempl/pe.sc: Handle .rdata_runtime_pseudo_reloc sections.
1574 Add symbols for application to access them.
1576 2002-08-27 Nick Clifton <nickc@redhat.com>
1578 * emultempl/armelf.em: Revert this patch, it is not needed.
1580 2002-08-22 Adam Nemet <anemet@lnxw.com>
1582 2002-08-20 Dan Kegel <dank@kegel.com>
1584 * configure.in: added --with-lib-path argument to ld's configure
1586 * NEWS: Document new switch.
1587 * README: Mention new switch.
1588 * configure: Regenerate.
1589 * Makefile.in: Regenerate.
1591 Based on this patch:
1592 2001-04-25 Christopher Faylor <cgf@cygnus.com>
1594 * Makefile.in (LIB_PATH): Make configurable.
1595 (GENSCRIPTS): Set LIB_PATH in environment.
1596 * configure.in: Substitute LIB_PATH.
1598 2002-08-22 Adam Nemet <anemet@lnxw.com>
1600 * emultempl/armelf.em: Include elf-bfd.h and elf/arm.h.
1601 (arm_elf_finish): Set the last bit of DT_INIT and DT_FINI
1602 depending on the type of the function.
1603 (arm_elf_convert_thumb_symbol_to_address): New function.
1605 2002-08-22 Graeme Peterson <gp@qnx.com>
1607 * Makefile.am: Add esh{l}elf_nto.o files.
1608 * Makefile.in: Regenerate.
1609 * configure.tgt: Add support for sh-**-nto* targets.
1610 * emulparams/shelf_nto.sh: New file.
1611 * emulparams/shlelf_nto.sh: New file.
1613 2002-08-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
1615 * ldlang.c (offsetof): Define if not defined.
1617 2002-08-14 H.J. Lu <hjl@gnu.org>
1619 * configure.tgt: Always enable 64bit emulations for 32bit
1622 2002-08-13 Alan Modra <amodra@bigpond.net.au>
1624 * emulparams/elf32_dlx.sh (TARGET_PAGE_SIZE): Set to 1.
1625 (MAXPAGESIZE): Set to 1.
1627 * ld.h (ALIGN_N): Delete.
1628 * ldexp.h (align_n): Declare.
1629 * ldexp.c (align_n): New function.
1630 (fold_binary): Use align_n instead of ALIGN_N.
1631 (exp_fold_tree): Likewise.
1632 * ldlang.c (lang_size_sections_1): Likewise.
1633 (lang_one_common): Likewise.
1634 * ld.texinfo (ALIGN): Remove power of 2 restriction.
1636 2002-07-31 Graeme Peterson <gp@qnx.com>
1638 * configure.tgt: Add support for powerpc{le}-*-nto* targets.
1639 * Makefile.am: Add eelf32{l}ppcnto.o files.
1640 * Makefile.in: Regenerate.
1641 * emulparams/elf32lppcnto.sh: New file.
1642 * emulparams/elf32ppcnto.sh: New file.
1644 2002-08-07 H.J. Lu <hjl@gnu.org>
1646 * ld.texinfo: Document --no-undefined-version.
1648 * ldlang.c (lang_new_vers_pattern): Set the `symver' and
1649 `script.' fields to 0.
1651 * ldmain.c (main): Initialize the allow_undefined_version to
1654 * lexsup.c (OPTION_NO_UNDEFINED_VERSION): New.
1655 (ld_options): Add --no-undefined-version.
1656 (parse_args): Support OPTION_NO_UNDEFINED_VERSION.
1658 2002-08-07 Nick Clifton <nickc@redhat.com>
1660 * emultempl/armelf.em (arm_elf_before_allocation): Only search for
1661 an interworking bfd if there are input bfds. (107501)
1663 2002-08-06 Alan Modra <amodra@bigpond.net.au>
1665 * emultempl/aix.em (gld*_before_parse): Set default arch. Reverts
1668 2002-08-01 Nick Clifton <nickc@redhat.com>
1670 * emulparams/armelf.sh: Revert previous delta.
1671 * scripttempl/elf.sc: Revert previous delta.
1673 2002-07-31 H.J. Lu <hjl@gnu.org>
1675 * configure.tgt (powerpc*-*-linux*): Enable elf64ppc for
1676 --enable-64-bit-bfd.
1678 2002-07-31 H.J. Lu <hjl@gnu.org>
1680 * configure.tgt: Enable x86-64 emulation for Linux/i386 if
1681 64bit BFD is selected.
1683 2002-07-31 H.J. Lu <hjl@gnu.org>
1685 * configure.tgt: Enable 64bit emulations for 32bit Linux/mips
1686 if 64bit BFD is selected.
1688 2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
1690 * emultempl/netbsd.em (LDEMUL_BEFORE_PARSE): New file to custom set
1691 link_info.common_skip_ar_aymbols.
1692 * emulparams/ns32knbsd.sh (EXTRA_EM_FILE): Refer to extra file.
1694 * ldmain.c (main): Initialize new field
1695 link_info.common_skip_ar_aymbols.
1697 2002-07-31 Adam Nemet <anemet@lnxw.com>
1699 * emulparams/armelf.sh (OTHER_PLT_SECTIONS): New variable. Set it
1701 * scripttempl/elf.sc: Comment it. Use the same way as ${PLT} is
1704 2002-07-31 Nick Clifton <nickc@redhat.com>
1706 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
1707 of the PDP-11 and 2.11BSD a.out support.
1709 2002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1711 * Makefile.am (eelf32btsmipn32.o, eelf32ltsmipn32.o): New emulations
1712 for n32 ABI support.
1713 * Makefile.in: Regenerate.
1714 * configure.tgt (mips64*el-*-linux-gnu*,mips64*-*-linux-gnu*): Add
1715 n32 ABI emulations for these 64 bit targets.
1716 * emulparams/elf32bmipn32.sh: Expand comment.
1717 * emulparams/elf32btsmipn32.sh: New file, for traditional big endian
1719 * emulparams/elf32ltsmipn32.sh: Likewise for little endian.
1721 2002-07-30 Graeme Peterson <gp@qnx.com>
1723 * configure.tgt: Add support for arm-*-nto target.
1724 * Makefile.am: Add earmnto.o file.
1725 * Makefile.in: Regenerate.
1726 * NEWS: Mention port of ARM support to QNX.
1727 * emulparams/armnto.sh: New file.
1729 2002-07-30 Jakub Jelinek <jakub@redhat.com>
1731 * ldlang.c (lang_add_section): Don't turn .tbss into normal sections
1732 for relocatable link.
1733 (lang_size_sections_1): Don't make .tbss zero size for relocatable
1736 2002-07-26 Bernd Schmidt <bernds@redhat.com>
1738 * emulparams/elf32frv.sh (OTHER_RELOCATING_SECTIONS): Delete.
1741 2002-07-25 Nick Clifton <nickc@redhat.com>
1743 * po/sv.po: Updated Swedish translation.
1744 * po/es.po: Updated Spanish translation.
1745 * po/fr.po: Updated French translation.
1747 2002-07-24 Nick Clifton <nickc@redhat.com>
1749 * po/sv.po: Updated Swedish translation.
1750 * po/es.po: Updated Spanish translation.
1752 2002-07-23 Nick Clifton <nickc@redhat.com>
1754 * po/fr.po: Updated French translation.
1756 2002-07-20 Alan Modra <amodra@bigpond.net.au>
1758 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
1759 bomb on /DISCARD/ input section.
1760 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1761 * emultempl/mmo.em (mmo_place_orphan): Likewise.
1763 2002-07-19 Hans-Peter Nilsson <hp@bitrange.com>
1765 * emultempl/mmo.em (mmo_place_orphan): Handle case of no .text
1768 2002-07-16 Denis Chertykov <denisc@overta.ru>
1769 Nick Clifton <nickc@redhat.com>
1770 Frank Ch. Eigler <fche@redhat.com>
1771 John Healy <jhealy@redhat.com>
1773 * configure.tgt: Add support for ip2k-elf.
1774 * Makefile.am: Add support for ip2k-elf.
1775 * Makefile.in: Regenerate.
1776 * emulparams/elf32ip2k.sh: New file.
1777 * scripttempl/ip2k.sc: New file
1778 * NEWS: Mention support for new port.
1780 2002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
1782 * NEWS: Add 'Changes in 2.13'.
1784 2002-07-14 H.J. Lu <hjl@gnu.org>
1786 * ld.texinfo: Document a .symver takes precedence over a
1789 2002-07-12 Alan Modra <amodra@bigpond.net.au>
1791 * emulparams/elf64ppc.sh (ARCH): Set to powerpc:common64.
1792 (COMMONPAGESIZE): Define.
1794 2002-07-09 Alan Modra <amodra@bigpond.net.au>
1796 * emulparams/hppanbsd.sh: Remark that hppaobsd.sh references this file.
1798 2002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
1800 * configure.tgt: Add support for alpha-*-openbsd*, hppa-*-openbsd*,
1801 powerpc-*-openbsd* and sparc64-*-openbsd*.
1802 * Makefile.am (ALL_EMULATIONS): Add ehppaobsd.o.
1803 * Makefile.in: Regenerate.
1804 * emulparams/hppaobsd.sh: New file.
1806 2002-07-05 Alan Modra <amodra@bigpond.net.au>
1808 * ldlang.c (print_wild_statement): Fix output formatting.
1810 2002-07-04 Alan Modra <amodra@bigpond.net.au>
1812 * ldlang.c: (strip_excluded_output_sections): New function.
1813 (lang_process): Call it.
1814 (lang_size_sections_1): Revert 2002-06-10 change.
1816 2002-07-03 Alan Modra <amodra@bigpond.net.au>
1818 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
1820 * Makefile.in: Regenerate.
1822 2002-07-02 Alan Modra <amodra@bigpond.net.au>
1824 * ldfile.c (ldfile_try_open_bfd): Formatting.
1826 * ldmisc.c (demangle): Move so that it doesn't intrude between
1827 vfinfo comment and body. Add comment.
1829 2002-07-01 John David Anglin <dave@hiauly1.hia.nrc.ca>
1831 * emulparams/vax.sh (OUTPUT_FORMAT): Use a.out-vax-bsd format.
1833 2002-07-01 Alan Modra <amodra@bigpond.net.au>
1835 * ldlang.h (entry_sym): Make it a struct bfd_sym_chain.
1836 * ldlang.c (entry_sym): Likewise.
1837 (ldlang_undef_chain_list_type): Likewise.
1838 (lang_finish): Adjust references to entry_symbol.
1839 (lang_add_entry): Likewise.
1840 (lang_gc_sections): Use link_info.gc_sym_list.
1841 (lang_process): Set link_info.gc_sym_list.
1842 * ldlex.l: Include bfdlink.h.
1843 * ldmain.c (main): Init link_info.gc_sym_list.
1844 * emultempl/aix.em: Adjust references to entry_symbol.
1845 * emultempl/armcoff.em: Likewise.
1846 * emultempl/armelf.em: Likewise.
1847 * emultempl/pe.em: Likewise.
1848 * emultempl/ppc64elf.em (ppc_after_open): New function.
1849 (LDEMUL_AFTER_OPEN): Define.
1850 * emulparams/elf64ppc.sh: KEEP .opd sections.
1852 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
1854 * emulparams/m68hc12elfb.sh (EEPROM_MEMORY): Define.
1855 * emulparams/m68hc11elfb.sh (EEPROM_MEMORY): Define.
1856 * emulparams/m68hc11elf.sh (EEPROM_SIZE): Define.
1857 (EEPROM_START_ADDR): Define.
1858 (EEPROM_MEMORY): Define.
1859 * emulparams/m68hc12elf.sh: Likewise.
1860 * scripttempl/elfm68hc11.sc: Handle .eeprom section; handle .softregs
1861 section to put soft registers in .page0.
1862 * scripttempl/elfm68hc12.sc: Likewise but put soft registers in bss.
1864 2002-06-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
1866 * emulparams/hppa64linux.sh (OTHER_GOT_RELOC_SECTIONS): Add rela.opd
1867 section. Add ${RELOCATING-0}.
1869 2002-06-26 J"orn Rennecke <joern.rennecke@superh.com>
1871 * emulparams/shelf.sh (STACK_ADDR): Don't define.
1872 (OTHER_SECTIONS): Define.
1873 * emulparams/shelf_nbsd.sh ((STACK_ADDR): Don't undef.
1874 (OTHER_SECTIONS): Undef.
1876 2002-06-26 Alan Modra <amodra@bigpond.net.au>
1878 * ldmisc.c (demangle): Restore dots stripped from sym name.
1880 2002-06-25 H.J. Lu <hjl@gnu.org>
1882 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
1883 * Makefile.in: Regenerated.
1885 2002-06-20 Nick Clifton <nickc@cambridge.redhat.com>
1887 * ld.texinfo (Bug Reporting): Update text to suggest a limit on
1888 the size of attached object files, to allow make the object files
1889 available via FTP or HTTP and to mention that the mail will be
1890 sent to a mailing list.
1892 2002-06-20 Nathanael Nerode <neroden@twcny.rr.com>
1894 * configure.host (romp): Drop support.
1896 2002-06-18 Chris Demetriou <cgd@broadcom.com>
1898 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Check
1899 section flags for SEC_DATA, rather than for SEC_CODE being unset.
1901 2002-06-18 Chris Demetriou <cgd@broadcom.com>
1903 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Fix
1904 format specifier used to print BFD name.
1906 2002-06-18 Dave Brolley <brolley@redhat.com>
1908 From Catherine Moore, Michael Meissner, Jim Blandy:
1909 * emulparams/elf32frv.sh: New file.
1910 * configure.tgt: Support frv-*-*.
1911 * Makefile.am (ALL_EMULATIONS): Add eelf32frv.o.
1912 (eelf32frv.c): New target.
1914 2002-06-17 Tom Rix <trix@redhat.com>
1916 * emultempl/elf32.em: gld*_get_script: Check for
1917 GENERATE_COMBRELOC_SCRIPT.
1918 * scripttempl/elfd10v.sc : Fix STACK and INSN.
1919 * emulparams/d10velf.sh : Fix TEXT_START_ADDR.
1921 2002-06-13 J"orn Rennecke <joern.rennecke@superh.com>
1923 * configure.tgt: Add support for sh[1234]*le*-*-elf, sh[1234]*-*-elf.
1925 2002-06-12 H.J. Lu <hjl@gnu.org>
1927 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Return
1928 false if xvec doesn't match.
1930 2002-06-10 Richard Sandiford <rsandifo@redhat.com>
1932 * ldlang.c (lang_size_sections_1): Skip removed output sections.
1934 2002-06-08 Alan Modra <amodra@bigpond.net.au>
1936 * ldexp.c: Replace CONST with const.
1937 * ldfile.c: Likewise.
1938 * ldfile.h: Likewise.
1939 * ldlex.l: Likewise.
1941 * pe-dll.h: Likewise.
1943 2002-06-07 Alan Modra <amodra@bigpond.net.au>
1945 * emultempl/ppc64elf.em (new_vers_pattern): Warning fix.
1947 2002-06-07 Charles Wilson <cwilson@ece.gatech.edu>
1949 * ldmain.c (main): initialize link_info.pei386_auto_import
1950 to -1 == implicit enable.
1951 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
1952 initialize link_info.pei386_auto_import to -1 == implicit
1954 (gld_${EMULATION_NAME}_parse_args): When processing
1955 --enable-auto-import and --disable-auto-import options, use
1956 '1' and '0' instead of 'true' and 'false'.
1957 (pe_find_data_imports): Only issue message about auto-import
1958 when the feature is implicitly enabled. Downgrade message to
1959 informational instead of warning.
1961 2002-06-07 Alan Modra <amodra@bigpond.net.au>
1963 * scripttempl/elf.sc (.tbss): Fix mismatched parentheses/braces.
1965 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
1967 * configure.host (hppa*64*-*-hpux11*): Define NATIVE_LIB_DIRS,
1968 HOSTING_CRT0 and HOSTING_LIBS.
1970 2002-06-05 J"orn Rennecke <joern.rennecke@superh.com>
1972 * configure.tgt (shle*-*-elf*, sh64le-*-elf*): New configurations.
1974 2002-06-05 Jason Thorpe <thorpej@wasabisystems.com>
1976 * emulparams/ns32knbsd.sh (EXECUTABLE_SYMBOLS): Set _DYNAMIC to 0.
1977 (NONPAGED_TEXT_START_ADDR): Set to 0x1000.
1979 2002-06-05 Alan Modra <amodra@bigpond.net.au>
1981 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Place
1982 SEC_EXCLUDE sections when doing a relocatable link.
1984 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
1986 * Makefile.am (ALL_EMULATIONS): Add eshelf32_nbsd.o,
1987 eshlelf32_nbsd.o, eshelf64_nbsd.o, and eshlelf64_nbsd.o.
1988 (eshelf32_nbsd.c, eshelf64_nbsd.c, eshlelf32_nbsd.c)
1989 (eshlelf64_nbsd.c): New rules.
1990 * Makefile.in: Regenerate.
1991 * configure.tgt (sh5le-*-netbsd*, sh5-*-netbsd*, sh64le-*-netbsd*)
1992 (sh64-*-netbsd*): New targets.
1993 * emulparams/shelf32_nbsd.sh: New file.
1994 * emulparams/shelf64_nbsd.sh: New file.
1995 * emulparams/shlelf32_nbsd.sh: New file.
1996 * emulparams/shlelf64_nbsd.sh: New file.
1998 2002-06-04 Alan Modra <amodra@bigpond.net.au>
2000 * ldlang.c (section_already_linked): Call bfd_discard_group. Typo fix.
2002 2002-06-02 Marek Michalkiewicz <marekm@amelek.gda.pl>
2004 * scripttempl/avr.sc: Changes to support current GCC and avr-libc,
2005 C++ constructors/destructors, loosely based on the m68hc11 port.
2007 2002-05-31 Alan Modra <amodra@bigpond.net.au>
2009 * Makefile.in: Regenerate.
2010 * aclocal.m4: Regenerate.
2011 * config.in: Regenerate.
2012 * configure: Regenerate.
2014 2002-05-31 Graeme Peterson <gp@qnx.com>
2016 * Makefile.am (ALL_EMULATIONS): Add ei386nto.o.
2017 (ei386nto.c): Add rule.
2018 * Makefile.in: Regenerate.
2019 * configure.tgt: Add i[3456]86-*-nto-qnx*.
2020 * emulparams/i386nto.sh: New file.
2022 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
2024 * NEWS: Add entry for VAX ELF support.
2026 2002-05-29 Matt Thomas <matt@3am-software.com>
2027 Jason Thorpe <thorpej@wasabisystems.com>
2029 * Makefile.am (ALL_EMULATIONS): Add eelf32vax.o and evaxnbsd.o.
2031 (evaxnbsd.c): New rules.
2032 * Makefile.in: Regenerate.
2033 * configure.tgt (vax-*-netbsdelf*)
2035 (vax-*-netbsd*): New targets.
2036 * emulparams/elf32vax.sh: New file.
2037 * emulparams/vaxnbsd.sh: New file.
2039 2002-05-29 Adam Nemet <anemet@lnxw.com>
2041 * emultempl/armelf.em (arm_elf_after_open): Don't determine
2042 bfd_for_interwork, instead add glue sections to each input bfd.
2043 (bfd_for_interwork): New global.
2044 (arm_elf_set_bfd_for_interworking): New function.
2045 (arm_elf_before_allocation): Use it.
2047 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
2049 * Makefile.am: Add DLX make target.
2050 * configure.tgt: Add DLX configuration.
2051 * Makefile.in: Regenerate.
2052 * emulparams/elf32_dlx.sh: New file
2053 * scripttempl/dlx.sc: New file
2055 2002-05-27 Per Lundberg <per@caleb.dnsalias.org>
2057 * Makefile.am (eelf_i386_chaos): Use elf_chaos.sc script.
2058 * Makefile.in: Regenerate.
2059 * emulparams/elf_chaos.sh: Use elf_chaos script.
2060 * scripttempl/elf_chaos.sc: New file.
2062 2002-05-27 Richard Sandiford <rsandifo@redhat.com>
2064 * ldlang.c (lang_size_sections_1): Move check for conflicting load
2065 addresses and regions from here...
2066 (lang_get_regions): ...to this new function.
2067 (lang_leave_output_section_statement): Use lang_get_regions.
2068 (lang_leave_overlay): Likewise.
2069 * mri.c (mri_draw_tree): Pass null as last argument to
2070 lang_leave_output_section_statement.
2071 * emultempl/elf32.em (gld*_place_orphan): Likewise.
2072 * emultempl/mmo.em (mmo_place_orphan): Likewise.
2073 * emultempl/pe.em (gld*_place_orphan): Likewise.
2075 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
2077 * configure.tgt: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
2079 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
2081 * ldemul.c: Fix formatting.
2082 * ldfile.c: Likewise.
2083 * pe-dll.c: Likewise.
2084 * pe-dll.h: Likewise.
2086 2002-05-25 Alan Modra <amodra@bigpond.net.au>
2088 * ldlang.c (lang_process): Formatting, grammar.
2090 * ldlex.l: Use #include "" instead of <> for local header files.
2092 2002-05-24 TAMURA Kent <kent@netbsd.org>
2094 * configure.tgt: Add a target for i386-netbsdpe.
2096 2002-05-23 Jakub Jelinek <jakub@redhat.com>
2098 * scripttempl/elf.sc: Add .rel{,a}.t{bss,data}, .tdata and .tbss.
2099 * ldlang.c (lang_add_section): Set SEC_THREAD_LOCAL for
2100 output section if necessary. Handle .tbss.
2101 (lang_size_sections): Clear _raw_size for .tbss section
2102 (it allocates space in PT_TLS segment only).
2103 * ldwrite.c (build_link_order): Build link order for .tbss too.
2105 2002-05-23 Alan Modra <amodra@bigpond.net.au>
2107 * configure.in: Correct spelling of AC_PREREQ.
2109 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
2111 * pe-dll.c (autofilter_liblist): Add more system libs excluded by
2113 (autofilter_objlist): Add crtbegin.o, crtend.o.
2115 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
2117 * emultempl/pe.em (OPTION_EXCLUDE_LIBS): Add new define.
2118 (longopts): Add new option --exclude-libs.
2119 (gld_${EMULATION_NAME}_list_options): Give quick help about it.
2120 (gld_${EMULATION_NAME}_parse_args): Use it.
2121 * pe-dll.h (pe_dll_add_excludes): Add second param to prototype.
2122 * pe-dll.c (exclude_list_struct): Add field type to distinguish symbols
2123 from whole archives.
2124 (pe_dll_add_excludes): Set excludes->type.
2125 (auto_export): Add new variable libname and set to archive basename if
2126 abfd. Use it when filtering default and user-specified libarary
2127 excludes. Let string "ALL" mean all libs when filtering user-specified
2129 * ld.texinfo: Document --exclude-libs.
2131 2002-05-22 Alan Modra <amodra@bigpond.net.au>
2133 * ldemul.c (ldemul_new_vers_pattern): New function.
2134 * ldemul.h (ldemul_new_vers_pattern): Declare.
2135 (struct ld_emulation_xfer_struct): Add new_vers_pattern.
2136 * ldlang.c (lang_new_vers_pattern): Call ldemul_new_vers_pattern.
2137 * emultempl/ppc64elf.em (dotsyms): New static var.
2138 (gld${EMULATION_NAME}_new_vers_pattern): New function.
2139 (LDEMUL_NEW_VERS_PATTERN): Define.
2140 (PARSE_AND_LIST_PROLOGUE): Add OPTION_DOTSYMS, OPTION_NO_DOTSYMS.
2141 (PARSE_AND_LIST_LONGOPTS): Likewise.
2142 (PARSE_AND_LIST_ARGS_CASES): Handle them.
2143 * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Update
2145 * emultempl/armcoff.em: Likewise.
2146 * emultempl/armelf_oabi.em: Likewise.
2147 * emultempl/beos.em: Likewise.
2148 * emultempl/elf32.em: Likewise.
2149 * emultempl/generic.em: Likewise.
2150 * emultempl/gld960.em: Likewise.
2151 * emultempl/gld960c.em: Likewise.
2152 * emultempl/linux.em: Likewise.
2153 * emultempl/lnk960.em: Likewise.
2154 * emultempl/m68kcoff.em: Likewise.
2155 * emultempl/mipsecoff.em: Likewise.
2156 * emultempl/pe.em: Likewise.
2157 * emultempl/sunos.em: Likewise.
2158 * emultempl/ticoff.em: Likewise.
2159 * emultempl/vanilla.em: Likewise.
2161 2002-05-22 Alan Modra <amodra@bigpond.net.au>
2163 * genscripts.sh (LIB_PATH): For native targets, concatenate $libdir
2164 and $NATIVE_LIB_DIRS. Add $tool_lib before other libs.
2165 (LIB_SEARCH_DIRS): No need to use "tr".
2166 (COMPILE_IN): Only set for native targets.
2167 * configure.host (NATIVE_LIB_DIRS): Specify all native search dirs
2168 here, rather than adding lib:/usr/lib:/usr/local/lib in genscripts.sh.
2169 * configure.tgt (powerpc*): Set tdir_*.
2170 (powerpcle*): Correct targ_extra_emuls.
2171 * emulparams/elf32ppc.sh (LIB_PATH): Set up native 64 bit dirs.
2172 * emulparams/elf64ppc.sh (LIB_PATH): Likewise.
2174 2002-05-22 Alan Modra <amodra@bigpond.net.au>
2176 * emultempl/pe.em (set_pe_subsystem): Don't set "cmdline" when
2177 calling lang_add_entry.
2179 2002-05-21 H.J. Lu (hjl@gnu.org)
2181 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_args): Handle
2183 (gld${EMULATION_NAME}_list_options): Add "-z muldefs".
2185 * ld.texinfo: Updated for --allow-multiple-definition and
2188 * ldmain.c (main): Initialize the allow_multiple_definition
2191 * lexsup.c (OPTION_ALLOW_MULTIPLE_DEFINITION): New.
2192 (ld_options): Add --allow-multiple-definition.
2193 (parse_args): Support OPTION_ALLOW_MULTIPLE_DEFINITION.
2195 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
2197 * Makefile.am (ALL_EMULATIONS): Add earmelfb_nbsd.o.
2198 (earmelfb_nbsd.c): New rule.
2199 * Makefile.in: Regenerate.
2200 * configure.tgt (armeb-*-netbsdelf*): New target.
2201 (arm-*-netbsdelf*): Add armelfb_nbsd to targ_extra_emuls.
2202 (arm-*-netbsd*): Likewise.
2203 * emulparams/armelfb_nbsd.sh: New file.
2205 2002-05-18 Tom Rix <trix@redhat.com>
2207 * emultempl/aix.em (gld*_parse_args): Add -bnortl and -bnortllib
2210 2002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
2212 * Makefile.am: Add new emulations avr1, avr2, avr3, avr4, avr5.
2213 * Makefile.in: Regenerate.
2214 * configure.tgt (avr-*-*): Add avr[1-5] to targ_extra_emuls.
2216 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
2218 * emulparams/avr1.sh: New file.
2219 * emulparams/avr2.sh: New file.
2220 * emulparams/avr3.sh: New file.
2221 * emulparams/avr4.sh: New file.
2222 * emulparams/avr5.sh: New file.
2223 * scripttempl/avr.sc: New file.
2225 2002-05-15 Alan Modra <amodra@bigpond.net.au>
2227 * ldlang.c (section_already_linked): Call bfd_link_just_syms.
2228 (lang_place_orphans): Abort if just_syms_flag.
2230 2002-05-10 Tom Rix <trix@redhat.com>
2232 * emultempl/aix.em: (gld*_set_output_arch): New function. Use
2233 architecture and machine information in the output bfd.
2234 (gld*_before_parse): Remove old arch and machine code.
2235 (choose_target): Rename to gld*_choose_target.
2236 (rtld): Change type to int.
2237 * ldfile.c (ldfile_try_open_bfd): Disable compatiblity check for
2238 objects in XCOFF archives.
2239 * ldfile.h: Update copyright date.
2241 2002-05-10 Jakub Jelinek <jakub@redhat.com>
2243 * ldmain.c (main): Enable -z combreloc by default.
2245 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
2247 * Makefile.am: Honour DESTDIR.
2248 * Makefile.in: Regenerate.
2250 2002-05-07 Richard Sandiford <rsandifo@redhat.com>
2252 * ldlang.h (lang_output_section_statement_type): Add update_dot_tree.
2253 (lang_enter_overlay): Remove the last two parameters.
2254 (lang_leave_overlay): Take them here instead.
2255 * ldgram.y (memspec_at_opt): Set $$ to null if no region is given.
2256 (section): Pass LMA and crossref flag to lang_leave_overlay rather
2257 than lang_enter_overlay.
2258 * ldlang.c (lang_memory_region_lookup): Return null for null names.
2259 (lang_output_section_statement_lookup): Initialize update_dot_tree.
2260 (lang_size_sections_1): Evaluate it.
2261 (lang_leave_output_section_statement): Rework LMA lookup.
2262 (overlay_lma, overlay_nocrossrefs): Remove.
2263 (lang_enter_overlay): Remove LMA and crossref arguments.
2264 (lang_enter_overlay_section): Don't set the LMA here.
2265 (lang_leave_overlay): Take LMA and crossref arguments. Move the '.'
2266 assignment to the last section's update_dot_tree. Unconditionally
2267 use the load and run-time regions specified in the OVERLAY statement.
2268 Likewise the first section's LMA. Only set the other sections' LMAs
2269 when no load region is given.
2271 2002-05-06 Nick Clifton <nickc@redhat.com>
2273 * po/sv.po: New translation.
2275 2002-05-04 Alan Modra <amodra@bigpond.net.au>
2277 * emultempl/hppaelf.em (build_section_lists): New function.
2278 (gld${EMULATION_NAME}_finish): Call elf32_hppa_setup_section_lists
2279 and build_section_lists.
2281 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
2283 * ld.h: Fix formatting.
2284 * ldexp.c: Likewise.
2285 * ldfile.c: Likewise.
2286 * ldlang.c: Likewise.
2287 * ldmain.c: Likewise.
2288 * lexsup.c: Likewise.
2289 * pe-dll.c: Likewise.
2291 2002-05-02 Alan Modra <amodra@bigpond.net.au>
2293 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
2294 Adjust for ppc64_elf_set_toc change. #include libbfd.h.
2295 (build_section_lists): Do output_section tests here.
2297 2002-04-30 Tom Rix <trix@redhat.com>
2299 * emultempl/aix.em : (gld*_parse_arge): Formatting changes.
2301 2002-05-01 Alan Modra <amodra@bigpond.net.au>
2303 Long branch stubs, multiple stub sections.
2304 * emultempl/ppc64elf.em: Include ldctor.h.
2305 (stub_file): New var.
2306 (group_size): New var.
2307 (ppc_create_output_section_statements): New function.
2308 (struct hook_stub_info): New.
2309 (hook_in_stub): New function.
2310 (ppc_add_stub_section): New function.
2311 (ppc_layout_sections_again): New function.
2312 (build_section_lists): New function.
2313 (gld${EMULATION_NAME}_finish): Rewrite.
2314 (real_func): New var.
2315 (ppc_for_each_input_file_wrapper): New function.
2316 (ppc_lang_for_each_input_file): New function.
2317 (lang_for_each_input_file): Define.
2318 (PARSE_AND_LIST_PROLOGUE): Define.
2319 (PARSE_AND_LIST_LONGOPTS): Define.
2320 (PARSE_AND_LIST_OPTIONS): Define.
2321 (PARSE_AND_LIST_ARGS_CASES): Define.
2322 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
2324 2002-04-30 Tom Rix <trix@redhat.com>
2326 * emultempl/aix.em (gld*_parse_arge, gld*_before_allocation): Add
2327 -blibpath, -bnolibpath support.
2329 2002-04-30 Mark Mitchell <mark@codesourcery.com>
2331 * Makefile.am (ALL_EMULATIONS): Add elf32ppcwindiss.o.
2332 (eelf32ppcwindiss.c): New target.
2333 * Makefile.in: Regenerated.
2334 * configure.tgt: Add support for powerpc-*-windiss.
2335 * emulparams/elf32ppcwindiss.sh: New file.
2337 2002-04-30 Richard Sandiford <rsandifo@redhat.com>
2339 * ldlang.c (print_assignment): Update print_dot for assignments to ".".
2340 * ldexp.c (exp_print_token): Add "infix_p" argument.
2341 (exp_print_tree): Update accordingly.
2343 2002-04-28 Alan Modra <amodra@bigpond.net.au>
2345 * Makefile.am (mpw): New maintainer mode rule to make mpw-*.c files.
2346 * Makefile.in: Regenerate.
2347 * mpw-elfmips.c: Delete.
2348 * mpw-eppcmac.c: Delete.
2349 * mpw-esh.c: Delete.
2350 * mpw-idtmips.c: Delete.
2352 2002-04-17 J"orn Rennecke <joern.rennecke@superh.com>
2354 * emulparams/shelf32.sh (MACHINE): Now sh5.
2356 2002-04-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2358 * ldgram.y: Fix syntax warning.
2360 2002-04-11 Nick Clifton <nickc@cambridge.redhat.com>
2362 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Add 'n' in order
2363 to prevent "-n" from being taken as an abbreviation for
2364 "--no-pipeline-knowledge".
2366 2002-04-08 Alan Modra <amodra@bigpond.net.au>
2368 * ldlang.c (lang_size_sections_1): Don't complain about
2369 SEC_NEVER_LOAD sections having no memory region specified.
2371 * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.
2373 2002-04-07 matthew green <mrg@redhat.com>
2375 * configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
2377 2002-04-04 Alan Modra <amodra@bigpond.net.au>
2379 * dep-in.sed: Cope with absolute paths.
2380 * Makefile.am (dep.sed): Subst TOPDIR and BFDDIR.
2382 * Makefile.in: Regenerate.
2384 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2386 * emulparams/elf64btsmip.sh: n64 replaces .reginfo with .MIPS.options.
2388 2002-04-03 Jakub Jelinek <jakub@redhat.com>
2390 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size
2391 is smaller than maximum, round dot up to common page boundary.
2393 2002-03-28 Alan Modra <amodra@bigpond.net.au>
2395 * configure.host: Set up for generic hosts first, then tweak as
2396 necessary in more specific targets.
2397 (HOSTING_LIBS): Include libgcc_eh.a if found.
2399 2002-03-23 Andreas Jaeger <aj@suse.de>
2401 * emulparams/elf_x86_64.sh (COMMONPAGESIZE): Set it.
2403 2002-03-21 Alan Modra <amodra@bigpond.net.au>
2405 * Makefile.am: Run "make dep-am".
2406 * Makefile.in: Regenerate.
2408 2002-03-21 Albert Chin-A-Young <china@thewrittenword.com>
2410 * genscripts.sh (LIB_SEARCH_DIRS): Quote path.
2412 2002-03-20 Alan Modra <amodra@bigpond.net.au>
2414 * ldlang.c (ldlang_add_undef): If the output bfd has been opened,
2415 add the symbol to the linker hash table immediately.
2416 (lang_place_undefineds): Split symbol creation out..
2417 (insert_undefined): ..to here.
2419 2002-03-18 David O'Brien <obrien@FreeBSD.org>
2421 * emultempl/elf32.em: Use lbasename vs. basename to fix problem where
2422 the contents of the buffer returned from basename function will are
2423 getting overwritten while still being used.
2425 2002-03-18 Jan Hubicka <jh@suse.cz>
2426 Andreas Jaeger <aj@suse.de>
2427 Andreas Schwab <schwab@suse.de>
2429 * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native.
2430 * elf_x86_64.sh (ARCH): Set to i386:x86-64
2431 set libraries to default to lib64 paths.
2433 2002-03-18 Tom Rix <trix@redhat.com>
2435 * Makefile.am : Add eaix5ppc and eaix5rs6, AIX 5 support.
2436 * configure.tgt : Same.
2437 * emulparms/aix5ppc.sh : New file. For eaix5ppc.
2438 * emulparms/aix5rs6.sh : New file. For eaix5rs6.
2439 * emulparms/aixppc.sh : OUPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT
2440 emulation parameters for better -b32, -b64 support.
2441 * emulparms/aixrs6.sh : Same.
2442 * emulparms/ppcmacos.sh : Same.
2443 * emultempl/aix.em (choose_target) : Use new emulation parameters
2444 OUTPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT.
2445 * Makefile.in : Regenerate.
2447 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
2449 * po/fr.po: Updated version.
2451 2002-03-18 Alan Modra <amodra@bigpond.net.au>
2453 * ldmain.c (main): Move .text readonly flag fudges from here..
2454 * ldlang.c (lang_process): ..to here.
2456 2002-03-14 Alan Modra <amodra@bigpond.net.au>
2458 * ldlang.c (lang_check): Remove the word size check added in last
2459 change. Treat emitrelocations case as for relocatable links.
2461 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
2463 * po/fr.po: Updated version.
2465 2002-03-13 Alan Modra <amodra@bigpond.net.au>
2467 * ldlang.c (lang_check): Do relocatable link checks first, so that
2468 warn_mismatch can't override. Check compatible and word size too.
2470 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
2472 * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
2474 2002-03-05 Jakub Jelinek <jakub@redhat.com>
2476 * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
2479 2002-03-04 H.J. Lu <hjl@gnu.org>
2481 * scripttempl/elf.sc: Put .preinit_array, .init_array and
2482 .fini_array in the data segment.
2484 2002-03-04 Alan Modra <amodra@bigpond.net.au>
2486 * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
2488 2002-03-01 David Mosberger <davidm@hpl.hp.com>
2490 * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
2491 .init_array, and .fini_array.
2493 2002-02-20 Andreas Schwab <schwab@suse.de>
2495 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
2496 .IA64_unwind* in a relocatable link.
2498 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
2500 * NEWS: Mark 2.12 branch.
2502 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
2504 * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
2505 * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
2507 2002-02-18 Tom Rix <trix@redhat.com>
2509 * emultempl/aix.em (gld*_parse_args): Add -brtl support.
2510 (gld*_before_allocation): Same.
2511 (gld*_create_output_section_statements): Generate
2512 __rtinit if run time linking. Add librtl.a to the link.
2513 (gld*_read_file): Clean.
2515 2002-02-18 Alan Modra <amodra@bigpond.net.au>
2517 * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
2519 2002-02-18 David O'Brien <obrien@FreeBSD.org>
2521 * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
2522 eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
2523 and eelf64alpha_fbsd.
2524 * Makefile.in: Regenerate.
2525 * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
2526 x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
2527 use a FreeBSD-specific emulation rather than the psABI one.
2528 * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
2529 for all FreeBSD ELF systems.
2530 * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
2532 * emulparams/elf32ppc_fbsd.sh: Likewise.
2533 * emulparams/elf64_ia64_fbsd.sh: Likewise.
2534 * emulparams/elf64_sparc_fbsd.sh: Likewise.
2535 * emulparams/elf64alpha_fbsd.sh: Likewise.
2536 * emulparams/elf_i386_fbsd.sh: Likewise.
2537 * emulparams/elf_x86_64_fbsd.sh: Likewise.
2539 2002-02-18 Nick Clifton <nickc@cambridge.redhat.com>
2541 * po/tr.po: Updated version.
2543 2002-02-18 Alan Modra <amodra@bigpond.net.au>
2545 * ld.texinfo (Output Section Fill): Fix amateur texinfo.
2548 2002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
2550 * emultempl/mmo.em (mmo_after_open): Don't call
2551 _bfd_mmix_check_all_relocs when producing ELF output.
2553 2002-02-15 Richard Henderson <rth@redhat.com>
2555 * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
2556 definition. Emit a unop+nop pair.
2558 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
2560 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
2561 for presence of .MMIX.reg_contents.linker_allocated before early
2564 * NEWS: Mention support for MMIX.
2566 2002-02-15 Alan Modra <amodra@bigpond.net.au>
2568 Support arbitrary length fill patterns.
2569 * ld.texinfo (Output Section Fill): Describe fill expressions.
2570 (FILL): Refer to the above.
2571 * ldexp.h (etree_value_type): Add "str" field.
2572 (union etree_union): Add "str" to "value" struct.
2573 (exp_bigintop): Declare.
2574 (exp_get_fill): Declare.
2575 * ldexp.c: Include "safe-ctype.h".
2576 (exp_intop): Set value.str to NULL.
2577 (exp_bigintop): New function.
2578 (new_rel): Pass in "str", and set new.str from it.
2579 (new_rel_from_section): Set new.str to NULL.
2580 (fold_name): Adjust calls to new_rel.
2581 (exp_fold_tree): Likewise.
2582 (exp_get_fill): New function.
2583 * ldgram.y (struct big_int bigint, fill_type *fill): New.
2584 (INT): Returns a "bigint". Adjust all code handling INTs.
2585 (fill_opt): Returns a "fill".
2586 (fill_exp): Split out of fill_opt, use for FILL.
2587 * ldlang.h (struct _fill_type): New.
2588 (fill_type): Move typedef to ldexp.h.
2589 (lang_output_section_statement_type): "fill" is now a pointer.
2590 (lang_fill_statement_type): Likewise.
2591 (lang_padding_statement_type): Likewise.
2592 (lang_add_fill): Now takes a "fill_type *" param.
2593 (lang_leave_output_section_statement): Likewise.
2594 (lang_do_assignments): Likewise.
2595 (lang_size_sections): Likewise.
2596 (lang_leave_overlay_section): Likewise.
2597 (lang_leave_overlay): Likewise.
2598 * ldlang.c: Include ldgram.h after ldexp.h.
2599 (lang_output_section_statement_lookup): Adjust for fill_type change.
2600 (print_fill_statement): Likewise.
2601 (print_padding_statement): Likewise.
2602 (insert_pad): Now takes a "fill_type *" arg.
2603 (size_input_section): Likewise.
2604 (lang_size_sections_1): Likewise.
2605 (lang_size_sections): Likewise.
2606 (lang_do_assignments): Likewise.
2607 (lang_add_fill): Likewise.
2608 (lang_leave_output_section_statement): Likewise.
2609 (lang_leave_overlay_section): Likewise.
2610 (lang_leave_overlay): Likewise.
2611 Adjust all callers of the above function.
2612 * ldlex.l: Include ldgram.h after ldexp.h. Allow hex numbers
2613 starting with "0X" as well as "0x". Return bigint.str for hex
2614 numbers starting with "0x" or "0X", zero bigint.str otherwise.
2615 Always use base 16 for numbers starting with "$".
2616 * ldmain.c: Include ldgram.h after ldexp.h.
2617 * ldwrite.c (build_link_order): Use bfd_data_link_order in place
2618 of bfd_fill_link_order.
2619 * pe-dll.c: Adjust lang_do_assignments calls.
2620 * emultempl/elf32.em: Likewise.
2621 * emultempl/hppaelf.em: Likewise.
2622 * emultempl/ppc64elf.em: Likewise.
2623 * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
2624 lang_add_assignment call.
2625 * emultempl/pe.em: Likewise.
2627 2002-02-14 Phil Edwards <pme@gcc.gnu.org>
2629 * ld.texinfo (VERSION scripts): Symbol names are globbing patterns.
2630 * ldgram.y (lang_new_vers_regex): Rename to lang_new_vers_pattern;
2631 the pattern in question is not a regexp.
2632 * ldlang.c: Likewise.
2633 * ldlang.h: Likewise.
2634 * ldlex.l (V_IDENTIFIER): Allow '[', ']', '-', '!', and '^' also.
2636 2002-02-12 Jakub Jelinek <jakub@redhat.com>
2638 * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
2639 * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
2640 (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
2641 * ldexp.c (exp_data_seg): New variable.
2642 (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
2643 (fold_binary): Handle DATA_SEGMENT_ALIGN.
2644 (exp_fold_tree): Handle DATA_SEGMENT_END.
2645 Pass allocation_done when recursing instead of hardcoding
2646 lang_allocating_phase_enum.
2647 * ldexp.h (exp_data_seg): New.
2648 * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
2649 (lang_size_sections): New.
2650 * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
2651 * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
2652 if COMMONPAGESIZE is defined.
2653 * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
2654 * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
2655 * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
2656 * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
2657 * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
2660 2002-02-11 Alan Modra <amodra@bigpond.net.au>
2662 * Makefile.in: Regenerate.
2664 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
2666 * lexsup.c: Remove strtoul declaration.
2668 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
2670 * ldmain.c: Add prototype for main ().
2671 * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
2672 * emultempl/lnk960.em (lnk960_choose_target): Function should
2675 2002-02-10 Alan Modra <amodra@bigpond.net.au>
2677 * ldlang.c (entry_section): New initialised variable.
2678 (lang_finish): Use it.
2679 * ldlang.h (entry_section): Declare.
2680 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
2681 entry_section to ".opd".
2683 2002-02-09 Chris Demetriou <cgd@broadcom.com>
2685 * ld.texinfo (Options): Add back in -nostdlib documentation,
2686 which had been inadvertently removed.
2688 2002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
2690 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
2691 register section vma to a sane value after emitting error. Make
2692 fatal conditions cause program exit when emitting message.
2694 2002-02-08 Ivan Guzvinec <ivang@opencores.org>
2696 * configure.tgt: Add or32-*-rtems target.
2698 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
2700 Contribute sh64-elf.
2701 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
2702 * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
2703 in OTHER_RELOCATABLE_SECTIONS.
2704 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
2705 * emulparams/shelf32.sh (STACK_ADDR): Define.
2706 (OTHER_RELOCATABLE_SECTIONS): Renamed to...
2707 (OTHER_SECTIONS): this. Removed stack settings.
2708 * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
2709 (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
2710 2001-03-12 DJ Delorie <dj@redhat.com>
2711 * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
2712 relaxing if any shmedia or mixed sections are found.
2713 2001-03-07 DJ Delorie <dj@redhat.com>
2714 * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
2715 einfo. Gracefully decline to output to non-elf formats.
2716 2001-03-06 Hans-Peter Nilsson <hpn@redhat.com>
2717 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
2718 Default to _end aligned to next multiple of 0x40000, plus 0x40000.
2719 * emulparams/shelf32.sh: Ditto.
2720 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
2721 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
2723 2001-01-10 Ben Elliston <bje@redhat.com>
2724 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
2725 non-portable shell constructs. From Hans-Peter Nilsson.
2726 2001-01-09 Hans-Peter Nilsson <hpn@cygnus.com>
2727 * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
2728 * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
2729 dependencies to the shell script include chain.
2730 * Makefile.in: Regenerate.
2731 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
2732 * emultempl/sh64elf.em: Update and tweak comments.
2733 (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
2734 make a .cranges section SEC_IN_MEMORY.
2735 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
2736 * emultempl/sh64elf.em
2737 (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
2738 .cranges section found to be necessary; continue and set stored
2739 section contents flags for sections with non-mixed contents.
2740 Use a struct sh64_section_data container and sh64_elf_section_data
2741 to store contents-type flags.
2742 Remove unused update of "isec".
2743 (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
2744 sections marked SHF_SH5_ISA32_MIXED. Use sh64_elf_section_data to
2745 access contents-type flags. Assert that the associated container
2746 is initialized. Use that container, not elf_gp_size, to hold size
2747 of linker-generated cranges contents.
2748 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
2749 * emultempl/sh64elf.em
2750 (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
2751 there's already a .cranges section. When section flag difference
2752 is found, don't NULL-check cranges a second time. Tweak comments.
2753 (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
2754 merging, not max size, as size of ld-generated .cranges contents.
2755 Don't set ELF section flags in output section. When checking for
2756 needed .cranges descriptors, don't use a variable; compare
2757 incoming ELF section flags directly to SHF_SH5_ISA32_MIXED. Tweak
2759 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
2760 * emultempl/sh64elf.em: New file.
2761 * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
2762 * Makefile.in: Regenerate.
2763 * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
2764 (OTHER_RELOCATING_SECTIONS): Ditto.
2765 (EXTRA_EM_FILE): New, set to sh64elf if not set.
2766 * emulparams/shlelf32.sh: Stub out all settings except
2767 OUTPUT_FORMAT. Source shelf32.sh.
2768 * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
2769 OTHER_RELOCATING_SECTIONS.
2770 (OTHER_RELOCATING_SECTIONS): Remove .cranges.
2771 * emulparams/shlelf64.sh: Stub out all settings except
2772 OUTPUT_FORMAT. Source shelf64.sh.
2773 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
2774 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
2776 (DATA_START_SYMBOLS): Define, provide ___data.
2777 (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
2778 for consecutive .data section.
2779 (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
2780 section after .data section.
2781 * emulparams/shlelf64.sh: Ditto.
2782 * emulparams/shelf32.sh: Ditto.
2783 (ALIGNMENT): Define to 8.
2784 * emulparams/shelf32.sh: Ditto.
2785 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
2786 * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
2787 built-in linker scripts.
2788 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
2789 * emulparams/shlelf64.sh: New.
2790 * emulparams/shelf64.sh: New.
2791 * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
2793 * Makefile.am: Add support for shlelf64 and shelf64.
2794 * Makefile.in: Regenerate.
2795 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
2796 * configure.tgt (sh64-*-elf*): Add shelf as default.
2797 Add shlelf to targ_extra_emuls.
2798 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
2799 * emulparams/shelf32.sh: New file.
2800 * emulparams/shlelf32.sh: New file.
2801 * Makefile.am: Add support for shlelf32 and shelf32.
2802 * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
2803 * Makefile.in: Regenerate.
2805 2002-02-05 Hans-Peter Nilsson <hp@axis.com>
2807 * ldlang.c (lang_reset_memory_regions): Rename from
2808 reset_memory_regions. Change all callers. Make public.
2809 * ldlang.h (lang_reset_memory_regions): Prototype.
2810 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
2811 lang_reset_memory_regions before lang_size_sections.
2812 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
2813 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
2815 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
2817 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
2818 arithmetic when checking for too many global registers.
2820 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
2822 * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
2823 (ehppanbsd.c): New rule.
2824 * Makefile.in: Regenerate.
2825 * configure.tgt (hppa*-*-netbsd*): New target.
2826 * emulparams/hppalinux.sh: Add comment to check other files
2827 that source this file it is modified, and list which
2829 * emulparams/hppanbsd.sh: New file.
2831 2002-02-01 Geoffrey Keating <geoffk@redhat.com>
2833 * scripttempl/xstormy16.sc: Don't allocate extra space for the
2836 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
2838 Support on-demand global register allocation from
2839 R_MMIX_BASE_PLUS_OFFSET relocs.
2840 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
2841 mmix_set_reg_section_vma. Call
2842 _bfd_mmix_finalize_linker_allocated_gregs.
2843 (mmix_before_allocation): New function.
2844 (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
2845 (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
2846 * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
2847 (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
2848 before .MMIX.reg_contents.
2849 * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
2850 (mmo_after_open): New function.
2851 (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
2852 * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting. Add
2853 .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
2855 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
2857 * emulparams/or32.sh: New file.
2858 * emulparams/or32elf.sh: New file.
2859 * scripttempl/or32.sc: New file.
2860 * configure.tgt : Add support for or32.
2861 * configure: Regenerate
2862 * Makefile.am: Add support for or32.
2863 * Makefile.in: Regenerate.
2864 * NEWS: Mention support for or32.
2865 * po/ld.pot: Regenerate.
2867 2002-01-29 Chris Demetriou <cgd@broadcom.com>
2868 Mitch Lichtenberg <mpl@broadcom.com>
2870 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
2871 * emultempl/mipself.em: New file to handle MIPS ELF embedded
2872 reloc creation (ld --embedded-relocs).
2874 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
2876 * configure: Regenerated.
2878 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
2880 * Makefile.am (install): Depend on install-info.
2881 * Makefile.in: Regenerate.
2883 2002-01-26 Christian Rose <menthos@menthos.com>
2885 * ldmain.c (main): Use full sentences to ease translation.
2887 2002-01-26 Nick Clifton <nickc@cambridge.redhat.com>
2889 * po/fr.po: Updated version.
2891 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
2893 * po/es.po: Updated version.
2895 2002-01-25 Andreas Jaeger <aj@suse.de>
2897 * ldlex.l (yy_input): Correct error check.
2899 2002-01-25 Alan Modra <amodra@bigpond.net.au>
2901 * ldmisc.c (demangle): Put back dots when string not demangled.
2903 2002-01-22 Richard Henderson <rth@redhat.com>
2905 * emulparams/elf64alpha.sh (NOP): Use unop.
2907 2002-01-21 Andreas Jaeger <aj@suse.de>
2909 * ldlex.l: Use fread instead of read.
2911 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
2913 * configure.tgt (ia64-*-netbsd*): New target.
2915 2002-01-21 H.J. Lu <hjl@gnu.org>
2917 * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
2919 * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
2921 2002-01-18 Andreas Jaeger <aj@suse.de>
2923 * ldver.c (ldversion): Update year.
2925 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
2927 * po/ld.pot: Regenerate.
2929 2002-01-16 Alan Modra <amodra@bigpond.net.au>
2931 * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
2932 * Makefile.in: Regenerate.
2933 * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
2934 * emultempl/ppc64elf.em: New file.
2936 2002-01-15 DJ Delorie <dj@redhat.com>
2938 * scripttempl/pe.sc: Add support for constructor priorities.
2940 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
2942 * emulparams/avr1200.sh (DATA_START): Define as 0x60.
2943 * emulparams/avr23xx.sh: Likewise.
2944 * emulparams/avr4433.sh: Likewise.
2945 * emulparams/avr44x4.sh: Likewise.
2946 * emulparams/avr85xx.sh: Likewise.
2947 * emulparams/avrmega103.sh: Likewise.
2948 * emulparams/avrmega161.sh: Likewise.
2949 * emulparams/avrmega603.sh: Likewise.
2950 * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
2952 2002-01-08 Alexandre Oliva <aoliva@redhat.com>
2954 * ldlang.c (walk_wild_section): Exclude object file if enclosing
2955 archive is excluded.
2957 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
2959 * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
2960 (eshelf_nbsd.c): New rule.
2961 (eshlelf_nbsd.c): New rule.
2962 * Makefile.in: Regenerate.
2963 * configure.tgt (sh*le-*-netbsdelf*): New target.
2964 (sh*-*-netbsdelf*): New target.
2965 * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
2966 * emulparams/shelf_nbsd.sh: New emulation.
2967 * emulparams/shlelf_nbsd.sh: New emulation.
2969 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
2971 * po/es.po: New file: Spanish translation.
2972 * configure.in (ALL_LINGUAS): Add es.
2973 * configure: Regenerate.
2975 2002-01-06 John Marshall <jmarshall@acm.org>
2977 * ld.texinfo: Note that --emit-relocs is currently only
2978 implemented for ELF.
2980 2002-01-05 Alan Modra <amodra@bigpond.net.au>
2982 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
2983 of bfd_section_list_remove and bfd_section_list_insert macros.
2984 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
2985 * emultempl/mmo.em (mmo_place_orphan): Likewise.
2987 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
2989 * configure.tgt (x86_64-*-netbsd*): New target.
2991 2001-12-21 Tom Rix <trix@redhat.com>
2993 (gld*_create_output_section_statements): New function.
2994 For -binitfini support.
2995 * emultempl/aix.em (gld*_before_parse): Fix comment.
2996 * emultempl/aix.em (gld*_parse_args): Fix comment.
2998 2001-12-20 Jason Thorpe <thorpej@wasabisystems.com>
3000 * configure.tgt (mips*-dec-netbsd*): Delete alias for
3002 (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
3004 * configure.tgt (arm-*-netbsdelf*): Add target.
3005 (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
3006 * emulparams/armelf_nbsd.sh: Added.
3007 * Makefile.am: Add rules for earmelf_nbsd.
3008 * Makefile.in: Regenerate.
3010 2001-12-19 Andreas Jaeger <aj@suse.de>,
3011 Susanne Oberhauser <froh@suse.de>
3013 * configure.host: Add rules for x86_64-*linux-gnu. Change
3014 s390x-linux entry to use gcc to report configuration, replace gcc
3015 with $CC in s390-linux
3017 2001-12-19 Andreas Jaeger <aj@suse.de>
3019 * ld.texinfo (VERSION): Fix markup.
3021 2001-12-18 matthew green <mrg@eterna.com.au>
3023 * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
3024 (m68kelfnbsd.c): New rule.
3025 * Makefile.in: Regenerate.
3026 * configure.tgt (m68*-hp-netbsd*): Renamed to ..
3027 (m68*-*-netbsd*4k*): .. this.
3028 (m68*-*-netbsdelf*): New target.
3029 (m68*-*-netbsd*): Also include ELF support.
3030 (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
3031 * emulparams/m68kelfnbsd.sh: New emulation.
3033 2001-12-18 Jakub Jelinek <jakub@redhat.com>
3035 * ldgram.y (vers_node): Support anonymous version tags.
3036 * ldlang.c (lang_register_vers_node): Ensure anonymous version
3037 tag is not defined together with non-anonymous versions.
3038 * ld.texinfo: Document it.
3040 2001-12-18 Nick Clifton <nickc@cambridge.redhat.com>
3042 * po/tr.po: New file: Turkish translation.
3043 * configure.in (ALL_LINGUAS): Add tr.
3044 * configure: Regenerate.
3046 2001-12-17 Jason Thorpe <thorpej@wasabisystems.com>
3048 * Makefile.am: Add rules for eelf64alpha_nbsd.
3049 * Makefile.in: Regenerate.
3050 * configure.tgt (alpha*-*-netbsd*): Set
3051 targ_emul to elf64alpha_nbsd.
3052 * emulparams/elf64alpha_nbsd.sh: Added.
3054 2001-12-17 Alan Modra <amodra@bigpond.net.au>
3056 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
3057 section_tail when fiddling with section list.
3058 (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
3059 broken into separate strings to make translation easier.
3060 * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
3061 fiddling with section list.
3062 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
3064 2001-12-16 Hans-Peter Nilsson <hp@bitrange.com>
3066 * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
3068 2001-12-15 Alan Modra <amodra@bigpond.net.au>
3070 * ldmain.c (main): Initialise link_info.eh_frame_hdr.
3072 2001-12-13 Jakub Jelinek <jakub@redhat.com>
3074 * emultempl/elf32.em (finish): Supply output_bfd
3075 to bfd_elf*_discard_info.
3076 (OPTION_EH_FRAME_HDR): Define.
3077 (longopts): Add --eh-frame-hdr.
3078 (parse_args): Handle it.
3079 (list_options): Add --eh-frame-hdr to help.
3080 * emultempl/hppaelf.em (finish): Supply output_bfd
3081 to bfd_elf*_discard_info.
3082 * scripttempl/elf.sc (.eh_frame_hdr): Add.
3084 2001-12-13 Alan Modra <amodra@bigpond.net.au>
3086 * lexsup.c (parse_args): Don't pass shortopts to second call to
3087 getopt functions. Restore optind rather than decrementing before
3088 second call. Remove errind as it now duplicates last_optind.
3090 2001-12-11 Christopher Faylor <cgf@redhat.com>
3092 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
3094 2001-12-07 Geoffrey Keating <geoffk@redhat.com>
3095 Richard Henderson <rth@redhat.com>
3097 * Makefile.am: Add support for xstormy16.
3098 * configure.tgt: Add support for xstormy16.
3099 * Makefile.in: Regenerate.
3100 * emulparams/elf32xstormy16.sh: New file.
3101 * scripttempl/xstormy16.sc: New file.
3103 2001-10-01 Christopher Faylor <cgf@cygnus.com>
3105 * Makefile.in (LIB_PATH): Make configurable.
3106 (GENSCRIPTS): Set LIB_PATH in environment.
3107 * configure.in: Substitute LIB_PATH.
3108 * configure: Regenerate.
3109 * configure.tgt (*cygwin): Set LIB_PATH for cross build.
3110 * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
3112 2001-12-07 Nick Clifton <nickc@cambridge.redhat.com>
3114 * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
3115 describing the -N option so that it is easier to translate into
3118 2001-12-05 Nick Clifton <nickc@cambridge.redhat.com>
3120 * emultempl/pe.em (..._list_options): Replace multiple fprintf
3121 statements describing a single option with a single, newline
3122 escaped fprintf. This allows better translation into other
3125 * ldmain.c (add_archive_element): Combine multiple strings
3126 into a single string to permit better translation into other
3129 2001-12-05 Tom Rix <trix@redhat.com>
3131 * Makefile.am: Remove eaixppc64.
3132 * Makefile.in: Regenerate.
3134 2001-12-04 Tom Rix <trix@redhat.com>
3136 * emultempl/aix.em (choose_target): Change default target to
3137 OUTPUT_FORMAT for ppcmacos. Add braces to remove compiler
3139 (gld*_read_file): Fix typo.
3140 (change_symbol_mode): Add prototype.
3143 * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
3144 * emulparams/aixrs6.sh : Same.
3145 * emulparams/ppcmacos.sh : Same.
3146 * emulparams/aixppc64.sh : Delete file.
3147 * emultempl/aix.em : Formatting changes.
3149 2001-12-04 Hans-Peter Nilsson <hp@axis.com>
3151 * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
3152 (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
3154 (OTHER_END_SYMBOLS): Fix formatting.
3155 * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
3156 (OTHER_END_SYMBOLS): Fix formatting.
3158 2001-12-04 Alan Modra <amodra@bigpond.net.au>
3160 * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
3162 2001-12-02 Tom Rix <trix@redhat.com>
3164 * configure.tgt : Remove eaixppc64 emulations.
3165 * Makefile.in : Remove eaixppc64.c
3166 * ldemul.c (ldemul_choose_target): New parameters argc, argv.
3167 (ldemul_default_target): Same.
3168 * emultempl/gld960.em (gld960_choose_target): Same.
3169 * emultempl/gld960c.em (gld960_choose_target): Same.
3170 * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
3171 * emultempl/aix.em (is_syscall): syscall_mask now a variable.
3172 * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
3173 * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
3174 * emultempl/aix.em (choose_target): New function. Handle emulation of
3177 2001-11-27 H.J. Lu <hjl@gnu.org>
3179 * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
3180 * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
3181 * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
3182 * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
3183 * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
3184 * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
3185 * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
3186 * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
3188 * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
3191 (REL_SDATA): Likewise.
3192 (REL_SBSS): Likewise.
3193 (REL_SDATA2): Likewise.
3194 (REL_SBSS2): Likewise.
3195 (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
3198 2001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3200 * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
3202 * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
3204 2001-11-22 H.J. Lu <hjl@gnu.org>
3206 * Makefile.in: Regenerated with automake based on automake
3207 1.4-8 in RedHat 7.1.
3209 2001-11-22 Alan Modra <amodra@bigpond.net.au>
3211 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
3212 (config.status): Delete rule.
3213 Add extra dependencies to cover sourced emulparams files.
3214 * Makefile.in: Regenerate.
3216 * scripttempl/elf.sc: Order <section>, <section>.* and
3217 corresponding linkonce sections as seen in input files.
3218 Formatting fixes. Zero vma of all sections if not relocating.
3219 (STACK): Define and insert if STACK_ADDR defined.
3220 (OTHER_RELOCATING_SECTIONS): Delete.
3221 (OTHER_END_SYMBOLS): Define.
3222 (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
3223 (OTHER_READWRITE_SECTIONS): Likewise.
3224 (OTHER_GOT_SECTIONS): Likewise.
3225 (OTHER_SDATA_SECTIONS): Likewise.
3226 (OTHER_BSS_SECTIONS): Likewise.
3227 * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
3228 (OTHER_READWRITE_SECTIONS): Likewise.
3229 * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
3230 (OTHER_READWRITE_SECTIONS): Likewise.
3232 * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
3233 (STACK_ADDR): Define.
3234 * emulparams/armelf_oabi.sh: As for armelf.sh.
3235 * emulparams/elf32mcore.sh: As for armelf.sh.
3236 * emulparams/h8300elf.sh: As for armelf.sh.
3237 * emulparams/mn10200.sh: As for armelf.sh.
3238 * emulparams/shelf.sh: As for armelf.sh.
3240 * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
3241 (OTHER_END_SYMBOLS): Define.
3242 * emulparams/m32relf.sh: As for elf32fr30.sh.
3243 * emulparams/h8300helf.sh: As for elf32fr30.sh.
3244 * emulparams/h8300self.sh: As for elf32fr30.sh.
3246 * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
3247 defines with RELOCATING test.
3248 (OTHER_SDATA_SECTIONS): Likewise.
3249 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
3250 (OTHER_END_SYMBOLS): ..this.
3251 * emulparams/crislinux.sh: As for criself.sh.
3253 * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
3255 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
3256 (OTHER_SECTIONS): ..this. Zero vma if not relocating. Order
3257 normal and linkonce sections as seen in input files.
3258 * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
3259 (TEXT_DYNAMIC): Likewise.
3260 (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
3261 (OTHER_SDATA_SECTIONS): Likewise.
3262 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
3263 * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
3264 * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
3265 * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
3266 * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
3267 (OTHER_PLT_RELOC_SECTIONS): Likewise.
3268 (OTHER_READONLY_SECTIONS): Likewise. Order normal and linkonce
3269 sections as seen in input files.
3270 * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
3271 * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
3273 (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
3274 (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
3275 * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
3276 (OTHER_SECTIONS): Instead, use this..
3277 (OTHER_END_SYMBOLS): ..and this.
3279 * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
3280 * emulparams/elf32bsmip.sh: Likewise.
3281 * emulparams/elf32btsmip.sh: Likewise.
3282 * emulparams/elf32ebmip.sh: Likewise.
3283 * emulparams/elf32lmip.sh: Likewise.
3284 * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
3285 * emulparams/elf32lsmip.sh: Likewise.
3286 * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
3287 * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
3288 * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
3289 * emulparams/elf64btsmip.sh: Likewise.
3290 * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
3291 * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
3292 * emulparams/elf32ppclinux.sh: Likewise.
3293 * emulparams/elf32ppcsim.sh: Likewise.
3294 * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
3295 * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
3296 * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
3297 * emulparams/h8300self.sh: Likewise.
3298 * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
3299 * emulparams/sh.sh: Comment.
3300 * emulparams/shl.sh: Source sh.sh, remove duplicates.
3301 * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
3302 * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
3304 2001-11-21 David Heine <dlheine@tensilica.com>
3305 Alan Modra <amodra@bigpond.net.au>
3307 * ldlang.c (map_input_to_output_sections): Replace "break"
3308 accidentally removed with 2001-08-03 change.
3309 (lang_gc_sections_1): Likewise.
3311 2001-11-21 Alan Modra <amodra@bigpond.net.au>
3313 * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
3315 2001-11-20 Angela Marie Thomas <angela@redhat.com>
3317 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
3318 of false when calling lang_size_sections.
3319 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
3321 2001-11-15 Alan Modra <amodra@bigpond.net.au>
3323 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
3324 function when LDEMUL_FINISH isn't set to the same name. Don't
3325 call ${LDEMUL_FINISH}.
3326 (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
3327 * emultempl/armelf.em (arm_elf_finish): Call
3328 gld${EMULATION_NAME}_finish.
3329 * emultempl/hppaelf.em (hppaelf_finish): Rename to
3330 gld${EMULATION_NAME}_finish. Call bfd_elf32_discard_info and
3331 hppaelf_layout_sections_again if necessary.
3332 (need_laying_out): New var.
3333 (hppaelf_layaout_sections_again): Rename to
3334 hppaelf_layout_sections_again. Clear need_laying_out.
3335 (PARSE_AND_LIST_OPTIONS): Format text.
3337 2001-11-14 H.J. Lu <hjl@gnu.org>
3339 * emultempl/armelf.em (arm_elf_finish): Renamed from
3340 gld${EMULATION_NAME}_finish.
3341 (LDEMUL_FINISH): Set to arm_elf_finish.
3343 2001-11-14 Daniel Jacobowitz <drow@mvista.com>
3345 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
3346 (struct ld_emulation_xfer_struct): Use it.
3348 2001-11-13 Ross Alexander <ross.alexander@uk.neceur.com>
3350 * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
3351 additional symbols referenced by newer crt0.o files from HP.
3353 2001-11-12 Anthony Green <green@redhat.com>
3355 * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
3357 2001-11-12 Alfred M. Szmidt <ams@kemisten.nu>
3359 * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
3360 * Makefile.in: Regenerate.
3362 2001-11-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3364 * ld.texinfo: Use @command for commands, @option for options.
3365 * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
3367 * Makefile.in: Rebuild.
3369 2001-11-04 Chris Demetriou <cgd@broadcom.com>
3371 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
3372 Add support for targets.
3374 2001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
3376 * configure.in (ALL_LINGUAS): Add "fr" and "sv"
3377 * configure: Regernate.
3378 * po/fr.po: New file.
3379 * po/sv.po: New file.
3381 2001-11-01 NIIBE Yutaka <gniibe@m17n.org>
3383 * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
3384 as little endian default and to support big endian.
3386 2001-11-01 Chris Demetriou <cgd@broadcom.com>
3388 * ld.texinfo (Options): Document new option, -nostdlib.
3389 * lexsup.c (OPTION_NOSTDLIB): New definition.
3390 (ld_options): Add entry for "nostdlib".
3391 (parse_args): Handle OPTIONS_NOSTDLIB.
3392 * ldfile.c (ldfile_add_library_path): Don't add directories
3393 to the search path if they weren't specified on the command line
3394 and -nostdlib was specified.
3395 * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
3397 2001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
3399 * lexsup.c (parse_args): Prevent infinite parsing loop when
3400 "-rpath.a" is specified on the command line.
3401 Replace calls to fprintf with calls to einfo.
3403 2001-10-31 John Marshall <jmarshall@acm.org>
3405 * ld.texinfo: A historical requirement that MEMORY and SECTIONS
3406 appear only once across all the linker scripts involved in a link
3407 invocation no longer applies. Make the documentation reflect
3410 2001-10-31 NIIBE Yutaka <gniibe@m17n.org>
3412 * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
3414 (sh-*-linux*): Added targ_extra_libpath.
3416 2001-10-31 David Heine <dlheine@tensilica.com>
3418 * ldlang.c (lang_size_sections): Keep a valid output_offset field
3419 for padding statements.
3421 2001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
3423 * configure.tgt (mmix-*-*): New target.
3424 * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
3425 Add dependencies to match.
3426 * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
3427 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
3428 scripttempl/mmo.sc: New files.
3429 * gen-doc.texi: @set MMIX.
3430 * ld.texinfo: Ditto.
3431 [MMIX] Add MMIX node.
3432 * Makefile.in: Regenerate.
3434 2001-10-29 Kazu Hirata <kazu@hxi.com>
3436 * ldlang.c: Fix a comment typo.
3438 2001-10-23 Alan Modra <amodra@bigpond.net.au>
3440 * configure.host: Move alpha*-*-linux-gnu* entry to generic
3441 entries, and match *-*-linux*.
3443 2001-10-20 Alan Modra <amodra@bigpond.net.au>
3445 * ldgram.y (mri_script_command): Surround processing of INCLUDE
3446 with ldlex_script, ldlex_popstate.
3447 (ifile_p1): Likewise.
3448 * ldlex.l (EOF): Don't BEGIN(SCRIPT). Restore lineno from the
3450 (lex_push_file): Save current lineno to lineno_stack. Set lineno
3451 to 1. Don't BEGIN(SCRIPT).
3452 (lex_redirect): Similarly.
3453 * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
3455 2001-10-20 Nick Clifton <nickc@cambridge.redhat.com>
3457 * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
3458 __EH_FRAME_END__ and accept eh frames into data section.
3459 Add ctor and dtor sections.
3461 2001-10-19 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3463 * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
3464 (auto-export): Fix indentation.
3466 2001-10-18 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3468 * pe-dll.c (autofilter_objectlist): Add startup objects
3470 (auto-export): Constify char * p.
3471 Extract file basename and use strcmp rather than ststr
3474 2001-10-18 Chris Demetriou <cgd@broadcom.com>
3476 * ldmain.c (get_emulation): Improve comment about the handling
3479 2001-10-17 Alan Modra <amodra@bigpond.net.au>
3481 * po/POTFILES.in: Regenerate.
3483 2001-10-16 Vassili Karpov <malc@pulsesoft.com>
3485 * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
3486 -z nocopyreloc and -z nocombreloc usage strings.
3488 2001-10-12 Vassili Karpov <malc@pulsesoft.com>
3490 * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
3493 2001-10-11 Aleksey Romanov <aromanov@ennovatenetworks.com>
3495 * scripttempl/armaout.sc: Place .bss section after end of aligned
3496 data section to match behaviour of aout code in constructrion of
3499 2001-10-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3501 * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
3502 startup files for mingw32 dlls to list.
3504 2001-10-10 Chris Demetriou <cgd@broadcom.com>
3506 * emultempl/elf32.em: Fix shell 'if' usage for portability.
3508 2001-10-08 Aldy Hernandez <aldyh@redhat.com>
3510 * configure.tgt (targ): Add arm9e-*-elf.
3512 2001-10-05 H.J. Lu <hjl@gnu.org>
3514 * genscripts.sh: Fix a typo in the last change.
3516 2001-10-05 Jakub Jelinek <jakub@redhat.com>
3518 * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
3519 -z nocombreloc in usage.
3521 2001-10-03 Jim Blandy <jimb@redhat.com>
3523 * genscripts.sh: Include a comment at the top of each generated
3524 script, explaining its purpose.
3526 2001-10-03 Vassili Karpov <malc@pulsesoft.com>
3528 * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
3529 * NEWS: Mention -z nocopyreloc.
3530 * ld.texinfo (Options): Describe nocopyreloc.
3532 2001-10-03 Alan Modra <amodra@bigpond.net.au>
3534 * configure: Regenerate.
3536 2001-10-02 Alan Modra <amodra@bigpond.net.au>
3538 * ldver.h (ld_program_version): Remove declaration.
3539 * lexsup.c (parse_args): Move printing of copyright message..
3540 * ldver.c (ldversion): .. to here.
3541 Use BFD_VERSION_STRING in place of BFD_VERSION.
3542 (ld_program_version): Remove.
3543 * Makefile.am (Makefile): Depend on bfd/configure.in.
3545 * Makefile.in: Regenerate.
3547 2001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
3549 * Makefile.am: Update dependencies with "make dep-am".
3550 * Makefile.in: Regenerate.
3552 2001-09-29 John Reiser <jreiser@BitWagon.com>
3554 * ldlang.c (lang_common): Conditionally inhibit Common allocation.
3555 * lexsup.c: Add --no-define-common commandline option.
3556 * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
3557 * ldlex.l: Likewise.
3558 * ld.h: Add command_line.inhibit_common_definition.
3559 * ldmain.c (main): Initialize.
3560 * ld.texinfo: Document.
3562 2001-09-29 Alan Modra <amodra@bigpond.net.au>
3564 * ldlang.c (section_already_linked): Remove assignment to kept_section.
3566 2001-09-26 Alan Modra <amodra@bigpond.net.au>
3568 * ldmisc.c (USE_STDARG): Remove.
3569 (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
3574 * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
3575 declarations. Update copyright.
3577 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
3579 * pe-dll.c: Remove obsoleted declaration of
3580 pe_get_data_import_dll_name.
3581 (pe_create_import_fixup): Fix thinko.
3583 * ld.texinfo(enable-auto-import): Clarify the explanation.
3585 2001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
3587 * pe-dll.c (pe_create_import_fixup): Revert previous patch.
3588 * emultemp/pe.em (pe_data_import_dll): Move definition outside of
3589 DLL_SUPPORT controlled code.
3591 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
3593 * emultempl/pe.em(pe_data_import_dll): Make static.
3594 (pe_get_data_import_dll_name): New accessor function.
3595 * pe-dll.c(pe_create_import_fixup): call
3596 pe_get_data_import_dll_name() from pe.em, instead of
3597 directly accessing pe_data_import_dll variable from pe.em.
3599 2001-09-18 Bruno Haible <haible@clisp.cons.org>
3601 * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
3602 (def_file_add_directive): Use ISSPACE instead of isspace.
3603 (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
3604 isdigit/isxdigit/isalpha/isalnum.
3605 * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
3606 (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
3607 * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
3608 (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
3610 * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
3611 (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
3613 * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
3614 (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
3615 * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
3616 (ctor_prio): Use ISDIGIT instead of isdigit.
3617 * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
3618 (ldfile_open_file_search): Use ISALPHA instead of isalpha.
3619 (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
3621 * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
3622 (stricpy): Use TOLOWER instead of isupper/tolower.
3623 (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
3624 * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
3625 (lex_warn_invalid): Use ISPRINT instead of isprint.
3626 * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
3627 (main): For gettext, also set the LC_CTYPE locate facet.
3628 (add_keepsyms_file): Use ISSPACE instead of isspace.
3629 * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
3630 (is_num, parse_args): Use ISDIGIT instead of isdigit.
3631 * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
3632 (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
3633 * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
3634 (gldppcmacos_read_file): Use ISSPACE instead of isspace.
3635 * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
3636 (quoteput): Use ISSPACE instead of isspace.
3637 (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
3640 2001-09-18 Alan Modra <amodra@bigpond.net.au>
3642 * deffilep.y (def_stash_module): Constify "name" param.
3644 * pe-dll.c: Replace CONST with const throughout.
3645 (quick_symbol): Constify "n1", "n2", "n3" params.
3646 (make_singleton_name_thunk): Constify "import" param. Make
3647 "buffer_len" a size_t.
3648 (make_import_fixup_entry): Constify "name", "fixup_name",
3649 "dll_symname" params.
3650 (pe_get16): Cast args of bfd_seek. Replace bfd_read with bfd_bread.
3651 (pe_get32): Likewise.
3652 (pe_implied_import_dll): Likewise.
3654 * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
3655 (sort_by_section_name): Likewise.
3657 * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
3658 (make_import_fixup): Cast printf arg, rel->address to long rather
3660 (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
3662 2001-09-15 Alan Modra <amodra@bigpond.net.au>
3664 * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
3665 defines BufferSize. Increase buffer size by one.
3667 2001-09-14 Ralf Habacker <Ralf.Habacker@freenet.de>
3669 * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
3671 2001-09-14 Kevin Lo <kevlo@openbsd.org>
3673 * configure.tgt: Add arm-openbsd target.
3675 2001-09-12 H.J. Lu <hjl@gnu.org>
3677 * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
3679 (ALL_64_EMULATIONS): Here.
3680 * Makefile.in: Regenerated.
3682 2001-09-12 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3684 * emultempl/pe.em(make_import_fixup): change signature to
3685 take asection as well as arelec; we need this for proper
3686 error reporting. Only call pe_create_import_fixup() if
3687 there is no attempt to add a constant addend to the reloc;
3688 otherwise, report error condition.
3689 * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
3690 since final argument is a pointer to make_import_fixup().
3691 Change call to cb() to match make_import_fixup() signature.
3692 (make_import_fixup_mark): make buffer_len unsigned.
3693 * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
3695 2001-09-12 Charles Wilson <cwilson@ece.gatech.edu>
3697 * ld.texinfo: add verbose documentation for auto-import
3698 direct-addressing workaround, to compliment the terse
3701 2001-09-12 Andrew MacLeod <amacleod@redhat.com>
3703 * scripttempl/v850.sc: Add gcc_except_table sections.
3705 2001-09-11 Jeffrey A Law (law@cygnus.com)
3707 * emulparams/h8300helf.sh: Move stack to a much higher memory address.
3708 * emulparams/h8300self.sh: Similarly.
3710 2001-09-05 Danny Smith <dannysmith@users.souceforge.net>
3712 * ld.texinfo (Options, --stack): Correct default value for stack
3715 2001-09-05 Tom Rix <trix@redhat.com>
3717 * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
3719 2001-09-03 Andreas Jaeger <aj@suse.de>
3721 * emultempl/beos.em: Declare prototypes for comparions functions,
3724 2001-09-02 Andreas Jaeger <aj@suse.de>
3726 * emultempl/aix.em: Add missing prototype.
3727 * emultempl/lnk960.em: Likewise.
3728 * emultempl/vanilla.em: Likewise.
3729 * emultempl/armcoff.em: Likewise.
3730 * emultempl/armelf_oabi.em: Likewise.
3731 * emultempl/beos.em: Likewise.
3732 * emultempl/gld960c.em: Likewise.
3733 * emultempl/gld960.em: Likewise.
3735 * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
3736 for prototype declaration.
3738 2001-08-31 Eric Christopher <echristo@redhat.com>
3739 Jason Eckhardt <jle@redhat.com>
3741 * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
3743 2001-08-31 Andreas Jaeger <aj@suse.de>
3745 * emultempl/pe.em: Add missing prototypes.
3746 (gld_${EMULATION_NAME}_after_open): Remove extra args to
3747 pe_find_data_imports.
3748 (pr_sym): Add unused attribute.
3750 2001-08-29 Joel Sherrill <joel@OARcorp.com>
3752 * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
3753 default from coff to elf.
3755 2001-08-29 Jeff Law <law@redhat.com>
3757 * emulparams/h8300helf.sh: Resync with h8300elf.sh. Update
3759 * emulparams/h8300self.sh: Similarly.
3761 2001-08-28 J"orn Rennecke <amylaar@redhat.com>
3763 * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
3765 (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
3766 * configure.tgt (h8300-*-elf*): New case.
3767 * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
3768 * emulparams/h8300self.sh: New file.
3769 * Makefile.in: Regenerated.
3771 2001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
3773 * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
3776 2001-08-27 Linus Nordberg <linus@swox.com>
3777 Alan Modra <amodra@bigpond.net.au>
3779 * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
3780 (eelf64ppc.c, eelf64lppc.c): Add make targets.
3782 * Makefile.in: Regenerate.
3783 * configure.tgt: Add powerpc64 support. Move pdp11, pjl, pj
3784 entries to correct alphabetical position.
3785 * emulparams/elf64ppc.sh: New.
3786 * emulparams/elf64lppc.sh: New.
3788 2001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
3790 * ldmain.c (main): Declare BSIZE as static.
3792 2001-08-23 Jakub Jelinek <jakub@redhat.com>
3794 * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
3795 into .rel.dyn resp. .rela.dyn if combreloc.
3796 (get_script): If .x linker script is equal to .xn, only put it
3797 once into the binary.
3798 Add .xc and .xsc scripts.
3799 (parse_args): Handle -z combreloc and -z nocombreloc.
3800 * scripttempl/elf.sc (.rela.sbss): Fix a typo.
3801 For .xc and .xsc scripts put all .rel* or .rela* input sections
3802 but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
3803 * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
3805 Strip trailing whitespace from script.
3806 Generate .xc and .xsc scripts if requested.
3807 * ldmain.c (main): Initialize link_info.combreloc and
3808 link_info.spare_dynamic_tags.
3809 * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
3810 (ld_options): Add --spare-dynamic-tags option.
3811 (parse_args): Likewise.
3812 * ld.texinfo: Document -z combreloc and -z nocombreloc.
3813 * ldint.texinfo: Document .xc and .xsc linker scripts.
3814 * NEWS: Add notes about -z combreloc and SHF_MERGE.
3816 2001-08-22 H.J. Lu <hjl@gnu.org>
3818 * emulparams/elf32fr30.sh: Add a newline.
3820 2001-08-21 Andreas Jaeger <aj@suse.de>
3822 * deffilep.y: Add missing prototypes.
3823 * pe-dll.c: Likewise.
3825 2001-08-20 Alan Modra <amodra@bigpond.net.au>
3827 * ldlang.c (insert_pad): Fix typos in last patch.
3829 * ldlang.c: When traversing lang_statement_union_type lists,
3830 consistently use "header.next" rather than "next".
3831 * mpw-eppcmac.c: Likewise.
3832 * emultempl/beos.em: Likewise.
3833 * emultempl/hppaelf.em: Likewise.
3834 * emultempl/pe.em: Likewise.
3835 * ldlang.h (union lang_statement_union): Remove "next" field.
3837 * ldlang.c (insert_pad): Use offsetof macro.
3838 (lang_size_sections): Always neuter padding statements.
3839 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
3841 * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
3842 passed to lang_size_sections.
3843 (pe_exe_fill_sections): Likewise.
3844 * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
3845 (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
3847 2001-08-18 Alan Modra <amodra@bigpond.net.au>
3849 * emultempl/aix.em: Formatting fixes.
3851 2001-08-18 Alan Modra <amodra@bigpond.net.au>
3853 * ldlang.c (insert_pad): Make use of an existing pad statement if
3854 available. Move code calculating alignment, adjusting section
3855 alignment power, and adjusting dot to ..
3856 (size_input_section): .. here. Remove unused relax param.
3857 (lang_size_sections): Change boolean `relax' param to boolean *.
3858 Adjust call to size_input_section. Make use of insert_pad to
3859 place pad after the assignment statement. If relaxing, zap
3861 (reset_memory_regions): Reset output_bfd section sizes too.
3862 (relax_again): Move to..
3863 (lang_process): ..here. Adjust call to lang_size_sections, and
3864 remove duplicated code.
3865 * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
3867 2001-08-17 Alan Modra <amodra@bigpond.net.au>
3869 * ld.texinfo: Document that fill values now use the four least
3871 * emulparams/elf32fr30.sh (NOP): Update.
3872 * emulparams/elf32mcore.sh: Likewise.
3873 * emulparams/elf64_s390.sh: Likewise.
3874 * emulparams/elf_i386.sh: Likewise.
3875 * emulparams/elf_i386_be.sh: Likewise.
3876 * emulparams/elf_i386_chaos.sh: Likewise.
3877 * emulparams/elf_i386_ldso.sh: Likewise.
3878 * emulparams/elf_s390.sh: Likewise.
3879 * emulparams/elf_x86_64.sh: Likewise.
3880 * emulparams/i386moss.sh: Likewise.
3881 * emulparams/i386nw.sh: Likewise.
3882 * emulparams/m68kelf.sh: Likewise.
3883 * scripttempl/elf.sc: Update NOP comment.
3884 * scripttempl/elfi370.sc: Likewise.
3885 * scripttempl/elfm68hc11.sc: Likewise.
3886 * scripttempl/elfm68hc12.sc: Likewise.
3887 * scripttempl/nw.sc: Likewise.
3889 2001-08-15 Tom Rix <trix@redhat.com>
3891 * ldgram.y (saved_script_handle): Initialize to NULL.
3892 * ldmain.c (main): Change check on saved_script_handle.
3894 2001-08-14 Alan Modra <amodra@bigpond.net.au>
3896 * emultempl/elf32.em: Formatting fixes.
3897 (output_prev_sec_find): Test for bfd_ind_section too; do so by
3898 looking at sec->owner.
3899 (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
3900 (gld${EMULATION_NAME}_place_orphan): Add a few comments. Remove
3901 unused code, and reorganize orphan section placement code.
3903 * ldlang.c (wild_doit): Rename to lang_add_section.
3904 * ldlang.h: Here too.
3905 * mpw-elfmips.c: And here.
3906 * emultempl/beos.em: And here.
3907 * emultempl/elf32.em: And here.
3908 * emultempl/hppaelf.em: And here.
3909 * emultempl/pe.em: And here.
3911 2001-08-13 Richard Henderson <rth@redhat.com>
3913 * emultempl/needrelax.em: New file.
3914 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
3915 * Makefile.am (eelf64_ia64.c): Depend on it.
3916 * Makefile.in: Rebuild.
3918 2001-08-13 Alan Modra <amodra@bigpond.net.au>
3920 * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
3921 output_section is set non-NULL.
3923 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
3924 `true' for SEC_EXCLUDE sections so that the generic code doesn't
3925 needlessly create an output_section_statement. Treat a correctly
3926 named output_section_statement with NULL bfd_section as compatible.
3928 2001-08-13 Hans-Peter Nilsson <hp@bitrange.com>
3930 * emultempl/generic.em: Support EXTRA_EM_FILE.
3931 (ld_${EMULATION_NAME}_emulation): Support emulation parameters
3932 LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
3933 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
3934 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
3935 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
3936 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
3937 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
3938 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
3939 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
3940 LDEMUL_FIND_POTENTIAL_LIBRARIES.
3942 2001-08-12 Richard Henderson <rth@redhat.com>
3944 * scripttempl/elf.sc, scripttempl/elfd30v.sc,
3945 scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
3946 scripttempl/v850.sc: Keep .jcr data.
3948 2001-08-12 H.J. Lu <hjl@gnu.org>
3949 Andrew Haley <aph@cambridge.redhat.com>
3950 Nick Clifton <nickc@redhat.com>
3952 * ldgram.y (had_script): Change name to saved_script_handle.
3953 Change type to file handle.
3954 * ld.h (had_script): Rename and retype.
3955 * ldfile.c (ldfile_open_command_file): Save the file handle
3956 used in saved_script_handle.
3957 * lexsup.c (parse_args): Do not allow -c option to alter
3958 saved_script_handle.
3959 * ldmain.c (main): Print out the linker script used if
3960 --verbose is given. Check saved_script_handle to obtain the
3961 external linker script used, or if NULL, dump the builtin
3963 * ld.texinfo: Document that --verbose now dumps the linker
3964 script used, regardless of whether it was an internal or an
3967 2001-08-10 Andreas Jaeger <aj@suse.de>
3969 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
3971 * configure: Regenerate.
3973 2001-08-09 Alan Modra <amodra@bigpond.net.au>
3975 * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
3977 * scripttempl/elf.sc: Move non-text .dynamic section before
3978 .plt/.got/.sdata* group.
3979 (OTHER_GOT_SECTIONS): Move to immediately after .got.
3980 (OTHER_SDATA_SECTIONS): Add.
3981 * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
3983 * emulparams/crislinux.sh: Likewise.
3984 * emulparams/elf32b4300.sh: Likewise.
3985 * emulparams/elf32bmip.sh: Likewise.
3986 * emulparams/elf32bmipn32.sh: Likewise.
3987 * emulparams/elf32bsmip.sh: Likewise.
3988 * emulparams/elf32btsmip.sh: Likewise.
3989 * emulparams/elf32ebmip.sh: Likewise.
3990 * emulparams/elf32elmip.sh: Likewise.
3991 * emulparams/elf32l4300.sh: Likewise.
3992 * emulparams/elf32lmip.sh: Likewise.
3993 * emulparams/elf32lsmip.sh: Likewise.
3994 * emulparams/elf32ltsmip.sh: Likewise.
3995 * emulparams/elf64bmip.sh: Likewise.
3996 * emulparams/elf64btsmip.sh: Likewise.
3997 * emulparams/elf64ltsmip.sh: Likewise.
3999 2001-08-08 Alan Modra <amodra@bigpond.net.au>
4001 * genscripts.sh: Source the emulparams script before each output
4002 script is generated so that variables like `RELOCATING' may affect
4003 variables defined in the emulparams script.
4005 2001-08-04 Alan Modra <amodra@bigpond.net.au>
4007 * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
4010 * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
4011 ie. iterate over wild_statement.section_list.
4012 (gld${EMULATION_NAME}_place_orphan): Likewise.
4014 2001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4016 * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
4017 .fini[0-4] sections used by _exit
4018 (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
4019 (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
4020 * scripttempl/elfm68hc11.sc: Likewise.
4022 2001-08-03 H.J. Lu <hjl@gnu.org>
4024 * emultempl/beos.em (init): Add the missing initialization.
4026 2001-08-03 Alan Modra <amodra@bigpond.net.au>
4028 * ld.texinfo (Input Section Basics): Clarify ordering of output
4030 * ldlang.c (callback_t): Add wildcard_list param.
4031 (walk_wild_section): Remove "section" param. Rewrite for
4032 lang_wild_statement_type change. Remove unique_section_p test.
4033 (walk_wild_file): Remove "section" param.
4034 (walk_wild): Remove "section" and "file" params.
4035 (lang_gc_wild): Likewise.
4036 (wild): Likewise. Modify for lang_wild_statement_type change.
4037 (wild_sort): Likewise. Add "sec" param.
4038 (gc_section_callback): Likewise.
4039 (output_section_callback): Likewise. Do unique_section_p test.
4040 (map_input_to_output_sections): Modify call to wild.
4041 (lang_gc_sections_1): Likewise.
4042 (print_wild_statement): Modify for lang_wild_statement_type
4044 (lang_add_wild): Replace filename, filenames_sorted param with
4045 filespec. Replace section_name, sections_sorted,
4046 exclude_filename_list with section_list.
4047 * ldlang.h (lang_add_wild): Here too.
4048 (lang_wild_statement_type): Replace section_name, sections_sorted,
4049 and exclude_filename_list with section_list.
4050 * ldgram.y (current_file): Delete.
4051 (%union): Add wildcard_list.
4052 (file_NAME_list): Set type to wildcard_list. Build a linked list
4053 rather than calling lang_add_wild for each entry.
4054 (input_section_spec_no_keep): Call lang_add_wild here instead.
4055 * ld.h (struct wildcard_list): Declare.
4056 * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
4058 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
4060 * ldmain.c (main): initialize link_info.pei386_auto_import
4061 * pe-dll.c: new tables for auto-export filtering
4062 (auto_export): change API, pass abfd for contextual filtering.
4063 Loop thru tables of excluded symbols instead of comparing
4066 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
4068 * pe-dll.c: new variable pe_dll_enable_extra_debug. New
4069 static variable current_sec (static struct sec *). Add
4070 forward declaration for add_bfd_to_link.
4071 (process_def_file): Don't export undefined symbols. Do not
4072 export symbols starting with "_imp__". Call auto_export()
4074 (pe_walk_relocs_of_symbol): New function.
4075 (generate_reloc): add optional extra debugging
4076 (pe_dll_generate_def_file): eliminate extraneous initial blank
4078 (make_one): enlarge symtab to make room for __nm__ symbols
4079 (DATA auto-import support).
4080 (make_singleton_name_thunk): New function.
4081 (make_import_fixup_mark): New function.
4082 (make_import_fixup_entry): New function.
4083 (pe_create_import_fixup): New function.
4084 (add_bfd_to_link): Specify that 'name' argument is a CONST
4086 * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
4087 declare new functions pe_walk_relocs_of_symbol and
4088 pe_create_import_fixup.
4089 * emultempl/pe.em: add new options --enable-auto-import,
4090 --disable-auto-import, and --enable-extra-pe-debug.
4091 (make_import_fixup): New function.
4092 (pe_find_data_imports): New function.
4093 (pr_sym): New function.
4094 (gld_${EMULATION_NAME}_after_open): Add optional extra pe
4095 debugging. Call pe_find_data_imports. Mark .idata as DATA, not
4098 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
4100 * ld.texinfo: add additional documentation for
4101 --export-all-symbols. Document --out-implib,
4102 --enable-auto-image-base, --disable-auto-image-base,
4103 --dll-search-prefix, --enable-auto-import, and
4104 --disable-auto-import.
4105 * ldint.texinfo: Add detailed documentation on auto-import
4108 2001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
4110 * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
4113 2001-07-24 Alan Modra <amodra@bigpond.net.au>
4115 * Makefile.am: Update dependencies with "make dep-am".
4116 * Makefile.in: Regenerate
4118 2001-07-23 Alan Modra <amodra@bigpond.net.au>
4120 * ldcref.c (check_section_sym_xref): New function.
4121 (check_nocrossrefs): Call it.
4122 (check_nocrossref): Interate over h->refs here instead of..
4123 (check_refs): ..here. Pass in the symbol name, section, and bfd
4124 rather than hash_entry pointers.
4125 (struct check_refs_info): Keep symbol name rather than hash entry.
4127 (check_reloc_refs): Tweak for above changes in check_refs_info.
4128 Only report references to section syms when symname is NULL to
4129 prevent duplicate messages for the same reloc.
4131 2001-07-19 Nick Clifton <nickc@cambridge.redhat.com>
4133 * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
4134 available. Do not print NULL trees.
4135 (exp_print_token): Print unknown tokens with values > 126 as
4136 decimal values not ASCII characters.
4138 * ldlang.c (lang_leave_overlay): If a region is specified assign
4139 it to all sections inside the overlay unless they have been
4140 assigned to the own, non-default, memory region.
4142 * README: Add header for consistency with other README files.
4144 2001-07-14 H.J. Lu <hjl@gnu.org>
4146 * emultempl/elf32.em (output_prev_sec_find): Never return
4147 bfd_abs_section_ptr, bfd_com_section_ptr nor
4148 bfd_und_section_ptr.
4150 2001-07-14 Nick Clifton <nickc@cambridge.redhat.com>
4152 * Makefile.am (em32relf.c): Change dependency from generic.em to
4154 * Makefile.in: Regenerate.
4156 2001-07-14 matthew green <mrg@eterna.com.au>
4158 * configure.tgt (i386-*-netbsdelf*): New target.
4159 (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
4161 2001-07-13 Jakub Jelinek <jakub@redhat.com>
4163 * emultempl/elf32.em (output_prev_sec_find): New.
4164 (place_orphan): Use it.
4166 2001-07-11 H.J. Lu <hjl@gnu.org>
4168 * ldmain.c (main): Fix typos in the last change.
4170 2001-07-11 Jakub Jelinek <jakub@redhat.com>
4172 * ldmain.c (main): Disallow -F and -f without -shared.
4174 2001-07-11 Nick Clifton <nickc@cambridge.redhat.com>
4176 * emultempl/pe.em (after_open): Check for the output_bfd not
4177 having any coff_data structure allocated to it.
4179 2001-07-09 David O'Brien <obrien@FreeBSD.org>
4181 * emultempl/elf32.em: Do not assuming that contents of the buffer
4182 returned from basename function will remain unchanged accross other
4185 2001-07-03 H.J. Lu <hjl@gnu.org>
4187 * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
4188 2001-07-03. It creates dynamic entries even for static binaries.
4190 2001-07-03 Jakub Jelinek <jakub@redhat.com>
4192 * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
4193 (DYNAMIC): Use it to reserve few dynamic entries for
4196 2001-06-27 Alan Modra <amodra@bigpond.net.au>
4198 * emulparams/hppa64linux.sh: New file.
4199 * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
4200 * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
4201 (ehppa64linux.c): Add rule to make it.
4203 * Makefile.in: Regenerate.
4205 2001-06-21 Hans-Peter Nilsson <hp@axis.com>
4207 * ld.texinfo (Options, -r): Mention restrictions when using
4208 different object formats.
4210 2001-06-19 Hans-Peter Nilsson <hp@axis.com>
4212 * ldlang.c (lang_check): Emit fatal error if relocatable link
4213 between different object flavours with relocations in input.
4215 2001-06-19 H.J. Lu <hjl@gnu.org>
4217 * ld.texinfo (-E, --export-dynamic): Mention --version-script.
4218 (--version-script): Mention the language support.
4220 2001-06-19 H.J. Lu <hjl@gnu.org>
4222 * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
4224 2001-06-18 H.J. Lu <hjl@gnu.org>
4226 * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
4227 (diststuff): Add $(MANS).
4228 * Makefile.in: Regenerated.
4232 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
4234 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
4235 Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
4236 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
4237 * ld.h (args_type): Remove member export_dynamic. All users
4238 changed to use struct bfd_link_info member.
4240 * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
4241 $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
4242 * Makefile.in: Regenerate.
4244 2001-06-18 H.J. Lu <hjl@gnu.org>
4246 * ldlang.c (init_os): Add the newline to the einfo call.
4247 (lang_check): Likewise.
4248 (lang_do_version_exports_section): Likewise.
4250 2001-06-15 H.J. Lu <hjl@gnu.org>
4252 * lexsup.c (parse_args); Save optind to report unrecognized
4255 2001-06-15 Hans-Peter Nilsson <hp@axis.com>
4257 * ldlang.c (lang_check): Emit fatal error if relocatable link
4258 between different object flavours.
4260 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
4261 Set new link_info member export_dynamic.
4262 * ldmain.c (main): Initialize new link_info member export_dynamic.
4264 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
4266 * ldlang.c (walk_wild): Only call walk_wild_file if
4267 lookup_name returns something.
4268 (lookup_name): If load_symbols fails, return NULL.
4269 (load_symbols): Change to a boolean function.
4270 (open_input_bfds): If load_symbols fails then do not make the
4273 2001-06-08 Alan Modra <amodra@bigpond.net.au>
4275 * ldlang.c (record_bfd_errors): Remove.
4277 * emultempl/aix.em: Fix copyright dates.
4279 2001-06-07 Andreas Jaeger <aj@suse.de>
4281 * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
4282 (TEXT_START_ADDR): Likewise.
4284 2001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
4286 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
4288 2001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
4290 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
4292 2001-05-31 H.J. Lu <hjl@gnu.org>
4294 * ldlang.c (open_input_bfds): Don't change the bfd error
4295 handler whilst loading symbols.
4297 2001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
4299 * configure.tgt: Remove i370-mvs architecture, it is not currently
4302 2001-05-25 H.J. Lu <hjl@gnu.org>
4304 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
4305 like emulparams/aixppc.sh.
4307 2001-05-25 H.J. Lu <hjl@gnu.org>
4309 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
4310 setting of output_filename after bfd_scan_arch.
4311 * emultempl/pe.em: Likewise.
4313 2001-05-25 H.J. Lu <hjl@gnu.org>
4315 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
4316 like emulparams/aixppc.sh.
4318 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
4319 instead of ${srcdir}/emultempl/stringify.sed.
4321 2001-05-25 Timothy Wall <twall@oculustech.com>
4323 * emulparams/elf64_aix.sh: Change settings to match IBM linker
4326 2001-05-25 Alan Modra <amodra@one.net.au>
4328 * configure.host: Replace linuxoldld with linux*oldld.
4329 * configure.tgt: Likewise.
4331 2001-05-24 H.J. Lu <hjl@gnu.org>
4333 * emultempl/stringify.sed: Removed again.
4335 2001-05-24 H.J. Lu <hjl@gnu.org>
4337 * emultempl/aix.em (OUTPUT_ARCH): Defined.
4338 (gld${EMULATION_NAME}_before_parse): Initialize
4339 ldfile_output_architecture, ldfile_output_machine and
4340 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
4341 * emultempl/beos.em: Likewise.
4342 * emultempl/elf32.em: Likewise.
4343 * emultempl/linux.em: Likewise.
4344 * emultempl/mipsecoff.em: Likewise.
4345 * emultempl/pe.em: Likewise.
4346 * emultempl/sunos.em: Likewise.
4348 2001-05-24 Tom Rix <trix@redhat.com>
4350 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
4351 udate import file format.
4352 (change_symbol_mode) New, same
4353 (is_syscall) New, same
4354 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
4355 * emulparams/aixppc64.sh : same
4356 * emulparams/aixrs6.sh : same
4357 * emulparams/ppcmacos.sh : same
4358 * emultempl/aix.em : use strtoull to parse options
4359 * Makefile.am : add eaixppc64 emulation for xcoff64
4360 * Makefile.in : same
4361 * configure.tgt : same
4363 * scripttempl/aix.sc : default text section offset to 0x10000000
4364 default data section offset to 0x20000000
4365 add .sv3264 and .sv64 pseudo sections
4366 loader and debug sections use the currect section offset.
4368 * emultempl/aix.em : Add xcoff64 support
4369 Add -binitfini support
4370 (gld${EMULATION_NAME}_before_parse) -binitfini
4371 (gld${EMULATION_NAME}_parse_args) same
4372 (gld${EMULATION_NAME}_before_allocation) format change for special
4375 * emulparams/aixppc64.sh : New file for xcoff64 support
4377 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
4379 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
4380 variable to avoid non-portable shell construct.
4382 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4384 * ldmain.c (get_emulation): Add -mips5 command line argument.
4386 2001-05-22 Alexandre Oliva <aoliva@redhat.com>
4388 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
4389 (ELF_INTERPRETER_NAME): Define it.
4390 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
4392 * configure.tgt (targ_emul, targ_extra_emuls)
4393 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
4394 as primary, elf_i386 as extra.
4395 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
4396 (eelf_i386_ldso.c): New rule.
4397 * Makefile.in: Rebuilt.
4399 2001-05-22 Nick Clifton <nickc@redhat.com>
4401 * lexsup.c (ld_options): Allow -I to be an alias for
4402 --dynamic-linker. This is for Solaris compatability.
4403 * ld.texinfo: Document that -I can be used.
4406 2001-05-16 Alan Modra <amodra@one.net.au>
4408 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
4409 whether an input section is the first one assigned to an output
4411 Assorted formatting fixes.
4413 2001-05-14 DJ Delorie <dj@delorie.com>
4415 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
4416 * Makefile.in: Ditto.
4418 2001-05-11 Jakub Jelinek <jakub@redhat.com>
4420 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
4421 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
4423 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
4425 2001-05-11 Jakub Jelinek <jakub@redhat.com>
4427 * ldlang.c (lang_process): Call bfd_merge_sections.
4429 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4431 * ldgram.y: Fix typo.
4433 2001-05-03 H.J. Lu <hjl@gnu.org>
4435 * emultempl/elf32.em: Include "libiberty.h".
4436 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
4437 basename of the bfd filename.
4438 (gld${EMULATION_NAME}_stat_needed): Likewise.
4439 (gld${EMULATION_NAME}_try_needed): Likewise.
4440 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
4442 2001-05-02 H.J. Lu <hjl@gnu.org>
4444 * emultempl/pe.em: Include <ctype.h>.
4446 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
4448 * emulparams/elf32openrisc.sh: New file.
4450 * Makefile.am: Add OpenRISC target.
4451 * Makefile.in: Regenerated.
4453 * configure.tgt: Add openrisc-*-* mapping.
4455 2001-05-02 Nick Clifton <nickc@redhat.com>
4457 * emultempl/aix.em: Replace buystring with xstrdup.
4458 * emultempl/beos.em: Replace buystring with xstrdup.
4460 2001-05-02 H.J. Lu <hjl@gnu.org>
4462 * ldfile.c: Include "libiberty.h".
4463 * ldlex.l: Likewise.
4465 * ldmisc.c (buystring): Removed.
4466 * ldmisc.h: Likewise.
4468 * ldfile.c: Replace buystring with xstrdup.
4469 * ldlang.c: Likewise.
4470 * ldlex.l: Likewise.
4471 * ldmain.c: Likewise.
4472 * ldmisc.c: Likewise.
4473 * lexsup.c: Likewise.
4474 * mpw-eppcmac.c: Likewise.
4476 2001-04-30 Andreas Jaeger <aj@suse.de>
4478 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
4480 2001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
4482 * ldlang.c (load_symbols): Give emulation a chance
4483 to process unrecognized file before fatal error is
4484 reported, not after.
4486 2001-04-27 Sean McNeil <sean@mcneil.com>
4488 * configure.tgt: Add arm-vxworks target.
4489 * scripttempl/armcoff.sc: Support .text or .data as a section name
4493 2001-04-13 J.T. Conklin <jtc@redback.com>
4495 * ld.texinfo: Document --fatal-warnings.
4498 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
4499 warnings have been turned into errors.
4500 * lexsup.c (OPTION_WARN_FATAL): Define.
4501 (ld_options): Entry for --fatal-warnings.
4502 (parse_args): Handle OPTION_WARN_FATAL.
4503 * ld.h (ld_config_type): Add fatal_warnings field.
4505 2001-04-13 Jakub Jelinek <jakub@redhat.com>
4507 * ldmain.c (main): Default to discard_sec_merge.
4508 * lexsup.c (OPTION_DISCARD_NONE): Define.
4509 (ld_options): Add --discard-none.
4510 (parse_args): Handle OPTION_DISCARD_NONE.
4511 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
4512 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
4513 all its input sections match.
4515 2001-04-05 Steven J. Hill <sjhill@cotw.com>
4517 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
4518 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
4519 (eelf32ltsmip.c): New target.
4520 (eelf64btsmip.c): Likewise.
4521 (eelf64ltsmip.c): Likewise.
4522 * Makefile.in: Regenerated.
4524 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
4526 (mips*-*-linux-gnu*): Likewise.
4528 * emulparams/elf32ltsmip.sh: New. Traditional little endian
4530 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
4532 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
4535 2001-04-05 Hans-Peter Nilsson <hp@axis.com>
4537 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
4538 correct value of __Stext here.
4539 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
4542 * emulparams/crislinux.sh: Remove FIXME.
4544 2001-04-02 Alan Modra <alan@linuxcare.com.au>
4546 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
4547 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
4549 2001-03-27 Hans-Peter Nilsson <hp@axis.com>
4551 * configure.tgt (cris-*-*): Change default emulation to criself.
4552 (cris-*-*aout*): New rule.
4554 2001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
4556 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
4557 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
4559 2001-03-26 Andreas Jaeger <aj@suse.de>
4561 * ld.texinfo (Overview): Fix syntax in texi code.
4563 2001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4565 * ld.texinfo: Put @c man indications to generate the ld man page.
4566 When generating man, define all the variables. Define SEEALSO
4567 and SYNOPSIS. Re-organize some lines to avoid the cross references.
4568 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
4569 (ld.1): Generate from ld.texinfo.
4570 * Makefile.in: Regenerate.
4572 2001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
4574 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
4575 and '-fdata-sections'. Set the VMA of STABS sections to zero.
4577 2001-03-17 Ulrich Drepper <drepper@redhat.com>
4579 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
4580 is an absolute path look only for this file and not along the path.
4582 2001-03-17 Ulrich Drepper <drepper@redhat.com>
4584 * emultempl/elf32.em (OPTION_GROUP): New macro.
4585 Add new option Bgroup to longopts.
4586 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
4587 (gld*_list_options): Add -Bgroup and -z defs.
4588 * ld.1: Document -Bgroup and -z defs.
4589 * ld.texinfo: Likewise.
4591 2001-03-07 Michael Meissner <meissner@redhat.com>
4593 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
4594 with sections created by -fdata-sections.
4595 (.dynbss,.bss): Ditto.
4597 2001-03-05 Alan Modra <alan@linuxcare.com.au>
4599 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
4600 after_allocation_default, not gld..._before_allocation.
4602 2001-02-27 Alan Modra <alan@linuxcare.com.au>
4604 * configure.in (BFD_VERSION): New.
4605 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
4606 * configure: Regenerate.
4607 * Makefile.am: Run "make dep-am"
4608 * Makefile.in: Regenerate.
4610 2001-02-26 Timothy Wall <twall@cygnus.com>
4612 * emulparams/elf64_aix.sh: Add additional read-only sections;
4613 uncomment lines which are now required.
4615 2001-02-26 H.J. Lu <hjl@gnu.org>
4617 * ldlang.c (open_input_bfds): Set the bfd error handler so
4618 that problems can be caught whilst loading symbols.
4619 (record_bfd_errors): New function: Report BFD errors and mark
4620 the executable output as being invalid.
4622 2001-02-22 Timothy Wall <twall@cygnus.com>
4624 * configure.host: Add configuration for ia64-*-aix*.
4625 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
4626 Add dependencies for eelf64_aix.c.
4627 * Makefile.in: Regenerate.
4628 * configure.tgt: Add ia64-*-aix* mapping.
4629 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
4631 2001-02-20 H.J. Lu <hjl@gnu.org>
4633 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
4634 false if we found the file.
4636 2001-02-18 David O'Brien <obrien@FreeBSD.org>
4638 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
4639 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
4641 2001-02-18 lars brinkhoff <lars@nocrew.org>
4643 * Makefile.am: Add PDP-11 target.
4644 * configure.tgt: Likewise.
4645 * emulparams/pdp11.sh: New file.
4647 2001-02-17 David O'Brien <obrien@FreeBSD.org>
4649 * configure.host: Add a generic FreeBSD configuration entry such that
4650 all [modern] FreeBSD systems on all platforms will look the same.
4652 2001-02-14 H.J. Lu <hjl@gnu.org>
4654 * configure.tgt: Remove mention of earmelf_linux26.
4656 2001-02-13 Richard Henderson <rth@redhat.com>
4658 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
4660 2001-02-13 H.J. Lu <hjl@gnu.org>
4662 * ldexp.h (node_type): Add etree_provided.
4663 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
4664 type to etree_provided if defined by PROVIDE. Allow updating
4666 (exp_print_tree): Handle etree_provided.
4667 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
4670 2001-02-09 David Mosberger <davidm@hpl.hp.com>
4672 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
4673 .IA_64.unwind.* pattern to unwind table section and
4674 .IA_64.unwind_info* pattern to unwind info section.
4676 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
4678 * Makefile.am: Add linux target for S/390.
4679 * Makefile.in: Likewise.
4680 * configure.host: Likewise.
4681 * configure.tgt: Likewise.
4682 * emulparams/elf64_s390.sh: New file.
4683 * emulparams/elf_s390.sh: New file.
4685 2001-02-09 Jakub Jelinek <jakub@redhat.com>
4687 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
4689 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
4691 2001-02-06 Philip Blundell <philb@gnu.org>
4693 * Makefile.am: Remove mention of earmelf_linux26.
4694 * Makefile.in: Regenerate.
4696 2001-02-04 Philip Blundell <philb@gnu.org>
4698 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
4699 * emulparams/armelf_linux26.sh: Delete.
4700 * configure.tgt: Remove mention of armelf_linux26 emulation.
4702 2001-02-01 Nick Clifton <nickc@redhat.com>
4704 * ld.1: Replace occurances of -oformat with --oformat.
4706 2001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
4708 * ldlang.c (lang_leave_overlay): Don't set lma_region when
4709 load_base is specified.
4711 2001-01-24 Hans-Peter Nilsson <hp@axis.com>
4713 * emultempl/elf32.em: Correct spelling in comments and listed
4716 2001-01-23 Alan Modra <alan@linuxcare.com.au>
4718 * ldlang.c (lang_leave_overlay): Only set lma_region from the
4719 default for the first section of a group of overlay sections.
4721 2001-01-22 Alan Modra <alan@linuxcare.com.au>
4723 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
4724 * Makefile.in: Regenerate.
4725 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
4726 Check for null tool_dir.
4728 2001-01-16 Jim Wilson <wilson@redhat.com>
4730 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
4731 and IA_64.unwind.info.
4733 2001-01-16 H.J. Lu <hjl@gnu.org>
4735 * ldlang.c (lang_check): Merge the private data only if the
4736 input file has contents.
4738 2001-01-14 Alan Modra <alan@linuxcare.com.au>
4740 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
4742 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
4743 enabling search for libmilli. On a relocatable link, make .text
4745 (LDEMUL_AFTER_PARSE): Define.
4746 (hppaelf_finish): Correct spelling of relocatable in comments.
4748 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
4749 rummage through the script for sections on the unique list.
4750 Correct length of strncmp for ".note".
4751 (gld${EMULATION_NAME}_check_needed): Rearrange function.
4753 * ldlang.c (unique_section_list): New var.
4754 (unique_section_p): New function.
4755 (walk_wild_section): Don't match sections on unique_section_list.
4756 (lang_add_unique): New function.
4757 Correct spelling of relocatable in comments.
4759 * ldlang.h (struct unique_sections): Declare.
4760 (unique_section_list): Declare.
4761 (unique_section_p): Declare.
4762 (lang_add_unique): Declare.
4764 * lexsup.c (ld_options): Allow --unique to take an optional arg.
4765 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
4767 * ld.texinfo (--unique): Update.
4769 2001-01-13 Nick Clifton <nickc@redhat.com>
4771 * lexsup.c (parse_args): Remove spurious white space.
4773 2001-01-12 Nick Clifton <nickc@redhat.com>
4775 * lexsup.c (parse_args): Update copyright date.
4777 2001-01-12 Philip Blundell <pb@futuretv.com>
4779 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
4781 2001-01-10 Kazu Hirata <kazu@hxi.com>
4783 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
4784 * scripttempl/h8300h.sc: Fix formatting.
4785 * scripttempl/h8300s.sc: Likewise.
4786 * scripttempl/h8500.sc: Likewise.
4787 * scripttempl/h8500b.sc: Likewise.
4788 * scripttempl/h8500c.sc: Likewise.
4789 * scripttempl/h8500m.sc: Likewise.
4790 * scripttempl/h8500s.sc: Likewise.
4792 2000-01-07 David O'Brien <obrien@BSDi.com>
4794 * emultempl/elf32.em: Only perform Linux ld hints processing when
4797 2001-01-07 Philip Blundell <philb@gnu.org>
4799 * ld.texinfo (Bug Reporting): Update email address for reports.
4801 2000-12-31 Nick Clifton <nickc@redhat.com>
4803 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
4804 options by checking for a return value of '?' not -1.
4806 2000-12-28 Nick Clifton <nickc@redhat.com>
4808 * lexsup.c (struct ld_option): Add new enum value:
4810 (ld_options[]): Change -omagic, -output and -oformat options
4811 to be EXACTLY_TWO_DASHES.
4812 (OUTPUT_COUNT): Use ARRAY_SIZE.
4813 (parse_args): Change parameter 'argc' to unsigned.
4814 Place EXACTLY_TWO_DASHES options into new really_longopts
4816 If getopt_long_only fails, try calling getopt_long using the
4817 really_longopts array.
4818 (help): Print a double dash for both EXACTLY_TWO_DASHES and
4821 * ldlex.h: Fix prototype of parse_args.
4823 * ld.texinfo: Document that long options starting with 'o'
4824 must be preceeded by two dashes. Change example of a single
4825 dashed long option from -oformat to -trace-symbol.
4827 2000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
4829 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
4830 (longopts[]): New --no-default-excludes option.
4831 (gld_${EMULATION_NAME}_list_options): Document.
4832 (gld_${EMULATION_NAME}_parse_args): Handle.
4834 2000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4836 * ldlang.c (new_stat): Revert the last beautification with "innocent"
4837 whitespace, it breaks the K&R C preprocessor.
4839 2000-12-11 DJ Delorie <dj@redhat.com>
4841 * ld.texinfo: Add notes about --whole-archive and gcc.
4843 2000-11-18 Fred Fish <fnf@be.com>
4845 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
4846 (ld_options): Entry for --allow-shlib-undefined.
4847 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
4848 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
4850 * ld.texinfo: Document new command line switch.
4852 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
4854 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
4855 .fixup is actually read/write.
4856 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
4857 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
4858 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
4860 2000-12-11 Jan Hubicka <jh@suse.cz>
4862 * NEWS: Add note about x86_64 architecture.
4864 2000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
4866 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
4867 Set DWARF2 sections to a VMA of zero.
4869 2000-12-01 Joel Sherrill <joel@OARcorp.com>
4871 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
4873 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
4874 (sparc*-*-rtems*): Switched from a.out to ELF.
4876 2000-11-30 Jan Hubicka <jh@suse.cz>
4878 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
4879 (eelf_x86_64.c): New.
4880 * Makefile.in: Regenerate.
4881 * configure.tgt: Add support for x86_64-*-linux-gnu*.
4882 * emulparams/elf_x86_64.sh: New.
4884 2000-11-30 Hans-Peter Nilsson <hp@axis.com>
4886 * emulparams/crislinux.sh (ENTRY): Change back to _start.
4887 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
4889 * scripttempl/crisaout.sc: Change all RELOCATING not related to
4890 merging non-a.out sections into CONSTRUCTING.
4892 2000-11-28 Nick Clifton <nickc@redhat.com>
4894 * ld.1 (COPYING): Mention that the GNU Free Documentation
4895 License is present in the sources, but not the output, and
4896 also available from the GNU website.
4897 (GNU Free Documentation License): Comment out this section.
4899 2000-11-28 David O'Brien <obrien@dragon.nuxi.com>
4901 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
4904 2000-11-25 David O'Brien <obrien@FreeBSD.org>
4906 * ld.1: Remove old date so it does not give the impression the manpage
4909 2000-11-24 Nick Clifton <nickc@redhat.com>
4911 * configure.tgt (xscale-coff): Add target.
4912 (xscale-elf): Add target.
4914 2000-11-24 Fred Fish <fnf@be.com>
4916 * ldmain.c (main): Remove redundant init of config.make_executable
4919 2000-11-15 Richard Henderson <rth@redhat.com>
4921 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
4923 2000-11-14 Kazu Hirata <kazu@hxi.com>
4925 * scripttempl/h8300.sc: Fix formatting.
4926 * scripttempl/h8300h.sc: Likewise.
4927 * scripttempl/h8300s.sc: Likewise.
4929 2000-11-14 Denis Chertykov <denisc@overta.ru>
4931 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
4933 2000-11-09 Philip Blundell <pb@futuretv.com>
4935 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
4936 around orphan sections whose names can be represented in C.
4938 2000-11-07 Jim Wilson <wilson@redhat.com>
4940 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
4941 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
4943 2000-11-06 Nick Clifton <nickc@redhat.com>
4945 * ld.texinfo: Add GNU Free Documentation License.
4946 * ldint.texinfo: Add GNU Free Documentation License.
4947 * ld.1: Add GNU Free Documentation License.
4949 2000-11-05 Alan Modra <alan@linuxcare.com.au>
4951 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
4952 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
4954 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
4955 Move 2000-11-02 Makefile.in changes to this file.
4956 * Makefile.in: Regenerate.
4958 2000-11-03 Nick Clifton <nickc@redhat.com>
4960 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
4961 constructors and destructors.
4962 * scripttempl/h8300h.sc: Ditto.
4963 * scripttempl/h8300s.sc: Ditto.
4964 * scripttempl/h8500.sc: Ditto.
4965 * scripttempl/h8500b.sc: Ditto.
4966 * scripttempl/h8500c.sc: Ditto.
4967 * scripttempl/h8500m.sc: Ditto.
4968 * scripttempl/h8500s.sc: Ditto.
4969 * scripttempl/v850.sc: Ditto.
4970 * scripttempl/w65.sc: Ditto.
4971 * scripttempl/z8000.sc: Ditto.
4973 2000-11-02 Per Lundberg <plundis@chaosdev.org>
4975 * Makefile.in (e_i386_chaos.c): New rule.
4976 (ALL_EMULATIONS): Added e_i386_chaos.o.
4977 * emulparams/elf_i386_chaos.sh: New file.
4978 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
4980 2000-10-20 Jakub Jelinek <jakub@redhat.com>
4982 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
4983 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
4984 Fix sed invocation, so that it coped with '/' in Solaris 64bit
4985 library path suffix.
4986 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
4988 2000-10-18 Hans-Peter Nilsson <hp@axis.com>
4990 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
4991 for consecutive sections.
4993 2000-10-17 Chandrakala Chavva <cchavva@redhat.com>
4995 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
4997 * ld.texinfo: Added notes about this new option.
4999 2000-10-16 Nick Clifton <nickc@redhat.com>
5001 * emultempl/pe.em (_after_open): Add tests of return values from
5002 bfd functions. Emit appropriate error messages if necessary.
5004 2000-10-13 Nick Clifton <nickc@redhat.com>
5006 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
5007 local variables - they are not used, but leave in the call to
5008 bfd_canonicalize_symtab.
5009 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
5010 pe_dll_search_prefix.
5012 2000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
5014 * emultempl/pe.em (pe_dll_search_prefix): New variable,
5015 (longopts): New --dll-search-prefix option.
5016 (gld_${EMULATION_NAME}_list_options): Document.
5017 (gld_${EMULATION_NAME}_parse_args): Handle.
5018 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
5019 dynamically, search for a dll named '<prefix><basename>.dll'
5020 in preference to 'lib<basename>.dll' if --dll-search-prefix
5023 2000-10-12 Alan Modra <alan@linuxcare.com.au>
5025 * ldlang.c (section_already_linked): Set kept_section instead of
5028 2000-10-10 Kazu Hirata <kazu@hxi.com>
5030 * deffile.h: Fix formatting.
5031 * lexsup.c: Likewise.
5034 2000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
5036 * pe-dll.c (make_one): Do not generate code thunk for DATA
5038 (process_def_file): deduce DATA flag for auto-export sumbols.
5040 2000-10-09 Kazu Hirata <kazu@hxi.com>
5042 * ld.h: Fix formatting.
5043 * ldcref.c: Likewise.
5044 * ldctor.h: Likewise.
5045 * ldemul.c: Likewise.
5046 * ldemul.h: Likewise.
5047 * ldexp.c: Likewise.
5048 * ldexp.h: Likewise.
5049 * ldfile.c: Likewise.
5050 * ldfile.h: Likewise.
5051 * ldlang.c: Likewise.
5052 * ldlang.h: Likewise.
5053 * ldmain.c: Likewise.
5054 * pe-dll.c: Likewise.
5056 * pe-dll.c: Revert some formatting fixes.
5058 2000-10-08 Kazu Hirata <kazu@hxi.com>
5060 * pe-dll.c: Fix formatting.
5062 2000-10-05 Kazu Hirata <kazu@hxi.com>
5064 * ldlang.c: Fix formatting.
5066 2000-10-03 DJ Delorie <dj@redhat.com>
5068 * pe-dll.c (fill_edata): initialize entire block
5069 (make_one): fill in correct section.
5071 2000-10-03 Kazu Hirata <kazu@hxi.com>
5073 * ldexp.c: Fix formatting.
5075 2000-10-02 DJ Delorie <dj@redhat.com>
5077 * emultempl/pe.em (gld_*_after_open): detect case where there two
5078 import libraries for same dll; rename one to ensure proper link
5081 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
5083 (generate_edata): fix typo
5085 2000-09-29 Hans-Peter Nilsson <hp@axis.com>
5087 * scripttempl/crisaout.sc (ENTRY): Now __start.
5088 (.text): Add default setting for __start.
5089 Remove CONSTRUCTORS handling.
5090 (/DISCARD/): Add .gnu.warning.*.
5091 * emulparams/crislinux.sh (ENTRY): Now __start.
5092 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
5093 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
5094 (ENTRY): Now __start.
5095 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
5096 (EXECUTABLE_SYMBOLS): Add default setting for __start.
5098 2000-09-29 Kazu Hirata <kazu@hxi.com>
5100 * deffile.h: Fix formatting.
5102 * ldcref.c: Likewise.
5103 * ldctor.c: Likewise.
5104 * ldctor.h: Likewise.
5105 * ldemul.c: Likewise.
5106 * ldemul.h: Likewise.
5107 * ldexp.c: Likewise.
5108 * ldexp.h: Likewise.
5109 * ldfile.c: Likewise.
5110 * ldfile.h: Likewise.
5111 * ldlang.c: Likewise.
5112 * ldlang.h: Likewise.
5113 * lexsup.c: Likewise.
5115 * pe-dll.c: Likewise.
5117 2000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
5119 * pe-dll.c (process_def_file): Uninitialized data wasn't
5120 exported with --export-all-symbols switch.
5122 2000-09-28 DJ Delorie <dj@redhat.com>
5124 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
5125 noname work properly.
5127 2000-09-28 Alan Modra <alan@linuxcare.com.au>
5129 * ld.texinfo (HPPA ELF32): New section.
5131 * emultempl/hppaelf.em (group_size): New.
5132 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
5133 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
5134 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
5135 options to prevent abbreviations matching.
5136 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
5137 (PARSE_AND_LIST_ARGS_CASES): Handle it.
5139 2000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5141 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
5142 on the m68*-*-elf target. Make it support COFF input objects.
5144 2000-09-21 Kazu Hirata <kazu@hxi.com>
5146 * ldmain.c: Fix formatting.
5147 * ldmisc.c: Likewise.
5148 * ldver.c: Likewise.
5149 * ldwrite.c: Likewise.
5151 2000-09-21 Alan Modra <alan@linuxcare.com.au>
5153 * ldwrite.c (clone_section): Silence gcc warnings.
5155 2000-09-20 Alan Modra <alan@linuxcare.com.au>
5157 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
5158 out of memory failure.
5160 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
5161 (clone_section): Handle out of memory failures. Rename var to
5162 avoid c++ reserved word.
5164 2000-09-18 Alan Modra <alan@linuxcare.com.au>
5166 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
5167 stub_name param to stub_sec_name.
5168 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
5170 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5172 * emultempl/m68kelf.em: New file.
5173 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
5174 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
5175 * Makefile.in: Regenerate.
5177 2000-09-15 Alan Modra <alan@linuxcare.com.au>
5179 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
5182 2000-09-13 Nick Clifton <nickc@redhat.com>
5184 * ldmain.c (multiple_definition): Disable relaxation if
5185 multiple symbol definitions are encountered - otherwise the
5186 linker could abort with an assertion failure.
5188 2000-09-10 Nick Clifton <nickc@redhat.com>
5190 * mri.c: Fix formatting.
5192 2000-09-07 H.J. Lu <hjl@gnu.org>
5194 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
5195 * configure: Rebuild.
5197 2000-09-07 H.J. Lu <hjl@gnu.org>
5199 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
5200 * Makefile.in: Rebuild.
5202 2000-09-07 Alan Modra <alan@linuxcare.com.au>
5204 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
5205 broken list handling. Create __start_SECNAME and __stop_SECNAME
5206 when no place-holder. Add some comments. Test both SEC_CODE and
5207 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
5208 Handle case where no output section statement created.
5210 2000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
5212 * configure.tgt (sh-*-linux*): Added.
5213 * Makefile.am: Added eshelf_linux and eshlelf_linux.
5214 * Makefile.in: Rebuilt.
5215 * emulparams/shelf_linux.sh: New file.
5216 * emulparams/shlelf_linux.sh: New file.
5218 2000-09-06 Alan Modra <alan@linuxcare.com.au>
5220 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
5221 try shuffling sections when the orphan happens to be the place
5222 holder. Keep count of unique section names generated so we speed
5223 the search for a new name.
5225 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
5227 * configure: Rebuilt with new libtool.m4.
5229 2000-09-05 Nick Clifton <nickc@redhat.com>
5231 * Makefile.in: Regenerate.
5232 * aclocal.m4: Regenerate.
5233 * configure: Regenerate.
5234 * config.in: Regenerate.
5235 * po/ld.pot: Regenerate.
5237 * ldint.texinfo: Remove CVS revision marker - it foils local
5240 * emultempl/ticoff.em: Remove extraneous comma.
5242 2000-09-05 Alan Modra <alan@linuxcare.com.au>
5244 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
5245 to stub section flags.
5246 (hppa_for_each_input_file_wrapper): New.
5247 (hppa_lang_for_each_input_file): New.
5248 (lang_for_each_input_file): Define to call above.
5249 (multi_subspace): New.
5250 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
5251 (PARSE_AND_LIST_PROLOGUE): Define.
5252 (PARSE_AND_LIST_LONGOPTS): Define.
5253 (PARSE_AND_LIST_OPTIONS): Define.
5254 (PARSE_AND_LIST_ARGS_CASES): Define.
5255 (hppaelf_finish): Call elf32_hppa_set_gp.
5256 (hppaelf_set_output_arch): Remove.
5257 (LDEMUL_SET_OUTPUT_ARCH): Remove.
5259 * emulparams/hppalinux.sh (ELFSIZE): Define.
5261 (OTHER_READONLY_SECTIONS): Define.
5263 (GENERATE_SHLIB_SCRIPT): Define.
5265 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
5266 to const throughout. Change `void *' to `PTR' throughout.
5267 (lang_memory_default): Function is local to file, add `static'.
5269 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
5270 (ehppalinux.c): Likewise.
5271 (earmelf.c): Likewise.
5272 (earmelf_linux.c): Likewise.
5273 (earmelf_linux26.c): Likewise.
5274 * Makefile.in: Regenerate.
5276 * ld.h (ld_config_type): Add unique_orphan_sections.
5277 * lexsup.c (OPTION_UNIQUE): Define.
5278 (ld_options): Add "--unique".
5279 (parse_args): Handle it.
5280 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
5281 search for an existing output section if unique_orphan_sections is
5282 set. Make use of bfd_get_unique_section_name rather than
5283 duplicating code here.
5284 * ld.texinfo: Describe --unique.
5286 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
5287 optional arg to split-by-file.
5288 (parse_args): Handle them.
5289 * ld.texinfo: Update description of these options.
5290 * ldwrite.c (clone_section): Pass in the section name. Replace
5291 local code with bfd_get_unique_section_name.
5292 (split_sections): Tidy code and comments. Use a list traversal
5293 more appropriate to the list construction. Handle cooked section
5294 sizes. Split when split_by_reloc reached rather than exceeded.
5295 Track section size and split when split_by_file reached. Fix
5296 link_order_tail (even though it's not used).
5297 (ldwrite): Modify condition for calling split_sections to suit
5298 changed split_by_reloc and split_by_file.
5299 * ldmain.c (main): Init config.split_by_reloc and
5300 config.split_by_file to -1.
5301 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
5302 Change split_by_file to bfd_size_type.
5304 2000-09-02 Nick Clifton <nickc@redhat.com>
5306 * configure.in: Increase version number to 2.10.91.
5307 * NEWS: Mention new ability to support removal of duplicate DWARF2
5309 * configure: Regenerate.
5310 * aclocal.m4: Regenerate.
5311 * config.in: Regenerate.
5313 2000-09-02 Daniel Berlin <dberlin@redhat.com>
5315 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
5317 * scripttempl/elf32avr.sc: Ditto.
5318 * scripttempl/elfd10v.sc: Ditto.
5319 * scripttempl/elfd30v.sc: Ditto.
5320 * scripttempl/elfi370.sc: Ditto.
5321 * scripttempl/elfm68hc11.sc: Ditto.
5322 * scripttempl/elfm68hc12.sc: Ditto.
5323 * scripttempl/elfi386beos.sc: Ditto.
5324 * scripttempl/v850.sc: Ditto.
5326 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
5328 * acinclude.m4: Include libtool and gettext macros from the
5330 * aclocal.m4, configure: Rebuilt.
5332 2000-08-25 Nick Clifton <nickc@redhat.com>
5334 * ldlang.c (open_output): When choosing the target for a
5335 particular endianness, do nothing if the target is not
5338 2000-08-25 H.J. Lu <hjl@gnu.org>
5340 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
5341 check -rpath nor LD_RUN_PATH for cross link.
5342 * ld.texinfo: Document the change.
5344 2000-08-24 Hans-Peter Nilsson <hp@axis.com>
5346 * NEWS: Mention support for CRIS.
5348 2000-08-23 H.J. Lu <hjl@gnu.org>
5350 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
5351 the current runpath list from bfd_elf_get_runpath_list ()
5354 2000-08-22 H.J. Lu <hjl@gnu.org>
5356 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
5357 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
5358 LD_LIBRARY_PATH for native linker. Display the needed DSO if
5359 trace_file_tries is non-zero.
5360 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
5361 if trace_file_tries is non-zero.
5363 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
5366 2000-08-14 Jason Eckhardt <jle@cygnus.com>
5368 * NEWS: Mention i860 support.
5370 2000-08-14 Andreas Schwab <schwab@suse.de>
5372 * scripttempl/elf.sc: Fix last change to use correct comment
5375 2000-08-10 Geoff Keating <geoffk@cygnus.com>
5377 * scripttempl/elf.sc: Add a comment giving the correspondence
5378 between sections, per-datum sections, and linkonce sections. Make
5379 the comment true even for .bss, .sdata, .sdata2, .sbss, and
5382 2000-08-10 Jason Eckhardt <jle@cygnus.com>
5384 * emulparams/elf32_i860.sh: New file.
5385 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
5386 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
5387 (eelf32_i860.c): New rule.
5388 * Makefile.in: Regenerate.
5390 2000-08-10 Nick Clifton <nickc@cygnus.com>
5392 * emulparams/mipspe.sh (ENTRY): Add definition.
5394 2000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
5396 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
5399 2000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5401 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
5402 the final size of .bss section.
5403 * scripttempl/elfm68hc12.sc: Likewise.
5405 2000-08-04 Alan Modra <alan@linuxcare.com.au>
5407 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
5408 gld${EMULATION_NAME}_parse_args for consistency. Combine
5409 lastoptind and prevoptind vars, and keep track of last optind.
5410 (gld_${EMULATION_NAME}_list_options): Rename to
5411 gld${EMULATION_NAME}_list_options.
5413 2000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
5415 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
5416 (i586-sco-sysv5uw7.1.0).
5418 2000-07-27 H.J. Lu <hjl@gnu.org>
5420 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
5421 (PARSE_AND_LIST_PROLOGUE): New.
5422 (PARSE_AND_LIST_LONGOPTS): Likewise.
5423 (PARSE_AND_LIST_OPTIONS): Likewise.
5424 (PARSE_AND_LIST_ARGS_CASES): Likewise.
5425 (PARSE_AND_LIST_EPILOGUE): Likewise.
5427 2000-07-28 Alan Modra <alan@linuxcare.com.au>
5429 * emultempl/armelf.em: Elide functions common to elf32.em,
5430 ie. most of the file.
5431 (arm_elf_after_open): New. Do arm specific things then call
5432 gld${EMULATION_NAME}_after_open.
5433 (arm_elf_before_allocation): New. Call
5434 gld${EMULATION_NAME}_before_allocation then do arm specifics.
5435 (PARSE_AND_LIST_PROLOGUE): Define.
5436 (PARSE_AND_LIST_SHORTOPTS): Define.
5437 (PARSE_AND_LIST_LONGOPTS): Define.
5438 (PARSE_AND_LIST_OPTIONS): Define.
5439 (PARSE_AND_LIST_ARGS_CASES): Define.
5440 (LDEMUL_AFTER_OPEN): Define.
5441 (LDEMUL_BEFORE_ALLOCATION): Define.
5442 (LDEMUL_BEFORE_PARSE): Define.
5443 (LDEMUL_FINISH): Define.
5445 * emultempl/hppaelf.em: Similarly zap most of this file.
5446 (hppaelf_add_stub_section): Prototype.
5447 (hppaelf_layaout_sections_again): Prototype.
5448 (hook_in_stub): Prototype.
5449 (LDEMUL_SET_OUTPUT_ARCH): Define.
5450 (LDEMUL_FINISH): Define.
5451 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
5453 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
5454 (EXTRA_EM_FILE): New.
5455 * emulparams/armelf_linux.sh: Likewise.
5456 * emulparams/armelf_linux26.sh: Likewise.
5457 * emulparams/hppalinux.sh: Likewise.
5458 * emulparams/hppaelf.sh: Likewise.
5461 * emultempl/elf32.em: Fix formatting.
5462 (EXTRA_EM_FILE): Source it.
5463 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
5464 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
5465 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
5466 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
5467 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
5468 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
5469 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
5470 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
5471 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
5472 allow functions in this file to be overridden.
5473 (PARSE_AND_LIST_SHORTOPTS): Handle it.
5475 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
5477 * emultempl/elf32.em: Reorganize file.
5479 2000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
5481 * emulparams/elf64alpha.sh: Implement "-taso" emulation
5482 specific option to fit 64-bit executable in the lower
5483 31-bit address range. This is done by changing start
5484 address of .interp (the very first section of executable)
5485 and then setting EF_ALPHA_32BIT elf header flag.
5487 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5489 * emultempl/m68kcoff.em: New file.
5490 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
5491 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
5493 * Makefile.in: Regenerate.
5495 2000-07-20 H.J. Lu <hjl@gnu.org>
5497 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
5498 and "disable-new-dtags" to stop getopt from treating -d/-e as
5499 abbreviations for these options.
5501 2000-07-20 H.J. Lu <hjl@gnu.org>
5503 * ld.texinfo: Add documentation for --disable-new-dtags and
5506 * ldmain.c (main): Initialize link_info.new_dtags to false.
5508 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
5509 --disable-new-dtags and --enable-new-dtags.
5510 (gld_${EMULATION_NAME}_list_options): Likewise.
5512 2000-07-05 Kenneth Block <krblock@computer.org>
5514 * lexsup.c: Add optional style to demangle switch
5515 * ld.texinfo: Document optional style to demangle switch.
5517 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
5519 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
5521 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
5522 Regenerate dependencies.
5523 * Makefile.in: Rebuild.
5524 * configure.tgt (cris-*-*): New target.
5525 * emulparams/crisaout.sh, emulparams/criself.sh,
5526 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
5527 * po/POTFILES.in, po/ld.pot: Regenerate.
5529 2000-07-20 H.J. Lu <hjl@gnu.org>
5531 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
5532 Print out ignored -z options.
5534 2000-07-19 H.J. Lu <hjl@gnu.org>
5536 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
5537 (PARSE_AND_LIST_PROLOGUE): New.
5538 (PARSE_AND_LIST_LONGOPTS): Likewise.
5539 (PARSE_AND_LIST_OPTIONS): Likewise.
5540 (PARSE_AND_LIST_ARGS_CASES): Likewise.
5542 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
5544 * lexsup.c (ld_options): Comment out 'z'.
5545 (parse_args): Likewise.
5547 * emultempl/elf32.em: Include "elf/common.h".
5548 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
5550 (gld_${EMULATION_NAME}_list_options): Likewise.
5552 * ld.texinfo: Add documentation for the recognized -z options.
5554 2000-07-19 H.J. Lu <hjl@gnu.org>
5556 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
5557 bfd_elf_set_dt_needed_soname ().
5559 2000-07-18 DJ Delorie <dj@cygnus.com>
5561 * pe-dll.c (pe_dll_id_target): check object target name also
5563 2000-07-18 Hans-Peter Nilsson <hp@axis.com>
5565 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
5566 ${INIT_END} if relocating.
5567 (.fini): Likewise ${FINI_START} and ${FINI_END}.
5569 2000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
5571 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
5572 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
5573 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
5574 errors introduced by the old dynamic lib search order.
5576 2000-07-17 DJ Delorie <dj@cygnus.com>
5578 * pe-dll.c (process_def_file): auto-export data items also
5579 (pe_process_import_defs): also see if _imp_ form needed
5581 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
5583 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
5584 for dll import libraries
5586 2000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
5588 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
5589 gcc 2.95.2 and later.
5591 2000-07-11 Kazu Hirata <kazu@hxi.com>
5593 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
5596 2000-07-10 Alan Modra <alan@linuxcare.com.au>
5598 * ldemul.h (struct lang_input_statement_struct): Remove forward
5600 (struct search_dirs): Likewise.
5601 * ldfile.h (struct lang_input_statement_struct): Likewise.
5602 Protect file from multiple inclusion.
5603 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
5604 declaration from macro to file scope.
5606 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
5607 * ldgram.y: Likewise here.
5608 * ldlang.c: And here.
5609 * ldmain.c: And here.
5610 * mpw-elfmips.c: And here.
5611 * mpw-eppcmac.c: And here.
5612 * emultempl/aix.em: And here.
5613 * emultempl/armcoff.em: And here.
5614 * emultempl/armelf.em: And here.
5615 * emultempl/armelf_oabi.em: And here.
5616 * emultempl/beos.em: And here.
5617 * emultempl/elf32.em: And here.
5618 * emultempl/hppaelf.em: And here.
5619 * emultempl/linux.em: And here.
5620 * emultempl/lnk960.em: And here.
5621 * emultempl/pe.em: And here.
5622 * emultempl/sunos.em: And here.
5623 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
5624 * mpw-idtmips.c: Ditto.
5625 * emultempl/generic.em: Ditto.
5626 * emultempl/gld960.em: Ditto.
5627 * emultempl/gld960c.em: Ditto.
5628 * emultempl/mipsecoff.em: Ditto.
5629 * emultempl/ticoff.em: Ditto.
5630 * emultempl/vanilla.em: Ditto.
5632 * pe-dll.c: Include ldfile.h
5633 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
5635 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
5636 arguments to bfd_elf32_size_dynamic_sections call.
5637 (gldelf32ebmip_place_orphan): Add missing arguments to
5638 lang_leave_output_section_statement call.
5640 2000-07-10 H.J. Lu <hjl@gnu.org>
5642 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
5644 (strhash): Likewise.
5645 (compute_dll_image_base): Likewise.
5646 (pe_undef_found_sym): Likewise.
5647 (pe_undef_cdecl_match): Likewise.
5648 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
5649 argument "arch" with ATTRIBUTE_UNUSED.
5651 2000-07-10 Alan Modra <alan@linuxcare.com.au>
5653 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
5655 From Ryan Bradetich <rbradetich@uswest.net>
5656 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
5658 2000-07-09 Alan Modra <alan@linuxcare.com.au>
5660 Changes to create multiple linker stubs, positioned immediately
5661 before the section where they are required.
5662 * emultempl/hppaelf.em: Include elf32-hppa.h.
5663 (stub_sec, file_chain): Delete.
5664 (hppaelf_create_output_section_statements): Don't make a stub
5666 (hook_stub_info): New struct.
5667 (hook_in_stub): New function.
5668 (hppaelf_add_stub_section): New function.
5669 (hppaelf_finish): Do nothing for relocateable links. Modify the
5670 call to elf32_hppa_size_stubs. Move code for updating section
5672 (hppaelf_layaout_sections_again): ..to here, a new function.
5674 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
5675 broken list handling. Pass in a pointer to the list.
5676 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
5678 (hppaelf_before_parse): Prototype.
5679 (hppaelf_set_output_arch): Prototype.
5680 (hppaelf_create_output_section_statements): Prototype.
5681 (hppaelf_delete_padding_statements): Prototype.
5682 (hppaelf_finish): Prototype.
5685 * emultempl/hppaelf.em: Include ctype.h.
5686 (struct orphan_save): New.
5687 (gld${EMULATION_NAME}_place_orphan): New.
5688 (output_rel_find): New.
5689 (hppaelf_get_script): Update from elf32.em.
5690 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
5691 Change emulation_name field to "${EMULATION_NAME}". Add
5692 gld${EMULATION_NAME}_place_orphan.
5694 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
5695 ehppalinux.o, sort it. Regenerate dependencies.
5696 (ehppalinux.c): Depend on hppaelf.em
5697 * Makefile.in: Regenerate.
5699 * configure.tgt: targ_emul=hppalinux for hppa*linux
5701 * emulparams/hppalinux.sh: New.
5702 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
5704 2000-07-08 Alan Modra <alan@linuxcare.com.au>
5706 * lexsup.c (parse_args): Copy section name.
5708 2000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
5710 * emultempl/pe.em: institute the following search order for
5711 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
5712 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
5713 static lib (libfoo.a) if none of the above are found.
5715 2000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
5717 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
5718 (longopts): New --{enable,disable}-auto-image-base options.
5719 (gld_${EMULATION_NAME}_list_options): Document.
5720 (gld_${EMULATION_NAME}_parse): Handle.
5721 (strhash): New static function.
5722 (compute_dll_image_base): New static function.
5723 (gld_${EMULATION_NAME}_set_symbols): Use.
5725 2000-07-05 DJ Delorie <dj@redhat.com>
5729 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
5731 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
5732 * emulparams/elf32btsmip.sh: New file.
5733 * Makefile.am: Add traditional mips target.
5734 * Makefile.in: Rebuild.
5736 2000-07-01 H.J. Lu <hjl@gnu.org>
5738 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
5739 automake to use YLWRAP.
5740 * Makefile.in: Rebuild.
5742 2000-07-01 Alan Modra <alan@linuxcare.com.au>
5744 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
5745 (CLEANFILES): Add DEPA.
5746 * Makefile.in: Regenerate.
5748 2000-06-30 Timothy Wall <twall@ppc>
5750 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
5751 the page in the upper octet of the address.
5753 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
5755 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
5757 2000-06-24 Alan Modra <alan@linuxcare.com.au>
5759 * NEWS: arm-elf does --gc-sections too.
5761 2000-06-22 Alan Modra <alan@linuxcare.com.au>
5763 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
5765 * Makefile.in: Regenerate.
5767 2000-06-21 H.J. Lu <hjl@gnu.org>
5769 * Makefile.am: Rebuild dependency.
5770 * Makefile.in: Rebuild.
5772 2000-06-20 H.J. Lu <hjl@gnu.org>
5774 * Makefile.am: Rebuild dependency.
5775 * Makefile.in: Rebuild.
5777 2000-06-20 Timothy Wall <twall@cygnus.com>
5779 * scripttempl/tic54xcoff.sc: New.
5780 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
5781 * gen-doc.texi: Add flag for TI COFF.
5782 * ld.texinfo: Add documentation for TI COFF handling switches.
5783 * emultempl/ticoff.em: New. TI COFF handling.
5784 * configure.tgt: Add tic54x target.
5785 * Makefile.am: Add tic54x target.
5786 * Makefile.in: Ditto.
5788 2000-06-20 Alan Modra <alan@linuxcare.com.au>
5790 * ldmain.c (set_scripts_dir): Correct pointer comparison when
5791 checking for backslashes.
5793 2000-06-19 Alan Modra <alan@linuxcare.com.au>
5795 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
5797 2000-06-18 Alan Modra <alan@linuxcare.com.au>
5799 * NEWS: Update list of targets supporting --gc-sections.
5801 * scripttempl/elf.sc: KEEP .eh_frame contents.
5802 * scripttempl/elfd30v.sc: Same here.
5804 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
5806 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
5808 * Makefile.in: Rebuild.
5809 * configure.tgt: Recognize m68hc12 and m68hc11.
5810 * scripttempl/elfm68hc12.sc: New file.
5811 * emulparams/m68hc12elfb: New emulation.
5812 * emulparams/m68hc12elf: New emulation.
5813 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
5814 (includes a memory.x script to define the ROM and RAM banks).
5815 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
5816 New configuration files for support of Motorola 68hc11
5818 2000-06-15 Alan Modra <alan@linuxcare.com.au>
5820 * ldmain.c (main): Only change SEC_READONLY for final link.
5822 2000-06-13 H.J. Lu <hjl@gnu.org>
5824 * configure: Regenerate.
5826 2000-06-08 David O'Brien <obrien@FreeBSD.org>
5828 * configure.in (VERSION): Update to show this is the CVS mainline.
5830 2000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5832 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
5833 input objects to be ECOFF.
5834 (check_sections): einfo takes %B, not %P, to print a BFD name.
5836 2000-06-05 Michael Matz <matz@ifh.de>
5838 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
5841 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
5843 2000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
5845 * emulparams/avr1200.sh (STACK): Define as 0.
5846 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
5847 * emulparams/avr4433.sh (STACK): Likewise.
5848 * emulparams/avr44x4.sh (STACK): Likewise.
5849 * emulparams/avr85xx.sh (STACK): Likewise.
5850 * emulparams/avrmega103.sh (STACK): Likewise.
5851 * emulparams/avrmega161.sh (STACK): Likewise.
5852 * emulparams/avrmega603.sh (STACK): Likewise.
5853 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
5854 (__stack): Define from ${STACK} for main().
5856 2000-05-26 Alan Modra <alan@linuxcare.com.au>
5858 * Makefile.am: Update dependencies with "make dep-am"
5859 * Makefile.in: Regenerate.
5861 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
5863 * ldmain.c: Include filenames.h.
5864 (set_scripts_dir): Support backslashes in program name.
5866 2000-05-22 Igor Shevlyakov <igor@windriver.com>
5868 * ldmain.c (main): When deciding if ".text" section should be
5869 read-only, don't forget to reset SEC_READONLY because it
5870 could be already set.
5872 2000-05-22 Thomas de Lellis <tdel@windriver.com>
5874 * ld.1: Add documentation for new command line option:
5875 --section-start <sectionname>=<sectionorg>
5876 This is a generic version of -Ttext etc. which accepts
5877 any section name as a parameter instead of just text/data/
5879 * ld.texinfo: More docs.
5881 * lexsup.c: (parse_args): Recognize new command line option.
5882 (ld_options): Add new option.
5884 2000-05-18 H.J. Lu <hjl@gnu.org>
5886 * lexsup.c (parse_args): `i' == `r', not `q'.
5888 2000-05-18 Jeffrey A Law (law@cygnus.com)
5890 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
5892 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
5893 Rick Gorton <gorton@scrugs.lkg.dec.com>
5895 Add support for '-q' == '--emit-relocs' switch.
5896 * ldmain.c (main): Default to false.
5897 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
5898 * NEWS: Describe the emitrelocations switch.
5899 * ld.texinfo: Describe the emitrelocations switch.
5901 2000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
5903 * emultempl/pe.em (_open_dynamic_archive): New function: Search
5904 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
5905 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
5908 2000-05-15 David O'Brien <obrien@FreeBSD.org>
5910 * lexsup.c (parse_args): Update the year in the copyright notice.
5912 2000-05-13 Alan Modra <alan@linuxcare.com.au>
5914 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
5915 Replace defines with those from intl/libgettext.h to quieten gcc
5918 2000-05-10 H.J. Lu <hjl@gnu.org>
5920 * ldlang.c (open_input_bfds): Don't load the same file within
5921 a group again if the whole archive has been loaded already.
5923 2000-05-03 Alan Modra <alan@linuxcare.com.au>
5925 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
5926 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
5929 2000-05-01 Jim Wilson <wilson@cygnus.com>
5931 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
5933 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
5934 host "ia64-*-linux-gnu*".
5936 2000-04-29 Andreas Jaeger <aj@suse.de>
5938 * ld.h: Correctly check GCC version.
5940 2000-04-25 Jeffrey A Law (law@cygnus.com)
5942 * Makefile.am: Add PA64 support. Add missing dependencies for
5944 * Makefile.in: Rebuilt.
5945 * configure.tgt: Add PA64 support (currently disabled).
5947 2000-04-25 Alan Modra <alan@linuxcare.com.au>
5949 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
5950 (output_rel_find): New function.
5951 (hold_section, hold_use): Delete.
5952 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
5953 hold_interp): Make local to place_orphan.
5954 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
5955 rather than place_section to find possible previous use of orphan.
5956 Similarly find the place-holder output sections. Use returned
5957 value from lang_enter_output_section_statement rather than calling
5958 lang_output_section_statement_lookup.
5959 * emultempl/armelf.em: Same here.
5960 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
5962 * ldlang.c (lang_enter_output_section_statement): Return output
5964 * ldlang.h (lang_enter_output_section_statement): Change
5967 * ldlang.h (lang_output_section_statement): Export it.
5968 * ldlang.c (lang_output_section_statement): Ditto.
5970 2000-04-24 Nick Clifton <nickc@cygnus.com>
5972 * ld.texinfo (Output Section Data): Add note that section data
5973 commands cannot appear outside of section directives.
5975 2000-04-2 Matthew Green <mrg@cygnus.com>
5977 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
5979 2000-04-21 Richard Henderson <rth@cygnus.com>
5980 David Mosberger <davidm@hpl.hp.com>
5982 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
5983 (eelf64_ia64.c): New rule.
5984 * Makefile.in: Rebuild.
5985 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
5986 * emulparams/elf64_ia64.sh: New file.
5988 2000-04-21 Richard Henderson <rth@cygnus.com>
5990 * scripttempl/elfd30v.sc: Place .gcc_except_table.
5992 2000-04-19 Alan Modra <alan@linuxcare.com.au>
5994 * dep-in.sed: Match space at start of file name, not at end.
5996 2000-04-18 H.J. Lu <hjl@gnu.org>
5998 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
5999 lang_leave_output_section_statement () after calling
6000 lang_enter_output_section_statement ().
6001 * emultempl/armelf.em: Likewise.
6003 2000-04-18 Alan Modra <alan@linuxcare.com.au>
6005 * emultempl/elf32.em (struct orphan_save): Add section field.
6006 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
6007 better order, and place first orphan section as we did before the
6008 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
6009 Don't call make_bfd_section here, let wild_doit do the job for us.
6010 Don't build a statement list when we'll only throw it away.
6011 * emultempl/armelf.em: Ditto.
6012 * emultempl/pe.em: Similarly.
6014 2000-04-14 Geoff Keating <geoffk@cygnus.com>
6016 * scripttempl/elfppc.sc: Remove.
6017 * emulparams/elf32ppc.sh: Use elf.sc.
6018 * emulparams/elf32lppc.sh: Use elf.sc.
6019 * emulparams/elf32ppclinux.sh: Use elf.sc.
6020 * emulparams/elf32ppcsim.sh: New file.
6021 * emulparams/elf32lppcsim.sh: New file.
6022 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
6023 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
6024 * Makefile.in: Regenerate.
6025 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
6027 2000-04-14 Alan Modra <alan@linuxcare.com.au>
6029 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
6030 ~SEC_ALLOC sections too. Init start address of debug sections.
6031 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
6032 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
6033 Also set all relocateable section start addresses.
6035 2000-04-13 Geoff Keating <geoffk@cygnus.com>
6037 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
6038 Add new BSS_PLT variable for when .plt need not be contained in
6039 the file. Move _etext so that it is also after .fini, and provide
6040 both etext and _etext with a leading underscore. Mark the start
6043 2000-04-12 Alan Modra <alan@linuxcare.com.au>
6045 * emultempl/elf32.em (struct orphan_save): New.
6046 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
6047 hold_interp): Make them struct orphan_save.
6048 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
6049 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
6050 the end of the relevant section list. Also add associated section
6051 statements to the end of any previous orphan statements.
6052 * emultempl/armelf.em: Similarly.
6053 * emultempl/pe.em: Similarly.
6055 2000-04-11 Alan Modra <alan@linuxcare.com.au>
6057 * ld.texinfo (Simple Example): Remove extraneous paragraph.
6059 2000-04-07 Andrew Cagney <cagney@b1.cygnus.com>
6061 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
6062 --enable-build-warnings option.
6063 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
6064 * Makefile.in, configure: Re-generate.
6066 2000-04-04 Alan Modra <alan@linuxcare.com.au>
6068 * po/ld.pot: Regenerate.
6070 * lexsup.c (help): Restore translated part of bug string.
6072 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
6073 (DEP): Quote when passing vars to sub-make. Add warning message
6075 (DEP1): Rewrite for "gcc -MM".
6076 (CLEANFILES): Add DEP2.
6077 Update dependencies.
6078 * Makefile.in: Regenerate.
6080 2000-04-03 Alan Modra <alan@linuxcare.com.au>
6082 * ld.h: #include "bin-bugs.h"
6083 * lexsup.c (help): Use REPORT_BUGS_TO.
6085 2000-03-27 Denis Chertykov <denisc@overta.ru>
6087 * configure.tgt (avr-*-*): New target support.
6088 * Makefile.am: Likewise.
6089 * scripttempl/elf32avr.sc: New script file.
6090 * emulparams/avr1200.sh: New file.
6091 * emulparams/avr23xx.sh: New file.
6092 * emulparams/avr4433.sh New file.
6093 * emulparams/avr44x4.sh New file.
6094 * emulparams/avr85xx.sh New file.
6095 * emulparams/avrmega103.sh New file.
6096 * emulparams/avrmega161.sh New file.
6097 * emulparams/avrmega603.sh New file.
6098 * Makefile.in: Regenerate.
6100 2000-03-09 Andreas Jaeger <aj@suse.de>
6102 * Makefile.am (check-DEJAGNU): Also unset LANG.
6103 * Makefile.in: Rebuild.
6105 2000-03-06 Ian Lance Taylor <ian@zembu.com>
6107 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
6110 2000-03-02 H.J. Lu <hjl@gnu.org>
6112 * emulparams/elf32mcore.sh: Include "getopt.h".
6114 2000-03-01 Ian Lance Taylor <ian@zembu.com>
6116 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
6118 2000-03-01 H.J. Lu <hjl@gnu.org>
6120 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
6121 * emulparams/shpe.sh: Likewise.
6123 2000-03-01 Nick Clifton <nickc@cygnus.com>
6125 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
6126 to unused parameters.
6128 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
6129 functions only used by DLL code.
6130 (_place_orphan): Initialise 'dollar'.
6132 2000-03-01 H.J. Lu <hjl@gnu.org>
6134 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
6135 indicate if the undefined symbol is a fatal error or not.
6136 Don't delete the output file if "fatal" is false.
6138 2000-02-29 H.J. Lu <hjl@gnu.org>
6140 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
6141 Set LC_COLLATE and LC_ALL to null and export them. It is for
6142 sort which expects the C locale.
6143 Add $(LIBS) to all $(HOSTING_LIBS).
6144 * Makefile.in: Rebuild.
6146 2000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
6148 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
6149 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
6150 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
6151 (ld_emulation_xfer_struct): Add missing NULL initialiser for
6152 find_potential_libraries.
6154 2000-02-28 Jim Blandy <jimb@redhat.com>
6156 * ldgram.y (exclude_name_list): Don't require a comma to separate
6157 list entries; the lexer considers commas to be valid part of a
6158 filename, so in something like `foo, bar' the comma is considered
6159 part of the first filename, `foo,'.
6160 * ld.texinfo: Update section on EXCLUDE_FILE lists.
6162 2000-02-27 Loren J. Rittle <ljrittle@acm.org>
6164 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
6165 host "i[3456]86-*-freebsdelf*".
6167 2000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
6169 * scripttempl/i386go32.sc: Move misplaced semicolons.
6171 2000-02-25 Ian Lance Taylor <ian@zembu.com>
6173 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
6174 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
6175 (eelf64hppa.c, ehppaelf.c): Remove targets.
6176 * Makefile.in: Rebuild.
6178 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
6180 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
6181 GNU/Linux/sparc, but keep the default as 32.
6183 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
6184 it default if sparcv9 or sparc64.
6186 2000-02-24 Nick Clifton <nickc@cygnus.com>
6188 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
6189 * Makefile.in: Regenerate.
6190 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
6192 * ldemul.h (ld_emulation_xfer_struct): Add new field:
6193 find_potential_libraries.
6194 * ldemul.c (ldemul_find_potential_libraries): New function.
6196 * ldfile.c (ldfile_open_file_search): Allow function to be
6198 (ldfile_open_file): Call ldemul_find_potential_libraries.
6199 * ldfile.h: Add prototype for ldfile_open_file_search.
6201 * pe-dll.c: Add support for ARM, MIPS and SH targets.
6203 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
6204 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
6206 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
6207 (gld_X_find_potential_libraries): New function. Search for
6208 libraries called "*.lib".
6210 * scripttempl/pe.sc: Add .pdata section.
6212 2000-02-23 Richard Henderson <rth@cygnus.com>
6214 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
6215 Add and use memory regions.
6217 2000-02-23 Linas Vepstas (linas@linas.org)
6219 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
6221 * Makefile.am: Add support for Linux/IBM 370.
6222 * configure.tgt: Likewise.
6224 * Makefile.in: Regenerate.
6226 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
6228 * ldlang.c (print_input_section, print_data_statement,
6229 print_reloc_statement, print_padding_statement, insert_pad,
6230 size_input_section, lang_check_section_addresses,
6231 lang_size_sections, lang_do_assignments, lang_set_startof,
6232 lang_one_common): Change `opb' to unsigned.
6233 (lang_do_assignments): Also change `size' to unsigned.
6235 2000-02-16 Richard Henderson <rth@cygnus.com>
6237 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
6239 2000-02-16 Timothy Wall <twall@cygnus.com>
6241 * mri.c (mri_draw_tree): Add default LMA region argument to call
6242 to lang_leave_output_section_statement.
6243 * ldlang.h: Update prototypes with LMA region arguments.
6244 * ldlang.c (lang_size_sections): Encapsulate region bounds
6245 checking in os_check_region call.
6246 (os_check_region): New function.
6247 (lang_output_section_statement_lookup): Initialize lma_region.
6248 (lang_leave_output_section_statement): Add LMA region argument.
6249 (lang_leave_overlay): Ditto.
6250 * ldgram.y: Handle LMA region syntax.
6251 * ld.texinfo (Output Section Description): Describe LMA region usage.
6252 * emultempl/armelf.em (gld$place_orphan): Add default value for
6253 lma region in call to lang_leave_output_section_statement.
6254 * emultempl/elf32.em (gld$place_orphan): Add default value for
6255 lma region in call to lang_leave_output_section_statement.
6256 * emultempl/pe.em (gld$place_orphan): Add default value for
6257 lma region in call to lang_leave_output_section_statement.
6260 2000-02-04 Timothy Wall <twall@redhat.com>
6262 * ldlang.c (lang_check_section_addresses): Use bytes instead of
6263 octets when calculating section end addresses.
6265 2000-02-04 Timothy Wall <twall@redhat.com>
6267 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
6269 2000-02-03 Timothy Wall <twall@redhat.com>
6271 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
6273 * ldlang.c (print_input_section, print_data_statement,
6274 print_reloc_statement, print_padding_statement): Print target
6275 address values and section sizes as bytes, not octets.
6276 (insert_pad) Calculate padding size in octets, and adjust "dot"
6278 (size_input_section) Always adjust "dot" by bytes, not octets.
6279 (lang_check_section_addresses, lang_do_assignments) Adjust
6280 "dot" by bytes, not octets. Use the larger of the directive size
6281 or octets_per_byte for the number of octets actually allocated in
6283 (lang_set_startof) Make sure STARTOF returns a target address.
6284 (lang_one_common) Record size changes in octets.
6285 (lang_abs_symbol_at_end_of) Section end symbol's value is
6286 recorded in target bytes.
6287 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
6288 to be clear about behavior when an octet is smaller than one byte.
6290 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
6292 * ldcref.c (output_cref): Don't pass message strings to printf
6296 * ldmisc.c (vfinfo): Same here.
6299 2000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
6301 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
6302 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
6303 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
6304 Add missing NULL initialisers, and comments.
6306 2000-01-21 Nick Clifton <nickc@cygnus.com>
6308 * ldlang.c (lang_size_sections): Fix typo in comment.
6310 2000-01-18 H.J. Lu <hjl@gnu.org>
6312 * ldlang.c (lang_size_sections): Also update the current
6313 address of a region if the SEC_NEVER_LOAD bit is not set.
6315 2000-01-10 Philip Blundell <pb@futuretv.com>
6317 * configure.tgt (arm*-*-conix*): New target.
6319 2000-01-07 Nick Clifton <nickc@cygnus.com>
6321 * ld.texinfo (Options): Remind users to preceed linker command
6322 line switches with -Wl, (or whatever is appropriate) if it is
6323 being invoked by a comnpiler driver program.
6324 Fix description of the behaviour of the -n command line switch.
6326 2000-01-05 Catherine Moore <clm@cygnus.com>
6328 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
6330 * ld.texinfo (EXCLUDE_FILE): Update documentation.
6331 * ldgram.y (wildcard_spec): Support a list of excluded_files.
6332 (exclude_name_list): New.
6333 ldlang.c (walk_wild_section): Support list of excluded files.
6334 (print_wild_statement): Likewise.
6335 (lang_add_wild): Likewise.
6336 * ldlang.h (lang_wild_statement_type): Likewise.
6337 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
6339 2000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
6341 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
6342 (process_def_file): Use.
6343 (pe_dll_compat_implib): New variable.
6346 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
6347 pe_dll_compat_implib.
6349 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
6350 compat-implib options.
6351 (gld_${EMULATION_NAME}_list_options): List new options.
6352 (gld_${EMULATION_NAME}_parse_args): Handle.
6354 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
6357 * deffilep.y (opt_name): Allow "." in name.
6359 For older changes see ChangeLog-9899
6365 version-control: never