1 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
3 2001-04-17 Alexandre Oliva <aoliva@redhat.com>
4 * emulparams/mn10300.sh (TEMPLATE_NAME): Define.
5 (GENERATE_SHLIB_SCRIPT): Likewise.
7 2003-07-10 Alan Modra <amodra@bigpond.net.au>
9 * emulparams/elf64ppc.sh (OTHER_GOT_SECTIONS): Don't define.
11 * emultempl/ppc64elf.em (stub_added): New static var.
12 (ppc_create_output_section_statements): Call ppc64_elf_init_stub_bfd.
13 (ppc_add_stub_section): Set stub_added.
14 (gld${EMULATION_NAME}_finish): Look for .got rather than .toc. Adjust
15 ppc64_elf_size_stubs call and test for stubs.
16 * scripttempl/elf.sc (GOT): Define and use.
18 2003-07-08 J"orn Rennecke <joern.rennecke@superh.com>
20 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_after_allocation):
21 Allow second call from ldemul_finish.
23 2003-07-04 J"orn Rennecke <joern.rennecke@superh.com>
25 * emulparams/shelf32.sh (STACK_ADDR): Don't define.
26 (OTHER_SECTIONS): Include .stack.
27 * emulparams/shelf64.sh (OTHER_SECTIONS): Likewise.
29 2003-07-02 Jakub Jelinek <jakub@redhat.com>
31 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't include
33 (OTHER_READWRITE_SECTIONS): Include .opd if -pie.
34 * scripttempl/elf.sc: Use SHLIB_DATA_ADDR instead of DATA_ADDR
37 2003-06-28 Alan Modra <amodra@bigpond.net.au>
39 * ld.h: Convert to C90, remove unnecessary prototypes and casts.
40 Replace PTR with void *. Formatting.
58 * ldwrite.c: Likewise.
59 * ldwrite.h: Likewise.
65 * deffilep.y: Likewise.
66 * deffile.h: Likewise. Don't include ansidecl.h.
67 * emulparams/elf32mcore.sh: Remove unnecessary cast.
68 * emultempl/m68kcoff.em: Likewise.
69 * emultempl/m68kelf.em: Likewise.
70 * emultempl/ticoff.em: Remove lang_add_output_format declaration.
71 * sysdep.h: Don't include ansidecl.h.
72 * Makefile.am: Run "make dep-am".
73 * Makefile.in: Regenerate.
75 2003-06-27 Nick Clifton <nickc@redhat.com>
77 * deffilep.y (def_file_add_directive): Cope with NUL seperated
78 directives. Fix reporting of unparseable directives.
79 (def_error): Check for a NULL def_filename.
81 2003-06-27 Alan Modra <amodra@bigpond.net.au>
83 * emultempl/aix.em: Convert to C90, remove unnecessary prototypes
84 and casts. Replace PTR with void *. Formatting.
85 * emultempl/alphaelf.em: Likewise.
86 * emultempl/armcoff.em: Likewise.
87 * emultempl/armelf.em: Likewise.
88 * emultempl/armelf_oabi.em: Likewise.
89 * emultempl/beos.em: Likewise.
90 * emultempl/elf32.em: Likewise.
91 * emultempl/generic.em: Likewise.
92 * emultempl/gld960.em: Likewise.
93 * emultempl/gld960c.em: Likewise.
94 * emultempl/hppaelf.em: Likewise.
95 * emultempl/linux.em: Likewise.
96 * emultempl/lnk960.em: Likewise.
97 * emultempl/m68hc1xelf.em: Likewise.
98 * emultempl/m68kcoff.em: Likewise.
99 * emultempl/m68kelf.em: Likewise.
100 * emultempl/mipsecoff.em: Likewise.
101 * emultempl/mipself.em: Likewise.
102 * emultempl/mmix-elfnmmo.em: Likewise.
103 * emultempl/mmixelf.em: Likewise.
104 * emultempl/mmo.em: Likewise.
105 * emultempl/needrelax.em: Likewise.
106 * emultempl/netbsd.em: Likewise.
107 * emultempl/pe.em: Likewise.
108 * emultempl/sh64elf.em: Likewise.
109 * emultempl/sunos.em: Likewise.
110 * emultempl/ticoff.em: Likewise.
111 * emultempl/vanilla.em: Likewise.
112 * emultempl/xtensaelf.em: Likewise.
113 * Makefile.am: Correct dependencies.
114 * Makefile.in: Regenerate.
116 2003-06-25 Alan Modra <amodra@bigpond.net.au>
118 * ld.texinfo: Correct spelling of "relocatable".
119 * ldctor.c: Likewise.
121 * ldfile.c: Likewise.
122 * ldint.texinfo: Likewise.
123 * ldlang.c: Likewise.
124 * ldmain.c: Likewise.
125 * ldwrite.c: Likewise.
126 * lexsup.c: Likewise.
127 * emultempl/aix.em: Likewise.
128 * emultempl/alphaelf.em: Likewise.
129 * emultempl/armcoff.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/mmo.em: Likewise.
146 * emultempl/needrelax.em: Likewise.
147 * emultempl/pe.em: Likewise.
148 * emultempl/ppc64elf.em: Likewise.
149 * emultempl/sh64elf.em: Likewise.
150 * emultempl/sunos.em: Likewise.
151 * emultempl/ticoff.em: Likewise.
152 * emultempl/xtensaelf.em: Likewise.
154 2003-06-24 Alan Modra <amodra@bigpond.net.au>
156 * emultempl/ppc32elf.em: Convert to C90.
158 2003-06-20 Alan Modra <amodra@bigpond.net.au>
160 * emultempl/ppc64elf.em: Convert to C90 function definitions, remove
161 unnecessary prototypes and casts.
163 2003-06-19 Alan Modra <amodra@bigpond.net.au>
165 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Dump out
166 statistics from ppc64_elf_build_stubs.
168 2003-06-19 Alan Modra <amodra@bigpond.net.au>
170 * emultempl/ppc64elf.em (build_section_lists): Check return status
171 from ppc64_elf_next_input_section.
173 2003-06-17 H.J. Lu <hongjiu.lu@intel.com>
175 * ldlang.c (section_already_linked): Put back assignment of
178 2003-06-17 Rainer Keuchel <rkeuchel@allgeier.com>
180 * pe-dll.c (generate_reloc): Catch and ignore an ARM_26D
183 2003-06-17 Loren James Rittle <rittle@latour.rsch.comm.mot.com>
185 * configure.host (*-*-freebsd*): Add known path for ld-elf.so.1
186 if not produced by gcc.
188 2003-06-16 Hans-Peter Nilsson <hp@axis.com>
190 * configure.tgt: Add specific case for cris-*-linux-gnu*
191 with crislinux emulation only.
193 2003-06-13 Robert Millan <zeratul2@wanadoo.es>
195 * configure.tgt: Add i386-netbsd-gnu target.
197 2003-06-12 Richard Sandiford <rsandifo@redhat.com>
199 * configure.tgt (mips*-sgi-irix6*): Add the o32 and n64 emulations
200 to $targ_extra_libpath.
202 2003-06-11 H.J. Lu <hongjiu.lu@intel.com>
204 * po/Make-in (DESTDIR): New.
205 (install-data-yes): Support $(DESTDIR).
206 (uninstall): Likewise.
208 2003-06-10 Doug Evans <dje@sebabeach.org>
210 * Makefile.am (ALL_EMULATIONS): Add em32relf.o.
211 * Makefile.in: Regenerate.
213 2003-06-10 Richard Sandiford <rsandifo@redhat.com>
215 * configure.tgt (h8300*): Add h8300sxn emulations.
216 * Makefile.am (ALL_EMULATIONS): Add eh8300sxn.o and eh8300sxnelf.o.
217 (eh8300sxn.c, eh8300sxnelf.c): New rules.
218 * Makefile.in: Regenerate.
219 * emulparams/h8300sxnelf.sh, emulparams/h8300sxn.sh: New files.
220 * scripttempl/h8300sxn.sc: New file.
222 2003-06-10 Alan Modra <amodra@bigpond.net.au>
224 * emulparams/elf64ppc.sh (EXECUTABLE_SYMBOLS, OTHER_BSS_END_SYMBOLS,
225 CTOR_START, CTOR_END, DTOR_START, DTOR_END): Don't define.
227 2003-06-08 Alan Modra <amodra@bigpond.net.au>
229 * emultempl/ppc64elf.em (emit_stub_syms, toc_section): New vars.
230 (build_toc_list): New function.
231 (gld${EMULATION_NAME}_finish): Call build_toc_list and
232 ppc64_elf_reinit_toc. Adjust ppc64_elf_build_stubs call.
233 (OPTION_STUBSYMS): Define.
234 (PARSE_AND_LIST_LONGOPTS): Add emit-stub-syms.
235 (PARSE_AND_LIST_OPTIONS): Document.
236 (PARSE_AND_LIST_ARGS_CASES): Handle.
238 2003-06-05 Roland McGrath <roland@redhat.com>
240 * emultempl/elf32.em (gld${EMULATION_NAME}_list_options): Remove
241 extra \t in -z noexecstack line.
243 2003-05-23 Jakub Jelinek <jakub@redhat.com>
245 * ldgram.y (phdr_type): Grok PT_GNU_STACK.
246 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Add
247 -z execstack and -z noexecstack.
248 (gld${EMULATION_NAME}_list_options): Likewise.
249 * scripttempl/elf.sc: If not -r, discard .note.GNU-stack section.
251 2003-06-03 Michael Snyder <msnyder@redhat.com>
252 and Bernd Schmidt <bernds@redhat.com>
253 and Alexandre Oliva <aoliva@redhat.com>
255 * Makefile.am: Add new emulations for h8300sx.
256 * Makefile.in: Regenerate.
257 * configure.tgt: Add new emulations.
258 * emulparams/h8300sx.sh: New emulation.
259 * emulparams/h8300sxelf.sh: Ditto.
260 * scripttempl/h8300sx.sc: Ditto.
262 2003-06-03 H.J. Lu <hongjiu.lu@intel.com>
264 * ldmisc.c: Include "bfdlink.h".
265 (error_handler): Handle LD_DEFINITION_IN_DISCARDED_SECTION
266 and -LD_DEFINITION_IN_DISCARDED_SECTION.
268 * Makefile.am: Rebuild dependency.
269 * Makefile.in: Regenerated.
271 2003-06-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
273 * emulparams/shlelf_linux.sh (GENERATE_PIE_SCRIPT): Set to yes.
274 * emulparams/shlelf32_linux.sh (GENERATE_PIE_SCRIPT): Likewize.
276 2003-06-02 Fabrizio Gennari <fabrizio.ge@tiscalinet.it>
278 * pe-dll.c (fill_edata): Scan table pe_dll->exports, which is
279 sorted alphabetically, instead of exported_symbols, which is
282 2003-05-30 Ulrich Drepper <drepper@redhat.com>
283 Jakub Jelinek <jakub@redhat.com>
285 * lexsup.c (OPTION_PIE): Define.
286 (ld_options): Add -pie and --pic-executable options.
287 (parse_args): Handle OPTION_PIE.
288 * ldmain.c (main): Initialize link_info.pie and
289 link_info.executable.
290 * genscripts.sh: Generate PIE scripts.
291 * ld.texinfo: Document -pie and --pic-executable options.
292 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open):
293 (gld${EMULATION_NAME}_place_orphan): Likewise.
294 (gld${EMULATION_NAME}_get_script): Include PIE scripts.
295 * scripttempl/elf.sc: In PIE scripts set . the same way as in
297 * emulparams/elf_i386.sh (GENERATE_PIE_SCRIPT): Set to yes.
298 * emulparams/elf64_ia64.sh (GENERATE_PIE_SCRIPT): Likewise.
299 * emulparams/elf32ppc.sh (GENERATE_PIE_SCRIPT): Likewise.
300 * emulparams/elf64ppc.sh (GENERATE_PIE_SCRIPT): Likewise.
301 * emulparams/elf_x86_64.sh (GENERATE_PIE_SCRIPT): Likewise.
302 * emulparams/elf_s390.sh (GENERATE_PIE_SCRIPT): Likewise.
303 * emulparams/elf32_sparc.sh (GENERATE_PIE_SCRIPT): Likewise.
304 * emulparams/elf64_sparc.sh (GENERATE_PIE_SCRIPT): Likewise.
305 * emulparams/elf64alpha.sh (GENERATE_PIE_SCRIPT): Likewise.
306 * emulparams/elf64_s390.sh (GENERATE_PIE_SCRIPT): Likewise.
307 * emulparams/elf_i386.sh (GENERATE_PIE_SCRIPT): Likewise.
309 2003-05-30 H.J. Lu <hongjiu.lu@intel.com>
311 * genscripts.sh: Create tmpdir/libpath.exp.
313 2003-05-30 Nick Clifton <nickc@redhat.com>
315 * emultempl/armelf.em (arm_elf_before_allocation): Replace ASSERT
316 with a test for a NULL bfd_for_interworking.
318 2003-05-29 Jason Thorpe <thorpej@wasabisystems.com>
320 * configure.host (*-*-netbsd*): Set HOSTING_CRT0 and HOSTING_LIBS
321 correctly for more recent versions of NetBSD.
322 (alpha*-*-netbsd*): Remove.
323 (i[3-7]86-*-netbsd*): Remove.
325 2003-05-29 Nick Clifton <nickc@redhat.com>
327 * emultempl/pe.em: Include "safe-ctype.h" instead of <ctype.h>.
329 2003-05-26 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
331 * emulparams/elf64btsmip.sh: Set TEXT_START_ADDR to 0x120000000 to
332 trap on pointer crops.
334 2003-05-21 Marcus Comstedt <marcus@mc.pp.se>
336 * configure.tgt: Check for a target triplet of shl-...-netbsdelf
337 as well as shle-...-netbsdelf.
339 2003-05-16 Kelley Cook <kelleycook@wideopenwest.com>
341 * configure.host: Accept i[3-7]86 variants.
342 * configure.tgt: Likewise.
344 2003-05-15 H.J. Lu <hongjiu.lu@intel.com>
346 * emulparams/elf64_ia64.sh: Don't set COMMONPAGESIZE for now.
348 2003-05-09 Daniel Jacobowitz <drow@mvista.com>
350 * Makefile.am (ALL_EMULATIONS): Add earmelfb.o and earmelfb_linux.o.
351 (earmelfb.c, earmelfb_linux.c): New rules.
352 * Makefile.in: Regenerated.
353 * emulparams/armelfb.sh, emulparams/armelfb_linux.sh: New files.
354 * configure.tgt: Add armeb-elf and arm*b-*-linux-gnu.
356 2003-05-09 Nick Clifton <nickc@redhat.com>
358 * ldlang.c (lang_size_sections_1): Default to generating a
359 fatal error message if a loadable section is not allocated
360 to a memory region when regions are defined.
362 2003-05-09 Alan Modra <amodra@bigpond.net.au>
364 * Makefile.am (em68hc11elf.c): Correct dependencies.
365 (em68hc11elfb.c, em68hc12elf.c, em68hc12elfb.c): Likewise.
366 * Makefile.in: Regenerate.
367 * emultempl/elf32.em (find_exp_assignment): Adjust for changed
368 bfd_elf_record_link_assignment name.
370 2003-05-07 Alexandre Oliva <aoliva@redhat.com>
372 * ldmain.h (overflow_cutoff_limit): Declare.
373 * ldmain.c (overflow_cutoff_limit): Define, initialized to 10.
374 (reloc_overflow): Limit error messages based on it.
375 * lexsup.c (parse_args) <OPTION_VERBOSE>: Set cutoff to
378 2003-05-05 Alan Modra <amodra@bigpond.net.au>
380 * ldlex.l: Accept C style comments in version scripts.
382 2003-04-28 H.J. Lu <hjl@gnu.org>
384 * ldlang.c (lang_process): Add the relax finalize pass.
386 * ldmain.c (main): Initialize link_info.relax_finalizing to
389 2003-04-24 Roland McGrath <roland@redhat.com>
391 * ldgram.y (phdr_type): Grok PT_TLS and PT_GNU_EH_FRAME names.
392 If a name string is unknown, give an error rather than crashing later.
394 2003-04-23 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
396 * Makefile.am (ALL_EMULATIONS): Add eh8300hn.o, eh8300sn.o,
397 eh8300hnelf.o, eh8300snelf.o and respective rules.
398 * Makefile.in: Regenerate.
399 * configure.tgt: Add h8300hn, h8300sn, h8300hnelf, h8300snelf
400 * emulparams/h8300hn.sh: New
401 * emulparams/h8300sn.sh: New
402 * emulparams/h8300hnelf.sh: New
403 * emulparams/h8300snelf.sh: New
404 * scripttempl/h8300hn.sc: new
405 * scripttempl/h8300sn.sc: new
407 2003-04-23 H.J. Lu <hjl@gnu.org>
409 * ldmain.c (link_callbacks): Initialize error_handler.
411 * ldmisc.c (error_handler): New function.
413 * ldmisc.h (error_handler): New prototype.
415 2003-04-21 Stephane Carrez <stcarrez@nerim.fr>
417 * emulparams/m68hc11elf.sh: Use m68hc1xelf.em extra.
418 * emulparams/m68hc11elfb.sh: Likewise.
419 * emulparams/m68hc12elf.sh: Likewise.
420 * emulparams/m68hc12elfb.sh: Likewise.
422 2003-04-19 Stephane Carrez <stcarrez@nerim.fr>
424 * emultempl/m68hc1xelf.em: New file to generate far trampolines on
426 (LDEMUL_BEFORE_ALLOCATION): Override to gather the trampolines to
428 (LDEMUL_FINISH): Override to generate the trampolines after gc and
430 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Override to create the
431 stub file for trampolines.
432 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_LONGOPTS): New options
433 --no-trampoline and --bank-window to control the memory bank window.
435 2003-04-18 H.J. Lu <hjl@gnu.org>
437 * ldfile.c (ldfile_add_library_path): Remove the unused
440 2003-04-18 Andrew Haley <aph@cambridge.redhat.com>
442 * scripttempl/xstormy16.sc (__data, __rdata): New.
444 2003-04-16 Nick Clifton <nickc@redhat.com>
446 * scripttempl/xstormy16.sc: Add .jcr section mapping.
448 2003-04-15 H.J. Lu <hjl@gnu.org>
450 From Debian by Jack Howarth <howarth@nitro.med.uc.edu>:
452 * ldlex.l: Use YY_CURRENT_BUFFER instead of yy_current_buffer.
454 2003-04-15 Rohit Kumar Srivastava <rohits@kpitcummins.com>
456 * h8-doc.texi: Replace occurrances of 'Hitachi' with 'Renesas'.
457 * ld.texinfo: Likewise.
459 2003-04-14 Alan Modra <amodra@bigpond.net.au>
461 From Prashanth Tamraparni <prashanth_t@in.ibm.com>
462 * scripttempl/elf.sc (CTOR): Handle crtbeginS.o, crtendS.o and
463 other variants of crtbegin.o, crtend.o.
465 * scripttempl/crisaout.sc (ctors, dtors): Likewise.
466 * scripttempl/elf_chaos.sc (CTOR, DTOR): Likewise.
467 * scripttempl/elfd10v.sc (CTOR, DTOR): Likewise.
468 * scripttempl/elfd30v.sc (CTOR, DTOR): Likewise.
469 * scripttempl/elfxtensa.sc (CTOR, DTOR): Likewise.
470 * scripttempl/iq2000.sc (CTOR, DTOR): Likewise.
471 * scripttempl/mmo.sc (ctors, dtors): Likewise.
472 * scripttempl/xstormy16.sc (CTOR, DTOR): Likewise.
474 2003-04-09 Dmitry Diky <diwil@mail.ru>
476 * scripttempl/elf32msp430.sc: Add initX, finiX, ctors, dtors
477 sections to respect C++ constructor/destructor. Add ctors/dtors
478 start/stop definitions.
479 * scripttempl/elf32msp430_3.sc: Likewise.
481 2003-04-06 Nick Clifton <nickc@redhat.com>
483 * ld.texinfo (Options): Add a reminder of the target specific
484 nature to the description of the i386 PE specific options, for
485 readers who have not read all the way through the manual.
487 2003-04-04 Svein E. Seldal <Svein.Seldal@solidas.com>
489 * configure.tgt: Fixed bug in list of targ_extra_emuls.
490 * emulparams/tic3xcoff.sh (SCRIPT_NAME): Namespace
491 cleanup. Replace s/c4x/tic4x and s/c3x/tic3x/
492 * emulparams/tic3xcoff_onchip.sh: Ditto
493 * emulparams/tic4xcoff.sh: Ditto
494 * scripttempl/tic4xcoff.sc: Ditto
496 2003-04-03 Nick Clifton <nickc@redhat.com>
498 * NEWS: Mention support for Xtensa architecture.
500 2003-04-02 Nick Clifton <nickc@redhat.com>
502 * pe-dll.c (pe_detail_list): arm-pe targets use underscores.
504 2003-04-01 Danny Smith <dannysmith@users.sourceforge.net>
506 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open):
507 Don't call pe_dll_build_section() if link_info.relocateable.
508 (gld_${EMULATION_NAME}_finish): Don't call pe_dll_fill_sections()
509 if link_info.relocateable.
511 2003-04-01 Fabrizio Gennari <fabrizio.ge@tiscalinet.it>
513 * pe-dll.c (process_def_file): Don't create an export
514 section if there are no exports and we're building an exe
515 (pe_dll_build_sections): Ditto
516 (pe_dll_fill_sections): Conditionalize setting
517 abfd->dll true on info->shared
518 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open):
519 If i386pe or armpe, call pe_dll_build_section()
520 for both exe's and dll's, not just dll's.
521 (gld_${EMULATION_NAME}_finish): For all targets except
522 shpe and mipspe, call pe_dll_fill_sections() for both
523 exe's and dll's, not just dll's.
525 2003-04-02 Bob Wilson <bob.wilson@acm.org>
527 * emulparams/xtensa-config.sh: Remove comment indicating that this is
530 2003-04-01 Bob Wilson <bob.wilson@acm.org>
532 * Makefile.am (ALL_EMULATIONS): Add eelf32xtensa.o.
533 (eelf32xtensa.c): New target.
534 * Makefile.in: Regenerate.
535 * configure.tgt: Handle xtensa-*-*.
536 * gen-doc.texi: Set XTENSA variable.
537 * ld.texinfo: Set XTENSA variable. Add new Xtensa node.
538 * emulparams/elf32xtensa.sh: New file.
539 * emulparams/xtensa-config.sh: Likewise.
540 * emultempl/xtensaelf.em: Likewise.
541 * scripttempl/elfxtensa.sc: Likewise.
543 2003-04-01 Jakub Jelinek <jakub@redhat.com>
545 * configure.tgt (powerpc*-*-linux*): Add elf32ppc to ppc64
546 targ_extra_libpath. Add elf64ppc to ppc targ_extra_libpath
547 if --enable-64-bit-bfd.
549 2003-04-01 Nick Clifton <nickc@redhat.com>
551 * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Change name of
553 * emulparams/armelf_linux.sh (OTHER_READONLY_SECTIONS): Change
554 name of note section.
556 2003-03-31 Alexandre Oliva <aoliva@redhat.com>
558 * ld.texinfo (-Tbss, -Tdata, -Ttext): Document in terms of
561 2003-03-31 David Heine <dlheine@suif.stanford.edu>
563 * ldfile.c (ldfile_add_library_path): Always allocate space for
565 * ldlang.c (lang_register_vers_node): Free the node if it cannot
567 * ldmain.c (set_scripts_dir): Always free the constructed
569 (add_keepsyms_file): Fix memory leak.
570 * ldmisc.c (vfinfo): Likewise.
571 * lexsup.c (parse_args): Likewise.
573 2003-03-25 Stan Cox <scox@redhat.com>
574 Nick Clifton <nickc@redhat.com>
576 Contribute support for Intel's iWMMXt chip - an ARM variant:
578 * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Define.
579 * emulparams/armelf_linux.sh (OTHER_READONLY_SECTIONS): Define.
580 * scripttempl/armcoff.sc (.data): Ensure 8 byte alignment.
583 2003-03-25 Alexandre Oliva <aoliva@redhat.com>
585 * ldmain.h (ld_canon_sysroot, ld_canon_sysroot_len): Declare.
586 * ldmain.c (ld_canon_sysroot, ld_canon_sysroot_len): Define.
587 (main): Initialize them.
588 * ldfile.c: Include pathnames.h.
589 (is_sysrooted_pathname): New.
590 (ldfile_add_library_path): Use it.
591 (ldfile_open_file_search): Likewise. Use IS_ABSOLUTE_PATH. Don't
592 search_dirs if given an absolute pathname.
593 (ldfile_open_file): Issue error message for sysrooted
595 * Makefile.am: Updated dependencies.
596 * Makefile.in: Rebuild.
598 2003-03-24 Daniel Néri <dne@mayonnaise.net>
600 * ld.texinfo: Rename all occurances of C54X to TIC54X.
602 2003-03-19 Andreas Schwab <schwab@suse.de>
604 * ldfile.c (ldfile_try_open_bfd): Pop lexer start condition after
607 2003-03-18 Danny Smith <dannysmith@users.sourceforge.net>
609 * defilep.y (opt_base): If no number given, set to default
612 2003-03-13 Danny Smith <dannysmith@users.sourceforge.net>
614 * deffilep.y (def_import): Use default extension of "dll"
615 if no extension provided in parsed IMPORT definition.
617 * deffilep.y (def_lex): Revert 2003-03-12 change.
618 (dot_name): New id type and rule.
619 (expline): Use instead of ID.
620 (opt_equal_name): Likewise.
622 2003-03-12 Danny Smith <dannysmith@users.sourceforge.net>
624 * deffilep.y (def_lex): Accept '.' as valid non-lead char.
626 2003-03-07 Christopher Faylor <cgf@redhat.com>
628 * configure.tgt: Add NATIVE_LIB_DIRS for cygwin target back after
629 apparent accidental removal on 2003-01-06.
631 2003-03-04 Dmitry Diky <diwil@mail.ru>
633 * Makefile.am: Add new devices x1122 x1132 emulation
634 * configure.tgt: Likewise.
635 * Makefile.in: Regenerate.
636 * emulparams/msp430x1122.sh: New file.
637 * emulparams/msp430x1132.sh: New file.
639 2003-03-03 Alexandre Oliva <aoliva@redhat.com>
641 * ldmain.c (set_scripts_dir): Look for relative to TOOLBINDIR as
644 * ldfile.h (struct search_dirs): Added sysrooted field.
645 * ldlang.h (struct lang_input_statement_struct): Likewise.
646 * ldfile.c (ldfile_add_library_path): Mark sysrooted paths.
647 (ldfile_open_file_search): Look for sysrooted filename starting
648 with / in ld_sysroot instead of in the current directory. Clear
649 sysrooted flag if it's found in the current directory. Set it
650 from the search directory's sysrooted flag where it is found
652 * ldlang.c (ldlang_sysrooted_script): New static variable.
653 (new_afile): Mark search_file_enums as sysrooted if
654 ldlang_sysrooted_script.
655 (load_symbols): Set ldlang_sysrooted_script according to the
656 script's sysrooted field while processing it.
657 * ld.texinfo: Document INPUT behavior in sysroot.
659 2003-03-02 Danny Smith <dannysmith@users.sourceforge.net>
661 * scripttempl/pe.sc: Use PROVIDE with etext, end, _end,
663 2003-03-03 Alan Modra <amodra@bigpond.net.au>
665 * emulparams/elf64alpha.sh (EXTRA_EM_FILE): Define.
666 (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS,
667 PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES,
668 PARSE_AND_LIST_EPILOGUE): Don't define.
669 * emultempl/alphaelf.em: New file.
671 2003-03-01 Alan Modra <amodra@bigpond.net.au>
673 * ldemul.c: Include getopt.h.
674 * emultempl/elf32.em: Include getopt.h earlier.
675 * emultempl/ticoff.em: Likewise.
677 2003-02-28 Alan Modra <amodra@bigpond.net.au>
679 * emultempl/elf32.em (gld${EMULATION_NAME}_get_script): Add combreloc
680 support when scripts read from files.
682 2003-02-28 Alan Modra <amodra@bigpond.net.au>
684 * ldemul.c (ldemul_parse_args): Return FALSE by default.
685 * ldemul.h (struct ld_emulation_xfer_struct): Update parse_args
688 * ldemul.c (ldemul_add_options, ldemul_handle_option): New functions.
689 (ldemul_parse_args): Return bfd_boolean. Formatting.
690 * ldemul.h (ldemul_add_options, ldemul_handle_option): Declare.
691 (ldemul_parse_args): Adjust.
692 (struct ld_emulation_xfer_struct): Add add_options and handle_option.
693 Return bfd_boolean from parse_args.
694 * lexsup.c (parse_args): Malloc shortopts, longopts and
695 really_longopts. Call ldemul_add_options and ldemul_handle_option.
696 * emultempl/aix.em (gld${EMULATION_NAME}_add_options): Split out from
697 gld${EMULATION_NAME}_parse_args.
698 (gld${EMULATION_NAME}_handle_option): Likewise.
699 (ld_${EMULATION_NAME}_emulation): Adjust initializer.
700 * emultempl/armcoff.em: As for aix.em, but remove parse_args.
701 * emultempl/beos.em: Likewise.
702 * emultempl/pe.em: Likewise.
703 * emultempl/ticoff.em: Likewise.
704 * emultempl/elf32.em: Likewise. Don't duplicate long options either.
705 (gld${EMULATION_NAME}_add_sysroot): Prototype.
706 * emultempl/armelf.em (PARSE_AND_LIST_LONGOPTS): Don't duplicate
708 * emultempl/hppaelf.em (PARSE_AND_LIST_LONGOPTS): Likewise.
709 * emultempl/ppc32elf.em (PARSE_AND_LIST_LONGOPTS): Likewise.
710 * emultempl/ppc64elf.em (PARSE_AND_LIST_LONGOPTS): Likewise.
711 * emultempl/armelf_oabi.em (ld_${EMULATION_NAME}_emulation): Adjust
713 * emultempl/generic.em: Likewise.
714 * emultempl/gld960.em: Likewise.
715 * emultempl/gld960c.em: Likewise.
716 * emultempl/linux.em: Likewise.
717 * emultempl/lnk960.em: Likewise.
718 * emultempl/m68kcoff.em: Likewise.
719 * emultempl/mipsecoff.em: Likewise.
720 * emultempl/sunos.em: Likewise.
721 * emultempl/vanilla.em: Likewise.
722 * emultempl/netbsd.em (gldnetbsd_before_parse): Prototype.
724 2003-02-25 Alexandre Oliva <aoliva@redhat.com>
726 * emultempl/elf32.em (gld${EMULATION_NAME}_add_sysroot): Fix
727 memory allocation error.
729 * Makefile.am (ldmain.o): Define TOOLBINDIR.
730 * Makefile.in: Rebuilt.
731 * ldmain.c (ld_sysroot): Try to set from TOOLBINDIR too.
733 2003-02-21 Bob Wilson <bob.wilson@acm.org>
735 * ldlang.c (lang_size_sections_1): Add CHECK_REGIONS argument and only
736 call os_region_check when it is set.
737 (lang_size_sections): Add CHECK_REGIONS argument and pass it through to
738 lang_size_sections_1.
739 (lang_process): Change lang_size_sections calls to set CHECK_REGIONS
740 only for the last call, not on every relaxation iteration.
741 * ldlang.h (lang_size_sections): Update prototype.
742 * pe-dll.c (pe_dll_fill_sections): Set CHECK_REGIONS argument in calls
743 to lang_size_sections.
744 (pe_exe_fill_sections): Likewise.
745 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Likewise.
746 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
747 * emultempl/ppc64elf.em (ppc_before_allocation): Likewise.
748 (ppc_layout_sections_again): Likewise.
750 2003-02-21 Bob Wilson <bob.wilson@acm.org>
752 * gen-doc.texi: Set ARM and HPPA variables.
753 * ld.texinfo: Fix typos and obvious texinfo mistakes. Make section
754 title capitalization more consistent. Add missing menu entries for
755 machine-specific sections and conditionalize them consistently.
756 Conditionalize text that is irrelevant when SingleFormat is set.
757 Add @group divisions to improve page breaks in long examples.
758 Use @iftex/@ifnottex instead of @iftex/@ifinfo so that HTML output
759 is correct. Remove "FIXME" comment about not using
760 @raisesections/@lowersections. Use @raisesections/@lowersections
761 consistently for machine-specific sections. Change to be more polite
762 about poor bug reports. Replace FDL appendix with include of fdl.texi.
763 Move WIN32 node to match its order in the menus.
764 * fdl.texi: New file.
766 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
768 * configure.in (TARGET_SYSTEM_ROOT): Set default to
769 ${exec_prefix}/${target_alias}/sys-root. Match explicit
770 '${exec_prefix}' (in addition to the expansion thereof) as
772 * configure: Rebuilt.
774 2003-02-20 Phil Edwards <pme@gcc.gnu.org>
776 * ldgram.y (vers_defns): Also recurse with 'EXTERN NAME' patterns.
778 2003-02-20 Harri Porten <porten@kde.org>
780 * ldgram.y (vers_defns): Allow optional trailing semicolon in
783 2003-02-18 Alan Modra <amodra@bigpond.net.au>
785 * emultempl/ppc32elf.em: New file.
786 * emulparams/elf32ppc.sh (EXTRA_EM_FILE): Define.
787 * Makefile.am (eelf32lppc.c): Depend on emultempl/ppc32elf.em.
788 (eelf32lppcnto.c): Likewise.
789 (eelf32lppcsim.c): Likewise.
790 (eelf32ppcnto.c): Likewise.
791 (eelf32ppc.c): Likewise.
792 (eelf32ppc_fbsd.c): Likewise.
793 (eelf32ppcsim.c): Likewise.
794 (eelf32ppclinux.c): Likewise.
795 * Makefile.in: Regenerate.
797 2003-02-18 Alan Modra <amodra@bigpond.net.au>
799 * ld.texinfo: Remove spaces between @samp and opening brace.
801 2003-02-18 Alan Modra <amodra@bigpond.net.au>
803 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Check
805 (ppc_before_allocation): Don't do optimizations if wrong hash table.
806 (gld${EMULATION_NAME}_finish): Ditto.
808 2003-02-17 Nick Clifton <nickc@redhat.com>
810 * ldmain.c (main) Default allow_shlib_undefined to true.
811 * lexsup.c (ld_options): Add --no-allow-shlib-undefined.
812 (parse_args): Parse the new switch.
813 * ld.texinfo: Document new switch and default behaviour of
814 allowing undefined symbols in shared libraries.
816 2003-02-11 Dmitry Diky <diwil@mail.ru>
818 * scripttempl/elf32msp430.sc: Add new data anchors definitions.
819 * scripttempl/elf32msp430_3.sc: Likewise.
821 2003-02-11 Uwe Stieber <uwe@wwws.de>
823 * configure.tgt: Add support for kaOS as cross build target
826 2003-02-10 John Daivid Anglin <dave.anglin@nrc-cnrc.gc.ca>
828 * hppaelf.em (group_size): Change default back to 1.
830 2003-02-09 Alan Modra <amodra@bigpond.net.au>
832 * emultempl/ppc64elf.em: Add "no-tls-optimize" option and support code.
834 2003-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
836 * hppaelf.em (group_size): Change default to -1.
838 2003-02-07 Nick Clifton <nickc@redhat.com>
840 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Remove 'n' short
842 (PARSE_AND_LIST_LONGOPTS): Add duplicate entry for
843 no-pipeline-knowledge. This will prevent the getopt package from
844 thinking that there are any shorter abbreviations for
845 --no-pipeline-knowledge.
847 2003-02-07 Jakub Jelinek <jakub@redhat.com>
849 * genscripts.sh (LIB_PATH): Don't append LIBPATH_SUFFIX to paths
850 which already have it. Avoid duplicates.
852 2003-02-06 Jakub Jelinek <jakub@redhat.com>
854 * emulparams/elf64_s390.sh (LIBPATH_SUFFIX): Set to 64.
855 * emulparams/elf_x86_64.sh (LIBPATH_SUFFIX): Likewise.
856 * emulparams/elf64_sparc.sh (LIBPATH_SUFFIX): Set instead of suffix.
858 2003-02-05 Alan Modra <amodra@bigpond.net.au>
860 * emultempl/ppc64elf.em (ppc_before_allocation): Size sections then
861 call ppc64_elf_tls_optimize.
863 2003-02-03 Daniel Jacobowitz <drow@mvista.com>
865 * emultempl/elf32.em: Move gld${EMULATION_NAME}_add_sysroot
866 outside of GNU/Linux conditional.
868 2003-01-28 Ralf Habacker <ralf.habacker@freenet.de>
870 * deffilep.y (def_get_module): New function: locate an already
872 * deffile.h (def_get_module): New prototype.
873 * pe-dll.c (pe_implied_import_dll): Add code to prevent importing
874 a dll multiple times.
876 2003-01-23 Alan Modra <amodra@bigpond.net.au>
878 * emultempl/sh64elf.em: Include elf32-sh64.h.
879 (sh64_elf_${EMULATION_NAME}_before_allocation): Adjust for changed
880 sh64_elf_section_data.
881 (sh64_elf_${EMULATION_NAME}_after_allocation): Likewise.
883 2003-01-23 Wu Yongwei <adah@netstd.com>
885 * ld.texinfo: Remove an extra "i" in --dll-search-prefix.
886 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Move a
887 cross-80th-column-margin "an" to the next line.
889 2003-01-21 Nick Clifton <nickc@redhat.com>
891 * emulparams/tic3xcoff-onchip.sh: Rename to ...z
892 * emulparams/tic3xcoff_onchip.sh: ...this.
893 * Makefile.am (etic3xcoff_onchip.c): Fix name of generated C file.
894 * Makefile.in: Regenerate.
896 2003-01-21 Fabio Alemagna <falemagn@aros.org>
898 * configure.tgt: Handle i[3456]86-*-aros*
900 2003-01-19 Svein E. Seldal <Svein.Seldal@solidas.com>
902 * Makefile.am: Added etic3xcoff.o and etic4xcoff_onchip.o
903 * Makefile.in: Regenerate
904 * configure.tgt: Added extra target emulations
905 * emulparams/tic3xcoff.sh: Remove old settings
906 * emulparams/tic4xcoff.sh: Ditto
907 * emulparams/tic3xcoff-onchip.sh: Added new
908 * scripttempl/tic4xcoff.sc: Revise and combine both c3x and c4x
909 * scripttempl/tic3xcoff.sc: Remove
911 2003-01-17 Andreas Jaeger <aj@suse.de>
913 * emultempl/elf32.em (gld${EMULATION_NAME}_add_sysroot): Do not
916 2003-01-16 Alan Modra <amodra@bigpond.net.au>
918 * Makefile.in: Regenerate.
920 2002-01-14 Charles Wilson <cwilson@ece.gatech.edu>
922 * ld.texinfo (node WIN32): Some clarifications
923 and formatting fixups.
925 2003-01-09 Chris Demetriou <cgd@broadcom.com>
927 * ldmain.c (get_emulation): Sort -mipsNN checks in the usual
928 order, and handle (ignore) -mips32r2.
930 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
932 * ldmain.c (main): Make sure ld_sysroot is initialized.
934 2003-01-06 Daniel Jacobowitz <drow@mvista.com>
936 * Makefile.am (eelf32iq10.c): Fix tab/whitespace mixup.
938 * Makefile.am (ldmain.o): Add @TARGET_SYSTEM_ROOT_DEFINE@.
939 (GENSCRIPTS): Add @use_sysroot@.
940 * Makefile.in: Regenerated.
941 * configure.host: Move setting of NATIVE_LIB_DIRS to...
942 * configure.tgt: ... here. Use ${target} instead of ${host}
944 * configure.in: Add --with-sysroot.
945 * configure: Regenerated.
946 * genscripts.sh: Accept use_sysroot option. Set new variables
947 NATIVE and USE_LIBPATH. Prepend "=" to directory names if
948 $use_sysroot. Don't search $tool_lib if $use_sysroot.
949 * ldfile.c (ldfile_add_library_path): Handle leading '='.
950 * ldmain.c (TARGET_SYSTEM_ROOT): Define if not defined.
951 (ld_sysroot): New variable.
952 (main): Initialize ld_sysroot.
953 * ldmain.h (ld_sysroot): New extern.
954 * emultempl/elf32.em: Use NATIVE and USE_LIBPATH instead of
955 searching $EMULATION_LIBPATH.
956 (gld${EMULATION_NAME}_add_sysroot): New function.
957 (gld${EMULATION_NAME}_check_ld_so_conf): Use it. Honor ld_sysroot.
958 (gld${EMULATION_NAME}_after_open): Likewise. Only search
959 environment variables if $NATIVE.
960 * ld.texinfo (Options): Mention "=" prefix in the description of -L.
961 * NEWS: Mention --with-sysroot.
963 * emulparams/elf32bmipn32-defs.sh: Set NATIVE and LIBPATH_SUFFIX
964 instead of setting LIB_PATH.
965 * emulparams/elf32ppc.sh: Likewise.
966 * emulparams/elf64_s390.sh: Likewise.
967 * emulparams/elf64_sparc.sh: Likewise.
968 * emulparams/elf64ppc.sh: Likewise.
969 * emulparams/elf_x86_64.sh: Likewise.
971 * emulparams/elf64_aix.sh: Add "=" prefixes to LIB_PATH.
972 * emulparams/elf64hppa.sh: Add "=" prefixes to LIB_PATH.
974 2003-01-03 Charles Wilson <cwilson@ece.gatech.edu>
976 * pe-dll.c (autofilter_symbollist): Add cygwin_crt0.
978 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
980 * Makefile.am (ldmain.o): Pass BINDIR.
981 * Makefile.in: Regenerated.
982 * ldmain.c (set_scripts_dir): Use make_relative_prefix for the first
985 2003-01-02 Ben Elliston <bje@redhat.com>
987 * Makefile.am (ALL_EMULATIONS): Add eelf32iq2000.o.
988 (eelf32iq2000.c): New target.
989 * Makefile.in: Regenerate.
990 * configure.tgt: Handle iq2000-*-elf.
991 * emulparams/elf32iq10.sh: New file.
992 * emulparams/elf32iq2000.sh: New file.
993 * scripttempl/iq2000.sc: New file.
995 2003-01-02 Charles Wilson <cwilson@ece.gatech.edu>
997 * pe-dll.c (autofilter_symbollist): Add do_pseudo_reloc
998 and _pei386_runtime_relocator to the exclude list.
1000 2003-01-01 Kazu Hirata <kazu@cs.umass.edu>
1002 * ldfile.c: Fix comment typos.
1003 * ldlang.c: Likewise.
1005 * pe-dll.c: Likewise.
1007 2003-01-01 Daniel Jacobowitz <drow@mvista.com>
1009 Suggested by Manfred Hollstein <manfred.h@gmx.net>:
1010 * Makefile.am (ld.1): Depend on configdoc.texi
1012 * Makefile.in: Regenerated.
1014 2002-12-24 Dmitry Diky <diwil@mail.ru>
1016 * Makefile.am: Add msp430 target.
1017 * configure.tgt: Likewise.
1018 * Makefile.in: Regenerate.
1019 * emulparams/msp430x???.sh: New files. Linker script parameters
1020 for various msp430 configurations.
1021 * gen-doc.texi: Enable msp430 documenation.
1022 * ld.texinfo: Document msp430 sections.
1023 * scripttempl/elf32msp430.sc: New file. Linker script for msp430.
1024 * scripttempl/elf32msp430_3.sc: New file. Linker script for msp430.
1026 2002-12-30 Ralf Habacker <Ralf.Habacker@freenet.de>
1027 Charles Wilson <cwilson@ece.gatech.edu>
1029 * config.in (HAVE_REALPATH): New entry.
1030 (HAVE_SYS_STAT_H, HAVE_SYS_TYPES_H): Removed: obsolete.
1032 2002-12-30 Ralf Habacker <ralf.habacker@freenet.de>
1034 * ld.texinfo: New win32 topics: 'symbol aliasing' and 'export dll
1037 2002-12-23 Alan Modra <amodra@bigpond.net.au>
1039 * ldmain.c (main): Init "strip_discarded".
1040 * lexsup.c (OPTION_STRIP_DISCARDED): Define.
1041 (OPTION_NO_STRIP_DISCARDED): Define.
1042 (ld_options): Add "strip-discarded" and "no-strip-discarded".
1043 (parse_args): Handle them.
1045 2002-12-23 Nick Clifton <nickc@redhat.com>
1047 * ld.h (struct args_type): Add new field
1048 'accept_unknown_input_architecture'.
1049 * ldmain.c (main): Initialise 'accept_unknown_input_architecture'
1051 * ldlang.c (lang_check): Pass accept_unknown_input_architecture to
1052 bfd_arch_get_compatible.
1053 * ldfile.c (ldfile_try_open_bfd): Likewise.
1054 * lexsup.c (ld_options): Add new command line switch
1055 --accept-unknown-input-architecture and its inverse.
1056 (parse_args): Handle --accept-unknown-input-architecture.
1057 * ld.texinfo: Document new linker option.
1058 * NEWS: Mention new linker option.
1060 2002-12-20 Alan Modra <amodra@bigpond.net.au>
1062 * ldmain.c (main): Re-order link_info initialization. Init all
1065 2002-12-19 Charles Wilson <cwilson@ece.gatech.edu>
1067 * ld.texinfo: Clarify and extend the documentation
1068 in the Machine Dependent, WIN32 section.
1070 2002-12-18 Ralf Habacker <ralf.habacker@freenet.de>
1072 * ld.texinfo: Add win32 machine depending section.
1073 * gen-doc.texi: Enable win32 machine depending section.
1075 * configure.host: Add win32 library search path.
1077 2002-12-17 Ralf Habacker <ralf.habacker@freenet.de>
1079 * emultempl/pe.em (pe_find_data_imports): Don't search for data
1080 import when auto-import is disabled.
1082 2002-12-17 Danny Smith <dannysmith@users.sourceforge.net>
1084 * emultempl/pe.em (..._recognized_file): Use LD_PATHMAX+1 to
1085 account for trailing '\0'.
1087 2002-12-17 Nick Clifton <nickc@redhat.com>
1089 * emultempl/pe.em (longopts): Duplicate entry for --compact-implib
1090 so that it is not confused with -c.
1092 2002-12-13 Ralf Habacker <Ralf.Habacker@freenet.de>
1093 Charles Wilson <cwilson@ece.gatech.edu>
1095 * configure.in: Add check for realpath function.
1096 * configure: Regenerate.
1097 * config.in: Regenerate.
1098 * aclocal.m4: Regenerate.
1099 * deffile.h: Add .data field to def_file_import
1101 * pe-dll.c (pe_proces_import_defs): Use .data field of
1102 def_file_import structure to initialize flag_data field of
1103 def_file_export structure.
1104 (pe_implied_import_dll): New variables exp_funcbase and
1105 [data|bss]_[start|end]. Use DLL's internal name to set dll_name,
1106 not filename (which may be a symlink). Scan the sections and
1107 initialize [data|bss]_[start|end]. When scanning the export
1108 table, skip _nm_ symbols, and mark any symbols whose rva indicates
1109 that it is in the .bss or .data sections as data.
1110 * sysdep.h: Include limits.h and sys/param.h, and define
1111 LD_PATHMAX as appropriate. Also define REALPATH as realpath if it
1112 exists, NULL otherwise.
1113 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Call
1114 pe_process_import_defs before pe_find_data_imports, so that
1115 auto-import will check the virtual implib as well as "real"
1117 (gld_${EMULATION_NAME}_recognized_file): Use REALPATH to follow
1118 symlinks to their target; check that the target's extension is
1119 .dll before calling pe_implied_import_dll(), not the filename
1120 itself (which may be a symlink).
1122 2002-12-10 Alan Modra <amodra@bigpond.net.au>
1124 * emultempl/elf32.em (struct orphan_save): Add os_tail field.
1125 (gld${EMULATION_NAME}_place_orphan): Re-order output_section_statement
1128 2002-12-08 Alan Modra <amodra@bigpond.net.au>
1130 * ldlang.h: Formatting.
1132 2002-12-07 Alan Modra <amodra@bigpond.net.au>
1134 * ldlang.c (init_os): Ensure sections mentioned in load_base
1137 2002-12-05 Alan Modra <amodra@bigpond.net.au>
1139 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Set
1140 load_base for orphans that follow a section with load_base set.
1142 2002-12-01 H.J. Lu <hjl@gnu.org>
1144 * ld.texinfo: Remove the extra `;' in sample version script.
1146 2002-11-30 Alan Modra <amodra@bigpond.net.au>
1148 * configure.host: Correct dynamic-linker for powerpc64 hosts.
1150 * Makefile.am (eelf32ppcwindiss.c): Correct dependencies.
1151 * Makefile.in: Regenerate.
1153 * ld.h, ldcref.c, ldctor.c, ldctor.h, ldemul.c, ldemul.h, ldexp.c,
1154 ldexp.h, ldfile.c, ldfile.h, ldgram.y, ldlang.c, ldlang.h, ldmain.c,
1155 ldmain.h, ldmisc.c, ldwrite.c, lexsup.c, mri.c, pe-dll.c, pe-dll.h,
1156 emulparams/elf32b4300.sh, emultempl/aix.em, emultempl/armcoff.em,
1157 emultempl/armelf.em, emultempl/armelf_oabi.em, emultempl/beos.em,
1158 emultempl/elf32.em, emultempl/generic.em, emultempl/gld960.em,
1159 emultempl/gld960c.em, emultempl/hppaelf.em, emultempl/linux.em,
1160 emultempl/lnk960.em, emultempl/m68kcoff.em, emultempl/mipsecoff.em,
1161 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em, emultempl/mmo.em,
1162 emultempl/needrelax.em, emultempl/pe.em, emultempl/ppc64elf.em,
1163 emultempl/sh64elf.em, emultempl/sunos.em, emultempl/ticoff.em: Replace
1164 boolean with bfd_boolean, true with TRUE, false with FALSE. Simplify
1165 comparisons of bfd_boolean vars with TRUE/FALSE. Formatting.
1167 2002-11-27 David O'Brien <obrien@FreeBSD.org>
1169 * configure.host: Fix generic FreeBSD configuration entry.
1171 2002-11-27 H.J. Lu <hjl@gnu.org>
1173 * ld.texinfo: Add the missing `;' to sample version scripts.
1175 2002-11-20 Alan Modra <amodra@bigpond.net.au>
1177 * emulparams/elf64ppc.sh (SEGMENT_SIZE): Don't define.
1179 2002-11-14 Egor Duda <deo@logos-m.ru>
1181 * ldmain.c (main): Make runtime relocs disabled by default. Remove
1182 assignment which has no effect.
1183 * pe-dll.h (pe_create_import_fixup): Change prototype.
1184 * pe-dll.c (make_runtime_pseudo_reloc): New function.
1185 (pe_create_runtime_relocator_reference): Ditto.
1186 (pe_create_import_fixup): Handle relocations with non-zero addends.
1187 * emultempl/pe.em: Add options --enable-runtime-pseudo-reloc and
1188 --disable-runtime-pseudo-reloc.
1189 (make_import_fixup): Handle relocations with non-zero addends. Create
1190 an external reference to _pei386_runtime_relocator symbol if at least
1191 one pseudo reloc was created.
1192 * ld.texinfo: Document --enable-runtime-pseudo-reloc and
1193 --disable-runtime-pseudo-reloc options.
1195 2002-11-12 Earl Chew <earl_chew@agilent.com>
1197 * ldlang.c (lang_add_section): Discard debugging sections that have
1198 been marked SEC_EXCLUDE.
1200 2002-11-12 Nick Clifton <nickc@redhat.com>
1202 * configure.in (ALL_LINGUAS): Add da.
1203 * configure: Regenerate.
1204 * po/da.po: New Danish translation.
1206 2002-11-12 Alan Modra <amodra@bigpond.net.au>
1208 * emultempl/ppc64elf.em (ppc_before_allocation): New function.
1209 (LDEMUL_BEFORE_ALLOCATION): Define.
1210 (gld${EMULATION_NAME}_finish): Run discard_info for relocatable
1212 * emultemp/hppaelf.em ((gld${EMULATION_NAME}_finish): Likewise.
1214 2002-11-11 Christopher Faylor <cgf@redhat.com>
1216 * configure.tgt (LIB_PATH): Default to searching w32api directory under
1219 2002-11-11 Charles Wilson <cwilson@ece.gatech.edu>
1221 * pe-dll.c (autofilter_liblist): add libmingwex and libgcj to the list
1222 of restricted auto-export libs.
1224 2002-11-11 Charles Wilson <cwilson@ece.gatech.edu>
1226 * pe-dll.c (autofilter_liblist): Generalize library names to catch more
1227 creative library naming instances like, e.g., libstdc++-2.a.
1229 2002-11-06 Alexandre Oliva <aoliva@redhat.com>
1231 * emulparams/elf32btsmipn32.sh (TEXT_DYNAMIC): Define.
1232 * emulparams/elf64btsmip.sh (TEXT_DYNAMIC): Likewise.
1234 2002-11-07 Danny Smith <dannysmith@users.sourceforge.net>
1236 * deffilep.y (def_lex): Handle '@' as first character of an ID.
1237 * pe-dll.c (auto-export): Filter on "_imp_" prefix, not "_imp__".
1238 (make_one): Don't prefix decorated fastcall symbols with '_'.
1239 (pe_process_import_defs): Likewise.
1240 * emultempl/pe.em (pe_fixup_stdcalls): Don't fixup fastcall
1241 symbols to cdecl names or vise-versa.
1243 2002-10-13 Eric Kohl <ekohl@rz-online.de>
1245 * pe-dll.c (process_def_file): Handle fastcall symbols when
1246 generating undecorated aliases. Don't prefix decorated fastcall
1248 (fill_exported_offsets): Don't prefix decorated fastcall symbols
1251 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
1253 * emultempl/aix.em: Use include <> for generated headers.
1254 * emultempl/beos.em: Likewise.
1255 * emultempl/elf32.em: Likewise.
1256 * emultempl/pe.em: Likewise.
1257 * ldctor.c: Likewise.
1258 * ldexp.c: Likewise.
1259 * ldfile.c: Likewise.
1260 * ldlang.c: Likewise.
1261 * ldlex.c: Likewise.
1262 * ldlex.l: Likewise.
1263 * ldmain.c: Likewise.
1264 * ldmisc.c: Likewise.
1265 * ldwrite.c: Likewise.
1266 * lexsup.c: Likewise.
1268 * pe-dll.c: Likewise.
1270 2002-10-23 Jakub Jelinek <jakub@redhat.com>
1272 * emultempl/elf32.em (place_orphan): Don't put non-allocated .rel*
1273 sections into .rel{,a}.dyn.
1275 2002-10-23 Nick Clifton <nickc@redhat.com>
1277 * lexsup.c (OPTION_NO_OMAGIC): Define.
1278 (ld_options): Add "no-omagic" option.
1279 (parse_args): Parse --no-omagic.
1280 * ld.texinfo: Document --no-omagic.
1281 * NEWS: Mention new option.
1283 2002-10-21 Danny Smith <dannysmith@users.sourceforeg.net>
1285 * scripttempl/pe.sc (__RUNTIME_PSEUDO_RELOC_LIST__,
1286 __RUNTIME_PSEUDO_RELOC_LIST_END__): Add only when relocating.
1288 2002-10-22 Alexandre Oliva <aoliva@redhat.com>
1290 * emulparams/elf32bmipn32-defs.sh: Set ELFSIZE according to
1291 emulation name. Set LIB_PATH only for native tools, and
1292 search the ABI-specific versions of NATIVE_LIB_DIRS before the
1293 .../lib variants, not instead of them. Mostly copied from...
1294 * emulparams/elf32ppc.sh: ... here. Fixed typo.
1295 * emulparams/elf64bmip-defs.sh: Backed out.
1296 * emulparams/elf64bmip.sh: Import elf32bmipn32-defs.sh again.
1297 * emulparams/elf64btsmip.sh: Likewise.
1298 (DATA_ADDR, NONPAGED_TEXT_START_ADDR, SHLIB_TEXT_START_ADDR,
1299 TEXT_DYNAMIC): Removed.
1301 2002-10-17 Alexandre Oliva <aoliva@redhat.com>
1303 * emulparams/elf32bmipn32-defs.sh (LIB_PATH): Set to /usr/lib32.
1304 (GENERATE_SHLIB_SCRIPT): Set to yes.
1305 (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Moved to...
1306 * emulparams/elf32bmipn32.sh: here.
1307 (GENERATE_SHLIB_SCRIPT): Deleted as redundant.
1308 * emulparams/elf32btsmipn32.sh: Delete redundant unsets.
1309 * emulparams/elf64bmip-defs.sh: New file. Extend
1310 elf32bmipn32-defs.sh by overiding ELFSIZE and LIB_PATH.
1311 * emulparams/elf64bmip.sh: Bring in definitions from
1313 (ELFSIZE, GENERATE_SHLIB_SCRIPT, LIB_PATH): Delete redundant
1315 (WRITABLE_RODATA): Moved from elf32bmipn32-defs.sh.
1316 * emulparams/elf64btsmip.sh: Bring in definitions from
1318 (ELFSIZE, GENERATE_SHLIB_SCRIPT): Delete, redundant.
1319 (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Delete redundant unsets.
1321 2002-10-16 Jakub Jelinek <jakub@redhat.com>
1323 * configure.tgt (s390x-*-linux*): Add elf_s390 emulation.
1324 (s390-*-linux*): Add elf64_s390 emulation if want64.
1325 * emulparams/elf64_sparc.sh (LIB_PATH): Update to match 2002-05-22
1326 genscript.sh changes.
1327 * emulparams/elf_x86_64.sh (LIB_PATH): Likewise.
1328 * emulparams/elf64_s390.sh (LIB_PATH): Set up native 64 bit dirs.
1330 2002-10-15 Alan Modra <amodra@bigpond.net.au>
1332 * ldlang.c (load_symbols): Revert last change.
1334 2002-10-14 Alan Modra <amodra@bigpond.net.au>
1336 * ldlang.c (load_symbols): Don't call bfd_link_add_symbols when
1338 (lang_reasonable_defaults): Don't compare against false.
1339 (size_input_section): Likewise.
1340 (lang_size_sections_1): Likewise.
1341 (lang_do_assignments): Likewise.
1342 (lang_add_output): Likewise.
1344 * Makefile.am: Run "make dep-am".
1345 * Makefile.in: Regenerate.
1346 * ldver.c: #include "bfdver.h".
1348 2002-10-13 Stephane Carrez <stcarrez@nerim.fr>
1350 * scripttempl/elfm68hc11.sc: Use KEEP for .vectors, .installN,
1352 * scripttempl/elfm68hc12.sc: Likewise.
1354 2002-10-11 Alan Modra <amodra@bigpond.net.au>
1356 * pe-dll.c (make_import_fixup_mark): Avoid type-punned pointer.
1358 * ldgram.y (memory_spec): Provide empty action.
1359 (section <NAME>): Likewise.
1361 2002-10-10 Jakub Jelinek <jakub@redhat.com>
1363 * ldfile.c (ldfile_try_open_bfd): When searching skip linker scripts if
1364 they have OUTPUT_FORMAT not matching actual output format.
1365 * ldlang.c (lang_get_output_target): New function.
1366 (open_output): Use it.
1367 * ldlang.h (lang_get_output_target): New prototype.
1369 2002-10-10 Alan Modra <amodra@bigpond.net.au>
1371 * emultempl/elf32.em (output_rel_find): Prefer .rel script sections
1372 when orphan is .rel, .rela when orphan is .rela.
1373 (gld${EMULATION_NAME}_place_orphan): Handle combreloc .rel* case
1374 first. Remove outsecname var.
1376 2002-10-09 Richard Shann <richard.shann@superh.com>
1377 Stephen Clarke <stephen.clarke@superh.com>
1379 * Makefile.am: Add eshelf32_linux.o and
1380 eshlelf32_linux.o, new emulations for sh64 Linux.
1381 * Makefile.in: Regenerate.
1382 * configure.tgt: Add sh64eb-*-linux* and sh64-*-linux* emulations.
1383 * emulparams/shelf32_linux.sh: New file.
1384 * emulparams/shlelf32_linux.sh: New file.
1386 2002-10-08 H.J. Lu <hjl@gnu.org>
1388 * ldlang.c (lang_file_exist): Removed.
1389 (new_afile): Revert the last change.
1390 * ldlang.h (lang_file_exist): Removed.
1391 * lexsup.c (parse_args): Revert the last change.
1393 2002-10-07 Ralf Habacker <Ralf.Habacker@freenet.de>
1395 * pe-dll.cc (autofilter_symbolprefixlist): Don't re-export
1396 auto-import symbols.
1397 (make_one): Create _nm_<symbol> for data only.
1399 2002-10-05 Elias Athanasopoulos <eathan@otenet.gr>
1401 * ldlang.c (lang_file_exist): New function.
1402 (new_afile): Abort if the filename to be added matches the linker
1404 * ldlang.h: Add prototype for lang_file_exist.
1405 * lexsup.c (parse_args): Abort if the output filename matches
1406 one of the input filenames.
1408 2002-10-02 Alan Modra <amodra@bigpond.net.au>
1410 * emulparams/elf64ppc.sh (MAXPAGESIZE): Set to 0x10000.
1412 2002-09-30 Alan Modra <amodra@bigpond.net.au>
1414 * scripttempl/elfd30v.sc: Order reloc sections placing .plt last.
1415 * scripttempl/elfm68hc11.sc: Likewise.
1416 * scripttempl/elfm68hc12.sc: Likewise.
1418 * emultempl/elf32.em (output_rel_find): Always place orphan loadable
1419 reloc sections just before .rel.plt/.rela.plt.
1420 (gld${EMULATION_NAME}_place_orphan <.rel>): Remove combreloc code.
1421 Only put loadable reloc sections in hold_rel.
1423 2002-09-29 H.J. Lu <hjl@gnu.org>
1425 * emulparams/elf32ppc.sh (OTHER_GOT_RELOC_SECTIONS): New.
1427 2002-09-25 Daniel Jacobowitz <drow@mvista.com>
1429 From "Anita Kulkarni" <AnitaK@kpit.com>
1430 * scripttempl/sh.sc: Handle .eh_frame* and .gcc_exc*
1433 2002-09-25 Alan Modra <amodra@bigpond.net.au>
1435 * genscripts.sh (SEGMENT_SIZE): Use MAXPAGESIZE before
1437 * scripttempl/elf.sc (DATA_SEGMENT_ALIGN): Incorporate
1438 SEGMENT_SIZE alignment.
1439 * emulparams/elf64ppc.sh (DATA_ADDR): Delete.
1440 (SEGMENT_SIZE): Define.
1442 * ldexp.c (fold_unary): New. Split out from exp_fold_tree.
1443 (fold_binary): Correct abs - non-abs case.
1444 (fold_trinary): New. Split out from exp_fold_tree.
1446 2002-09-24 Alan Modra <amodra@bigpond.net.au>
1448 * emulparams/elf64ppc.sh (DATA_ADDR): Define.
1449 * emulparams/elf64_aix.sh (DATA_ADDR): Don't use a fixed address
1450 for start of .data, instead align up to 256M boundary.
1451 * scripttempl/aix.sc: Likewise.
1453 2002-09-22 Mark Elbrecht <snowball3@softhome.net>
1455 * scripttempl/i386go32.sc: Handle bss unique sections.
1457 2002-09-21 Alan Modra <amodra@bigpond.net.au>
1459 * ldmisc.c (vfinfo <%C,%D,%G>): Always output bfd, section and offset.
1461 2002-09-17 Stan Cox <scox@redhat.com>
1463 * emulparams/elf32bmipn32-defs.sh: New file.
1464 * emulparams/elf32bmipn32.sh: Use elf32bmipn32-defs.sh.
1465 * emulparams/elf32btsmipn32.sh: Likewise.
1466 * emulparams/elf64bmip.sh: Likewise.
1467 * emulparams/elf64btsmip.sh: Likewise.
1469 2002-09-16 Bruno Haible <bruno@clisp.org>
1471 * emulparams/elf_i386_fbsd.sh: Set OUTPUT_FORMAT to
1473 * emulparams/elf64alpha_fbsd.sh: Set OUTPUT_FORMAT to
1474 elf64-alpha-freebsd.
1476 2002-09-11 Nick Clifton <nickc@redhat.com>
1478 * NEWS: New TI port supports both C4x and C3x series of DSPs.
1480 * po/tr.po: Updated Turkish translation.
1482 2002-09-06 Jeffrey A Law (law@redhat.com)
1484 * configure.tgt (h8300-*-hms*, h8500-*-hms*): Restore.
1486 2002-09-02 Nick Clifton <nickc@redhat.com>
1488 * scripttempl/v850.sc: Add EXTERN references to __ctbpm __gp and
1490 * emulparams/v850.sh (TEMPLATE_NAME): Define.
1492 2002-08-30 Nick Clifton <nickc@redhat.com>
1494 * scripttempl/elfd10v.sc (MEMORY): Remove UNIFIED, it is not
1495 used. Change INSN to start at 0x01000000 and extend for
1496 256K (ignoring holes). Start the STACK on a word aligned
1498 (.rodata): Start it at the READONLY_START_ADDR.
1500 2002-08-30 Alan Modra <amodra@bigpond.net.au>
1502 * emulparams/elf32ppc.sh (ARCH): Set to "powerpc:common".
1504 2002-08-28 Svein E. Seldal <Svein.Seldal@solidas.com>
1506 * Makefile.am: Add etic4xcoff.o in ALL_EMULATIONS list and
1507 added makefile targets for this file.
1508 * Makefile.in: Regenerate.
1509 * configure.tgt: Added tic4x-coff and c4x-coff emulations.
1510 * NEWS: Mention new port.
1512 2002-08-28 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
1514 * emulparams/tic3xcoff.sh: New file.
1515 * emulparams/tic4xcoff.sh: New file.
1516 * scripttempl/tic3xcoff.sc: New file.
1517 * scripttempl/tic4xcoff.sc: New file.
1519 2002-08-28 Alan Modra <amodra@bigpond.net.au>
1521 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Replace strtoll,
1522 strtoul and strtoull with bfd_scan_vma.
1523 (gld${EMULATION_NAME}_read_file): Likewise.
1525 2002-08-28 Alan Modra <amodra@bigpond.net.au>
1527 * configure.tgt: Remove h8[35]00-*-hms*. Add h8500-*-rtems*.
1529 2002-08-27 Egor Duda <deo@logos-m.ru>
1531 * scripttempl/pe.sc: Handle .rdata_runtime_pseudo_reloc sections.
1532 Add symbols for application to access them.
1534 2002-08-27 Nick Clifton <nickc@redhat.com>
1536 * emultempl/armelf.em: Revert this patch, it is not needed.
1538 2002-08-22 Adam Nemet <anemet@lnxw.com>
1540 2002-08-20 Dan Kegel <dank@kegel.com>
1542 * configure.in: added --with-lib-path argument to ld's configure
1544 * NEWS: Document new switch.
1545 * README: Mention new switch.
1546 * configure: Regenerate.
1547 * Makefile.in: Regenerate.
1549 Based on this patch:
1550 2001-04-25 Christopher Faylor <cgf@cygnus.com>
1552 * Makefile.in (LIB_PATH): Make configurable.
1553 (GENSCRIPTS): Set LIB_PATH in environment.
1554 * configure.in: Substitute LIB_PATH.
1556 2002-08-22 Adam Nemet <anemet@lnxw.com>
1558 * emultempl/armelf.em: Include elf-bfd.h and elf/arm.h.
1559 (arm_elf_finish): Set the last bit of DT_INIT and DT_FINI
1560 depending on the type of the function.
1561 (arm_elf_convert_thumb_symbol_to_address): New function.
1563 2002-08-22 Graeme Peterson <gp@qnx.com>
1565 * Makefile.am: Add esh{l}elf_nto.o files.
1566 * Makefile.in: Regenerate.
1567 * configure.tgt: Add support for sh-**-nto* targets.
1568 * emulparams/shelf_nto.sh: New file.
1569 * emulparams/shlelf_nto.sh: New file.
1571 2002-08-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
1573 * ldlang.c (offsetof): Define if not defined.
1575 2002-08-14 H.J. Lu <hjl@gnu.org>
1577 * configure.tgt: Always enable 64bit emulations for 32bit
1580 2002-08-13 Alan Modra <amodra@bigpond.net.au>
1582 * emulparams/elf32_dlx.sh (TARGET_PAGE_SIZE): Set to 1.
1583 (MAXPAGESIZE): Set to 1.
1585 * ld.h (ALIGN_N): Delete.
1586 * ldexp.h (align_n): Declare.
1587 * ldexp.c (align_n): New function.
1588 (fold_binary): Use align_n instead of ALIGN_N.
1589 (exp_fold_tree): Likewise.
1590 * ldlang.c (lang_size_sections_1): Likewise.
1591 (lang_one_common): Likewise.
1592 * ld.texinfo (ALIGN): Remove power of 2 restriction.
1594 2002-07-31 Graeme Peterson <gp@qnx.com>
1596 * configure.tgt: Add support for powerpc{le}-*-nto* targets.
1597 * Makefile.am: Add eelf32{l}ppcnto.o files.
1598 * Makefile.in: Regenerate.
1599 * emulparams/elf32lppcnto.sh: New file.
1600 * emulparams/elf32ppcnto.sh: New file.
1602 2002-08-07 H.J. Lu <hjl@gnu.org>
1604 * ld.texinfo: Document --no-undefined-version.
1606 * ldlang.c (lang_new_vers_pattern): Set the `symver' and
1607 `script.' fields to 0.
1609 * ldmain.c (main): Initialize the allow_undefined_version to
1612 * lexsup.c (OPTION_NO_UNDEFINED_VERSION): New.
1613 (ld_options): Add --no-undefined-version.
1614 (parse_args): Support OPTION_NO_UNDEFINED_VERSION.
1616 2002-08-07 Nick Clifton <nickc@redhat.com>
1618 * emultempl/armelf.em (arm_elf_before_allocation): Only search for
1619 an interworking bfd if there are input bfds. (107501)
1621 2002-08-06 Alan Modra <amodra@bigpond.net.au>
1623 * emultempl/aix.em (gld*_before_parse): Set default arch. Reverts
1626 2002-08-01 Nick Clifton <nickc@redhat.com>
1628 * emulparams/armelf.sh: Revert previous delta.
1629 * scripttempl/elf.sc: Revert previous delta.
1631 2002-07-31 H.J. Lu <hjl@gnu.org>
1633 * configure.tgt (powerpc*-*-linux*): Enable elf64ppc for
1634 --enable-64-bit-bfd.
1636 2002-07-31 H.J. Lu <hjl@gnu.org>
1638 * configure.tgt: Enable x86-64 emulation for Linux/i386 if
1639 64bit BFD is selected.
1641 2002-07-31 H.J. Lu <hjl@gnu.org>
1643 * configure.tgt: Enable 64bit emulations for 32bit Linux/mips
1644 if 64bit BFD is selected.
1646 2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
1648 * emultempl/netbsd.em (LDEMUL_BEFORE_PARSE): New file to custom set
1649 link_info.common_skip_ar_aymbols.
1650 * emulparams/ns32knbsd.sh (EXTRA_EM_FILE): Refer to extra file.
1652 * ldmain.c (main): Initialize new field
1653 link_info.common_skip_ar_aymbols.
1655 2002-07-31 Adam Nemet <anemet@lnxw.com>
1657 * emulparams/armelf.sh (OTHER_PLT_SECTIONS): New variable. Set it
1659 * scripttempl/elf.sc: Comment it. Use the same way as ${PLT} is
1662 2002-07-31 Nick Clifton <nickc@redhat.com>
1664 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
1665 of the PDP-11 and 2.11BSD a.out support.
1667 2002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1669 * Makefile.am (eelf32btsmipn32.o, eelf32ltsmipn32.o): New emulations
1670 for n32 ABI support.
1671 * Makefile.in: Regenerate.
1672 * configure.tgt (mips64*el-*-linux-gnu*,mips64*-*-linux-gnu*): Add
1673 n32 ABI emulations for these 64 bit targets.
1674 * emulparams/elf32bmipn32.sh: Expand comment.
1675 * emulparams/elf32btsmipn32.sh: New file, for traditional big endian
1677 * emulparams/elf32ltsmipn32.sh: Likewise for little endian.
1679 2002-07-30 Graeme Peterson <gp@qnx.com>
1681 * configure.tgt: Add support for arm-*-nto target.
1682 * Makefile.am: Add earmnto.o file.
1683 * Makefile.in: Regenerate.
1684 * NEWS: Mention port of ARM support to QNX.
1685 * emulparams/armnto.sh: New file.
1687 2002-07-30 Jakub Jelinek <jakub@redhat.com>
1689 * ldlang.c (lang_add_section): Don't turn .tbss into normal sections
1690 for relocatable link.
1691 (lang_size_sections_1): Don't make .tbss zero size for relocatable
1694 2002-07-26 Bernd Schmidt <bernds@redhat.com>
1696 * emulparams/elf32frv.sh (OTHER_RELOCATING_SECTIONS): Delete.
1699 2002-07-25 Nick Clifton <nickc@redhat.com>
1701 * po/sv.po: Updated Swedish translation.
1702 * po/es.po: Updated Spanish translation.
1703 * po/fr.po: Updated French translation.
1705 2002-07-24 Nick Clifton <nickc@redhat.com>
1707 * po/sv.po: Updated Swedish translation.
1708 * po/es.po: Updated Spanish translation.
1710 2002-07-23 Nick Clifton <nickc@redhat.com>
1712 * po/fr.po: Updated French translation.
1714 2002-07-20 Alan Modra <amodra@bigpond.net.au>
1716 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
1717 bomb on /DISCARD/ input section.
1718 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1719 * emultempl/mmo.em (mmo_place_orphan): Likewise.
1721 2002-07-19 Hans-Peter Nilsson <hp@bitrange.com>
1723 * emultempl/mmo.em (mmo_place_orphan): Handle case of no .text
1726 2002-07-16 Denis Chertykov <denisc@overta.ru>
1727 Nick Clifton <nickc@redhat.com>
1728 Frank Ch. Eigler <fche@redhat.com>
1729 John Healy <jhealy@redhat.com>
1731 * configure.tgt: Add support for ip2k-elf.
1732 * Makefile.am: Add support for ip2k-elf.
1733 * Makefile.in: Regenerate.
1734 * emulparams/elf32ip2k.sh: New file.
1735 * scripttempl/ip2k.sc: New file
1736 * NEWS: Mention support for new port.
1738 2002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
1740 * NEWS: Add 'Changes in 2.13'.
1742 2002-07-14 H.J. Lu <hjl@gnu.org>
1744 * ld.texinfo: Document a .symver takes precedence over a
1747 2002-07-12 Alan Modra <amodra@bigpond.net.au>
1749 * emulparams/elf64ppc.sh (ARCH): Set to powerpc:common64.
1750 (COMMONPAGESIZE): Define.
1752 2002-07-09 Alan Modra <amodra@bigpond.net.au>
1754 * emulparams/hppanbsd.sh: Remark that hppaobsd.sh references this file.
1756 2002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
1758 * configure.tgt: Add support for alpha-*-openbsd*, hppa-*-openbsd*,
1759 powerpc-*-openbsd* and sparc64-*-openbsd*.
1760 * Makefile.am (ALL_EMULATIONS): Add ehppaobsd.o.
1761 * Makefile.in: Regenerate.
1762 * emulparams/hppaobsd.sh: New file.
1764 2002-07-05 Alan Modra <amodra@bigpond.net.au>
1766 * ldlang.c (print_wild_statement): Fix output formatting.
1768 2002-07-04 Alan Modra <amodra@bigpond.net.au>
1770 * ldlang.c: (strip_excluded_output_sections): New function.
1771 (lang_process): Call it.
1772 (lang_size_sections_1): Revert 2002-06-10 change.
1774 2002-07-03 Alan Modra <amodra@bigpond.net.au>
1776 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
1778 * Makefile.in: Regenerate.
1780 2002-07-02 Alan Modra <amodra@bigpond.net.au>
1782 * ldfile.c (ldfile_try_open_bfd): Formatting.
1784 * ldmisc.c (demangle): Move so that it doesn't intrude between
1785 vfinfo comment and body. Add comment.
1787 2002-07-01 John David Anglin <dave@hiauly1.hia.nrc.ca>
1789 * emulparams/vax.sh (OUTPUT_FORMAT): Use a.out-vax-bsd format.
1791 2002-07-01 Alan Modra <amodra@bigpond.net.au>
1793 * ldlang.h (entry_sym): Make it a struct bfd_sym_chain.
1794 * ldlang.c (entry_sym): Likewise.
1795 (ldlang_undef_chain_list_type): Likewise.
1796 (lang_finish): Adjust references to entry_symbol.
1797 (lang_add_entry): Likewise.
1798 (lang_gc_sections): Use link_info.gc_sym_list.
1799 (lang_process): Set link_info.gc_sym_list.
1800 * ldlex.l: Include bfdlink.h.
1801 * ldmain.c (main): Init link_info.gc_sym_list.
1802 * emultempl/aix.em: Adjust references to entry_symbol.
1803 * emultempl/armcoff.em: Likewise.
1804 * emultempl/armelf.em: Likewise.
1805 * emultempl/pe.em: Likewise.
1806 * emultempl/ppc64elf.em (ppc_after_open): New function.
1807 (LDEMUL_AFTER_OPEN): Define.
1808 * emulparams/elf64ppc.sh: KEEP .opd sections.
1810 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
1812 * emulparams/m68hc12elfb.sh (EEPROM_MEMORY): Define.
1813 * emulparams/m68hc11elfb.sh (EEPROM_MEMORY): Define.
1814 * emulparams/m68hc11elf.sh (EEPROM_SIZE): Define.
1815 (EEPROM_START_ADDR): Define.
1816 (EEPROM_MEMORY): Define.
1817 * emulparams/m68hc12elf.sh: Likewise.
1818 * scripttempl/elfm68hc11.sc: Handle .eeprom section; handle .softregs
1819 section to put soft registers in .page0.
1820 * scripttempl/elfm68hc12.sc: Likewise but put soft registers in bss.
1822 2002-06-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
1824 * emulparams/hppa64linux.sh (OTHER_GOT_RELOC_SECTIONS): Add rela.opd
1825 section. Add ${RELOCATING-0}.
1827 2002-06-26 J"orn Rennecke <joern.rennecke@superh.com>
1829 * emulparams/shelf.sh (STACK_ADDR): Don't define.
1830 (OTHER_SECTIONS): Define.
1831 * emulparams/shelf_nbsd.sh ((STACK_ADDR): Don't undef.
1832 (OTHER_SECTIONS): Undef.
1834 2002-06-26 Alan Modra <amodra@bigpond.net.au>
1836 * ldmisc.c (demangle): Restore dots stripped from sym name.
1838 2002-06-25 H.J. Lu <hjl@gnu.org>
1840 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
1841 * Makefile.in: Regenerated.
1843 2002-06-20 Nick Clifton <nickc@cambridge.redhat.com>
1845 * ld.texinfo (Bug Reporting): Update text to suggest a limit on
1846 the size of attached object files, to allow make the object files
1847 available via FTP or HTTP and to mention that the mail will be
1848 sent to a mailing list.
1850 2002-06-20 Nathanael Nerode <neroden@twcny.rr.com>
1852 * configure.host (romp): Drop support.
1854 2002-06-18 Chris Demetriou <cgd@broadcom.com>
1856 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Check
1857 section flags for SEC_DATA, rather than for SEC_CODE being unset.
1859 2002-06-18 Chris Demetriou <cgd@broadcom.com>
1861 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Fix
1862 format specifier used to print BFD name.
1864 2002-06-18 Dave Brolley <brolley@redhat.com>
1866 From Catherine Moore, Michael Meissner, Jim Blandy:
1867 * emulparams/elf32frv.sh: New file.
1868 * configure.tgt: Support frv-*-*.
1869 * Makefile.am (ALL_EMULATIONS): Add eelf32frv.o.
1870 (eelf32frv.c): New target.
1872 2002-06-17 Tom Rix <trix@redhat.com>
1874 * emultempl/elf32.em: gld*_get_script: Check for
1875 GENERATE_COMBRELOC_SCRIPT.
1876 * scripttempl/elfd10v.sc : Fix STACK and INSN.
1877 * emulparams/d10velf.sh : Fix TEXT_START_ADDR.
1879 2002-06-13 J"orn Rennecke <joern.rennecke@superh.com>
1881 * configure.tgt: Add support for sh[1234]*le*-*-elf, sh[1234]*-*-elf.
1883 2002-06-12 H.J. Lu <hjl@gnu.org>
1885 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Return
1886 false if xvec doesn't match.
1888 2002-06-10 Richard Sandiford <rsandifo@redhat.com>
1890 * ldlang.c (lang_size_sections_1): Skip removed output sections.
1892 2002-06-08 Alan Modra <amodra@bigpond.net.au>
1894 * ldexp.c: Replace CONST with const.
1895 * ldfile.c: Likewise.
1896 * ldfile.h: Likewise.
1897 * ldlex.l: Likewise.
1899 * pe-dll.h: Likewise.
1901 2002-06-07 Alan Modra <amodra@bigpond.net.au>
1903 * emultempl/ppc64elf.em (new_vers_pattern): Warning fix.
1905 2002-06-07 Charles Wilson <cwilson@ece.gatech.edu>
1907 * ldmain.c (main): initialize link_info.pei386_auto_import
1908 to -1 == implicit enable.
1909 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
1910 initialize link_info.pei386_auto_import to -1 == implicit
1912 (gld_${EMULATION_NAME}_parse_args): When processing
1913 --enable-auto-import and --disable-auto-import options, use
1914 '1' and '0' instead of 'true' and 'false'.
1915 (pe_find_data_imports): Only issue message about auto-import
1916 when the feature is implicitly enabled. Downgrade message to
1917 informational instead of warning.
1919 2002-06-07 Alan Modra <amodra@bigpond.net.au>
1921 * scripttempl/elf.sc (.tbss): Fix mismatched parentheses/braces.
1923 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
1925 * configure.host (hppa*64*-*-hpux11*): Define NATIVE_LIB_DIRS,
1926 HOSTING_CRT0 and HOSTING_LIBS.
1928 2002-06-05 J"orn Rennecke <joern.rennecke@superh.com>
1930 * configure.tgt (shle*-*-elf*, sh64le-*-elf*): New configurations.
1932 2002-06-05 Jason Thorpe <thorpej@wasabisystems.com>
1934 * emulparams/ns32knbsd.sh (EXECUTABLE_SYMBOLS): Set _DYNAMIC to 0.
1935 (NONPAGED_TEXT_START_ADDR): Set to 0x1000.
1937 2002-06-05 Alan Modra <amodra@bigpond.net.au>
1939 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Place
1940 SEC_EXCLUDE sections when doing a relocatable link.
1942 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
1944 * Makefile.am (ALL_EMULATIONS): Add eshelf32_nbsd.o,
1945 eshlelf32_nbsd.o, eshelf64_nbsd.o, and eshlelf64_nbsd.o.
1946 (eshelf32_nbsd.c, eshelf64_nbsd.c, eshlelf32_nbsd.c)
1947 (eshlelf64_nbsd.c): New rules.
1948 * Makefile.in: Regenerate.
1949 * configure.tgt (sh5le-*-netbsd*, sh5-*-netbsd*, sh64le-*-netbsd*)
1950 (sh64-*-netbsd*): New targets.
1951 * emulparams/shelf32_nbsd.sh: New file.
1952 * emulparams/shelf64_nbsd.sh: New file.
1953 * emulparams/shlelf32_nbsd.sh: New file.
1954 * emulparams/shlelf64_nbsd.sh: New file.
1956 2002-06-04 Alan Modra <amodra@bigpond.net.au>
1958 * ldlang.c (section_already_linked): Call bfd_discard_group. Typo fix.
1960 2002-06-02 Marek Michalkiewicz <marekm@amelek.gda.pl>
1962 * scripttempl/avr.sc: Changes to support current GCC and avr-libc,
1963 C++ constructors/destructors, loosely based on the m68hc11 port.
1965 2002-05-31 Alan Modra <amodra@bigpond.net.au>
1967 * Makefile.in: Regenerate.
1968 * aclocal.m4: Regenerate.
1969 * config.in: Regenerate.
1970 * configure: Regenerate.
1972 2002-05-31 Graeme Peterson <gp@qnx.com>
1974 * Makefile.am (ALL_EMULATIONS): Add ei386nto.o.
1975 (ei386nto.c): Add rule.
1976 * Makefile.in: Regenerate.
1977 * configure.tgt: Add i[3456]86-*-nto-qnx*.
1978 * emulparams/i386nto.sh: New file.
1980 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
1982 * NEWS: Add entry for VAX ELF support.
1984 2002-05-29 Matt Thomas <matt@3am-software.com>
1985 Jason Thorpe <thorpej@wasabisystems.com>
1987 * Makefile.am (ALL_EMULATIONS): Add eelf32vax.o and evaxnbsd.o.
1989 (evaxnbsd.c): New rules.
1990 * Makefile.in: Regenerate.
1991 * configure.tgt (vax-*-netbsdelf*)
1993 (vax-*-netbsd*): New targets.
1994 * emulparams/elf32vax.sh: New file.
1995 * emulparams/vaxnbsd.sh: New file.
1997 2002-05-29 Adam Nemet <anemet@lnxw.com>
1999 * emultempl/armelf.em (arm_elf_after_open): Don't determine
2000 bfd_for_interwork, instead add glue sections to each input bfd.
2001 (bfd_for_interwork): New global.
2002 (arm_elf_set_bfd_for_interworking): New function.
2003 (arm_elf_before_allocation): Use it.
2005 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
2007 * Makefile.am: Add DLX make target.
2008 * configure.tgt: Add DLX configuration.
2009 * Makefile.in: Regenerate.
2010 * emulparams/elf32_dlx.sh: New file
2011 * scripttempl/dlx.sc: New file
2013 2002-05-27 Per Lundberg <per@caleb.dnsalias.org>
2015 * Makefile.am (eelf_i386_chaos): Use elf_chaos.sc script.
2016 * Makefile.in: Regenerate.
2017 * emulparams/elf_chaos.sh: Use elf_chaos script.
2018 * scripttempl/elf_chaos.sc: New file.
2020 2002-05-27 Richard Sandiford <rsandifo@redhat.com>
2022 * ldlang.c (lang_size_sections_1): Move check for conflicting load
2023 addresses and regions from here...
2024 (lang_get_regions): ...to this new function.
2025 (lang_leave_output_section_statement): Use lang_get_regions.
2026 (lang_leave_overlay): Likewise.
2027 * mri.c (mri_draw_tree): Pass null as last argument to
2028 lang_leave_output_section_statement.
2029 * emultempl/elf32.em (gld*_place_orphan): Likewise.
2030 * emultempl/mmo.em (mmo_place_orphan): Likewise.
2031 * emultempl/pe.em (gld*_place_orphan): Likewise.
2033 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
2035 * configure.tgt: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
2037 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
2039 * ldemul.c: Fix formatting.
2040 * ldfile.c: Likewise.
2041 * pe-dll.c: Likewise.
2042 * pe-dll.h: Likewise.
2044 2002-05-25 Alan Modra <amodra@bigpond.net.au>
2046 * ldlang.c (lang_process): Formatting, grammar.
2048 * ldlex.l: Use #include "" instead of <> for local header files.
2050 2002-05-24 TAMURA Kent <kent@netbsd.org>
2052 * configure.tgt: Add a target for i386-netbsdpe.
2054 2002-05-23 Jakub Jelinek <jakub@redhat.com>
2056 * scripttempl/elf.sc: Add .rel{,a}.t{bss,data}, .tdata and .tbss.
2057 * ldlang.c (lang_add_section): Set SEC_THREAD_LOCAL for
2058 output section if necessary. Handle .tbss.
2059 (lang_size_sections): Clear _raw_size for .tbss section
2060 (it allocates space in PT_TLS segment only).
2061 * ldwrite.c (build_link_order): Build link order for .tbss too.
2063 2002-05-23 Alan Modra <amodra@bigpond.net.au>
2065 * configure.in: Correct spelling of AC_PREREQ.
2067 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
2069 * pe-dll.c (autofilter_liblist): Add more system libs excluded by
2071 (autofilter_objlist): Add crtbegin.o, crtend.o.
2073 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
2075 * emultempl/pe.em (OPTION_EXCLUDE_LIBS): Add new define.
2076 (longopts): Add new option --exclude-libs.
2077 (gld_${EMULATION_NAME}_list_options): Give quick help about it.
2078 (gld_${EMULATION_NAME}_parse_args): Use it.
2079 * pe-dll.h (pe_dll_add_excludes): Add second param to prototype.
2080 * pe-dll.c (exclude_list_struct): Add field type to distinguish symbols
2081 from whole archives.
2082 (pe_dll_add_excludes): Set excludes->type.
2083 (auto_export): Add new variable libname and set to archive basename if
2084 abfd. Use it when filtering default and user-specified libarary
2085 excludes. Let string "ALL" mean all libs when filtering user-specified
2087 * ld.texinfo: Document --exclude-libs.
2089 2002-05-22 Alan Modra <amodra@bigpond.net.au>
2091 * ldemul.c (ldemul_new_vers_pattern): New function.
2092 * ldemul.h (ldemul_new_vers_pattern): Declare.
2093 (struct ld_emulation_xfer_struct): Add new_vers_pattern.
2094 * ldlang.c (lang_new_vers_pattern): Call ldemul_new_vers_pattern.
2095 * emultempl/ppc64elf.em (dotsyms): New static var.
2096 (gld${EMULATION_NAME}_new_vers_pattern): New function.
2097 (LDEMUL_NEW_VERS_PATTERN): Define.
2098 (PARSE_AND_LIST_PROLOGUE): Add OPTION_DOTSYMS, OPTION_NO_DOTSYMS.
2099 (PARSE_AND_LIST_LONGOPTS): Likewise.
2100 (PARSE_AND_LIST_ARGS_CASES): Handle them.
2101 * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Update
2103 * emultempl/armcoff.em: Likewise.
2104 * emultempl/armelf_oabi.em: Likewise.
2105 * emultempl/beos.em: Likewise.
2106 * emultempl/elf32.em: Likewise.
2107 * emultempl/generic.em: Likewise.
2108 * emultempl/gld960.em: Likewise.
2109 * emultempl/gld960c.em: Likewise.
2110 * emultempl/linux.em: Likewise.
2111 * emultempl/lnk960.em: Likewise.
2112 * emultempl/m68kcoff.em: Likewise.
2113 * emultempl/mipsecoff.em: Likewise.
2114 * emultempl/pe.em: Likewise.
2115 * emultempl/sunos.em: Likewise.
2116 * emultempl/ticoff.em: Likewise.
2117 * emultempl/vanilla.em: Likewise.
2119 2002-05-22 Alan Modra <amodra@bigpond.net.au>
2121 * genscripts.sh (LIB_PATH): For native targets, concatenate $libdir
2122 and $NATIVE_LIB_DIRS. Add $tool_lib before other libs.
2123 (LIB_SEARCH_DIRS): No need to use "tr".
2124 (COMPILE_IN): Only set for native targets.
2125 * configure.host (NATIVE_LIB_DIRS): Specify all native search dirs
2126 here, rather than adding lib:/usr/lib:/usr/local/lib in genscripts.sh.
2127 * configure.tgt (powerpc*): Set tdir_*.
2128 (powerpcle*): Correct targ_extra_emuls.
2129 * emulparams/elf32ppc.sh (LIB_PATH): Set up native 64 bit dirs.
2130 * emulparams/elf64ppc.sh (LIB_PATH): Likewise.
2132 2002-05-22 Alan Modra <amodra@bigpond.net.au>
2134 * emultempl/pe.em (set_pe_subsystem): Don't set "cmdline" when
2135 calling lang_add_entry.
2137 2002-05-21 H.J. Lu (hjl@gnu.org)
2139 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_args): Handle
2141 (gld${EMULATION_NAME}_list_options): Add "-z muldefs".
2143 * ld.texinfo: Updated for --allow-multiple-definition and
2146 * ldmain.c (main): Initialize the allow_multiple_definition
2149 * lexsup.c (OPTION_ALLOW_MULTIPLE_DEFINITION): New.
2150 (ld_options): Add --allow-multiple-definition.
2151 (parse_args): Support OPTION_ALLOW_MULTIPLE_DEFINITION.
2153 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
2155 * Makefile.am (ALL_EMULATIONS): Add earmelfb_nbsd.o.
2156 (earmelfb_nbsd.c): New rule.
2157 * Makefile.in: Regenerate.
2158 * configure.tgt (armeb-*-netbsdelf*): New target.
2159 (arm-*-netbsdelf*): Add armelfb_nbsd to targ_extra_emuls.
2160 (arm-*-netbsd*): Likewise.
2161 * emulparams/armelfb_nbsd.sh: New file.
2163 2002-05-18 Tom Rix <trix@redhat.com>
2165 * emultempl/aix.em (gld*_parse_args): Add -bnortl and -bnortllib
2168 2002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
2170 * Makefile.am: Add new emulations avr1, avr2, avr3, avr4, avr5.
2171 * Makefile.in: Regenerate.
2172 * configure.tgt (avr-*-*): Add avr[1-5] to targ_extra_emuls.
2174 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
2176 * emulparams/avr1.sh: New file.
2177 * emulparams/avr2.sh: New file.
2178 * emulparams/avr3.sh: New file.
2179 * emulparams/avr4.sh: New file.
2180 * emulparams/avr5.sh: New file.
2181 * scripttempl/avr.sc: New file.
2183 2002-05-15 Alan Modra <amodra@bigpond.net.au>
2185 * ldlang.c (section_already_linked): Call bfd_link_just_syms.
2186 (lang_place_orphans): Abort if just_syms_flag.
2188 2002-05-10 Tom Rix <trix@redhat.com>
2190 * emultempl/aix.em: (gld*_set_output_arch): New function. Use
2191 architecture and machine information in the output bfd.
2192 (gld*_before_parse): Remove old arch and machine code.
2193 (choose_target): Rename to gld*_choose_target.
2194 (rtld): Change type to int.
2195 * ldfile.c (ldfile_try_open_bfd): Disable compatiblity check for
2196 objects in XCOFF archives.
2197 * ldfile.h: Update copyright date.
2199 2002-05-10 Jakub Jelinek <jakub@redhat.com>
2201 * ldmain.c (main): Enable -z combreloc by default.
2203 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
2205 * Makefile.am: Honour DESTDIR.
2206 * Makefile.in: Regenerate.
2208 2002-05-07 Richard Sandiford <rsandifo@redhat.com>
2210 * ldlang.h (lang_output_section_statement_type): Add update_dot_tree.
2211 (lang_enter_overlay): Remove the last two parameters.
2212 (lang_leave_overlay): Take them here instead.
2213 * ldgram.y (memspec_at_opt): Set $$ to null if no region is given.
2214 (section): Pass LMA and crossref flag to lang_leave_overlay rather
2215 than lang_enter_overlay.
2216 * ldlang.c (lang_memory_region_lookup): Return null for null names.
2217 (lang_output_section_statement_lookup): Initialize update_dot_tree.
2218 (lang_size_sections_1): Evaluate it.
2219 (lang_leave_output_section_statement): Rework LMA lookup.
2220 (overlay_lma, overlay_nocrossrefs): Remove.
2221 (lang_enter_overlay): Remove LMA and crossref arguments.
2222 (lang_enter_overlay_section): Don't set the LMA here.
2223 (lang_leave_overlay): Take LMA and crossref arguments. Move the '.'
2224 assignment to the last section's update_dot_tree. Unconditionally
2225 use the load and run-time regions specified in the OVERLAY statement.
2226 Likewise the first section's LMA. Only set the other sections' LMAs
2227 when no load region is given.
2229 2002-05-06 Nick Clifton <nickc@redhat.com>
2231 * po/sv.po: New translation.
2233 2002-05-04 Alan Modra <amodra@bigpond.net.au>
2235 * emultempl/hppaelf.em (build_section_lists): New function.
2236 (gld${EMULATION_NAME}_finish): Call elf32_hppa_setup_section_lists
2237 and build_section_lists.
2239 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
2241 * ld.h: Fix formatting.
2242 * ldexp.c: Likewise.
2243 * ldfile.c: Likewise.
2244 * ldlang.c: Likewise.
2245 * ldmain.c: Likewise.
2246 * lexsup.c: Likewise.
2247 * pe-dll.c: Likewise.
2249 2002-05-02 Alan Modra <amodra@bigpond.net.au>
2251 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
2252 Adjust for ppc64_elf_set_toc change. #include libbfd.h.
2253 (build_section_lists): Do output_section tests here.
2255 2002-04-30 Tom Rix <trix@redhat.com>
2257 * emultempl/aix.em : (gld*_parse_arge): Formatting changes.
2259 2002-05-01 Alan Modra <amodra@bigpond.net.au>
2261 Long branch stubs, multiple stub sections.
2262 * emultempl/ppc64elf.em: Include ldctor.h.
2263 (stub_file): New var.
2264 (group_size): New var.
2265 (ppc_create_output_section_statements): New function.
2266 (struct hook_stub_info): New.
2267 (hook_in_stub): New function.
2268 (ppc_add_stub_section): New function.
2269 (ppc_layout_sections_again): New function.
2270 (build_section_lists): New function.
2271 (gld${EMULATION_NAME}_finish): Rewrite.
2272 (real_func): New var.
2273 (ppc_for_each_input_file_wrapper): New function.
2274 (ppc_lang_for_each_input_file): New function.
2275 (lang_for_each_input_file): Define.
2276 (PARSE_AND_LIST_PROLOGUE): Define.
2277 (PARSE_AND_LIST_LONGOPTS): Define.
2278 (PARSE_AND_LIST_OPTIONS): Define.
2279 (PARSE_AND_LIST_ARGS_CASES): Define.
2280 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
2282 2002-04-30 Tom Rix <trix@redhat.com>
2284 * emultempl/aix.em (gld*_parse_arge, gld*_before_allocation): Add
2285 -blibpath, -bnolibpath support.
2287 2002-04-30 Mark Mitchell <mark@codesourcery.com>
2289 * Makefile.am (ALL_EMULATIONS): Add elf32ppcwindiss.o.
2290 (eelf32ppcwindiss.c): New target.
2291 * Makefile.in: Regenerated.
2292 * configure.tgt: Add support for powerpc-*-windiss.
2293 * emulparams/elf32ppcwindiss.sh: New file.
2295 2002-04-30 Richard Sandiford <rsandifo@redhat.com>
2297 * ldlang.c (print_assignment): Update print_dot for assignments to ".".
2298 * ldexp.c (exp_print_token): Add "infix_p" argument.
2299 (exp_print_tree): Update accordingly.
2301 2002-04-28 Alan Modra <amodra@bigpond.net.au>
2303 * Makefile.am (mpw): New maintainer mode rule to make mpw-*.c files.
2304 * Makefile.in: Regenerate.
2305 * mpw-elfmips.c: Delete.
2306 * mpw-eppcmac.c: Delete.
2307 * mpw-esh.c: Delete.
2308 * mpw-idtmips.c: Delete.
2310 2002-04-17 J"orn Rennecke <joern.rennecke@superh.com>
2312 * emulparams/shelf32.sh (MACHINE): Now sh5.
2314 2002-04-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2316 * ldgram.y: Fix syntax warning.
2318 2002-04-11 Nick Clifton <nickc@cambridge.redhat.com>
2320 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Add 'n' in order
2321 to prevent "-n" from being taken as an abbreviation for
2322 "--no-pipeline-knowledge".
2324 2002-04-08 Alan Modra <amodra@bigpond.net.au>
2326 * ldlang.c (lang_size_sections_1): Don't complain about
2327 SEC_NEVER_LOAD sections having no memory region specified.
2329 * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.
2331 2002-04-07 matthew green <mrg@redhat.com>
2333 * configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
2335 2002-04-04 Alan Modra <amodra@bigpond.net.au>
2337 * dep-in.sed: Cope with absolute paths.
2338 * Makefile.am (dep.sed): Subst TOPDIR and BFDDIR.
2340 * Makefile.in: Regenerate.
2342 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2344 * emulparams/elf64btsmip.sh: n64 replaces .reginfo with .MIPS.options.
2346 2002-04-03 Jakub Jelinek <jakub@redhat.com>
2348 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size
2349 is smaller than maximum, round dot up to common page boundary.
2351 2002-03-28 Alan Modra <amodra@bigpond.net.au>
2353 * configure.host: Set up for generic hosts first, then tweak as
2354 necessary in more specific targets.
2355 (HOSTING_LIBS): Include libgcc_eh.a if found.
2357 2002-03-23 Andreas Jaeger <aj@suse.de>
2359 * emulparams/elf_x86_64.sh (COMMONPAGESIZE): Set it.
2361 2002-03-21 Alan Modra <amodra@bigpond.net.au>
2363 * Makefile.am: Run "make dep-am".
2364 * Makefile.in: Regenerate.
2366 2002-03-21 Albert Chin-A-Young <china@thewrittenword.com>
2368 * genscripts.sh (LIB_SEARCH_DIRS): Quote path.
2370 2002-03-20 Alan Modra <amodra@bigpond.net.au>
2372 * ldlang.c (ldlang_add_undef): If the output bfd has been opened,
2373 add the symbol to the linker hash table immediately.
2374 (lang_place_undefineds): Split symbol creation out..
2375 (insert_undefined): ..to here.
2377 2002-03-18 David O'Brien <obrien@FreeBSD.org>
2379 * emultempl/elf32.em: Use lbasename vs. basename to fix problem where
2380 the contents of the buffer returned from basename function will are
2381 getting overwritten while still being used.
2383 2002-03-18 Jan Hubicka <jh@suse.cz>
2384 Andreas Jaeger <aj@suse.de>
2385 Andreas Schwab <schwab@suse.de>
2387 * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native.
2388 * elf_x86_64.sh (ARCH): Set to i386:x86-64
2389 set libraries to default to lib64 paths.
2391 2002-03-18 Tom Rix <trix@redhat.com>
2393 * Makefile.am : Add eaix5ppc and eaix5rs6, AIX 5 support.
2394 * configure.tgt : Same.
2395 * emulparms/aix5ppc.sh : New file. For eaix5ppc.
2396 * emulparms/aix5rs6.sh : New file. For eaix5rs6.
2397 * emulparms/aixppc.sh : OUPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT
2398 emulation parameters for better -b32, -b64 support.
2399 * emulparms/aixrs6.sh : Same.
2400 * emulparms/ppcmacos.sh : Same.
2401 * emultempl/aix.em (choose_target) : Use new emulation parameters
2402 OUTPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT.
2403 * Makefile.in : Regenerate.
2405 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
2407 * po/fr.po: Updated version.
2409 2002-03-18 Alan Modra <amodra@bigpond.net.au>
2411 * ldmain.c (main): Move .text readonly flag fudges from here..
2412 * ldlang.c (lang_process): ..to here.
2414 2002-03-14 Alan Modra <amodra@bigpond.net.au>
2416 * ldlang.c (lang_check): Remove the word size check added in last
2417 change. Treat emitrelocations case as for relocatable links.
2419 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
2421 * po/fr.po: Updated version.
2423 2002-03-13 Alan Modra <amodra@bigpond.net.au>
2425 * ldlang.c (lang_check): Do relocatable link checks first, so that
2426 warn_mismatch can't override. Check compatible and word size too.
2428 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
2430 * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
2432 2002-03-05 Jakub Jelinek <jakub@redhat.com>
2434 * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
2437 2002-03-04 H.J. Lu <hjl@gnu.org>
2439 * scripttempl/elf.sc: Put .preinit_array, .init_array and
2440 .fini_array in the data segment.
2442 2002-03-04 Alan Modra <amodra@bigpond.net.au>
2444 * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
2446 2002-03-01 David Mosberger <davidm@hpl.hp.com>
2448 * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
2449 .init_array, and .fini_array.
2451 2002-02-20 Andreas Schwab <schwab@suse.de>
2453 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
2454 .IA64_unwind* in a relocatable link.
2456 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
2458 * NEWS: Mark 2.12 branch.
2460 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
2462 * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
2463 * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
2465 2002-02-18 Tom Rix <trix@redhat.com>
2467 * emultempl/aix.em (gld*_parse_args): Add -brtl support.
2468 (gld*_before_allocation): Same.
2469 (gld*_create_output_section_statements): Generate
2470 __rtinit if run time linking. Add librtl.a to the link.
2471 (gld*_read_file): Clean.
2473 2002-02-18 Alan Modra <amodra@bigpond.net.au>
2475 * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
2477 2002-02-18 David O'Brien <obrien@FreeBSD.org>
2479 * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
2480 eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
2481 and eelf64alpha_fbsd.
2482 * Makefile.in: Regenerate.
2483 * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
2484 x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
2485 use a FreeBSD-specific emulation rather than the psABI one.
2486 * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
2487 for all FreeBSD ELF systems.
2488 * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
2490 * emulparams/elf32ppc_fbsd.sh: Likewise.
2491 * emulparams/elf64_ia64_fbsd.sh: Likewise.
2492 * emulparams/elf64_sparc_fbsd.sh: Likewise.
2493 * emulparams/elf64alpha_fbsd.sh: Likewise.
2494 * emulparams/elf_i386_fbsd.sh: Likewise.
2495 * emulparams/elf_x86_64_fbsd.sh: Likewise.
2497 2002-02-18 Nick Clifton <nickc@cambridge.redhat.com>
2499 * po/tr.po: Updated version.
2501 2002-02-18 Alan Modra <amodra@bigpond.net.au>
2503 * ld.texinfo (Output Section Fill): Fix amateur texinfo.
2506 2002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
2508 * emultempl/mmo.em (mmo_after_open): Don't call
2509 _bfd_mmix_check_all_relocs when producing ELF output.
2511 2002-02-15 Richard Henderson <rth@redhat.com>
2513 * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
2514 definition. Emit a unop+nop pair.
2516 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
2518 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
2519 for presence of .MMIX.reg_contents.linker_allocated before early
2522 * NEWS: Mention support for MMIX.
2524 2002-02-15 Alan Modra <amodra@bigpond.net.au>
2526 Support arbitrary length fill patterns.
2527 * ld.texinfo (Output Section Fill): Describe fill expressions.
2528 (FILL): Refer to the above.
2529 * ldexp.h (etree_value_type): Add "str" field.
2530 (union etree_union): Add "str" to "value" struct.
2531 (exp_bigintop): Declare.
2532 (exp_get_fill): Declare.
2533 * ldexp.c: Include "safe-ctype.h".
2534 (exp_intop): Set value.str to NULL.
2535 (exp_bigintop): New function.
2536 (new_rel): Pass in "str", and set new.str from it.
2537 (new_rel_from_section): Set new.str to NULL.
2538 (fold_name): Adjust calls to new_rel.
2539 (exp_fold_tree): Likewise.
2540 (exp_get_fill): New function.
2541 * ldgram.y (struct big_int bigint, fill_type *fill): New.
2542 (INT): Returns a "bigint". Adjust all code handling INTs.
2543 (fill_opt): Returns a "fill".
2544 (fill_exp): Split out of fill_opt, use for FILL.
2545 * ldlang.h (struct _fill_type): New.
2546 (fill_type): Move typedef to ldexp.h.
2547 (lang_output_section_statement_type): "fill" is now a pointer.
2548 (lang_fill_statement_type): Likewise.
2549 (lang_padding_statement_type): Likewise.
2550 (lang_add_fill): Now takes a "fill_type *" param.
2551 (lang_leave_output_section_statement): Likewise.
2552 (lang_do_assignments): Likewise.
2553 (lang_size_sections): Likewise.
2554 (lang_leave_overlay_section): Likewise.
2555 (lang_leave_overlay): Likewise.
2556 * ldlang.c: Include ldgram.h after ldexp.h.
2557 (lang_output_section_statement_lookup): Adjust for fill_type change.
2558 (print_fill_statement): Likewise.
2559 (print_padding_statement): Likewise.
2560 (insert_pad): Now takes a "fill_type *" arg.
2561 (size_input_section): Likewise.
2562 (lang_size_sections_1): Likewise.
2563 (lang_size_sections): Likewise.
2564 (lang_do_assignments): Likewise.
2565 (lang_add_fill): Likewise.
2566 (lang_leave_output_section_statement): Likewise.
2567 (lang_leave_overlay_section): Likewise.
2568 (lang_leave_overlay): Likewise.
2569 Adjust all callers of the above function.
2570 * ldlex.l: Include ldgram.h after ldexp.h. Allow hex numbers
2571 starting with "0X" as well as "0x". Return bigint.str for hex
2572 numbers starting with "0x" or "0X", zero bigint.str otherwise.
2573 Always use base 16 for numbers starting with "$".
2574 * ldmain.c: Include ldgram.h after ldexp.h.
2575 * ldwrite.c (build_link_order): Use bfd_data_link_order in place
2576 of bfd_fill_link_order.
2577 * pe-dll.c: Adjust lang_do_assignments calls.
2578 * emultempl/elf32.em: Likewise.
2579 * emultempl/hppaelf.em: Likewise.
2580 * emultempl/ppc64elf.em: Likewise.
2581 * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
2582 lang_add_assignment call.
2583 * emultempl/pe.em: Likewise.
2585 2002-02-14 Phil Edwards <pme@gcc.gnu.org>
2587 * ld.texinfo (VERSION scripts): Symbol names are globbing patterns.
2588 * ldgram.y (lang_new_vers_regex): Rename to lang_new_vers_pattern;
2589 the pattern in question is not a regexp.
2590 * ldlang.c: Likewise.
2591 * ldlang.h: Likewise.
2592 * ldlex.l (V_IDENTIFIER): Allow '[', ']', '-', '!', and '^' also.
2594 2002-02-12 Jakub Jelinek <jakub@redhat.com>
2596 * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
2597 * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
2598 (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
2599 * ldexp.c (exp_data_seg): New variable.
2600 (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
2601 (fold_binary): Handle DATA_SEGMENT_ALIGN.
2602 (exp_fold_tree): Handle DATA_SEGMENT_END.
2603 Pass allocation_done when recursing instead of hardcoding
2604 lang_allocating_phase_enum.
2605 * ldexp.h (exp_data_seg): New.
2606 * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
2607 (lang_size_sections): New.
2608 * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
2609 * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
2610 if COMMONPAGESIZE is defined.
2611 * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
2612 * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
2613 * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
2614 * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
2615 * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
2618 2002-02-11 Alan Modra <amodra@bigpond.net.au>
2620 * Makefile.in: Regenerate.
2622 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
2624 * lexsup.c: Remove strtoul declaration.
2626 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
2628 * ldmain.c: Add prototype for main ().
2629 * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
2630 * emultempl/lnk960.em (lnk960_choose_target): Function should
2633 2002-02-10 Alan Modra <amodra@bigpond.net.au>
2635 * ldlang.c (entry_section): New initialised variable.
2636 (lang_finish): Use it.
2637 * ldlang.h (entry_section): Declare.
2638 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
2639 entry_section to ".opd".
2641 2002-02-09 Chris Demetriou <cgd@broadcom.com>
2643 * ld.texinfo (Options): Add back in -nostdlib documentation,
2644 which had been inadvertently removed.
2646 2002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
2648 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
2649 register section vma to a sane value after emitting error. Make
2650 fatal conditions cause program exit when emitting message.
2652 2002-02-08 Ivan Guzvinec <ivang@opencores.org>
2654 * configure.tgt: Add or32-*-rtems target.
2656 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
2658 Contribute sh64-elf.
2659 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
2660 * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
2661 in OTHER_RELOCATABLE_SECTIONS.
2662 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
2663 * emulparams/shelf32.sh (STACK_ADDR): Define.
2664 (OTHER_RELOCATABLE_SECTIONS): Renamed to...
2665 (OTHER_SECTIONS): this. Removed stack settings.
2666 * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
2667 (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
2668 2001-03-12 DJ Delorie <dj@redhat.com>
2669 * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
2670 relaxing if any shmedia or mixed sections are found.
2671 2001-03-07 DJ Delorie <dj@redhat.com>
2672 * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
2673 einfo. Gracefully decline to output to non-elf formats.
2674 2001-03-06 Hans-Peter Nilsson <hpn@redhat.com>
2675 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
2676 Default to _end aligned to next multiple of 0x40000, plus 0x40000.
2677 * emulparams/shelf32.sh: Ditto.
2678 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
2679 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
2681 2001-01-10 Ben Elliston <bje@redhat.com>
2682 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
2683 non-portable shell constructs. From Hans-Peter Nilsson.
2684 2001-01-09 Hans-Peter Nilsson <hpn@cygnus.com>
2685 * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
2686 * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
2687 dependencies to the shell script include chain.
2688 * Makefile.in: Regenerate.
2689 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
2690 * emultempl/sh64elf.em: Update and tweak comments.
2691 (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
2692 make a .cranges section SEC_IN_MEMORY.
2693 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
2694 * emultempl/sh64elf.em
2695 (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
2696 .cranges section found to be necessary; continue and set stored
2697 section contents flags for sections with non-mixed contents.
2698 Use a struct sh64_section_data container and sh64_elf_section_data
2699 to store contents-type flags.
2700 Remove unused update of "isec".
2701 (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
2702 sections marked SHF_SH5_ISA32_MIXED. Use sh64_elf_section_data to
2703 access contents-type flags. Assert that the associated container
2704 is initialized. Use that container, not elf_gp_size, to hold size
2705 of linker-generated cranges contents.
2706 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
2707 * emultempl/sh64elf.em
2708 (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
2709 there's already a .cranges section. When section flag difference
2710 is found, don't NULL-check cranges a second time. Tweak comments.
2711 (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
2712 merging, not max size, as size of ld-generated .cranges contents.
2713 Don't set ELF section flags in output section. When checking for
2714 needed .cranges descriptors, don't use a variable; compare
2715 incoming ELF section flags directly to SHF_SH5_ISA32_MIXED. Tweak
2717 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
2718 * emultempl/sh64elf.em: New file.
2719 * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
2720 * Makefile.in: Regenerate.
2721 * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
2722 (OTHER_RELOCATING_SECTIONS): Ditto.
2723 (EXTRA_EM_FILE): New, set to sh64elf if not set.
2724 * emulparams/shlelf32.sh: Stub out all settings except
2725 OUTPUT_FORMAT. Source shelf32.sh.
2726 * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
2727 OTHER_RELOCATING_SECTIONS.
2728 (OTHER_RELOCATING_SECTIONS): Remove .cranges.
2729 * emulparams/shlelf64.sh: Stub out all settings except
2730 OUTPUT_FORMAT. Source shelf64.sh.
2731 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
2732 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
2734 (DATA_START_SYMBOLS): Define, provide ___data.
2735 (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
2736 for consecutive .data section.
2737 (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
2738 section after .data section.
2739 * emulparams/shlelf64.sh: Ditto.
2740 * emulparams/shelf32.sh: Ditto.
2741 (ALIGNMENT): Define to 8.
2742 * emulparams/shelf32.sh: Ditto.
2743 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
2744 * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
2745 built-in linker scripts.
2746 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
2747 * emulparams/shlelf64.sh: New.
2748 * emulparams/shelf64.sh: New.
2749 * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
2751 * Makefile.am: Add support for shlelf64 and shelf64.
2752 * Makefile.in: Regenerate.
2753 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
2754 * configure.tgt (sh64-*-elf*): Add shelf as default.
2755 Add shlelf to targ_extra_emuls.
2756 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
2757 * emulparams/shelf32.sh: New file.
2758 * emulparams/shlelf32.sh: New file.
2759 * Makefile.am: Add support for shlelf32 and shelf32.
2760 * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
2761 * Makefile.in: Regenerate.
2763 2002-02-05 Hans-Peter Nilsson <hp@axis.com>
2765 * ldlang.c (lang_reset_memory_regions): Rename from
2766 reset_memory_regions. Change all callers. Make public.
2767 * ldlang.h (lang_reset_memory_regions): Prototype.
2768 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
2769 lang_reset_memory_regions before lang_size_sections.
2770 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
2771 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
2773 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
2775 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
2776 arithmetic when checking for too many global registers.
2778 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
2780 * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
2781 (ehppanbsd.c): New rule.
2782 * Makefile.in: Regenerate.
2783 * configure.tgt (hppa*-*-netbsd*): New target.
2784 * emulparams/hppalinux.sh: Add comment to check other files
2785 that source this file it is modified, and list which
2787 * emulparams/hppanbsd.sh: New file.
2789 2002-02-01 Geoffrey Keating <geoffk@redhat.com>
2791 * scripttempl/xstormy16.sc: Don't allocate extra space for the
2794 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
2796 Support on-demand global register allocation from
2797 R_MMIX_BASE_PLUS_OFFSET relocs.
2798 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
2799 mmix_set_reg_section_vma. Call
2800 _bfd_mmix_finalize_linker_allocated_gregs.
2801 (mmix_before_allocation): New function.
2802 (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
2803 (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
2804 * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
2805 (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
2806 before .MMIX.reg_contents.
2807 * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
2808 (mmo_after_open): New function.
2809 (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
2810 * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting. Add
2811 .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
2813 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
2815 * emulparams/or32.sh: New file.
2816 * emulparams/or32elf.sh: New file.
2817 * scripttempl/or32.sc: New file.
2818 * configure.tgt : Add support for or32.
2819 * configure: Regenerate
2820 * Makefile.am: Add support for or32.
2821 * Makefile.in: Regenerate.
2822 * NEWS: Mention support for or32.
2823 * po/ld.pot: Regenerate.
2825 2002-01-29 Chris Demetriou <cgd@broadcom.com>
2826 Mitch Lichtenberg <mpl@broadcom.com>
2828 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
2829 * emultempl/mipself.em: New file to handle MIPS ELF embedded
2830 reloc creation (ld --embedded-relocs).
2832 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
2834 * configure: Regenerated.
2836 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
2838 * Makefile.am (install): Depend on install-info.
2839 * Makefile.in: Regenerate.
2841 2002-01-26 Christian Rose <menthos@menthos.com>
2843 * ldmain.c (main): Use full sentences to ease translation.
2845 2002-01-26 Nick Clifton <nickc@cambridge.redhat.com>
2847 * po/fr.po: Updated version.
2849 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
2851 * po/es.po: Updated version.
2853 2002-01-25 Andreas Jaeger <aj@suse.de>
2855 * ldlex.l (yy_input): Correct error check.
2857 2002-01-25 Alan Modra <amodra@bigpond.net.au>
2859 * ldmisc.c (demangle): Put back dots when string not demangled.
2861 2002-01-22 Richard Henderson <rth@redhat.com>
2863 * emulparams/elf64alpha.sh (NOP): Use unop.
2865 2002-01-21 Andreas Jaeger <aj@suse.de>
2867 * ldlex.l: Use fread instead of read.
2869 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
2871 * configure.tgt (ia64-*-netbsd*): New target.
2873 2002-01-21 H.J. Lu <hjl@gnu.org>
2875 * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
2877 * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
2879 2002-01-18 Andreas Jaeger <aj@suse.de>
2881 * ldver.c (ldversion): Update year.
2883 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
2885 * po/ld.pot: Regenerate.
2887 2002-01-16 Alan Modra <amodra@bigpond.net.au>
2889 * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
2890 * Makefile.in: Regenerate.
2891 * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
2892 * emultempl/ppc64elf.em: New file.
2894 2002-01-15 DJ Delorie <dj@redhat.com>
2896 * scripttempl/pe.sc: Add support for constructor priorities.
2898 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
2900 * emulparams/avr1200.sh (DATA_START): Define as 0x60.
2901 * emulparams/avr23xx.sh: Likewise.
2902 * emulparams/avr4433.sh: Likewise.
2903 * emulparams/avr44x4.sh: Likewise.
2904 * emulparams/avr85xx.sh: Likewise.
2905 * emulparams/avrmega103.sh: Likewise.
2906 * emulparams/avrmega161.sh: Likewise.
2907 * emulparams/avrmega603.sh: Likewise.
2908 * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
2910 2002-01-08 Alexandre Oliva <aoliva@redhat.com>
2912 * ldlang.c (walk_wild_section): Exclude object file if enclosing
2913 archive is excluded.
2915 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
2917 * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
2918 (eshelf_nbsd.c): New rule.
2919 (eshlelf_nbsd.c): New rule.
2920 * Makefile.in: Regenerate.
2921 * configure.tgt (sh*le-*-netbsdelf*): New target.
2922 (sh*-*-netbsdelf*): New target.
2923 * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
2924 * emulparams/shelf_nbsd.sh: New emulation.
2925 * emulparams/shlelf_nbsd.sh: New emulation.
2927 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
2929 * po/es.po: New file: Spanish translation.
2930 * configure.in (ALL_LINGUAS): Add es.
2931 * configure: Regenerate.
2933 2002-01-06 John Marshall <jmarshall@acm.org>
2935 * ld.texinfo: Note that --emit-relocs is currently only
2936 implemented for ELF.
2938 2002-01-05 Alan Modra <amodra@bigpond.net.au>
2940 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
2941 of bfd_section_list_remove and bfd_section_list_insert macros.
2942 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
2943 * emultempl/mmo.em (mmo_place_orphan): Likewise.
2945 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
2947 * configure.tgt (x86_64-*-netbsd*): New target.
2949 2001-12-21 Tom Rix <trix@redhat.com>
2951 (gld*_create_output_section_statements): New function.
2952 For -binitfini support.
2953 * emultempl/aix.em (gld*_before_parse): Fix comment.
2954 * emultempl/aix.em (gld*_parse_args): Fix comment.
2956 2001-12-20 Jason Thorpe <thorpej@wasabisystems.com>
2958 * configure.tgt (mips*-dec-netbsd*): Delete alias for
2960 (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
2962 * configure.tgt (arm-*-netbsdelf*): Add target.
2963 (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
2964 * emulparams/armelf_nbsd.sh: Added.
2965 * Makefile.am: Add rules for earmelf_nbsd.
2966 * Makefile.in: Regenerate.
2968 2001-12-19 Andreas Jaeger <aj@suse.de>,
2969 Susanne Oberhauser <froh@suse.de>
2971 * configure.host: Add rules for x86_64-*linux-gnu. Change
2972 s390x-linux entry to use gcc to report configuration, replace gcc
2973 with $CC in s390-linux
2975 2001-12-19 Andreas Jaeger <aj@suse.de>
2977 * ld.texinfo (VERSION): Fix markup.
2979 2001-12-18 matthew green <mrg@eterna.com.au>
2981 * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
2982 (m68kelfnbsd.c): New rule.
2983 * Makefile.in: Regenerate.
2984 * configure.tgt (m68*-hp-netbsd*): Renamed to ..
2985 (m68*-*-netbsd*4k*): .. this.
2986 (m68*-*-netbsdelf*): New target.
2987 (m68*-*-netbsd*): Also include ELF support.
2988 (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
2989 * emulparams/m68kelfnbsd.sh: New emulation.
2991 2001-12-18 Jakub Jelinek <jakub@redhat.com>
2993 * ldgram.y (vers_node): Support anonymous version tags.
2994 * ldlang.c (lang_register_vers_node): Ensure anonymous version
2995 tag is not defined together with non-anonymous versions.
2996 * ld.texinfo: Document it.
2998 2001-12-18 Nick Clifton <nickc@cambridge.redhat.com>
3000 * po/tr.po: New file: Turkish translation.
3001 * configure.in (ALL_LINGUAS): Add tr.
3002 * configure: Regenerate.
3004 2001-12-17 Jason Thorpe <thorpej@wasabisystems.com>
3006 * Makefile.am: Add rules for eelf64alpha_nbsd.
3007 * Makefile.in: Regenerate.
3008 * configure.tgt (alpha*-*-netbsd*): Set
3009 targ_emul to elf64alpha_nbsd.
3010 * emulparams/elf64alpha_nbsd.sh: Added.
3012 2001-12-17 Alan Modra <amodra@bigpond.net.au>
3014 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
3015 section_tail when fiddling with section list.
3016 (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
3017 broken into separate strings to make translation easier.
3018 * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
3019 fiddling with section list.
3020 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
3022 2001-12-16 Hans-Peter Nilsson <hp@bitrange.com>
3024 * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
3026 2001-12-15 Alan Modra <amodra@bigpond.net.au>
3028 * ldmain.c (main): Initialise link_info.eh_frame_hdr.
3030 2001-12-13 Jakub Jelinek <jakub@redhat.com>
3032 * emultempl/elf32.em (finish): Supply output_bfd
3033 to bfd_elf*_discard_info.
3034 (OPTION_EH_FRAME_HDR): Define.
3035 (longopts): Add --eh-frame-hdr.
3036 (parse_args): Handle it.
3037 (list_options): Add --eh-frame-hdr to help.
3038 * emultempl/hppaelf.em (finish): Supply output_bfd
3039 to bfd_elf*_discard_info.
3040 * scripttempl/elf.sc (.eh_frame_hdr): Add.
3042 2001-12-13 Alan Modra <amodra@bigpond.net.au>
3044 * lexsup.c (parse_args): Don't pass shortopts to second call to
3045 getopt functions. Restore optind rather than decrementing before
3046 second call. Remove errind as it now duplicates last_optind.
3048 2001-12-11 Christopher Faylor <cgf@redhat.com>
3050 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
3052 2001-12-07 Geoffrey Keating <geoffk@redhat.com>
3053 Richard Henderson <rth@redhat.com>
3055 * Makefile.am: Add support for xstormy16.
3056 * configure.tgt: Add support for xstormy16.
3057 * Makefile.in: Regenerate.
3058 * emulparams/elf32xstormy16.sh: New file.
3059 * scripttempl/xstormy16.sc: New file.
3061 2001-10-01 Christopher Faylor <cgf@cygnus.com>
3063 * Makefile.in (LIB_PATH): Make configurable.
3064 (GENSCRIPTS): Set LIB_PATH in environment.
3065 * configure.in: Substitute LIB_PATH.
3066 * configure: Regenerate.
3067 * configure.tgt (*cygwin): Set LIB_PATH for cross build.
3068 * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
3070 2001-12-07 Nick Clifton <nickc@cambridge.redhat.com>
3072 * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
3073 describing the -N option so that it is easier to translate into
3076 2001-12-05 Nick Clifton <nickc@cambridge.redhat.com>
3078 * emultempl/pe.em (..._list_options): Replace multiple fprintf
3079 statements describing a single option with a single, newline
3080 escaped fprintf. This allows better translation into other
3083 * ldmain.c (add_archive_element): Combine multiple strings
3084 into a single string to permit better translation into other
3087 2001-12-05 Tom Rix <trix@redhat.com>
3089 * Makefile.am: Remove eaixppc64.
3090 * Makefile.in: Regenerate.
3092 2001-12-04 Tom Rix <trix@redhat.com>
3094 * emultempl/aix.em (choose_target): Change default target to
3095 OUTPUT_FORMAT for ppcmacos. Add braces to remove compiler
3097 (gld*_read_file): Fix typo.
3098 (change_symbol_mode): Add prototype.
3101 * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
3102 * emulparams/aixrs6.sh : Same.
3103 * emulparams/ppcmacos.sh : Same.
3104 * emulparams/aixppc64.sh : Delete file.
3105 * emultempl/aix.em : Formatting changes.
3107 2001-12-04 Hans-Peter Nilsson <hp@axis.com>
3109 * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
3110 (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
3112 (OTHER_END_SYMBOLS): Fix formatting.
3113 * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
3114 (OTHER_END_SYMBOLS): Fix formatting.
3116 2001-12-04 Alan Modra <amodra@bigpond.net.au>
3118 * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
3120 2001-12-02 Tom Rix <trix@redhat.com>
3122 * configure.tgt : Remove eaixppc64 emulations.
3123 * Makefile.in : Remove eaixppc64.c
3124 * ldemul.c (ldemul_choose_target): New parameters argc, argv.
3125 (ldemul_default_target): Same.
3126 * emultempl/gld960.em (gld960_choose_target): Same.
3127 * emultempl/gld960c.em (gld960_choose_target): Same.
3128 * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
3129 * emultempl/aix.em (is_syscall): syscall_mask now a variable.
3130 * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
3131 * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
3132 * emultempl/aix.em (choose_target): New function. Handle emulation of
3135 2001-11-27 H.J. Lu <hjl@gnu.org>
3137 * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
3138 * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
3139 * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
3140 * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
3141 * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
3142 * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
3143 * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
3144 * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
3146 * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
3149 (REL_SDATA): Likewise.
3150 (REL_SBSS): Likewise.
3151 (REL_SDATA2): Likewise.
3152 (REL_SBSS2): Likewise.
3153 (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
3156 2001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3158 * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
3160 * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
3162 2001-11-22 H.J. Lu <hjl@gnu.org>
3164 * Makefile.in: Regenerated with automake based on automake
3165 1.4-8 in RedHat 7.1.
3167 2001-11-22 Alan Modra <amodra@bigpond.net.au>
3169 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
3170 (config.status): Delete rule.
3171 Add extra dependencies to cover sourced emulparams files.
3172 * Makefile.in: Regenerate.
3174 * scripttempl/elf.sc: Order <section>, <section>.* and
3175 corresponding linkonce sections as seen in input files.
3176 Formatting fixes. Zero vma of all sections if not relocating.
3177 (STACK): Define and insert if STACK_ADDR defined.
3178 (OTHER_RELOCATING_SECTIONS): Delete.
3179 (OTHER_END_SYMBOLS): Define.
3180 (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
3181 (OTHER_READWRITE_SECTIONS): Likewise.
3182 (OTHER_GOT_SECTIONS): Likewise.
3183 (OTHER_SDATA_SECTIONS): Likewise.
3184 (OTHER_BSS_SECTIONS): Likewise.
3185 * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
3186 (OTHER_READWRITE_SECTIONS): Likewise.
3187 * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
3188 (OTHER_READWRITE_SECTIONS): Likewise.
3190 * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
3191 (STACK_ADDR): Define.
3192 * emulparams/armelf_oabi.sh: As for armelf.sh.
3193 * emulparams/elf32mcore.sh: As for armelf.sh.
3194 * emulparams/h8300elf.sh: As for armelf.sh.
3195 * emulparams/mn10200.sh: As for armelf.sh.
3196 * emulparams/shelf.sh: As for armelf.sh.
3198 * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
3199 (OTHER_END_SYMBOLS): Define.
3200 * emulparams/m32relf.sh: As for elf32fr30.sh.
3201 * emulparams/h8300helf.sh: As for elf32fr30.sh.
3202 * emulparams/h8300self.sh: As for elf32fr30.sh.
3204 * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
3205 defines with RELOCATING test.
3206 (OTHER_SDATA_SECTIONS): Likewise.
3207 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
3208 (OTHER_END_SYMBOLS): ..this.
3209 * emulparams/crislinux.sh: As for criself.sh.
3211 * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
3213 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
3214 (OTHER_SECTIONS): ..this. Zero vma if not relocating. Order
3215 normal and linkonce sections as seen in input files.
3216 * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
3217 (TEXT_DYNAMIC): Likewise.
3218 (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
3219 (OTHER_SDATA_SECTIONS): Likewise.
3220 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
3221 * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
3222 * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
3223 * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
3224 * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
3225 (OTHER_PLT_RELOC_SECTIONS): Likewise.
3226 (OTHER_READONLY_SECTIONS): Likewise. Order normal and linkonce
3227 sections as seen in input files.
3228 * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
3229 * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
3231 (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
3232 (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
3233 * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
3234 (OTHER_SECTIONS): Instead, use this..
3235 (OTHER_END_SYMBOLS): ..and this.
3237 * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
3238 * emulparams/elf32bsmip.sh: Likewise.
3239 * emulparams/elf32btsmip.sh: Likewise.
3240 * emulparams/elf32ebmip.sh: Likewise.
3241 * emulparams/elf32lmip.sh: Likewise.
3242 * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
3243 * emulparams/elf32lsmip.sh: Likewise.
3244 * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
3245 * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
3246 * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
3247 * emulparams/elf64btsmip.sh: Likewise.
3248 * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
3249 * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
3250 * emulparams/elf32ppclinux.sh: Likewise.
3251 * emulparams/elf32ppcsim.sh: Likewise.
3252 * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
3253 * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
3254 * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
3255 * emulparams/h8300self.sh: Likewise.
3256 * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
3257 * emulparams/sh.sh: Comment.
3258 * emulparams/shl.sh: Source sh.sh, remove duplicates.
3259 * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
3260 * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
3262 2001-11-21 David Heine <dlheine@tensilica.com>
3263 Alan Modra <amodra@bigpond.net.au>
3265 * ldlang.c (map_input_to_output_sections): Replace "break"
3266 accidentally removed with 2001-08-03 change.
3267 (lang_gc_sections_1): Likewise.
3269 2001-11-21 Alan Modra <amodra@bigpond.net.au>
3271 * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
3273 2001-11-20 Angela Marie Thomas <angela@redhat.com>
3275 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
3276 of false when calling lang_size_sections.
3277 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
3279 2001-11-15 Alan Modra <amodra@bigpond.net.au>
3281 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
3282 function when LDEMUL_FINISH isn't set to the same name. Don't
3283 call ${LDEMUL_FINISH}.
3284 (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
3285 * emultempl/armelf.em (arm_elf_finish): Call
3286 gld${EMULATION_NAME}_finish.
3287 * emultempl/hppaelf.em (hppaelf_finish): Rename to
3288 gld${EMULATION_NAME}_finish. Call bfd_elf32_discard_info and
3289 hppaelf_layout_sections_again if necessary.
3290 (need_laying_out): New var.
3291 (hppaelf_layaout_sections_again): Rename to
3292 hppaelf_layout_sections_again. Clear need_laying_out.
3293 (PARSE_AND_LIST_OPTIONS): Format text.
3295 2001-11-14 H.J. Lu <hjl@gnu.org>
3297 * emultempl/armelf.em (arm_elf_finish): Renamed from
3298 gld${EMULATION_NAME}_finish.
3299 (LDEMUL_FINISH): Set to arm_elf_finish.
3301 2001-11-14 Daniel Jacobowitz <drow@mvista.com>
3303 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
3304 (struct ld_emulation_xfer_struct): Use it.
3306 2001-11-13 Ross Alexander <ross.alexander@uk.neceur.com>
3308 * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
3309 additional symbols referenced by newer crt0.o files from HP.
3311 2001-11-12 Anthony Green <green@redhat.com>
3313 * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
3315 2001-11-12 Alfred M. Szmidt <ams@kemisten.nu>
3317 * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
3318 * Makefile.in: Regenerate.
3320 2001-11-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3322 * ld.texinfo: Use @command for commands, @option for options.
3323 * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
3325 * Makefile.in: Rebuild.
3327 2001-11-04 Chris Demetriou <cgd@broadcom.com>
3329 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
3330 Add support for targets.
3332 2001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
3334 * configure.in (ALL_LINGUAS): Add "fr" and "sv"
3335 * configure: Regernate.
3336 * po/fr.po: New file.
3337 * po/sv.po: New file.
3339 2001-11-01 NIIBE Yutaka <gniibe@m17n.org>
3341 * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
3342 as little endian default and to support big endian.
3344 2001-11-01 Chris Demetriou <cgd@broadcom.com>
3346 * ld.texinfo (Options): Document new option, -nostdlib.
3347 * lexsup.c (OPTION_NOSTDLIB): New definition.
3348 (ld_options): Add entry for "nostdlib".
3349 (parse_args): Handle OPTIONS_NOSTDLIB.
3350 * ldfile.c (ldfile_add_library_path): Don't add directories
3351 to the search path if they weren't specified on the command line
3352 and -nostdlib was specified.
3353 * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
3355 2001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
3357 * lexsup.c (parse_args): Prevent infinite parsing loop when
3358 "-rpath.a" is specified on the command line.
3359 Replace calls to fprintf with calls to einfo.
3361 2001-10-31 John Marshall <jmarshall@acm.org>
3363 * ld.texinfo: A historical requirement that MEMORY and SECTIONS
3364 appear only once across all the linker scripts involved in a link
3365 invocation no longer applies. Make the documentation reflect
3368 2001-10-31 NIIBE Yutaka <gniibe@m17n.org>
3370 * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
3372 (sh-*-linux*): Added targ_extra_libpath.
3374 2001-10-31 David Heine <dlheine@tensilica.com>
3376 * ldlang.c (lang_size_sections): Keep a valid output_offset field
3377 for padding statements.
3379 2001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
3381 * configure.tgt (mmix-*-*): New target.
3382 * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
3383 Add dependencies to match.
3384 * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
3385 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
3386 scripttempl/mmo.sc: New files.
3387 * gen-doc.texi: @set MMIX.
3388 * ld.texinfo: Ditto.
3389 [MMIX] Add MMIX node.
3390 * Makefile.in: Regenerate.
3392 2001-10-29 Kazu Hirata <kazu@hxi.com>
3394 * ldlang.c: Fix a comment typo.
3396 2001-10-23 Alan Modra <amodra@bigpond.net.au>
3398 * configure.host: Move alpha*-*-linux-gnu* entry to generic
3399 entries, and match *-*-linux*.
3401 2001-10-20 Alan Modra <amodra@bigpond.net.au>
3403 * ldgram.y (mri_script_command): Surround processing of INCLUDE
3404 with ldlex_script, ldlex_popstate.
3405 (ifile_p1): Likewise.
3406 * ldlex.l (EOF): Don't BEGIN(SCRIPT). Restore lineno from the
3408 (lex_push_file): Save current lineno to lineno_stack. Set lineno
3409 to 1. Don't BEGIN(SCRIPT).
3410 (lex_redirect): Similarly.
3411 * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
3413 2001-10-20 Nick Clifton <nickc@cambridge.redhat.com>
3415 * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
3416 __EH_FRAME_END__ and accept eh frames into data section.
3417 Add ctor and dtor sections.
3419 2001-10-19 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3421 * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
3422 (auto-export): Fix indentation.
3424 2001-10-18 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3426 * pe-dll.c (autofilter_objectlist): Add startup objects
3428 (auto-export): Constify char * p.
3429 Extract file basename and use strcmp rather than ststr
3432 2001-10-18 Chris Demetriou <cgd@broadcom.com>
3434 * ldmain.c (get_emulation): Improve comment about the handling
3437 2001-10-17 Alan Modra <amodra@bigpond.net.au>
3439 * po/POTFILES.in: Regenerate.
3441 2001-10-16 Vassili Karpov <malc@pulsesoft.com>
3443 * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
3444 -z nocopyreloc and -z nocombreloc usage strings.
3446 2001-10-12 Vassili Karpov <malc@pulsesoft.com>
3448 * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
3451 2001-10-11 Aleksey Romanov <aromanov@ennovatenetworks.com>
3453 * scripttempl/armaout.sc: Place .bss section after end of aligned
3454 data section to match behaviour of aout code in constructrion of
3457 2001-10-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3459 * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
3460 startup files for mingw32 dlls to list.
3462 2001-10-10 Chris Demetriou <cgd@broadcom.com>
3464 * emultempl/elf32.em: Fix shell 'if' usage for portability.
3466 2001-10-08 Aldy Hernandez <aldyh@redhat.com>
3468 * configure.tgt (targ): Add arm9e-*-elf.
3470 2001-10-05 H.J. Lu <hjl@gnu.org>
3472 * genscripts.sh: Fix a typo in the last change.
3474 2001-10-05 Jakub Jelinek <jakub@redhat.com>
3476 * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
3477 -z nocombreloc in usage.
3479 2001-10-03 Jim Blandy <jimb@redhat.com>
3481 * genscripts.sh: Include a comment at the top of each generated
3482 script, explaining its purpose.
3484 2001-10-03 Vassili Karpov <malc@pulsesoft.com>
3486 * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
3487 * NEWS: Mention -z nocopyreloc.
3488 * ld.texinfo (Options): Describe nocopyreloc.
3490 2001-10-03 Alan Modra <amodra@bigpond.net.au>
3492 * configure: Regenerate.
3494 2001-10-02 Alan Modra <amodra@bigpond.net.au>
3496 * ldver.h (ld_program_version): Remove declaration.
3497 * lexsup.c (parse_args): Move printing of copyright message..
3498 * ldver.c (ldversion): .. to here.
3499 Use BFD_VERSION_STRING in place of BFD_VERSION.
3500 (ld_program_version): Remove.
3501 * Makefile.am (Makefile): Depend on bfd/configure.in.
3503 * Makefile.in: Regenerate.
3505 2001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
3507 * Makefile.am: Update dependencies with "make dep-am".
3508 * Makefile.in: Regenerate.
3510 2001-09-29 John Reiser <jreiser@BitWagon.com>
3512 * ldlang.c (lang_common): Conditionally inhibit Common allocation.
3513 * lexsup.c: Add --no-define-common commandline option.
3514 * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
3515 * ldlex.l: Likewise.
3516 * ld.h: Add command_line.inhibit_common_definition.
3517 * ldmain.c (main): Initialize.
3518 * ld.texinfo: Document.
3520 2001-09-29 Alan Modra <amodra@bigpond.net.au>
3522 * ldlang.c (section_already_linked): Remove assignment to kept_section.
3524 2001-09-26 Alan Modra <amodra@bigpond.net.au>
3526 * ldmisc.c (USE_STDARG): Remove.
3527 (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
3532 * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
3533 declarations. Update copyright.
3535 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
3537 * pe-dll.c: Remove obsoleted declaration of
3538 pe_get_data_import_dll_name.
3539 (pe_create_import_fixup): Fix thinko.
3541 * ld.texinfo(enable-auto-import): Clarify the explanation.
3543 2001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
3545 * pe-dll.c (pe_create_import_fixup): Revert previous patch.
3546 * emultemp/pe.em (pe_data_import_dll): Move definition outside of
3547 DLL_SUPPORT controlled code.
3549 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
3551 * emultempl/pe.em(pe_data_import_dll): Make static.
3552 (pe_get_data_import_dll_name): New accessor function.
3553 * pe-dll.c(pe_create_import_fixup): call
3554 pe_get_data_import_dll_name() from pe.em, instead of
3555 directly accessing pe_data_import_dll variable from pe.em.
3557 2001-09-18 Bruno Haible <haible@clisp.cons.org>
3559 * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
3560 (def_file_add_directive): Use ISSPACE instead of isspace.
3561 (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
3562 isdigit/isxdigit/isalpha/isalnum.
3563 * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
3564 (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
3565 * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
3566 (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
3568 * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
3569 (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
3571 * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
3572 (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
3573 * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
3574 (ctor_prio): Use ISDIGIT instead of isdigit.
3575 * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
3576 (ldfile_open_file_search): Use ISALPHA instead of isalpha.
3577 (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
3579 * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
3580 (stricpy): Use TOLOWER instead of isupper/tolower.
3581 (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
3582 * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
3583 (lex_warn_invalid): Use ISPRINT instead of isprint.
3584 * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
3585 (main): For gettext, also set the LC_CTYPE locate facet.
3586 (add_keepsyms_file): Use ISSPACE instead of isspace.
3587 * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
3588 (is_num, parse_args): Use ISDIGIT instead of isdigit.
3589 * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
3590 (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
3591 * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
3592 (gldppcmacos_read_file): Use ISSPACE instead of isspace.
3593 * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
3594 (quoteput): Use ISSPACE instead of isspace.
3595 (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
3598 2001-09-18 Alan Modra <amodra@bigpond.net.au>
3600 * deffilep.y (def_stash_module): Constify "name" param.
3602 * pe-dll.c: Replace CONST with const throughout.
3603 (quick_symbol): Constify "n1", "n2", "n3" params.
3604 (make_singleton_name_thunk): Constify "import" param. Make
3605 "buffer_len" a size_t.
3606 (make_import_fixup_entry): Constify "name", "fixup_name",
3607 "dll_symname" params.
3608 (pe_get16): Cast args of bfd_seek. Replace bfd_read with bfd_bread.
3609 (pe_get32): Likewise.
3610 (pe_implied_import_dll): Likewise.
3612 * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
3613 (sort_by_section_name): Likewise.
3615 * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
3616 (make_import_fixup): Cast printf arg, rel->address to long rather
3618 (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
3620 2001-09-15 Alan Modra <amodra@bigpond.net.au>
3622 * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
3623 defines BufferSize. Increase buffer size by one.
3625 2001-09-14 Ralf Habacker <Ralf.Habacker@freenet.de>
3627 * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
3629 2001-09-14 Kevin Lo <kevlo@openbsd.org>
3631 * configure.tgt: Add arm-openbsd target.
3633 2001-09-12 H.J. Lu <hjl@gnu.org>
3635 * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
3637 (ALL_64_EMULATIONS): Here.
3638 * Makefile.in: Regenerated.
3640 2001-09-12 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3642 * emultempl/pe.em(make_import_fixup): change signature to
3643 take asection as well as arelec; we need this for proper
3644 error reporting. Only call pe_create_import_fixup() if
3645 there is no attempt to add a constant addend to the reloc;
3646 otherwise, report error condition.
3647 * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
3648 since final argument is a pointer to make_import_fixup().
3649 Change call to cb() to match make_import_fixup() signature.
3650 (make_import_fixup_mark): make buffer_len unsigned.
3651 * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
3653 2001-09-12 Charles Wilson <cwilson@ece.gatech.edu>
3655 * ld.texinfo: add verbose documentation for auto-import
3656 direct-addressing workaround, to compliment the terse
3659 2001-09-12 Andrew MacLeod <amacleod@redhat.com>
3661 * scripttempl/v850.sc: Add gcc_except_table sections.
3663 2001-09-11 Jeffrey A Law (law@cygnus.com)
3665 * emulparams/h8300helf.sh: Move stack to a much higher memory address.
3666 * emulparams/h8300self.sh: Similarly.
3668 2001-09-05 Danny Smith <dannysmith@users.souceforge.net>
3670 * ld.texinfo (Options, --stack): Correct default value for stack
3673 2001-09-05 Tom Rix <trix@redhat.com>
3675 * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
3677 2001-09-03 Andreas Jaeger <aj@suse.de>
3679 * emultempl/beos.em: Declare prototypes for comparions functions,
3682 2001-09-02 Andreas Jaeger <aj@suse.de>
3684 * emultempl/aix.em: Add missing prototype.
3685 * emultempl/lnk960.em: Likewise.
3686 * emultempl/vanilla.em: Likewise.
3687 * emultempl/armcoff.em: Likewise.
3688 * emultempl/armelf_oabi.em: Likewise.
3689 * emultempl/beos.em: Likewise.
3690 * emultempl/gld960c.em: Likewise.
3691 * emultempl/gld960.em: Likewise.
3693 * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
3694 for prototype declaration.
3696 2001-08-31 Eric Christopher <echristo@redhat.com>
3697 Jason Eckhardt <jle@redhat.com>
3699 * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
3701 2001-08-31 Andreas Jaeger <aj@suse.de>
3703 * emultempl/pe.em: Add missing prototypes.
3704 (gld_${EMULATION_NAME}_after_open): Remove extra args to
3705 pe_find_data_imports.
3706 (pr_sym): Add unused attribute.
3708 2001-08-29 Joel Sherrill <joel@OARcorp.com>
3710 * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
3711 default from coff to elf.
3713 2001-08-29 Jeff Law <law@redhat.com>
3715 * emulparams/h8300helf.sh: Resync with h8300elf.sh. Update
3717 * emulparams/h8300self.sh: Similarly.
3719 2001-08-28 J"orn Rennecke <amylaar@redhat.com>
3721 * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
3723 (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
3724 * configure.tgt (h8300-*-elf*): New case.
3725 * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
3726 * emulparams/h8300self.sh: New file.
3727 * Makefile.in: Regenerated.
3729 2001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
3731 * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
3734 2001-08-27 Linus Nordberg <linus@swox.com>
3735 Alan Modra <amodra@bigpond.net.au>
3737 * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
3738 (eelf64ppc.c, eelf64lppc.c): Add make targets.
3740 * Makefile.in: Regenerate.
3741 * configure.tgt: Add powerpc64 support. Move pdp11, pjl, pj
3742 entries to correct alphabetical position.
3743 * emulparams/elf64ppc.sh: New.
3744 * emulparams/elf64lppc.sh: New.
3746 2001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
3748 * ldmain.c (main): Declare BSIZE as static.
3750 2001-08-23 Jakub Jelinek <jakub@redhat.com>
3752 * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
3753 into .rel.dyn resp. .rela.dyn if combreloc.
3754 (get_script): If .x linker script is equal to .xn, only put it
3755 once into the binary.
3756 Add .xc and .xsc scripts.
3757 (parse_args): Handle -z combreloc and -z nocombreloc.
3758 * scripttempl/elf.sc (.rela.sbss): Fix a typo.
3759 For .xc and .xsc scripts put all .rel* or .rela* input sections
3760 but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
3761 * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
3763 Strip trailing whitespace from script.
3764 Generate .xc and .xsc scripts if requested.
3765 * ldmain.c (main): Initialize link_info.combreloc and
3766 link_info.spare_dynamic_tags.
3767 * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
3768 (ld_options): Add --spare-dynamic-tags option.
3769 (parse_args): Likewise.
3770 * ld.texinfo: Document -z combreloc and -z nocombreloc.
3771 * ldint.texinfo: Document .xc and .xsc linker scripts.
3772 * NEWS: Add notes about -z combreloc and SHF_MERGE.
3774 2001-08-22 H.J. Lu <hjl@gnu.org>
3776 * emulparams/elf32fr30.sh: Add a newline.
3778 2001-08-21 Andreas Jaeger <aj@suse.de>
3780 * deffilep.y: Add missing prototypes.
3781 * pe-dll.c: Likewise.
3783 2001-08-20 Alan Modra <amodra@bigpond.net.au>
3785 * ldlang.c (insert_pad): Fix typos in last patch.
3787 * ldlang.c: When traversing lang_statement_union_type lists,
3788 consistently use "header.next" rather than "next".
3789 * mpw-eppcmac.c: Likewise.
3790 * emultempl/beos.em: Likewise.
3791 * emultempl/hppaelf.em: Likewise.
3792 * emultempl/pe.em: Likewise.
3793 * ldlang.h (union lang_statement_union): Remove "next" field.
3795 * ldlang.c (insert_pad): Use offsetof macro.
3796 (lang_size_sections): Always neuter padding statements.
3797 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
3799 * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
3800 passed to lang_size_sections.
3801 (pe_exe_fill_sections): Likewise.
3802 * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
3803 (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
3805 2001-08-18 Alan Modra <amodra@bigpond.net.au>
3807 * emultempl/aix.em: Formatting fixes.
3809 2001-08-18 Alan Modra <amodra@bigpond.net.au>
3811 * ldlang.c (insert_pad): Make use of an existing pad statement if
3812 available. Move code calculating alignment, adjusting section
3813 alignment power, and adjusting dot to ..
3814 (size_input_section): .. here. Remove unused relax param.
3815 (lang_size_sections): Change boolean `relax' param to boolean *.
3816 Adjust call to size_input_section. Make use of insert_pad to
3817 place pad after the assignment statement. If relaxing, zap
3819 (reset_memory_regions): Reset output_bfd section sizes too.
3820 (relax_again): Move to..
3821 (lang_process): ..here. Adjust call to lang_size_sections, and
3822 remove duplicated code.
3823 * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
3825 2001-08-17 Alan Modra <amodra@bigpond.net.au>
3827 * ld.texinfo: Document that fill values now use the four least
3829 * emulparams/elf32fr30.sh (NOP): Update.
3830 * emulparams/elf32mcore.sh: Likewise.
3831 * emulparams/elf64_s390.sh: Likewise.
3832 * emulparams/elf_i386.sh: Likewise.
3833 * emulparams/elf_i386_be.sh: Likewise.
3834 * emulparams/elf_i386_chaos.sh: Likewise.
3835 * emulparams/elf_i386_ldso.sh: Likewise.
3836 * emulparams/elf_s390.sh: Likewise.
3837 * emulparams/elf_x86_64.sh: Likewise.
3838 * emulparams/i386moss.sh: Likewise.
3839 * emulparams/i386nw.sh: Likewise.
3840 * emulparams/m68kelf.sh: Likewise.
3841 * scripttempl/elf.sc: Update NOP comment.
3842 * scripttempl/elfi370.sc: Likewise.
3843 * scripttempl/elfm68hc11.sc: Likewise.
3844 * scripttempl/elfm68hc12.sc: Likewise.
3845 * scripttempl/nw.sc: Likewise.
3847 2001-08-15 Tom Rix <trix@redhat.com>
3849 * ldgram.y (saved_script_handle): Initialize to NULL.
3850 * ldmain.c (main): Change check on saved_script_handle.
3852 2001-08-14 Alan Modra <amodra@bigpond.net.au>
3854 * emultempl/elf32.em: Formatting fixes.
3855 (output_prev_sec_find): Test for bfd_ind_section too; do so by
3856 looking at sec->owner.
3857 (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
3858 (gld${EMULATION_NAME}_place_orphan): Add a few comments. Remove
3859 unused code, and reorganize orphan section placement code.
3861 * ldlang.c (wild_doit): Rename to lang_add_section.
3862 * ldlang.h: Here too.
3863 * mpw-elfmips.c: And here.
3864 * emultempl/beos.em: And here.
3865 * emultempl/elf32.em: And here.
3866 * emultempl/hppaelf.em: And here.
3867 * emultempl/pe.em: And here.
3869 2001-08-13 Richard Henderson <rth@redhat.com>
3871 * emultempl/needrelax.em: New file.
3872 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
3873 * Makefile.am (eelf64_ia64.c): Depend on it.
3874 * Makefile.in: Rebuild.
3876 2001-08-13 Alan Modra <amodra@bigpond.net.au>
3878 * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
3879 output_section is set non-NULL.
3881 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
3882 `true' for SEC_EXCLUDE sections so that the generic code doesn't
3883 needlessly create an output_section_statement. Treat a correctly
3884 named output_section_statement with NULL bfd_section as compatible.
3886 2001-08-13 Hans-Peter Nilsson <hp@bitrange.com>
3888 * emultempl/generic.em: Support EXTRA_EM_FILE.
3889 (ld_${EMULATION_NAME}_emulation): Support emulation parameters
3890 LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
3891 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
3892 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
3893 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
3894 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
3895 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
3896 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
3897 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
3898 LDEMUL_FIND_POTENTIAL_LIBRARIES.
3900 2001-08-12 Richard Henderson <rth@redhat.com>
3902 * scripttempl/elf.sc, scripttempl/elfd30v.sc,
3903 scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
3904 scripttempl/v850.sc: Keep .jcr data.
3906 2001-08-12 H.J. Lu <hjl@gnu.org>
3907 Andrew Haley <aph@cambridge.redhat.com>
3908 Nick Clifton <nickc@redhat.com>
3910 * ldgram.y (had_script): Change name to saved_script_handle.
3911 Change type to file handle.
3912 * ld.h (had_script): Rename and retype.
3913 * ldfile.c (ldfile_open_command_file): Save the file handle
3914 used in saved_script_handle.
3915 * lexsup.c (parse_args): Do not allow -c option to alter
3916 saved_script_handle.
3917 * ldmain.c (main): Print out the linker script used if
3918 --verbose is given. Check saved_script_handle to obtain the
3919 external linker script used, or if NULL, dump the builtin
3921 * ld.texinfo: Document that --verbose now dumps the linker
3922 script used, regardless of whether it was an internal or an
3925 2001-08-10 Andreas Jaeger <aj@suse.de>
3927 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
3929 * configure: Regenerate.
3931 2001-08-09 Alan Modra <amodra@bigpond.net.au>
3933 * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
3935 * scripttempl/elf.sc: Move non-text .dynamic section before
3936 .plt/.got/.sdata* group.
3937 (OTHER_GOT_SECTIONS): Move to immediately after .got.
3938 (OTHER_SDATA_SECTIONS): Add.
3939 * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
3941 * emulparams/crislinux.sh: Likewise.
3942 * emulparams/elf32b4300.sh: Likewise.
3943 * emulparams/elf32bmip.sh: Likewise.
3944 * emulparams/elf32bmipn32.sh: Likewise.
3945 * emulparams/elf32bsmip.sh: Likewise.
3946 * emulparams/elf32btsmip.sh: Likewise.
3947 * emulparams/elf32ebmip.sh: Likewise.
3948 * emulparams/elf32elmip.sh: Likewise.
3949 * emulparams/elf32l4300.sh: Likewise.
3950 * emulparams/elf32lmip.sh: Likewise.
3951 * emulparams/elf32lsmip.sh: Likewise.
3952 * emulparams/elf32ltsmip.sh: Likewise.
3953 * emulparams/elf64bmip.sh: Likewise.
3954 * emulparams/elf64btsmip.sh: Likewise.
3955 * emulparams/elf64ltsmip.sh: Likewise.
3957 2001-08-08 Alan Modra <amodra@bigpond.net.au>
3959 * genscripts.sh: Source the emulparams script before each output
3960 script is generated so that variables like `RELOCATING' may affect
3961 variables defined in the emulparams script.
3963 2001-08-04 Alan Modra <amodra@bigpond.net.au>
3965 * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
3968 * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
3969 ie. iterate over wild_statement.section_list.
3970 (gld${EMULATION_NAME}_place_orphan): Likewise.
3972 2001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3974 * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
3975 .fini[0-4] sections used by _exit
3976 (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
3977 (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
3978 * scripttempl/elfm68hc11.sc: Likewise.
3980 2001-08-03 H.J. Lu <hjl@gnu.org>
3982 * emultempl/beos.em (init): Add the missing initialization.
3984 2001-08-03 Alan Modra <amodra@bigpond.net.au>
3986 * ld.texinfo (Input Section Basics): Clarify ordering of output
3988 * ldlang.c (callback_t): Add wildcard_list param.
3989 (walk_wild_section): Remove "section" param. Rewrite for
3990 lang_wild_statement_type change. Remove unique_section_p test.
3991 (walk_wild_file): Remove "section" param.
3992 (walk_wild): Remove "section" and "file" params.
3993 (lang_gc_wild): Likewise.
3994 (wild): Likewise. Modify for lang_wild_statement_type change.
3995 (wild_sort): Likewise. Add "sec" param.
3996 (gc_section_callback): Likewise.
3997 (output_section_callback): Likewise. Do unique_section_p test.
3998 (map_input_to_output_sections): Modify call to wild.
3999 (lang_gc_sections_1): Likewise.
4000 (print_wild_statement): Modify for lang_wild_statement_type
4002 (lang_add_wild): Replace filename, filenames_sorted param with
4003 filespec. Replace section_name, sections_sorted,
4004 exclude_filename_list with section_list.
4005 * ldlang.h (lang_add_wild): Here too.
4006 (lang_wild_statement_type): Replace section_name, sections_sorted,
4007 and exclude_filename_list with section_list.
4008 * ldgram.y (current_file): Delete.
4009 (%union): Add wildcard_list.
4010 (file_NAME_list): Set type to wildcard_list. Build a linked list
4011 rather than calling lang_add_wild for each entry.
4012 (input_section_spec_no_keep): Call lang_add_wild here instead.
4013 * ld.h (struct wildcard_list): Declare.
4014 * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
4016 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
4018 * ldmain.c (main): initialize link_info.pei386_auto_import
4019 * pe-dll.c: new tables for auto-export filtering
4020 (auto_export): change API, pass abfd for contextual filtering.
4021 Loop thru tables of excluded symbols instead of comparing
4024 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
4026 * pe-dll.c: new variable pe_dll_enable_extra_debug. New
4027 static variable current_sec (static struct sec *). Add
4028 forward declaration for add_bfd_to_link.
4029 (process_def_file): Don't export undefined symbols. Do not
4030 export symbols starting with "_imp__". Call auto_export()
4032 (pe_walk_relocs_of_symbol): New function.
4033 (generate_reloc): add optional extra debugging
4034 (pe_dll_generate_def_file): eliminate extraneous initial blank
4036 (make_one): enlarge symtab to make room for __nm__ symbols
4037 (DATA auto-import support).
4038 (make_singleton_name_thunk): New function.
4039 (make_import_fixup_mark): New function.
4040 (make_import_fixup_entry): New function.
4041 (pe_create_import_fixup): New function.
4042 (add_bfd_to_link): Specify that 'name' argument is a CONST
4044 * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
4045 declare new functions pe_walk_relocs_of_symbol and
4046 pe_create_import_fixup.
4047 * emultempl/pe.em: add new options --enable-auto-import,
4048 --disable-auto-import, and --enable-extra-pe-debug.
4049 (make_import_fixup): New function.
4050 (pe_find_data_imports): New function.
4051 (pr_sym): New function.
4052 (gld_${EMULATION_NAME}_after_open): Add optional extra pe
4053 debugging. Call pe_find_data_imports. Mark .idata as DATA, not
4056 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
4058 * ld.texinfo: add additional documentation for
4059 --export-all-symbols. Document --out-implib,
4060 --enable-auto-image-base, --disable-auto-image-base,
4061 --dll-search-prefix, --enable-auto-import, and
4062 --disable-auto-import.
4063 * ldint.texinfo: Add detailed documentation on auto-import
4066 2001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
4068 * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
4071 2001-07-24 Alan Modra <amodra@bigpond.net.au>
4073 * Makefile.am: Update dependencies with "make dep-am".
4074 * Makefile.in: Regenerate
4076 2001-07-23 Alan Modra <amodra@bigpond.net.au>
4078 * ldcref.c (check_section_sym_xref): New function.
4079 (check_nocrossrefs): Call it.
4080 (check_nocrossref): Interate over h->refs here instead of..
4081 (check_refs): ..here. Pass in the symbol name, section, and bfd
4082 rather than hash_entry pointers.
4083 (struct check_refs_info): Keep symbol name rather than hash entry.
4085 (check_reloc_refs): Tweak for above changes in check_refs_info.
4086 Only report references to section syms when symname is NULL to
4087 prevent duplicate messages for the same reloc.
4089 2001-07-19 Nick Clifton <nickc@cambridge.redhat.com>
4091 * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
4092 available. Do not print NULL trees.
4093 (exp_print_token): Print unknown tokens with values > 126 as
4094 decimal values not ASCII characters.
4096 * ldlang.c (lang_leave_overlay): If a region is specified assign
4097 it to all sections inside the overlay unless they have been
4098 assigned to the own, non-default, memory region.
4100 * README: Add header for consistency with other README files.
4102 2001-07-14 H.J. Lu <hjl@gnu.org>
4104 * emultempl/elf32.em (output_prev_sec_find): Never return
4105 bfd_abs_section_ptr, bfd_com_section_ptr nor
4106 bfd_und_section_ptr.
4108 2001-07-14 Nick Clifton <nickc@cambridge.redhat.com>
4110 * Makefile.am (em32relf.c): Change dependency from generic.em to
4112 * Makefile.in: Regenerate.
4114 2001-07-14 matthew green <mrg@eterna.com.au>
4116 * configure.tgt (i386-*-netbsdelf*): New target.
4117 (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
4119 2001-07-13 Jakub Jelinek <jakub@redhat.com>
4121 * emultempl/elf32.em (output_prev_sec_find): New.
4122 (place_orphan): Use it.
4124 2001-07-11 H.J. Lu <hjl@gnu.org>
4126 * ldmain.c (main): Fix typos in the last change.
4128 2001-07-11 Jakub Jelinek <jakub@redhat.com>
4130 * ldmain.c (main): Disallow -F and -f without -shared.
4132 2001-07-11 Nick Clifton <nickc@cambridge.redhat.com>
4134 * emultempl/pe.em (after_open): Check for the output_bfd not
4135 having any coff_data structure allocated to it.
4137 2001-07-09 David O'Brien <obrien@FreeBSD.org>
4139 * emultempl/elf32.em: Do not assuming that contents of the buffer
4140 returned from basename function will remain unchanged accross other
4143 2001-07-03 H.J. Lu <hjl@gnu.org>
4145 * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
4146 2001-07-03. It creates dynamic entries even for static binaries.
4148 2001-07-03 Jakub Jelinek <jakub@redhat.com>
4150 * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
4151 (DYNAMIC): Use it to reserve few dynamic entries for
4154 2001-06-27 Alan Modra <amodra@bigpond.net.au>
4156 * emulparams/hppa64linux.sh: New file.
4157 * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
4158 * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
4159 (ehppa64linux.c): Add rule to make it.
4161 * Makefile.in: Regenerate.
4163 2001-06-21 Hans-Peter Nilsson <hp@axis.com>
4165 * ld.texinfo (Options, -r): Mention restrictions when using
4166 different object formats.
4168 2001-06-19 Hans-Peter Nilsson <hp@axis.com>
4170 * ldlang.c (lang_check): Emit fatal error if relocatable link
4171 between different object flavours with relocations in input.
4173 2001-06-19 H.J. Lu <hjl@gnu.org>
4175 * ld.texinfo (-E, --export-dynamic): Mention --version-script.
4176 (--version-script): Mention the language support.
4178 2001-06-19 H.J. Lu <hjl@gnu.org>
4180 * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
4182 2001-06-18 H.J. Lu <hjl@gnu.org>
4184 * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
4185 (diststuff): Add $(MANS).
4186 * Makefile.in: Regenerated.
4190 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
4192 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
4193 Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
4194 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
4195 * ld.h (args_type): Remove member export_dynamic. All users
4196 changed to use struct bfd_link_info member.
4198 * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
4199 $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
4200 * Makefile.in: Regenerate.
4202 2001-06-18 H.J. Lu <hjl@gnu.org>
4204 * ldlang.c (init_os): Add the newline to the einfo call.
4205 (lang_check): Likewise.
4206 (lang_do_version_exports_section): Likewise.
4208 2001-06-15 H.J. Lu <hjl@gnu.org>
4210 * lexsup.c (parse_args); Save optind to report unrecognized
4213 2001-06-15 Hans-Peter Nilsson <hp@axis.com>
4215 * ldlang.c (lang_check): Emit fatal error if relocatable link
4216 between different object flavours.
4218 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
4219 Set new link_info member export_dynamic.
4220 * ldmain.c (main): Initialize new link_info member export_dynamic.
4222 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
4224 * ldlang.c (walk_wild): Only call walk_wild_file if
4225 lookup_name returns something.
4226 (lookup_name): If load_symbols fails, return NULL.
4227 (load_symbols): Change to a boolean function.
4228 (open_input_bfds): If load_symbols fails then do not make the
4231 2001-06-08 Alan Modra <amodra@bigpond.net.au>
4233 * ldlang.c (record_bfd_errors): Remove.
4235 * emultempl/aix.em: Fix copyright dates.
4237 2001-06-07 Andreas Jaeger <aj@suse.de>
4239 * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
4240 (TEXT_START_ADDR): Likewise.
4242 2001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
4244 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
4246 2001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
4248 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
4250 2001-05-31 H.J. Lu <hjl@gnu.org>
4252 * ldlang.c (open_input_bfds): Don't change the bfd error
4253 handler whilst loading symbols.
4255 2001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
4257 * configure.tgt: Remove i370-mvs architecture, it is not currently
4260 2001-05-25 H.J. Lu <hjl@gnu.org>
4262 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
4263 like emulparams/aixppc.sh.
4265 2001-05-25 H.J. Lu <hjl@gnu.org>
4267 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
4268 setting of output_filename after bfd_scan_arch.
4269 * emultempl/pe.em: Likewise.
4271 2001-05-25 H.J. Lu <hjl@gnu.org>
4273 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
4274 like emulparams/aixppc.sh.
4276 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
4277 instead of ${srcdir}/emultempl/stringify.sed.
4279 2001-05-25 Timothy Wall <twall@oculustech.com>
4281 * emulparams/elf64_aix.sh: Change settings to match IBM linker
4284 2001-05-25 Alan Modra <amodra@one.net.au>
4286 * configure.host: Replace linuxoldld with linux*oldld.
4287 * configure.tgt: Likewise.
4289 2001-05-24 H.J. Lu <hjl@gnu.org>
4291 * emultempl/stringify.sed: Removed again.
4293 2001-05-24 H.J. Lu <hjl@gnu.org>
4295 * emultempl/aix.em (OUTPUT_ARCH): Defined.
4296 (gld${EMULATION_NAME}_before_parse): Initialize
4297 ldfile_output_architecture, ldfile_output_machine and
4298 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
4299 * emultempl/beos.em: Likewise.
4300 * emultempl/elf32.em: Likewise.
4301 * emultempl/linux.em: Likewise.
4302 * emultempl/mipsecoff.em: Likewise.
4303 * emultempl/pe.em: Likewise.
4304 * emultempl/sunos.em: Likewise.
4306 2001-05-24 Tom Rix <trix@redhat.com>
4308 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
4309 udate import file format.
4310 (change_symbol_mode) New, same
4311 (is_syscall) New, same
4312 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
4313 * emulparams/aixppc64.sh : same
4314 * emulparams/aixrs6.sh : same
4315 * emulparams/ppcmacos.sh : same
4316 * emultempl/aix.em : use strtoull to parse options
4317 * Makefile.am : add eaixppc64 emulation for xcoff64
4318 * Makefile.in : same
4319 * configure.tgt : same
4321 * scripttempl/aix.sc : default text section offset to 0x10000000
4322 default data section offset to 0x20000000
4323 add .sv3264 and .sv64 pseudo sections
4324 loader and debug sections use the currect section offset.
4326 * emultempl/aix.em : Add xcoff64 support
4327 Add -binitfini support
4328 (gld${EMULATION_NAME}_before_parse) -binitfini
4329 (gld${EMULATION_NAME}_parse_args) same
4330 (gld${EMULATION_NAME}_before_allocation) format change for special
4333 * emulparams/aixppc64.sh : New file for xcoff64 support
4335 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
4337 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
4338 variable to avoid non-portable shell construct.
4340 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4342 * ldmain.c (get_emulation): Add -mips5 command line argument.
4344 2001-05-22 Alexandre Oliva <aoliva@redhat.com>
4346 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
4347 (ELF_INTERPRETER_NAME): Define it.
4348 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
4350 * configure.tgt (targ_emul, targ_extra_emuls)
4351 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
4352 as primary, elf_i386 as extra.
4353 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
4354 (eelf_i386_ldso.c): New rule.
4355 * Makefile.in: Rebuilt.
4357 2001-05-22 Nick Clifton <nickc@redhat.com>
4359 * lexsup.c (ld_options): Allow -I to be an alias for
4360 --dynamic-linker. This is for Solaris compatability.
4361 * ld.texinfo: Document that -I can be used.
4364 2001-05-16 Alan Modra <amodra@one.net.au>
4366 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
4367 whether an input section is the first one assigned to an output
4369 Assorted formatting fixes.
4371 2001-05-14 DJ Delorie <dj@delorie.com>
4373 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
4374 * Makefile.in: Ditto.
4376 2001-05-11 Jakub Jelinek <jakub@redhat.com>
4378 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
4379 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
4381 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
4383 2001-05-11 Jakub Jelinek <jakub@redhat.com>
4385 * ldlang.c (lang_process): Call bfd_merge_sections.
4387 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4389 * ldgram.y: Fix typo.
4391 2001-05-03 H.J. Lu <hjl@gnu.org>
4393 * emultempl/elf32.em: Include "libiberty.h".
4394 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
4395 basename of the bfd filename.
4396 (gld${EMULATION_NAME}_stat_needed): Likewise.
4397 (gld${EMULATION_NAME}_try_needed): Likewise.
4398 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
4400 2001-05-02 H.J. Lu <hjl@gnu.org>
4402 * emultempl/pe.em: Include <ctype.h>.
4404 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
4406 * emulparams/elf32openrisc.sh: New file.
4408 * Makefile.am: Add OpenRISC target.
4409 * Makefile.in: Regenerated.
4411 * configure.tgt: Add openrisc-*-* mapping.
4413 2001-05-02 Nick Clifton <nickc@redhat.com>
4415 * emultempl/aix.em: Replace buystring with xstrdup.
4416 * emultempl/beos.em: Replace buystring with xstrdup.
4418 2001-05-02 H.J. Lu <hjl@gnu.org>
4420 * ldfile.c: Include "libiberty.h".
4421 * ldlex.l: Likewise.
4423 * ldmisc.c (buystring): Removed.
4424 * ldmisc.h: Likewise.
4426 * ldfile.c: Replace buystring with xstrdup.
4427 * ldlang.c: Likewise.
4428 * ldlex.l: Likewise.
4429 * ldmain.c: Likewise.
4430 * ldmisc.c: Likewise.
4431 * lexsup.c: Likewise.
4432 * mpw-eppcmac.c: Likewise.
4434 2001-04-30 Andreas Jaeger <aj@suse.de>
4436 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
4438 2001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
4440 * ldlang.c (load_symbols): Give emulation a chance
4441 to process unrecognized file before fatal error is
4442 reported, not after.
4444 2001-04-27 Sean McNeil <sean@mcneil.com>
4446 * configure.tgt: Add arm-vxworks target.
4447 * scripttempl/armcoff.sc: Support .text or .data as a section name
4451 2001-04-13 J.T. Conklin <jtc@redback.com>
4453 * ld.texinfo: Document --fatal-warnings.
4456 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
4457 warnings have been turned into errors.
4458 * lexsup.c (OPTION_WARN_FATAL): Define.
4459 (ld_options): Entry for --fatal-warnings.
4460 (parse_args): Handle OPTION_WARN_FATAL.
4461 * ld.h (ld_config_type): Add fatal_warnings field.
4463 2001-04-13 Jakub Jelinek <jakub@redhat.com>
4465 * ldmain.c (main): Default to discard_sec_merge.
4466 * lexsup.c (OPTION_DISCARD_NONE): Define.
4467 (ld_options): Add --discard-none.
4468 (parse_args): Handle OPTION_DISCARD_NONE.
4469 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
4470 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
4471 all its input sections match.
4473 2001-04-05 Steven J. Hill <sjhill@cotw.com>
4475 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
4476 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
4477 (eelf32ltsmip.c): New target.
4478 (eelf64btsmip.c): Likewise.
4479 (eelf64ltsmip.c): Likewise.
4480 * Makefile.in: Regenerated.
4482 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
4484 (mips*-*-linux-gnu*): Likewise.
4486 * emulparams/elf32ltsmip.sh: New. Traditional little endian
4488 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
4490 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
4493 2001-04-05 Hans-Peter Nilsson <hp@axis.com>
4495 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
4496 correct value of __Stext here.
4497 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
4500 * emulparams/crislinux.sh: Remove FIXME.
4502 2001-04-02 Alan Modra <alan@linuxcare.com.au>
4504 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
4505 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
4507 2001-03-27 Hans-Peter Nilsson <hp@axis.com>
4509 * configure.tgt (cris-*-*): Change default emulation to criself.
4510 (cris-*-*aout*): New rule.
4512 2001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
4514 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
4515 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
4517 2001-03-26 Andreas Jaeger <aj@suse.de>
4519 * ld.texinfo (Overview): Fix syntax in texi code.
4521 2001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4523 * ld.texinfo: Put @c man indications to generate the ld man page.
4524 When generating man, define all the variables. Define SEEALSO
4525 and SYNOPSIS. Re-organize some lines to avoid the cross references.
4526 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
4527 (ld.1): Generate from ld.texinfo.
4528 * Makefile.in: Regenerate.
4530 2001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
4532 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
4533 and '-fdata-sections'. Set the VMA of STABS sections to zero.
4535 2001-03-17 Ulrich Drepper <drepper@redhat.com>
4537 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
4538 is an absolute path look only for this file and not along the path.
4540 2001-03-17 Ulrich Drepper <drepper@redhat.com>
4542 * emultempl/elf32.em (OPTION_GROUP): New macro.
4543 Add new option Bgroup to longopts.
4544 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
4545 (gld*_list_options): Add -Bgroup and -z defs.
4546 * ld.1: Document -Bgroup and -z defs.
4547 * ld.texinfo: Likewise.
4549 2001-03-07 Michael Meissner <meissner@redhat.com>
4551 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
4552 with sections created by -fdata-sections.
4553 (.dynbss,.bss): Ditto.
4555 2001-03-05 Alan Modra <alan@linuxcare.com.au>
4557 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
4558 after_allocation_default, not gld..._before_allocation.
4560 2001-02-27 Alan Modra <alan@linuxcare.com.au>
4562 * configure.in (BFD_VERSION): New.
4563 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
4564 * configure: Regenerate.
4565 * Makefile.am: Run "make dep-am"
4566 * Makefile.in: Regenerate.
4568 2001-02-26 Timothy Wall <twall@cygnus.com>
4570 * emulparams/elf64_aix.sh: Add additional read-only sections;
4571 uncomment lines which are now required.
4573 2001-02-26 H.J. Lu <hjl@gnu.org>
4575 * ldlang.c (open_input_bfds): Set the bfd error handler so
4576 that problems can be caught whilst loading symbols.
4577 (record_bfd_errors): New function: Report BFD errors and mark
4578 the executable output as being invalid.
4580 2001-02-22 Timothy Wall <twall@cygnus.com>
4582 * configure.host: Add configuration for ia64-*-aix*.
4583 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
4584 Add dependencies for eelf64_aix.c.
4585 * Makefile.in: Regenerate.
4586 * configure.tgt: Add ia64-*-aix* mapping.
4587 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
4589 2001-02-20 H.J. Lu <hjl@gnu.org>
4591 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
4592 false if we found the file.
4594 2001-02-18 David O'Brien <obrien@FreeBSD.org>
4596 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
4597 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
4599 2001-02-18 lars brinkhoff <lars@nocrew.org>
4601 * Makefile.am: Add PDP-11 target.
4602 * configure.tgt: Likewise.
4603 * emulparams/pdp11.sh: New file.
4605 2001-02-17 David O'Brien <obrien@FreeBSD.org>
4607 * configure.host: Add a generic FreeBSD configuration entry such that
4608 all [modern] FreeBSD systems on all platforms will look the same.
4610 2001-02-14 H.J. Lu <hjl@gnu.org>
4612 * configure.tgt: Remove mention of earmelf_linux26.
4614 2001-02-13 Richard Henderson <rth@redhat.com>
4616 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
4618 2001-02-13 H.J. Lu <hjl@gnu.org>
4620 * ldexp.h (node_type): Add etree_provided.
4621 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
4622 type to etree_provided if defined by PROVIDE. Allow updating
4624 (exp_print_tree): Handle etree_provided.
4625 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
4628 2001-02-09 David Mosberger <davidm@hpl.hp.com>
4630 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
4631 .IA_64.unwind.* pattern to unwind table section and
4632 .IA_64.unwind_info* pattern to unwind info section.
4634 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
4636 * Makefile.am: Add linux target for S/390.
4637 * Makefile.in: Likewise.
4638 * configure.host: Likewise.
4639 * configure.tgt: Likewise.
4640 * emulparams/elf64_s390.sh: New file.
4641 * emulparams/elf_s390.sh: New file.
4643 2001-02-09 Jakub Jelinek <jakub@redhat.com>
4645 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
4647 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
4649 2001-02-06 Philip Blundell <philb@gnu.org>
4651 * Makefile.am: Remove mention of earmelf_linux26.
4652 * Makefile.in: Regenerate.
4654 2001-02-04 Philip Blundell <philb@gnu.org>
4656 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
4657 * emulparams/armelf_linux26.sh: Delete.
4658 * configure.tgt: Remove mention of armelf_linux26 emulation.
4660 2001-02-01 Nick Clifton <nickc@redhat.com>
4662 * ld.1: Replace occurances of -oformat with --oformat.
4664 2001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
4666 * ldlang.c (lang_leave_overlay): Don't set lma_region when
4667 load_base is specified.
4669 2001-01-24 Hans-Peter Nilsson <hp@axis.com>
4671 * emultempl/elf32.em: Correct spelling in comments and listed
4674 2001-01-23 Alan Modra <alan@linuxcare.com.au>
4676 * ldlang.c (lang_leave_overlay): Only set lma_region from the
4677 default for the first section of a group of overlay sections.
4679 2001-01-22 Alan Modra <alan@linuxcare.com.au>
4681 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
4682 * Makefile.in: Regenerate.
4683 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
4684 Check for null tool_dir.
4686 2001-01-16 Jim Wilson <wilson@redhat.com>
4688 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
4689 and IA_64.unwind.info.
4691 2001-01-16 H.J. Lu <hjl@gnu.org>
4693 * ldlang.c (lang_check): Merge the private data only if the
4694 input file has contents.
4696 2001-01-14 Alan Modra <alan@linuxcare.com.au>
4698 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
4700 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
4701 enabling search for libmilli. On a relocatable link, make .text
4703 (LDEMUL_AFTER_PARSE): Define.
4704 (hppaelf_finish): Correct spelling of relocatable in comments.
4706 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
4707 rummage through the script for sections on the unique list.
4708 Correct length of strncmp for ".note".
4709 (gld${EMULATION_NAME}_check_needed): Rearrange function.
4711 * ldlang.c (unique_section_list): New var.
4712 (unique_section_p): New function.
4713 (walk_wild_section): Don't match sections on unique_section_list.
4714 (lang_add_unique): New function.
4715 Correct spelling of relocatable in comments.
4717 * ldlang.h (struct unique_sections): Declare.
4718 (unique_section_list): Declare.
4719 (unique_section_p): Declare.
4720 (lang_add_unique): Declare.
4722 * lexsup.c (ld_options): Allow --unique to take an optional arg.
4723 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
4725 * ld.texinfo (--unique): Update.
4727 2001-01-13 Nick Clifton <nickc@redhat.com>
4729 * lexsup.c (parse_args): Remove spurious white space.
4731 2001-01-12 Nick Clifton <nickc@redhat.com>
4733 * lexsup.c (parse_args): Update copyright date.
4735 2001-01-12 Philip Blundell <pb@futuretv.com>
4737 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
4739 2001-01-10 Kazu Hirata <kazu@hxi.com>
4741 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
4742 * scripttempl/h8300h.sc: Fix formatting.
4743 * scripttempl/h8300s.sc: Likewise.
4744 * scripttempl/h8500.sc: Likewise.
4745 * scripttempl/h8500b.sc: Likewise.
4746 * scripttempl/h8500c.sc: Likewise.
4747 * scripttempl/h8500m.sc: Likewise.
4748 * scripttempl/h8500s.sc: Likewise.
4750 2000-01-07 David O'Brien <obrien@BSDi.com>
4752 * emultempl/elf32.em: Only perform Linux ld hints processing when
4755 2001-01-07 Philip Blundell <philb@gnu.org>
4757 * ld.texinfo (Bug Reporting): Update email address for reports.
4759 2000-12-31 Nick Clifton <nickc@redhat.com>
4761 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
4762 options by checking for a return value of '?' not -1.
4764 2000-12-28 Nick Clifton <nickc@redhat.com>
4766 * lexsup.c (struct ld_option): Add new enum value:
4768 (ld_options[]): Change -omagic, -output and -oformat options
4769 to be EXACTLY_TWO_DASHES.
4770 (OUTPUT_COUNT): Use ARRAY_SIZE.
4771 (parse_args): Change parameter 'argc' to unsigned.
4772 Place EXACTLY_TWO_DASHES options into new really_longopts
4774 If getopt_long_only fails, try calling getopt_long using the
4775 really_longopts array.
4776 (help): Print a double dash for both EXACTLY_TWO_DASHES and
4779 * ldlex.h: Fix prototype of parse_args.
4781 * ld.texinfo: Document that long options starting with 'o'
4782 must be preceeded by two dashes. Change example of a single
4783 dashed long option from -oformat to -trace-symbol.
4785 2000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
4787 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
4788 (longopts[]): New --no-default-excludes option.
4789 (gld_${EMULATION_NAME}_list_options): Document.
4790 (gld_${EMULATION_NAME}_parse_args): Handle.
4792 2000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4794 * ldlang.c (new_stat): Revert the last beautification with "innocent"
4795 whitespace, it breaks the K&R C preprocessor.
4797 2000-12-11 DJ Delorie <dj@redhat.com>
4799 * ld.texinfo: Add notes about --whole-archive and gcc.
4801 2000-11-18 Fred Fish <fnf@be.com>
4803 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
4804 (ld_options): Entry for --allow-shlib-undefined.
4805 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
4806 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
4808 * ld.texinfo: Document new command line switch.
4810 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
4812 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
4813 .fixup is actually read/write.
4814 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
4815 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
4816 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
4818 2000-12-11 Jan Hubicka <jh@suse.cz>
4820 * NEWS: Add note about x86_64 architecture.
4822 2000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
4824 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
4825 Set DWARF2 sections to a VMA of zero.
4827 2000-12-01 Joel Sherrill <joel@OARcorp.com>
4829 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
4831 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
4832 (sparc*-*-rtems*): Switched from a.out to ELF.
4834 2000-11-30 Jan Hubicka <jh@suse.cz>
4836 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
4837 (eelf_x86_64.c): New.
4838 * Makefile.in: Regenerate.
4839 * configure.tgt: Add support for x86_64-*-linux-gnu*.
4840 * emulparams/elf_x86_64.sh: New.
4842 2000-11-30 Hans-Peter Nilsson <hp@axis.com>
4844 * emulparams/crislinux.sh (ENTRY): Change back to _start.
4845 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
4847 * scripttempl/crisaout.sc: Change all RELOCATING not related to
4848 merging non-a.out sections into CONSTRUCTING.
4850 2000-11-28 Nick Clifton <nickc@redhat.com>
4852 * ld.1 (COPYING): Mention that the GNU Free Documentation
4853 License is present in the sources, but not the output, and
4854 also available from the GNU website.
4855 (GNU Free Documentation License): Comment out this section.
4857 2000-11-28 David O'Brien <obrien@dragon.nuxi.com>
4859 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
4862 2000-11-25 David O'Brien <obrien@FreeBSD.org>
4864 * ld.1: Remove old date so it does not give the impression the manpage
4867 2000-11-24 Nick Clifton <nickc@redhat.com>
4869 * configure.tgt (xscale-coff): Add target.
4870 (xscale-elf): Add target.
4872 2000-11-24 Fred Fish <fnf@be.com>
4874 * ldmain.c (main): Remove redundant init of config.make_executable
4877 2000-11-15 Richard Henderson <rth@redhat.com>
4879 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
4881 2000-11-14 Kazu Hirata <kazu@hxi.com>
4883 * scripttempl/h8300.sc: Fix formatting.
4884 * scripttempl/h8300h.sc: Likewise.
4885 * scripttempl/h8300s.sc: Likewise.
4887 2000-11-14 Denis Chertykov <denisc@overta.ru>
4889 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
4891 2000-11-09 Philip Blundell <pb@futuretv.com>
4893 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
4894 around orphan sections whose names can be represented in C.
4896 2000-11-07 Jim Wilson <wilson@redhat.com>
4898 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
4899 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
4901 2000-11-06 Nick Clifton <nickc@redhat.com>
4903 * ld.texinfo: Add GNU Free Documentation License.
4904 * ldint.texinfo: Add GNU Free Documentation License.
4905 * ld.1: Add GNU Free Documentation License.
4907 2000-11-05 Alan Modra <alan@linuxcare.com.au>
4909 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
4910 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
4912 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
4913 Move 2000-11-02 Makefile.in changes to this file.
4914 * Makefile.in: Regenerate.
4916 2000-11-03 Nick Clifton <nickc@redhat.com>
4918 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
4919 constructors and destructors.
4920 * scripttempl/h8300h.sc: Ditto.
4921 * scripttempl/h8300s.sc: Ditto.
4922 * scripttempl/h8500.sc: Ditto.
4923 * scripttempl/h8500b.sc: Ditto.
4924 * scripttempl/h8500c.sc: Ditto.
4925 * scripttempl/h8500m.sc: Ditto.
4926 * scripttempl/h8500s.sc: Ditto.
4927 * scripttempl/v850.sc: Ditto.
4928 * scripttempl/w65.sc: Ditto.
4929 * scripttempl/z8000.sc: Ditto.
4931 2000-11-02 Per Lundberg <plundis@chaosdev.org>
4933 * Makefile.in (e_i386_chaos.c): New rule.
4934 (ALL_EMULATIONS): Added e_i386_chaos.o.
4935 * emulparams/elf_i386_chaos.sh: New file.
4936 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
4938 2000-10-20 Jakub Jelinek <jakub@redhat.com>
4940 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
4941 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
4942 Fix sed invocation, so that it coped with '/' in Solaris 64bit
4943 library path suffix.
4944 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
4946 2000-10-18 Hans-Peter Nilsson <hp@axis.com>
4948 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
4949 for consecutive sections.
4951 2000-10-17 Chandrakala Chavva <cchavva@redhat.com>
4953 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
4955 * ld.texinfo: Added notes about this new option.
4957 2000-10-16 Nick Clifton <nickc@redhat.com>
4959 * emultempl/pe.em (_after_open): Add tests of return values from
4960 bfd functions. Emit appropriate error messages if necessary.
4962 2000-10-13 Nick Clifton <nickc@redhat.com>
4964 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
4965 local variables - they are not used, but leave in the call to
4966 bfd_canonicalize_symtab.
4967 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
4968 pe_dll_search_prefix.
4970 2000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
4972 * emultempl/pe.em (pe_dll_search_prefix): New variable,
4973 (longopts): New --dll-search-prefix option.
4974 (gld_${EMULATION_NAME}_list_options): Document.
4975 (gld_${EMULATION_NAME}_parse_args): Handle.
4976 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
4977 dynamically, search for a dll named '<prefix><basename>.dll'
4978 in preference to 'lib<basename>.dll' if --dll-search-prefix
4981 2000-10-12 Alan Modra <alan@linuxcare.com.au>
4983 * ldlang.c (section_already_linked): Set kept_section instead of
4986 2000-10-10 Kazu Hirata <kazu@hxi.com>
4988 * deffile.h: Fix formatting.
4989 * lexsup.c: Likewise.
4992 2000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
4994 * pe-dll.c (make_one): Do not generate code thunk for DATA
4996 (process_def_file): deduce DATA flag for auto-export sumbols.
4998 2000-10-09 Kazu Hirata <kazu@hxi.com>
5000 * ld.h: Fix formatting.
5001 * ldcref.c: Likewise.
5002 * ldctor.h: Likewise.
5003 * ldemul.c: Likewise.
5004 * ldemul.h: Likewise.
5005 * ldexp.c: Likewise.
5006 * ldexp.h: Likewise.
5007 * ldfile.c: Likewise.
5008 * ldfile.h: Likewise.
5009 * ldlang.c: Likewise.
5010 * ldlang.h: Likewise.
5011 * ldmain.c: Likewise.
5012 * pe-dll.c: Likewise.
5014 * pe-dll.c: Revert some formatting fixes.
5016 2000-10-08 Kazu Hirata <kazu@hxi.com>
5018 * pe-dll.c: Fix formatting.
5020 2000-10-05 Kazu Hirata <kazu@hxi.com>
5022 * ldlang.c: Fix formatting.
5024 2000-10-03 DJ Delorie <dj@redhat.com>
5026 * pe-dll.c (fill_edata): initialize entire block
5027 (make_one): fill in correct section.
5029 2000-10-03 Kazu Hirata <kazu@hxi.com>
5031 * ldexp.c: Fix formatting.
5033 2000-10-02 DJ Delorie <dj@redhat.com>
5035 * emultempl/pe.em (gld_*_after_open): detect case where there two
5036 import libraries for same dll; rename one to ensure proper link
5039 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
5041 (generate_edata): fix typo
5043 2000-09-29 Hans-Peter Nilsson <hp@axis.com>
5045 * scripttempl/crisaout.sc (ENTRY): Now __start.
5046 (.text): Add default setting for __start.
5047 Remove CONSTRUCTORS handling.
5048 (/DISCARD/): Add .gnu.warning.*.
5049 * emulparams/crislinux.sh (ENTRY): Now __start.
5050 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
5051 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
5052 (ENTRY): Now __start.
5053 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
5054 (EXECUTABLE_SYMBOLS): Add default setting for __start.
5056 2000-09-29 Kazu Hirata <kazu@hxi.com>
5058 * deffile.h: Fix formatting.
5060 * ldcref.c: Likewise.
5061 * ldctor.c: Likewise.
5062 * ldctor.h: Likewise.
5063 * ldemul.c: Likewise.
5064 * ldemul.h: Likewise.
5065 * ldexp.c: Likewise.
5066 * ldexp.h: Likewise.
5067 * ldfile.c: Likewise.
5068 * ldfile.h: Likewise.
5069 * ldlang.c: Likewise.
5070 * ldlang.h: Likewise.
5071 * lexsup.c: Likewise.
5073 * pe-dll.c: Likewise.
5075 2000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
5077 * pe-dll.c (process_def_file): Uninitialized data wasn't
5078 exported with --export-all-symbols switch.
5080 2000-09-28 DJ Delorie <dj@redhat.com>
5082 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
5083 noname work properly.
5085 2000-09-28 Alan Modra <alan@linuxcare.com.au>
5087 * ld.texinfo (HPPA ELF32): New section.
5089 * emultempl/hppaelf.em (group_size): New.
5090 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
5091 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
5092 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
5093 options to prevent abbreviations matching.
5094 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
5095 (PARSE_AND_LIST_ARGS_CASES): Handle it.
5097 2000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5099 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
5100 on the m68*-*-elf target. Make it support COFF input objects.
5102 2000-09-21 Kazu Hirata <kazu@hxi.com>
5104 * ldmain.c: Fix formatting.
5105 * ldmisc.c: Likewise.
5106 * ldver.c: Likewise.
5107 * ldwrite.c: Likewise.
5109 2000-09-21 Alan Modra <alan@linuxcare.com.au>
5111 * ldwrite.c (clone_section): Silence gcc warnings.
5113 2000-09-20 Alan Modra <alan@linuxcare.com.au>
5115 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
5116 out of memory failure.
5118 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
5119 (clone_section): Handle out of memory failures. Rename var to
5120 avoid c++ reserved word.
5122 2000-09-18 Alan Modra <alan@linuxcare.com.au>
5124 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
5125 stub_name param to stub_sec_name.
5126 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
5128 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5130 * emultempl/m68kelf.em: New file.
5131 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
5132 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
5133 * Makefile.in: Regenerate.
5135 2000-09-15 Alan Modra <alan@linuxcare.com.au>
5137 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
5140 2000-09-13 Nick Clifton <nickc@redhat.com>
5142 * ldmain.c (multiple_definition): Disable relaxation if
5143 multiple symbol definitions are encountered - otherwise the
5144 linker could abort with an assertion failure.
5146 2000-09-10 Nick Clifton <nickc@redhat.com>
5148 * mri.c: Fix formatting.
5150 2000-09-07 H.J. Lu <hjl@gnu.org>
5152 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
5153 * configure: Rebuild.
5155 2000-09-07 H.J. Lu <hjl@gnu.org>
5157 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
5158 * Makefile.in: Rebuild.
5160 2000-09-07 Alan Modra <alan@linuxcare.com.au>
5162 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
5163 broken list handling. Create __start_SECNAME and __stop_SECNAME
5164 when no place-holder. Add some comments. Test both SEC_CODE and
5165 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
5166 Handle case where no output section statement created.
5168 2000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
5170 * configure.tgt (sh-*-linux*): Added.
5171 * Makefile.am: Added eshelf_linux and eshlelf_linux.
5172 * Makefile.in: Rebuilt.
5173 * emulparams/shelf_linux.sh: New file.
5174 * emulparams/shlelf_linux.sh: New file.
5176 2000-09-06 Alan Modra <alan@linuxcare.com.au>
5178 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
5179 try shuffling sections when the orphan happens to be the place
5180 holder. Keep count of unique section names generated so we speed
5181 the search for a new name.
5183 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
5185 * configure: Rebuilt with new libtool.m4.
5187 2000-09-05 Nick Clifton <nickc@redhat.com>
5189 * Makefile.in: Regenerate.
5190 * aclocal.m4: Regenerate.
5191 * configure: Regenerate.
5192 * config.in: Regenerate.
5193 * po/ld.pot: Regenerate.
5195 * ldint.texinfo: Remove CVS revision marker - it foils local
5198 * emultempl/ticoff.em: Remove extraneous comma.
5200 2000-09-05 Alan Modra <alan@linuxcare.com.au>
5202 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
5203 to stub section flags.
5204 (hppa_for_each_input_file_wrapper): New.
5205 (hppa_lang_for_each_input_file): New.
5206 (lang_for_each_input_file): Define to call above.
5207 (multi_subspace): New.
5208 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
5209 (PARSE_AND_LIST_PROLOGUE): Define.
5210 (PARSE_AND_LIST_LONGOPTS): Define.
5211 (PARSE_AND_LIST_OPTIONS): Define.
5212 (PARSE_AND_LIST_ARGS_CASES): Define.
5213 (hppaelf_finish): Call elf32_hppa_set_gp.
5214 (hppaelf_set_output_arch): Remove.
5215 (LDEMUL_SET_OUTPUT_ARCH): Remove.
5217 * emulparams/hppalinux.sh (ELFSIZE): Define.
5219 (OTHER_READONLY_SECTIONS): Define.
5221 (GENERATE_SHLIB_SCRIPT): Define.
5223 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
5224 to const throughout. Change `void *' to `PTR' throughout.
5225 (lang_memory_default): Function is local to file, add `static'.
5227 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
5228 (ehppalinux.c): Likewise.
5229 (earmelf.c): Likewise.
5230 (earmelf_linux.c): Likewise.
5231 (earmelf_linux26.c): Likewise.
5232 * Makefile.in: Regenerate.
5234 * ld.h (ld_config_type): Add unique_orphan_sections.
5235 * lexsup.c (OPTION_UNIQUE): Define.
5236 (ld_options): Add "--unique".
5237 (parse_args): Handle it.
5238 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
5239 search for an existing output section if unique_orphan_sections is
5240 set. Make use of bfd_get_unique_section_name rather than
5241 duplicating code here.
5242 * ld.texinfo: Describe --unique.
5244 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
5245 optional arg to split-by-file.
5246 (parse_args): Handle them.
5247 * ld.texinfo: Update description of these options.
5248 * ldwrite.c (clone_section): Pass in the section name. Replace
5249 local code with bfd_get_unique_section_name.
5250 (split_sections): Tidy code and comments. Use a list traversal
5251 more appropriate to the list construction. Handle cooked section
5252 sizes. Split when split_by_reloc reached rather than exceeded.
5253 Track section size and split when split_by_file reached. Fix
5254 link_order_tail (even though it's not used).
5255 (ldwrite): Modify condition for calling split_sections to suit
5256 changed split_by_reloc and split_by_file.
5257 * ldmain.c (main): Init config.split_by_reloc and
5258 config.split_by_file to -1.
5259 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
5260 Change split_by_file to bfd_size_type.
5262 2000-09-02 Nick Clifton <nickc@redhat.com>
5264 * configure.in: Increase version number to 2.10.91.
5265 * NEWS: Mention new ability to support removal of duplicate DWARF2
5267 * configure: Regenerate.
5268 * aclocal.m4: Regenerate.
5269 * config.in: Regenerate.
5271 2000-09-02 Daniel Berlin <dberlin@redhat.com>
5273 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
5275 * scripttempl/elf32avr.sc: Ditto.
5276 * scripttempl/elfd10v.sc: Ditto.
5277 * scripttempl/elfd30v.sc: Ditto.
5278 * scripttempl/elfi370.sc: Ditto.
5279 * scripttempl/elfm68hc11.sc: Ditto.
5280 * scripttempl/elfm68hc12.sc: Ditto.
5281 * scripttempl/elfi386beos.sc: Ditto.
5282 * scripttempl/v850.sc: Ditto.
5284 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
5286 * acinclude.m4: Include libtool and gettext macros from the
5288 * aclocal.m4, configure: Rebuilt.
5290 2000-08-25 Nick Clifton <nickc@redhat.com>
5292 * ldlang.c (open_output): When choosing the target for a
5293 particular endianness, do nothing if the target is not
5296 2000-08-25 H.J. Lu <hjl@gnu.org>
5298 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
5299 check -rpath nor LD_RUN_PATH for cross link.
5300 * ld.texinfo: Document the change.
5302 2000-08-24 Hans-Peter Nilsson <hp@axis.com>
5304 * NEWS: Mention support for CRIS.
5306 2000-08-23 H.J. Lu <hjl@gnu.org>
5308 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
5309 the current runpath list from bfd_elf_get_runpath_list ()
5312 2000-08-22 H.J. Lu <hjl@gnu.org>
5314 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
5315 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
5316 LD_LIBRARY_PATH for native linker. Display the needed DSO if
5317 trace_file_tries is non-zero.
5318 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
5319 if trace_file_tries is non-zero.
5321 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
5324 2000-08-14 Jason Eckhardt <jle@cygnus.com>
5326 * NEWS: Mention i860 support.
5328 2000-08-14 Andreas Schwab <schwab@suse.de>
5330 * scripttempl/elf.sc: Fix last change to use correct comment
5333 2000-08-10 Geoff Keating <geoffk@cygnus.com>
5335 * scripttempl/elf.sc: Add a comment giving the correspondence
5336 between sections, per-datum sections, and linkonce sections. Make
5337 the comment true even for .bss, .sdata, .sdata2, .sbss, and
5340 2000-08-10 Jason Eckhardt <jle@cygnus.com>
5342 * emulparams/elf32_i860.sh: New file.
5343 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
5344 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
5345 (eelf32_i860.c): New rule.
5346 * Makefile.in: Regenerate.
5348 2000-08-10 Nick Clifton <nickc@cygnus.com>
5350 * emulparams/mipspe.sh (ENTRY): Add definition.
5352 2000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
5354 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
5357 2000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5359 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
5360 the final size of .bss section.
5361 * scripttempl/elfm68hc12.sc: Likewise.
5363 2000-08-04 Alan Modra <alan@linuxcare.com.au>
5365 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
5366 gld${EMULATION_NAME}_parse_args for consistency. Combine
5367 lastoptind and prevoptind vars, and keep track of last optind.
5368 (gld_${EMULATION_NAME}_list_options): Rename to
5369 gld${EMULATION_NAME}_list_options.
5371 2000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
5373 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
5374 (i586-sco-sysv5uw7.1.0).
5376 2000-07-27 H.J. Lu <hjl@gnu.org>
5378 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
5379 (PARSE_AND_LIST_PROLOGUE): New.
5380 (PARSE_AND_LIST_LONGOPTS): Likewise.
5381 (PARSE_AND_LIST_OPTIONS): Likewise.
5382 (PARSE_AND_LIST_ARGS_CASES): Likewise.
5383 (PARSE_AND_LIST_EPILOGUE): Likewise.
5385 2000-07-28 Alan Modra <alan@linuxcare.com.au>
5387 * emultempl/armelf.em: Elide functions common to elf32.em,
5388 ie. most of the file.
5389 (arm_elf_after_open): New. Do arm specific things then call
5390 gld${EMULATION_NAME}_after_open.
5391 (arm_elf_before_allocation): New. Call
5392 gld${EMULATION_NAME}_before_allocation then do arm specifics.
5393 (PARSE_AND_LIST_PROLOGUE): Define.
5394 (PARSE_AND_LIST_SHORTOPTS): Define.
5395 (PARSE_AND_LIST_LONGOPTS): Define.
5396 (PARSE_AND_LIST_OPTIONS): Define.
5397 (PARSE_AND_LIST_ARGS_CASES): Define.
5398 (LDEMUL_AFTER_OPEN): Define.
5399 (LDEMUL_BEFORE_ALLOCATION): Define.
5400 (LDEMUL_BEFORE_PARSE): Define.
5401 (LDEMUL_FINISH): Define.
5403 * emultempl/hppaelf.em: Similarly zap most of this file.
5404 (hppaelf_add_stub_section): Prototype.
5405 (hppaelf_layaout_sections_again): Prototype.
5406 (hook_in_stub): Prototype.
5407 (LDEMUL_SET_OUTPUT_ARCH): Define.
5408 (LDEMUL_FINISH): Define.
5409 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
5411 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
5412 (EXTRA_EM_FILE): New.
5413 * emulparams/armelf_linux.sh: Likewise.
5414 * emulparams/armelf_linux26.sh: Likewise.
5415 * emulparams/hppalinux.sh: Likewise.
5416 * emulparams/hppaelf.sh: Likewise.
5419 * emultempl/elf32.em: Fix formatting.
5420 (EXTRA_EM_FILE): Source it.
5421 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
5422 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
5423 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
5424 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
5425 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
5426 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
5427 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
5428 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
5429 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
5430 allow functions in this file to be overridden.
5431 (PARSE_AND_LIST_SHORTOPTS): Handle it.
5433 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
5435 * emultempl/elf32.em: Reorganize file.
5437 2000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
5439 * emulparams/elf64alpha.sh: Implement "-taso" emulation
5440 specific option to fit 64-bit executable in the lower
5441 31-bit address range. This is done by changing start
5442 address of .interp (the very first section of executable)
5443 and then setting EF_ALPHA_32BIT elf header flag.
5445 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5447 * emultempl/m68kcoff.em: New file.
5448 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
5449 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
5451 * Makefile.in: Regenerate.
5453 2000-07-20 H.J. Lu <hjl@gnu.org>
5455 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
5456 and "disable-new-dtags" to stop getopt from treating -d/-e as
5457 abbreviations for these options.
5459 2000-07-20 H.J. Lu <hjl@gnu.org>
5461 * ld.texinfo: Add documentation for --disable-new-dtags and
5464 * ldmain.c (main): Initialize link_info.new_dtags to false.
5466 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
5467 --disable-new-dtags and --enable-new-dtags.
5468 (gld_${EMULATION_NAME}_list_options): Likewise.
5470 2000-07-05 Kenneth Block <krblock@computer.org>
5472 * lexsup.c: Add optional style to demangle switch
5473 * ld.texinfo: Document optional style to demangle switch.
5475 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
5477 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
5479 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
5480 Regenerate dependencies.
5481 * Makefile.in: Rebuild.
5482 * configure.tgt (cris-*-*): New target.
5483 * emulparams/crisaout.sh, emulparams/criself.sh,
5484 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
5485 * po/POTFILES.in, po/ld.pot: Regenerate.
5487 2000-07-20 H.J. Lu <hjl@gnu.org>
5489 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
5490 Print out ignored -z options.
5492 2000-07-19 H.J. Lu <hjl@gnu.org>
5494 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
5495 (PARSE_AND_LIST_PROLOGUE): New.
5496 (PARSE_AND_LIST_LONGOPTS): Likewise.
5497 (PARSE_AND_LIST_OPTIONS): Likewise.
5498 (PARSE_AND_LIST_ARGS_CASES): Likewise.
5500 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
5502 * lexsup.c (ld_options): Comment out 'z'.
5503 (parse_args): Likewise.
5505 * emultempl/elf32.em: Include "elf/common.h".
5506 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
5508 (gld_${EMULATION_NAME}_list_options): Likewise.
5510 * ld.texinfo: Add documentation for the recognized -z options.
5512 2000-07-19 H.J. Lu <hjl@gnu.org>
5514 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
5515 bfd_elf_set_dt_needed_soname ().
5517 2000-07-18 DJ Delorie <dj@cygnus.com>
5519 * pe-dll.c (pe_dll_id_target): check object target name also
5521 2000-07-18 Hans-Peter Nilsson <hp@axis.com>
5523 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
5524 ${INIT_END} if relocating.
5525 (.fini): Likewise ${FINI_START} and ${FINI_END}.
5527 2000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
5529 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
5530 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
5531 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
5532 errors introduced by the old dynamic lib search order.
5534 2000-07-17 DJ Delorie <dj@cygnus.com>
5536 * pe-dll.c (process_def_file): auto-export data items also
5537 (pe_process_import_defs): also see if _imp_ form needed
5539 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
5541 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
5542 for dll import libraries
5544 2000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
5546 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
5547 gcc 2.95.2 and later.
5549 2000-07-11 Kazu Hirata <kazu@hxi.com>
5551 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
5554 2000-07-10 Alan Modra <alan@linuxcare.com.au>
5556 * ldemul.h (struct lang_input_statement_struct): Remove forward
5558 (struct search_dirs): Likewise.
5559 * ldfile.h (struct lang_input_statement_struct): Likewise.
5560 Protect file from multiple inclusion.
5561 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
5562 declaration from macro to file scope.
5564 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
5565 * ldgram.y: Likewise here.
5566 * ldlang.c: And here.
5567 * ldmain.c: And here.
5568 * mpw-elfmips.c: And here.
5569 * mpw-eppcmac.c: And here.
5570 * emultempl/aix.em: And here.
5571 * emultempl/armcoff.em: And here.
5572 * emultempl/armelf.em: And here.
5573 * emultempl/armelf_oabi.em: And here.
5574 * emultempl/beos.em: And here.
5575 * emultempl/elf32.em: And here.
5576 * emultempl/hppaelf.em: And here.
5577 * emultempl/linux.em: And here.
5578 * emultempl/lnk960.em: And here.
5579 * emultempl/pe.em: And here.
5580 * emultempl/sunos.em: And here.
5581 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
5582 * mpw-idtmips.c: Ditto.
5583 * emultempl/generic.em: Ditto.
5584 * emultempl/gld960.em: Ditto.
5585 * emultempl/gld960c.em: Ditto.
5586 * emultempl/mipsecoff.em: Ditto.
5587 * emultempl/ticoff.em: Ditto.
5588 * emultempl/vanilla.em: Ditto.
5590 * pe-dll.c: Include ldfile.h
5591 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
5593 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
5594 arguments to bfd_elf32_size_dynamic_sections call.
5595 (gldelf32ebmip_place_orphan): Add missing arguments to
5596 lang_leave_output_section_statement call.
5598 2000-07-10 H.J. Lu <hjl@gnu.org>
5600 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
5602 (strhash): Likewise.
5603 (compute_dll_image_base): Likewise.
5604 (pe_undef_found_sym): Likewise.
5605 (pe_undef_cdecl_match): Likewise.
5606 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
5607 argument "arch" with ATTRIBUTE_UNUSED.
5609 2000-07-10 Alan Modra <alan@linuxcare.com.au>
5611 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
5613 From Ryan Bradetich <rbradetich@uswest.net>
5614 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
5616 2000-07-09 Alan Modra <alan@linuxcare.com.au>
5618 Changes to create multiple linker stubs, positioned immediately
5619 before the section where they are required.
5620 * emultempl/hppaelf.em: Include elf32-hppa.h.
5621 (stub_sec, file_chain): Delete.
5622 (hppaelf_create_output_section_statements): Don't make a stub
5624 (hook_stub_info): New struct.
5625 (hook_in_stub): New function.
5626 (hppaelf_add_stub_section): New function.
5627 (hppaelf_finish): Do nothing for relocateable links. Modify the
5628 call to elf32_hppa_size_stubs. Move code for updating section
5630 (hppaelf_layaout_sections_again): ..to here, a new function.
5632 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
5633 broken list handling. Pass in a pointer to the list.
5634 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
5636 (hppaelf_before_parse): Prototype.
5637 (hppaelf_set_output_arch): Prototype.
5638 (hppaelf_create_output_section_statements): Prototype.
5639 (hppaelf_delete_padding_statements): Prototype.
5640 (hppaelf_finish): Prototype.
5643 * emultempl/hppaelf.em: Include ctype.h.
5644 (struct orphan_save): New.
5645 (gld${EMULATION_NAME}_place_orphan): New.
5646 (output_rel_find): New.
5647 (hppaelf_get_script): Update from elf32.em.
5648 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
5649 Change emulation_name field to "${EMULATION_NAME}". Add
5650 gld${EMULATION_NAME}_place_orphan.
5652 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
5653 ehppalinux.o, sort it. Regenerate dependencies.
5654 (ehppalinux.c): Depend on hppaelf.em
5655 * Makefile.in: Regenerate.
5657 * configure.tgt: targ_emul=hppalinux for hppa*linux
5659 * emulparams/hppalinux.sh: New.
5660 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
5662 2000-07-08 Alan Modra <alan@linuxcare.com.au>
5664 * lexsup.c (parse_args): Copy section name.
5666 2000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
5668 * emultempl/pe.em: institute the following search order for
5669 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
5670 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
5671 static lib (libfoo.a) if none of the above are found.
5673 2000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
5675 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
5676 (longopts): New --{enable,disable}-auto-image-base options.
5677 (gld_${EMULATION_NAME}_list_options): Document.
5678 (gld_${EMULATION_NAME}_parse): Handle.
5679 (strhash): New static function.
5680 (compute_dll_image_base): New static function.
5681 (gld_${EMULATION_NAME}_set_symbols): Use.
5683 2000-07-05 DJ Delorie <dj@redhat.com>
5687 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
5689 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
5690 * emulparams/elf32btsmip.sh: New file.
5691 * Makefile.am: Add traditional mips target.
5692 * Makefile.in: Rebuild.
5694 2000-07-01 H.J. Lu <hjl@gnu.org>
5696 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
5697 automake to use YLWRAP.
5698 * Makefile.in: Rebuild.
5700 2000-07-01 Alan Modra <alan@linuxcare.com.au>
5702 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
5703 (CLEANFILES): Add DEPA.
5704 * Makefile.in: Regenerate.
5706 2000-06-30 Timothy Wall <twall@ppc>
5708 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
5709 the page in the upper octet of the address.
5711 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
5713 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
5715 2000-06-24 Alan Modra <alan@linuxcare.com.au>
5717 * NEWS: arm-elf does --gc-sections too.
5719 2000-06-22 Alan Modra <alan@linuxcare.com.au>
5721 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
5723 * Makefile.in: Regenerate.
5725 2000-06-21 H.J. Lu <hjl@gnu.org>
5727 * Makefile.am: Rebuild dependency.
5728 * Makefile.in: Rebuild.
5730 2000-06-20 H.J. Lu <hjl@gnu.org>
5732 * Makefile.am: Rebuild dependency.
5733 * Makefile.in: Rebuild.
5735 2000-06-20 Timothy Wall <twall@cygnus.com>
5737 * scripttempl/tic54xcoff.sc: New.
5738 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
5739 * gen-doc.texi: Add flag for TI COFF.
5740 * ld.texinfo: Add documentation for TI COFF handling switches.
5741 * emultempl/ticoff.em: New. TI COFF handling.
5742 * configure.tgt: Add tic54x target.
5743 * Makefile.am: Add tic54x target.
5744 * Makefile.in: Ditto.
5746 2000-06-20 Alan Modra <alan@linuxcare.com.au>
5748 * ldmain.c (set_scripts_dir): Correct pointer comparison when
5749 checking for backslashes.
5751 2000-06-19 Alan Modra <alan@linuxcare.com.au>
5753 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
5755 2000-06-18 Alan Modra <alan@linuxcare.com.au>
5757 * NEWS: Update list of targets supporting --gc-sections.
5759 * scripttempl/elf.sc: KEEP .eh_frame contents.
5760 * scripttempl/elfd30v.sc: Same here.
5762 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
5764 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
5766 * Makefile.in: Rebuild.
5767 * configure.tgt: Recognize m68hc12 and m68hc11.
5768 * scripttempl/elfm68hc12.sc: New file.
5769 * emulparams/m68hc12elfb: New emulation.
5770 * emulparams/m68hc12elf: New emulation.
5771 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
5772 (includes a memory.x script to define the ROM and RAM banks).
5773 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
5774 New configuration files for support of Motorola 68hc11
5776 2000-06-15 Alan Modra <alan@linuxcare.com.au>
5778 * ldmain.c (main): Only change SEC_READONLY for final link.
5780 2000-06-13 H.J. Lu <hjl@gnu.org>
5782 * configure: Regenerate.
5784 2000-06-08 David O'Brien <obrien@FreeBSD.org>
5786 * configure.in (VERSION): Update to show this is the CVS mainline.
5788 2000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5790 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
5791 input objects to be ECOFF.
5792 (check_sections): einfo takes %B, not %P, to print a BFD name.
5794 2000-06-05 Michael Matz <matz@ifh.de>
5796 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
5799 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
5801 2000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
5803 * emulparams/avr1200.sh (STACK): Define as 0.
5804 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
5805 * emulparams/avr4433.sh (STACK): Likewise.
5806 * emulparams/avr44x4.sh (STACK): Likewise.
5807 * emulparams/avr85xx.sh (STACK): Likewise.
5808 * emulparams/avrmega103.sh (STACK): Likewise.
5809 * emulparams/avrmega161.sh (STACK): Likewise.
5810 * emulparams/avrmega603.sh (STACK): Likewise.
5811 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
5812 (__stack): Define from ${STACK} for main().
5814 2000-05-26 Alan Modra <alan@linuxcare.com.au>
5816 * Makefile.am: Update dependencies with "make dep-am"
5817 * Makefile.in: Regenerate.
5819 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
5821 * ldmain.c: Include filenames.h.
5822 (set_scripts_dir): Support backslashes in program name.
5824 2000-05-22 Igor Shevlyakov <igor@windriver.com>
5826 * ldmain.c (main): When deciding if ".text" section should be
5827 read-only, don't forget to reset SEC_READONLY because it
5828 could be already set.
5830 2000-05-22 Thomas de Lellis <tdel@windriver.com>
5832 * ld.1: Add documentation for new command line option:
5833 --section-start <sectionname>=<sectionorg>
5834 This is a generic version of -Ttext etc. which accepts
5835 any section name as a parameter instead of just text/data/
5837 * ld.texinfo: More docs.
5839 * lexsup.c: (parse_args): Recognize new command line option.
5840 (ld_options): Add new option.
5842 2000-05-18 H.J. Lu <hjl@gnu.org>
5844 * lexsup.c (parse_args): `i' == `r', not `q'.
5846 2000-05-18 Jeffrey A Law (law@cygnus.com)
5848 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
5850 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
5851 Rick Gorton <gorton@scrugs.lkg.dec.com>
5853 Add support for '-q' == '--emit-relocs' switch.
5854 * ldmain.c (main): Default to false.
5855 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
5856 * NEWS: Describe the emitrelocations switch.
5857 * ld.texinfo: Describe the emitrelocations switch.
5859 2000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
5861 * emultempl/pe.em (_open_dynamic_archive): New function: Search
5862 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
5863 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
5866 2000-05-15 David O'Brien <obrien@FreeBSD.org>
5868 * lexsup.c (parse_args): Update the year in the copyright notice.
5870 2000-05-13 Alan Modra <alan@linuxcare.com.au>
5872 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
5873 Replace defines with those from intl/libgettext.h to quieten gcc
5876 2000-05-10 H.J. Lu <hjl@gnu.org>
5878 * ldlang.c (open_input_bfds): Don't load the same file within
5879 a group again if the whole archive has been loaded already.
5881 2000-05-03 Alan Modra <alan@linuxcare.com.au>
5883 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
5884 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
5887 2000-05-01 Jim Wilson <wilson@cygnus.com>
5889 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
5891 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
5892 host "ia64-*-linux-gnu*".
5894 2000-04-29 Andreas Jaeger <aj@suse.de>
5896 * ld.h: Correctly check GCC version.
5898 2000-04-25 Jeffrey A Law (law@cygnus.com)
5900 * Makefile.am: Add PA64 support. Add missing dependencies for
5902 * Makefile.in: Rebuilt.
5903 * configure.tgt: Add PA64 support (currently disabled).
5905 2000-04-25 Alan Modra <alan@linuxcare.com.au>
5907 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
5908 (output_rel_find): New function.
5909 (hold_section, hold_use): Delete.
5910 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
5911 hold_interp): Make local to place_orphan.
5912 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
5913 rather than place_section to find possible previous use of orphan.
5914 Similarly find the place-holder output sections. Use returned
5915 value from lang_enter_output_section_statement rather than calling
5916 lang_output_section_statement_lookup.
5917 * emultempl/armelf.em: Same here.
5918 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
5920 * ldlang.c (lang_enter_output_section_statement): Return output
5922 * ldlang.h (lang_enter_output_section_statement): Change
5925 * ldlang.h (lang_output_section_statement): Export it.
5926 * ldlang.c (lang_output_section_statement): Ditto.
5928 2000-04-24 Nick Clifton <nickc@cygnus.com>
5930 * ld.texinfo (Output Section Data): Add note that section data
5931 commands cannot appear outside of section directives.
5933 2000-04-2 Matthew Green <mrg@cygnus.com>
5935 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
5937 2000-04-21 Richard Henderson <rth@cygnus.com>
5938 David Mosberger <davidm@hpl.hp.com>
5940 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
5941 (eelf64_ia64.c): New rule.
5942 * Makefile.in: Rebuild.
5943 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
5944 * emulparams/elf64_ia64.sh: New file.
5946 2000-04-21 Richard Henderson <rth@cygnus.com>
5948 * scripttempl/elfd30v.sc: Place .gcc_except_table.
5950 2000-04-19 Alan Modra <alan@linuxcare.com.au>
5952 * dep-in.sed: Match space at start of file name, not at end.
5954 2000-04-18 H.J. Lu <hjl@gnu.org>
5956 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
5957 lang_leave_output_section_statement () after calling
5958 lang_enter_output_section_statement ().
5959 * emultempl/armelf.em: Likewise.
5961 2000-04-18 Alan Modra <alan@linuxcare.com.au>
5963 * emultempl/elf32.em (struct orphan_save): Add section field.
5964 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
5965 better order, and place first orphan section as we did before the
5966 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
5967 Don't call make_bfd_section here, let wild_doit do the job for us.
5968 Don't build a statement list when we'll only throw it away.
5969 * emultempl/armelf.em: Ditto.
5970 * emultempl/pe.em: Similarly.
5972 2000-04-14 Geoff Keating <geoffk@cygnus.com>
5974 * scripttempl/elfppc.sc: Remove.
5975 * emulparams/elf32ppc.sh: Use elf.sc.
5976 * emulparams/elf32lppc.sh: Use elf.sc.
5977 * emulparams/elf32ppclinux.sh: Use elf.sc.
5978 * emulparams/elf32ppcsim.sh: New file.
5979 * emulparams/elf32lppcsim.sh: New file.
5980 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
5981 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
5982 * Makefile.in: Regenerate.
5983 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
5985 2000-04-14 Alan Modra <alan@linuxcare.com.au>
5987 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
5988 ~SEC_ALLOC sections too. Init start address of debug sections.
5989 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
5990 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
5991 Also set all relocateable section start addresses.
5993 2000-04-13 Geoff Keating <geoffk@cygnus.com>
5995 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
5996 Add new BSS_PLT variable for when .plt need not be contained in
5997 the file. Move _etext so that it is also after .fini, and provide
5998 both etext and _etext with a leading underscore. Mark the start
6001 2000-04-12 Alan Modra <alan@linuxcare.com.au>
6003 * emultempl/elf32.em (struct orphan_save): New.
6004 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
6005 hold_interp): Make them struct orphan_save.
6006 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
6007 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
6008 the end of the relevant section list. Also add associated section
6009 statements to the end of any previous orphan statements.
6010 * emultempl/armelf.em: Similarly.
6011 * emultempl/pe.em: Similarly.
6013 2000-04-11 Alan Modra <alan@linuxcare.com.au>
6015 * ld.texinfo (Simple Example): Remove extraneous paragraph.
6017 2000-04-07 Andrew Cagney <cagney@b1.cygnus.com>
6019 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
6020 --enable-build-warnings option.
6021 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
6022 * Makefile.in, configure: Re-generate.
6024 2000-04-04 Alan Modra <alan@linuxcare.com.au>
6026 * po/ld.pot: Regenerate.
6028 * lexsup.c (help): Restore translated part of bug string.
6030 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
6031 (DEP): Quote when passing vars to sub-make. Add warning message
6033 (DEP1): Rewrite for "gcc -MM".
6034 (CLEANFILES): Add DEP2.
6035 Update dependencies.
6036 * Makefile.in: Regenerate.
6038 2000-04-03 Alan Modra <alan@linuxcare.com.au>
6040 * ld.h: #include "bin-bugs.h"
6041 * lexsup.c (help): Use REPORT_BUGS_TO.
6043 2000-03-27 Denis Chertykov <denisc@overta.ru>
6045 * configure.tgt (avr-*-*): New target support.
6046 * Makefile.am: Likewise.
6047 * scripttempl/elf32avr.sc: New script file.
6048 * emulparams/avr1200.sh: New file.
6049 * emulparams/avr23xx.sh: New file.
6050 * emulparams/avr4433.sh New file.
6051 * emulparams/avr44x4.sh New file.
6052 * emulparams/avr85xx.sh New file.
6053 * emulparams/avrmega103.sh New file.
6054 * emulparams/avrmega161.sh New file.
6055 * emulparams/avrmega603.sh New file.
6056 * Makefile.in: Regenerate.
6058 2000-03-09 Andreas Jaeger <aj@suse.de>
6060 * Makefile.am (check-DEJAGNU): Also unset LANG.
6061 * Makefile.in: Rebuild.
6063 2000-03-06 Ian Lance Taylor <ian@zembu.com>
6065 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
6068 2000-03-02 H.J. Lu <hjl@gnu.org>
6070 * emulparams/elf32mcore.sh: Include "getopt.h".
6072 2000-03-01 Ian Lance Taylor <ian@zembu.com>
6074 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
6076 2000-03-01 H.J. Lu <hjl@gnu.org>
6078 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
6079 * emulparams/shpe.sh: Likewise.
6081 2000-03-01 Nick Clifton <nickc@cygnus.com>
6083 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
6084 to unused parameters.
6086 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
6087 functions only used by DLL code.
6088 (_place_orphan): Initialise 'dollar'.
6090 2000-03-01 H.J. Lu <hjl@gnu.org>
6092 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
6093 indicate if the undefined symbol is a fatal error or not.
6094 Don't delete the output file if "fatal" is false.
6096 2000-02-29 H.J. Lu <hjl@gnu.org>
6098 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
6099 Set LC_COLLATE and LC_ALL to null and export them. It is for
6100 sort which expects the C locale.
6101 Add $(LIBS) to all $(HOSTING_LIBS).
6102 * Makefile.in: Rebuild.
6104 2000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
6106 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
6107 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
6108 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
6109 (ld_emulation_xfer_struct): Add missing NULL initialiser for
6110 find_potential_libraries.
6112 2000-02-28 Jim Blandy <jimb@redhat.com>
6114 * ldgram.y (exclude_name_list): Don't require a comma to separate
6115 list entries; the lexer considers commas to be valid part of a
6116 filename, so in something like `foo, bar' the comma is considered
6117 part of the first filename, `foo,'.
6118 * ld.texinfo: Update section on EXCLUDE_FILE lists.
6120 2000-02-27 Loren J. Rittle <ljrittle@acm.org>
6122 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
6123 host "i[3456]86-*-freebsdelf*".
6125 2000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
6127 * scripttempl/i386go32.sc: Move misplaced semicolons.
6129 2000-02-25 Ian Lance Taylor <ian@zembu.com>
6131 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
6132 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
6133 (eelf64hppa.c, ehppaelf.c): Remove targets.
6134 * Makefile.in: Rebuild.
6136 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
6138 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
6139 GNU/Linux/sparc, but keep the default as 32.
6141 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
6142 it default if sparcv9 or sparc64.
6144 2000-02-24 Nick Clifton <nickc@cygnus.com>
6146 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
6147 * Makefile.in: Regenerate.
6148 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
6150 * ldemul.h (ld_emulation_xfer_struct): Add new field:
6151 find_potential_libraries.
6152 * ldemul.c (ldemul_find_potential_libraries): New function.
6154 * ldfile.c (ldfile_open_file_search): Allow function to be
6156 (ldfile_open_file): Call ldemul_find_potential_libraries.
6157 * ldfile.h: Add prototype for ldfile_open_file_search.
6159 * pe-dll.c: Add support for ARM, MIPS and SH targets.
6161 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
6162 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
6164 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
6165 (gld_X_find_potential_libraries): New function. Search for
6166 libraries called "*.lib".
6168 * scripttempl/pe.sc: Add .pdata section.
6170 2000-02-23 Richard Henderson <rth@cygnus.com>
6172 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
6173 Add and use memory regions.
6175 2000-02-23 Linas Vepstas (linas@linas.org)
6177 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
6179 * Makefile.am: Add support for Linux/IBM 370.
6180 * configure.tgt: Likewise.
6182 * Makefile.in: Regenerate.
6184 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
6186 * ldlang.c (print_input_section, print_data_statement,
6187 print_reloc_statement, print_padding_statement, insert_pad,
6188 size_input_section, lang_check_section_addresses,
6189 lang_size_sections, lang_do_assignments, lang_set_startof,
6190 lang_one_common): Change `opb' to unsigned.
6191 (lang_do_assignments): Also change `size' to unsigned.
6193 2000-02-16 Richard Henderson <rth@cygnus.com>
6195 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
6197 2000-02-16 Timothy Wall <twall@cygnus.com>
6199 * mri.c (mri_draw_tree): Add default LMA region argument to call
6200 to lang_leave_output_section_statement.
6201 * ldlang.h: Update prototypes with LMA region arguments.
6202 * ldlang.c (lang_size_sections): Encapsulate region bounds
6203 checking in os_check_region call.
6204 (os_check_region): New function.
6205 (lang_output_section_statement_lookup): Initialize lma_region.
6206 (lang_leave_output_section_statement): Add LMA region argument.
6207 (lang_leave_overlay): Ditto.
6208 * ldgram.y: Handle LMA region syntax.
6209 * ld.texinfo (Output Section Description): Describe LMA region usage.
6210 * emultempl/armelf.em (gld$place_orphan): Add default value for
6211 lma region in call to lang_leave_output_section_statement.
6212 * emultempl/elf32.em (gld$place_orphan): Add default value for
6213 lma region in call to lang_leave_output_section_statement.
6214 * emultempl/pe.em (gld$place_orphan): Add default value for
6215 lma region in call to lang_leave_output_section_statement.
6218 2000-02-04 Timothy Wall <twall@redhat.com>
6220 * ldlang.c (lang_check_section_addresses): Use bytes instead of
6221 octets when calculating section end addresses.
6223 2000-02-04 Timothy Wall <twall@redhat.com>
6225 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
6227 2000-02-03 Timothy Wall <twall@redhat.com>
6229 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
6231 * ldlang.c (print_input_section, print_data_statement,
6232 print_reloc_statement, print_padding_statement): Print target
6233 address values and section sizes as bytes, not octets.
6234 (insert_pad) Calculate padding size in octets, and adjust "dot"
6236 (size_input_section) Always adjust "dot" by bytes, not octets.
6237 (lang_check_section_addresses, lang_do_assignments) Adjust
6238 "dot" by bytes, not octets. Use the larger of the directive size
6239 or octets_per_byte for the number of octets actually allocated in
6241 (lang_set_startof) Make sure STARTOF returns a target address.
6242 (lang_one_common) Record size changes in octets.
6243 (lang_abs_symbol_at_end_of) Section end symbol's value is
6244 recorded in target bytes.
6245 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
6246 to be clear about behavior when an octet is smaller than one byte.
6248 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
6250 * ldcref.c (output_cref): Don't pass message strings to printf
6254 * ldmisc.c (vfinfo): Same here.
6257 2000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
6259 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
6260 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
6261 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
6262 Add missing NULL initialisers, and comments.
6264 2000-01-21 Nick Clifton <nickc@cygnus.com>
6266 * ldlang.c (lang_size_sections): Fix typo in comment.
6268 2000-01-18 H.J. Lu <hjl@gnu.org>
6270 * ldlang.c (lang_size_sections): Also update the current
6271 address of a region if the SEC_NEVER_LOAD bit is not set.
6273 2000-01-10 Philip Blundell <pb@futuretv.com>
6275 * configure.tgt (arm*-*-conix*): New target.
6277 2000-01-07 Nick Clifton <nickc@cygnus.com>
6279 * ld.texinfo (Options): Remind users to preceed linker command
6280 line switches with -Wl, (or whatever is appropriate) if it is
6281 being invoked by a comnpiler driver program.
6282 Fix description of the behaviour of the -n command line switch.
6284 2000-01-05 Catherine Moore <clm@cygnus.com>
6286 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
6288 * ld.texinfo (EXCLUDE_FILE): Update documentation.
6289 * ldgram.y (wildcard_spec): Support a list of excluded_files.
6290 (exclude_name_list): New.
6291 ldlang.c (walk_wild_section): Support list of excluded files.
6292 (print_wild_statement): Likewise.
6293 (lang_add_wild): Likewise.
6294 * ldlang.h (lang_wild_statement_type): Likewise.
6295 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
6297 2000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
6299 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
6300 (process_def_file): Use.
6301 (pe_dll_compat_implib): New variable.
6304 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
6305 pe_dll_compat_implib.
6307 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
6308 compat-implib options.
6309 (gld_${EMULATION_NAME}_list_options): List new options.
6310 (gld_${EMULATION_NAME}_parse_args): Handle.
6312 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
6315 * deffilep.y (opt_name): Allow "." in name.
6317 For older changes see ChangeLog-9899
6323 version-control: never