1 2003-08-15 Dmitry Diky <diwil@mail.ru>
3 * Makefile.am (GENSCRIPTS_EXTRA): New script definition which
4 calls genscripts_extra.sh.
5 Rearrange all msp430 depends using this script.
6 * Makefile.in: Regenerate.
7 * genscripts_extra.sh: New file: Similar to genscripts.sh, except
8 that the script to be run to generate the emulations can be passed
9 as an optional parameter instead of being computed from the
11 * emulparams/msp430all.sh: New file: Combine all msp430 subdevice
12 definitions into one file.
13 * emulparams/msp430x*.sh: Removed.
15 2003-08-15 Nick Clifton <nickc@redhat.com>
17 * ld.texinfo (Options): Put keywords for the -z option into a
18 table. Add more text describing what the -z now option does.
20 2003-08-14 Alan Modra <amodra@bigpond.net.au>
22 * dep-in.sed: Remove libintl.h.
23 * Makefile.am (POTFILES.in): Unset LC_COLLATE.
24 * Makefile.in: Regenerate.
26 2003-08-13 Alan Modra <amodra@bigpond.net.au>
28 * genscripts.sh (libpath.exp): Only generate for first emulation.
29 (LIB_PATH): Correct order of paths. Don't add $tool_lib when
30 already present or when LIB_PATH is set to ":".
32 2003-08-12 Ian Lance Taylor <ian@airs.com>
34 * ldmain.c (undefined_symbol): Change parameter name from `fatal'
35 to `error'. If only a warning, put warning in the reported
36 string. Consistently set failure flag when not a warning.
38 2003-08-08 Dmitry Diky <diwil@mail.ru>
40 * Makefile.am: Add xW42 and xE42 parts. Sort MPU list according to
42 * Makefile.in: Regenerate.
43 * configure.tgt: Add extra emulations.
44 * emulparams/msp430xE423.sh: New file.
45 * emulparams/msp430xE427.sh: New file.
46 * emulparams/msp430xW425.sh: New file.
47 * emulparams/msp430xE425.sh: New file.
48 * emulparams/msp430xW423.sh: New file.
49 * emulparams/msp430xW427.sh: New file.
51 2003-08-07 Danny Smith <dannysmith@users.sourceforge.net>
53 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
54 Change second (cmdline) arg to lang_add_entry to FALSE.
55 (set_pe_subsystem): Change second arg to lang_add_entry to TRUE.
57 2003-08-05 Christian Groessler <chris@groessler.org>
58 Jason Eckhardt <jle@rice.edu>
60 * configure.tgt: Recognize new target i860-*-coff.
61 * Makefile.am (ALL_EMULATIONS): Add ecoff_i860.o.
62 (ecoff_i860.c): New rule.
63 * emulparams/coff_i860.sh: New file.
64 * scripttempl/i860coff.sc: New file.
65 * Makefile.in: Regenerate.
67 2003-08-04 Nick Clifton <nickc@redhat.com>
69 * emultempl/elf32.em (before_allocation): Prepend "warning: "
70 to messages produced for .gnu.warning.SYMBOL sections.
72 2003-08-04 Alan Modra <amodra@bigpond.net.au>
74 * emultempl/elf32.em (output_rel_find): Add "isdyn" param. Put
75 .rel.dyn before other reloc sections. Don't stop looking for reloc
76 sections on finding one that isn't allocated. Match .rel even when
77 placing .rela and vice versa, when setting last_rel and
78 last_rel_alloc for the first time. If no reloc sections in script,
79 prefer allocated section over non-alloc.
80 (gld${EMULATION_NAME}_place_orphan): Handle orphan .rel.dyn.
82 2003-07-29 Kaz Kojima <kkojima@rr.iij4u.or.jp>
84 * emulparams/shelf.sh (OTHER_SECTIONS): Don't include .stack
85 section for shared library.
86 * emulparams/shelf32.sh (OTHER_SECTIONS): Likewise.
87 * emulparams/shelf64.sh (OTHER_SECTIONS): Likewise.
89 2003-07-29 Stephane Carrez <stcarrez@nerim.fr>
91 * scripttempl/elfm68hc12.sc: Add gcc_except_table.
92 * scripttempl/elfm68hc11.sc: Likewise.
94 2003-07-28 Alan Modra <amodra@bigpond.net.au>
96 * emulparams/elf64ppc.sh (GOT): Fix for shell brace matching.
98 * emulparams/elf64ppc.sh (GOT): Don't merge .toc into .got for ld -r.
100 2003-07-27 Alan Modra <amodra@bigpond.net.au>
102 * ld.texinfo: Typo fixes. Document SUBALIGN.
103 * ldgram.y (opt_subalign): Add.
104 * ldlex.l (SUBALIGN): Recognize.
105 * ldlang.c (overlay_subalign): New var.
106 (lang_enter_overlay): Add subalign param.
107 (lang_enter_overlay_section): Pass overlay_subalign to
108 lang_enter_output_section_statement.
109 * ldlang.h (lang_enter_overlay): Update.
111 2003-07-24 Nick Clifton <nickc@redhat.com>
113 * po/fr.po: Updated French translation.
115 2003-07-23 Stephane Carrez <stcarrez@nerim.fr>
117 * scripttempl/elfm68hc11.sc: Keep ctor/dtor sections; Take into
118 account .tramp sections;
119 * scripttempl/elfm68hc12.sc: Likewise.
121 2003-07-17 Charles Wilson <cwilson@ece.gatech.edu>
123 * ld/pe-dll.c: Add libcygwin to autofilter_liblist[]
125 2003-07-17 Nick Clifton <nickc@redhat.com>
127 * po/es.po: New Spanish translation.
129 2003-07-11 Alan Modra <amodra@bigpond.net.au>
131 * po/ld.pot: Regenerate.
133 2003-07-10 Bob Wilson <bob.wilson@acm.org>
135 * emulparams/elf32xtensa.sh (OTHER_READONLY_SECTIONS): Replace .xt.lit
136 with new .got.loc section.
137 (OTHER_READWRITE_SECTIONS): Do not combine linkonce sections for
138 non-relocating links.
139 (OTHER_SECTIONS): Add .xt.lit here. Change it to keep linkonce
140 sections separate for non-relocating links; likewise for .xt.insn.
142 2003-07-10 Alexandre Oliva <aoliva@redhat.com>
144 2001-08-22 Alexandre Oliva <aoliva@redhat.com>
145 * emulparams/elf32am33lin.sh: Adjust to match kernel parameters.
146 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
147 * configure.host (am33_2.0-*-linux*): Added.
148 * configure.tgt (am33_2.0-*-linux*): Likewise.
149 * emulparams/elf32am33lin.sh: New.
150 * Makefile.am (eelf32am33lin.c): New rule.
151 * Makefile.in: Rebuilt.
153 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
155 2001-04-17 Alexandre Oliva <aoliva@redhat.com>
156 * emulparams/mn10300.sh (TEMPLATE_NAME): Define.
157 (GENERATE_SHLIB_SCRIPT): Likewise.
159 2003-07-10 Alan Modra <amodra@bigpond.net.au>
161 * emulparams/elf64ppc.sh (OTHER_GOT_SECTIONS): Don't define.
163 * emultempl/ppc64elf.em (stub_added): New static var.
164 (ppc_create_output_section_statements): Call ppc64_elf_init_stub_bfd.
165 (ppc_add_stub_section): Set stub_added.
166 (gld${EMULATION_NAME}_finish): Look for .got rather than .toc. Adjust
167 ppc64_elf_size_stubs call and test for stubs.
168 * scripttempl/elf.sc (GOT): Define and use.
170 2003-07-08 J"orn Rennecke <joern.rennecke@superh.com>
172 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_after_allocation):
173 Allow second call from ldemul_finish.
175 2003-07-04 J"orn Rennecke <joern.rennecke@superh.com>
177 * emulparams/shelf32.sh (STACK_ADDR): Don't define.
178 (OTHER_SECTIONS): Include .stack.
179 * emulparams/shelf64.sh (OTHER_SECTIONS): Likewise.
181 2003-07-02 Jakub Jelinek <jakub@redhat.com>
183 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't include
185 (OTHER_READWRITE_SECTIONS): Include .opd if -pie.
186 * scripttempl/elf.sc: Use SHLIB_DATA_ADDR instead of DATA_ADDR
189 2003-06-28 Alan Modra <amodra@bigpond.net.au>
191 * ld.h: Convert to C90, remove unnecessary prototypes and casts.
192 Replace PTR with void *. Formatting.
193 * ldcref.c: Likewise.
194 * ldctor.c: Likewise.
195 * ldctor.h: Likewise.
196 * ldemul.h: Likewise.
199 * ldfile.c: Likewise.
200 * ldfile.h: Likewise.
201 * ldlang.c: Likewise.
202 * ldlang.h: Likewise.
205 * ldmain.c: Likewise.
206 * ldmain.h: Likewise.
207 * ldmisc.c: Likewise.
208 * ldmisc.h: Likewise.
210 * ldwrite.c: Likewise.
211 * ldwrite.h: Likewise.
212 * lexsup.c: Likewise.
215 * pe-dll.c: Likewise.
216 * pe-dll.h: Likewise.
217 * deffilep.y: Likewise.
218 * deffile.h: Likewise. Don't include ansidecl.h.
219 * emulparams/elf32mcore.sh: Remove unnecessary cast.
220 * emultempl/m68kcoff.em: Likewise.
221 * emultempl/m68kelf.em: Likewise.
222 * emultempl/ticoff.em: Remove lang_add_output_format declaration.
223 * sysdep.h: Don't include ansidecl.h.
224 * Makefile.am: Run "make dep-am".
225 * Makefile.in: Regenerate.
227 2003-06-27 Nick Clifton <nickc@redhat.com>
229 * deffilep.y (def_file_add_directive): Cope with NUL seperated
230 directives. Fix reporting of unparseable directives.
231 (def_error): Check for a NULL def_filename.
233 2003-06-27 Alan Modra <amodra@bigpond.net.au>
235 * emultempl/aix.em: Convert to C90, remove unnecessary prototypes
236 and casts. Replace PTR with void *. Formatting.
237 * emultempl/alphaelf.em: Likewise.
238 * emultempl/armcoff.em: Likewise.
239 * emultempl/armelf.em: Likewise.
240 * emultempl/armelf_oabi.em: Likewise.
241 * emultempl/beos.em: Likewise.
242 * emultempl/elf32.em: Likewise.
243 * emultempl/generic.em: Likewise.
244 * emultempl/gld960.em: Likewise.
245 * emultempl/gld960c.em: Likewise.
246 * emultempl/hppaelf.em: Likewise.
247 * emultempl/linux.em: Likewise.
248 * emultempl/lnk960.em: Likewise.
249 * emultempl/m68hc1xelf.em: Likewise.
250 * emultempl/m68kcoff.em: Likewise.
251 * emultempl/m68kelf.em: Likewise.
252 * emultempl/mipsecoff.em: Likewise.
253 * emultempl/mipself.em: Likewise.
254 * emultempl/mmix-elfnmmo.em: Likewise.
255 * emultempl/mmixelf.em: Likewise.
256 * emultempl/mmo.em: Likewise.
257 * emultempl/needrelax.em: Likewise.
258 * emultempl/netbsd.em: Likewise.
259 * emultempl/pe.em: Likewise.
260 * emultempl/sh64elf.em: Likewise.
261 * emultempl/sunos.em: Likewise.
262 * emultempl/ticoff.em: Likewise.
263 * emultempl/vanilla.em: Likewise.
264 * emultempl/xtensaelf.em: Likewise.
265 * Makefile.am: Correct dependencies.
266 * Makefile.in: Regenerate.
268 2003-06-25 Alan Modra <amodra@bigpond.net.au>
270 * ld.texinfo: Correct spelling of "relocatable".
271 * ldctor.c: Likewise.
273 * ldfile.c: Likewise.
274 * ldint.texinfo: Likewise.
275 * ldlang.c: Likewise.
276 * ldmain.c: Likewise.
277 * ldwrite.c: Likewise.
278 * lexsup.c: Likewise.
279 * emultempl/aix.em: Likewise.
280 * emultempl/alphaelf.em: Likewise.
281 * emultempl/armcoff.em: Likewise.
282 * emultempl/armelf_oabi.em: Likewise.
283 * emultempl/beos.em: Likewise.
284 * emultempl/elf32.em: Likewise.
285 * emultempl/generic.em: Likewise.
286 * emultempl/gld960.em: Likewise.
287 * emultempl/gld960c.em: Likewise.
288 * emultempl/hppaelf.em: Likewise.
289 * emultempl/linux.em: Likewise.
290 * emultempl/lnk960.em: Likewise.
291 * emultempl/m68hc1xelf.em: Likewise.
292 * emultempl/m68kcoff.em: Likewise.
293 * emultempl/m68kelf.em: Likewise.
294 * emultempl/mipsecoff.em: Likewise.
295 * emultempl/mipself.em: Likewise.
296 * emultempl/mmix-elfnmmo.em: Likewise.
297 * emultempl/mmo.em: Likewise.
298 * emultempl/needrelax.em: Likewise.
299 * emultempl/pe.em: Likewise.
300 * emultempl/ppc64elf.em: Likewise.
301 * emultempl/sh64elf.em: Likewise.
302 * emultempl/sunos.em: Likewise.
303 * emultempl/ticoff.em: Likewise.
304 * emultempl/xtensaelf.em: Likewise.
306 2003-06-24 Alan Modra <amodra@bigpond.net.au>
308 * emultempl/ppc32elf.em: Convert to C90.
310 2003-06-20 Alan Modra <amodra@bigpond.net.au>
312 * emultempl/ppc64elf.em: Convert to C90 function definitions, remove
313 unnecessary prototypes and casts.
315 2003-06-19 Alan Modra <amodra@bigpond.net.au>
317 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Dump out
318 statistics from ppc64_elf_build_stubs.
320 2003-06-19 Alan Modra <amodra@bigpond.net.au>
322 * emultempl/ppc64elf.em (build_section_lists): Check return status
323 from ppc64_elf_next_input_section.
325 2003-06-17 H.J. Lu <hongjiu.lu@intel.com>
327 * ldlang.c (section_already_linked): Put back assignment of
330 2003-06-17 Rainer Keuchel <rkeuchel@allgeier.com>
332 * pe-dll.c (generate_reloc): Catch and ignore an ARM_26D
335 2003-06-17 Loren James Rittle <rittle@latour.rsch.comm.mot.com>
337 * configure.host (*-*-freebsd*): Add known path for ld-elf.so.1
338 if not produced by gcc.
340 2003-06-16 Hans-Peter Nilsson <hp@axis.com>
342 * configure.tgt: Add specific case for cris-*-linux-gnu*
343 with crislinux emulation only.
345 2003-06-13 Robert Millan <zeratul2@wanadoo.es>
347 * configure.tgt: Add i386-netbsd-gnu target.
349 2003-06-12 Richard Sandiford <rsandifo@redhat.com>
351 * configure.tgt (mips*-sgi-irix6*): Add the o32 and n64 emulations
352 to $targ_extra_libpath.
354 2003-06-11 H.J. Lu <hongjiu.lu@intel.com>
356 * po/Make-in (DESTDIR): New.
357 (install-data-yes): Support $(DESTDIR).
358 (uninstall): Likewise.
360 2003-06-10 Doug Evans <dje@sebabeach.org>
362 * Makefile.am (ALL_EMULATIONS): Add em32relf.o.
363 * Makefile.in: Regenerate.
365 2003-06-10 Richard Sandiford <rsandifo@redhat.com>
367 * configure.tgt (h8300*): Add h8300sxn emulations.
368 * Makefile.am (ALL_EMULATIONS): Add eh8300sxn.o and eh8300sxnelf.o.
369 (eh8300sxn.c, eh8300sxnelf.c): New rules.
370 * Makefile.in: Regenerate.
371 * emulparams/h8300sxnelf.sh, emulparams/h8300sxn.sh: New files.
372 * scripttempl/h8300sxn.sc: New file.
374 2003-06-10 Alan Modra <amodra@bigpond.net.au>
376 * emulparams/elf64ppc.sh (EXECUTABLE_SYMBOLS, OTHER_BSS_END_SYMBOLS,
377 CTOR_START, CTOR_END, DTOR_START, DTOR_END): Don't define.
379 2003-06-08 Alan Modra <amodra@bigpond.net.au>
381 * emultempl/ppc64elf.em (emit_stub_syms, toc_section): New vars.
382 (build_toc_list): New function.
383 (gld${EMULATION_NAME}_finish): Call build_toc_list and
384 ppc64_elf_reinit_toc. Adjust ppc64_elf_build_stubs call.
385 (OPTION_STUBSYMS): Define.
386 (PARSE_AND_LIST_LONGOPTS): Add emit-stub-syms.
387 (PARSE_AND_LIST_OPTIONS): Document.
388 (PARSE_AND_LIST_ARGS_CASES): Handle.
390 2003-06-05 Roland McGrath <roland@redhat.com>
392 * emultempl/elf32.em (gld${EMULATION_NAME}_list_options): Remove
393 extra \t in -z noexecstack line.
395 2003-05-23 Jakub Jelinek <jakub@redhat.com>
397 * ldgram.y (phdr_type): Grok PT_GNU_STACK.
398 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Add
399 -z execstack and -z noexecstack.
400 (gld${EMULATION_NAME}_list_options): Likewise.
401 * scripttempl/elf.sc: If not -r, discard .note.GNU-stack section.
403 2003-06-03 Michael Snyder <msnyder@redhat.com>
404 and Bernd Schmidt <bernds@redhat.com>
405 and Alexandre Oliva <aoliva@redhat.com>
407 * Makefile.am: Add new emulations for h8300sx.
408 * Makefile.in: Regenerate.
409 * configure.tgt: Add new emulations.
410 * emulparams/h8300sx.sh: New emulation.
411 * emulparams/h8300sxelf.sh: Ditto.
412 * scripttempl/h8300sx.sc: Ditto.
414 2003-06-03 H.J. Lu <hongjiu.lu@intel.com>
416 * ldmisc.c: Include "bfdlink.h".
417 (error_handler): Handle LD_DEFINITION_IN_DISCARDED_SECTION
418 and -LD_DEFINITION_IN_DISCARDED_SECTION.
420 * Makefile.am: Rebuild dependency.
421 * Makefile.in: Regenerated.
423 2003-06-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
425 * emulparams/shlelf_linux.sh (GENERATE_PIE_SCRIPT): Set to yes.
426 * emulparams/shlelf32_linux.sh (GENERATE_PIE_SCRIPT): Likewize.
428 2003-06-02 Fabrizio Gennari <fabrizio.ge@tiscalinet.it>
430 * pe-dll.c (fill_edata): Scan table pe_dll->exports, which is
431 sorted alphabetically, instead of exported_symbols, which is
434 2003-05-30 Ulrich Drepper <drepper@redhat.com>
435 Jakub Jelinek <jakub@redhat.com>
437 * lexsup.c (OPTION_PIE): Define.
438 (ld_options): Add -pie and --pic-executable options.
439 (parse_args): Handle OPTION_PIE.
440 * ldmain.c (main): Initialize link_info.pie and
441 link_info.executable.
442 * genscripts.sh: Generate PIE scripts.
443 * ld.texinfo: Document -pie and --pic-executable options.
444 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open):
445 (gld${EMULATION_NAME}_place_orphan): Likewise.
446 (gld${EMULATION_NAME}_get_script): Include PIE scripts.
447 * scripttempl/elf.sc: In PIE scripts set . the same way as in
449 * emulparams/elf_i386.sh (GENERATE_PIE_SCRIPT): Set to yes.
450 * emulparams/elf64_ia64.sh (GENERATE_PIE_SCRIPT): Likewise.
451 * emulparams/elf32ppc.sh (GENERATE_PIE_SCRIPT): Likewise.
452 * emulparams/elf64ppc.sh (GENERATE_PIE_SCRIPT): Likewise.
453 * emulparams/elf_x86_64.sh (GENERATE_PIE_SCRIPT): Likewise.
454 * emulparams/elf_s390.sh (GENERATE_PIE_SCRIPT): Likewise.
455 * emulparams/elf32_sparc.sh (GENERATE_PIE_SCRIPT): Likewise.
456 * emulparams/elf64_sparc.sh (GENERATE_PIE_SCRIPT): Likewise.
457 * emulparams/elf64alpha.sh (GENERATE_PIE_SCRIPT): Likewise.
458 * emulparams/elf64_s390.sh (GENERATE_PIE_SCRIPT): Likewise.
459 * emulparams/elf_i386.sh (GENERATE_PIE_SCRIPT): Likewise.
461 2003-05-30 H.J. Lu <hongjiu.lu@intel.com>
463 * genscripts.sh: Create tmpdir/libpath.exp.
465 2003-05-30 Nick Clifton <nickc@redhat.com>
467 * emultempl/armelf.em (arm_elf_before_allocation): Replace ASSERT
468 with a test for a NULL bfd_for_interworking.
470 2003-05-29 Jason Thorpe <thorpej@wasabisystems.com>
472 * configure.host (*-*-netbsd*): Set HOSTING_CRT0 and HOSTING_LIBS
473 correctly for more recent versions of NetBSD.
474 (alpha*-*-netbsd*): Remove.
475 (i[3-7]86-*-netbsd*): Remove.
477 2003-05-29 Nick Clifton <nickc@redhat.com>
479 * emultempl/pe.em: Include "safe-ctype.h" instead of <ctype.h>.
481 2003-05-26 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
483 * emulparams/elf64btsmip.sh: Set TEXT_START_ADDR to 0x120000000 to
484 trap on pointer crops.
486 2003-05-21 Marcus Comstedt <marcus@mc.pp.se>
488 * configure.tgt: Check for a target triplet of shl-...-netbsdelf
489 as well as shle-...-netbsdelf.
491 2003-05-16 Kelley Cook <kelleycook@wideopenwest.com>
493 * configure.host: Accept i[3-7]86 variants.
494 * configure.tgt: Likewise.
496 2003-05-15 H.J. Lu <hongjiu.lu@intel.com>
498 * emulparams/elf64_ia64.sh: Don't set COMMONPAGESIZE for now.
500 2003-05-09 Daniel Jacobowitz <drow@mvista.com>
502 * Makefile.am (ALL_EMULATIONS): Add earmelfb.o and earmelfb_linux.o.
503 (earmelfb.c, earmelfb_linux.c): New rules.
504 * Makefile.in: Regenerated.
505 * emulparams/armelfb.sh, emulparams/armelfb_linux.sh: New files.
506 * configure.tgt: Add armeb-elf and arm*b-*-linux-gnu.
508 2003-05-09 Nick Clifton <nickc@redhat.com>
510 * ldlang.c (lang_size_sections_1): Default to generating a
511 fatal error message if a loadable section is not allocated
512 to a memory region when regions are defined.
514 2003-05-09 Alan Modra <amodra@bigpond.net.au>
516 * Makefile.am (em68hc11elf.c): Correct dependencies.
517 (em68hc11elfb.c, em68hc12elf.c, em68hc12elfb.c): Likewise.
518 * Makefile.in: Regenerate.
519 * emultempl/elf32.em (find_exp_assignment): Adjust for changed
520 bfd_elf_record_link_assignment name.
522 2003-05-07 Alexandre Oliva <aoliva@redhat.com>
524 * ldmain.h (overflow_cutoff_limit): Declare.
525 * ldmain.c (overflow_cutoff_limit): Define, initialized to 10.
526 (reloc_overflow): Limit error messages based on it.
527 * lexsup.c (parse_args) <OPTION_VERBOSE>: Set cutoff to
530 2003-05-05 Alan Modra <amodra@bigpond.net.au>
532 * ldlex.l: Accept C style comments in version scripts.
534 2003-04-28 H.J. Lu <hjl@gnu.org>
536 * ldlang.c (lang_process): Add the relax finalize pass.
538 * ldmain.c (main): Initialize link_info.relax_finalizing to
541 2003-04-24 Roland McGrath <roland@redhat.com>
543 * ldgram.y (phdr_type): Grok PT_TLS and PT_GNU_EH_FRAME names.
544 If a name string is unknown, give an error rather than crashing later.
546 2003-04-23 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
548 * Makefile.am (ALL_EMULATIONS): Add eh8300hn.o, eh8300sn.o,
549 eh8300hnelf.o, eh8300snelf.o and respective rules.
550 * Makefile.in: Regenerate.
551 * configure.tgt: Add h8300hn, h8300sn, h8300hnelf, h8300snelf
552 * emulparams/h8300hn.sh: New
553 * emulparams/h8300sn.sh: New
554 * emulparams/h8300hnelf.sh: New
555 * emulparams/h8300snelf.sh: New
556 * scripttempl/h8300hn.sc: new
557 * scripttempl/h8300sn.sc: new
559 2003-04-23 H.J. Lu <hjl@gnu.org>
561 * ldmain.c (link_callbacks): Initialize error_handler.
563 * ldmisc.c (error_handler): New function.
565 * ldmisc.h (error_handler): New prototype.
567 2003-04-21 Stephane Carrez <stcarrez@nerim.fr>
569 * emulparams/m68hc11elf.sh: Use m68hc1xelf.em extra.
570 * emulparams/m68hc11elfb.sh: Likewise.
571 * emulparams/m68hc12elf.sh: Likewise.
572 * emulparams/m68hc12elfb.sh: Likewise.
574 2003-04-19 Stephane Carrez <stcarrez@nerim.fr>
576 * emultempl/m68hc1xelf.em: New file to generate far trampolines on
578 (LDEMUL_BEFORE_ALLOCATION): Override to gather the trampolines to
580 (LDEMUL_FINISH): Override to generate the trampolines after gc and
582 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Override to create the
583 stub file for trampolines.
584 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_LONGOPTS): New options
585 --no-trampoline and --bank-window to control the memory bank window.
587 2003-04-18 H.J. Lu <hjl@gnu.org>
589 * ldfile.c (ldfile_add_library_path): Remove the unused
592 2003-04-18 Andrew Haley <aph@cambridge.redhat.com>
594 * scripttempl/xstormy16.sc (__data, __rdata): New.
596 2003-04-16 Nick Clifton <nickc@redhat.com>
598 * scripttempl/xstormy16.sc: Add .jcr section mapping.
600 2003-04-15 H.J. Lu <hjl@gnu.org>
602 From Debian by Jack Howarth <howarth@nitro.med.uc.edu>:
604 * ldlex.l: Use YY_CURRENT_BUFFER instead of yy_current_buffer.
606 2003-04-15 Rohit Kumar Srivastava <rohits@kpitcummins.com>
608 * h8-doc.texi: Replace occurrances of 'Hitachi' with 'Renesas'.
609 * ld.texinfo: Likewise.
611 2003-04-14 Alan Modra <amodra@bigpond.net.au>
613 From Prashanth Tamraparni <prashanth_t@in.ibm.com>
614 * scripttempl/elf.sc (CTOR): Handle crtbeginS.o, crtendS.o and
615 other variants of crtbegin.o, crtend.o.
617 * scripttempl/crisaout.sc (ctors, dtors): Likewise.
618 * scripttempl/elf_chaos.sc (CTOR, DTOR): Likewise.
619 * scripttempl/elfd10v.sc (CTOR, DTOR): Likewise.
620 * scripttempl/elfd30v.sc (CTOR, DTOR): Likewise.
621 * scripttempl/elfxtensa.sc (CTOR, DTOR): Likewise.
622 * scripttempl/iq2000.sc (CTOR, DTOR): Likewise.
623 * scripttempl/mmo.sc (ctors, dtors): Likewise.
624 * scripttempl/xstormy16.sc (CTOR, DTOR): Likewise.
626 2003-04-09 Dmitry Diky <diwil@mail.ru>
628 * scripttempl/elf32msp430.sc: Add initX, finiX, ctors, dtors
629 sections to respect C++ constructor/destructor. Add ctors/dtors
630 start/stop definitions.
631 * scripttempl/elf32msp430_3.sc: Likewise.
633 2003-04-06 Nick Clifton <nickc@redhat.com>
635 * ld.texinfo (Options): Add a reminder of the target specific
636 nature to the description of the i386 PE specific options, for
637 readers who have not read all the way through the manual.
639 2003-04-04 Svein E. Seldal <Svein.Seldal@solidas.com>
641 * configure.tgt: Fixed bug in list of targ_extra_emuls.
642 * emulparams/tic3xcoff.sh (SCRIPT_NAME): Namespace
643 cleanup. Replace s/c4x/tic4x and s/c3x/tic3x/
644 * emulparams/tic3xcoff_onchip.sh: Ditto
645 * emulparams/tic4xcoff.sh: Ditto
646 * scripttempl/tic4xcoff.sc: Ditto
648 2003-04-03 Nick Clifton <nickc@redhat.com>
650 * NEWS: Mention support for Xtensa architecture.
652 2003-04-02 Nick Clifton <nickc@redhat.com>
654 * pe-dll.c (pe_detail_list): arm-pe targets use underscores.
656 2003-04-01 Danny Smith <dannysmith@users.sourceforge.net>
658 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open):
659 Don't call pe_dll_build_section() if link_info.relocateable.
660 (gld_${EMULATION_NAME}_finish): Don't call pe_dll_fill_sections()
661 if link_info.relocateable.
663 2003-04-01 Fabrizio Gennari <fabrizio.ge@tiscalinet.it>
665 * pe-dll.c (process_def_file): Don't create an export
666 section if there are no exports and we're building an exe
667 (pe_dll_build_sections): Ditto
668 (pe_dll_fill_sections): Conditionalize setting
669 abfd->dll true on info->shared
670 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open):
671 If i386pe or armpe, call pe_dll_build_section()
672 for both exe's and dll's, not just dll's.
673 (gld_${EMULATION_NAME}_finish): For all targets except
674 shpe and mipspe, call pe_dll_fill_sections() for both
675 exe's and dll's, not just dll's.
677 2003-04-02 Bob Wilson <bob.wilson@acm.org>
679 * emulparams/xtensa-config.sh: Remove comment indicating that this is
682 2003-04-01 Bob Wilson <bob.wilson@acm.org>
684 * Makefile.am (ALL_EMULATIONS): Add eelf32xtensa.o.
685 (eelf32xtensa.c): New target.
686 * Makefile.in: Regenerate.
687 * configure.tgt: Handle xtensa-*-*.
688 * gen-doc.texi: Set XTENSA variable.
689 * ld.texinfo: Set XTENSA variable. Add new Xtensa node.
690 * emulparams/elf32xtensa.sh: New file.
691 * emulparams/xtensa-config.sh: Likewise.
692 * emultempl/xtensaelf.em: Likewise.
693 * scripttempl/elfxtensa.sc: Likewise.
695 2003-04-01 Jakub Jelinek <jakub@redhat.com>
697 * configure.tgt (powerpc*-*-linux*): Add elf32ppc to ppc64
698 targ_extra_libpath. Add elf64ppc to ppc targ_extra_libpath
699 if --enable-64-bit-bfd.
701 2003-04-01 Nick Clifton <nickc@redhat.com>
703 * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Change name of
705 * emulparams/armelf_linux.sh (OTHER_READONLY_SECTIONS): Change
706 name of note section.
708 2003-03-31 Alexandre Oliva <aoliva@redhat.com>
710 * ld.texinfo (-Tbss, -Tdata, -Ttext): Document in terms of
713 2003-03-31 David Heine <dlheine@suif.stanford.edu>
715 * ldfile.c (ldfile_add_library_path): Always allocate space for
717 * ldlang.c (lang_register_vers_node): Free the node if it cannot
719 * ldmain.c (set_scripts_dir): Always free the constructed
721 (add_keepsyms_file): Fix memory leak.
722 * ldmisc.c (vfinfo): Likewise.
723 * lexsup.c (parse_args): Likewise.
725 2003-03-25 Stan Cox <scox@redhat.com>
726 Nick Clifton <nickc@redhat.com>
728 Contribute support for Intel's iWMMXt chip - an ARM variant:
730 * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Define.
731 * emulparams/armelf_linux.sh (OTHER_READONLY_SECTIONS): Define.
732 * scripttempl/armcoff.sc (.data): Ensure 8 byte alignment.
735 2003-03-25 Alexandre Oliva <aoliva@redhat.com>
737 * ldmain.h (ld_canon_sysroot, ld_canon_sysroot_len): Declare.
738 * ldmain.c (ld_canon_sysroot, ld_canon_sysroot_len): Define.
739 (main): Initialize them.
740 * ldfile.c: Include pathnames.h.
741 (is_sysrooted_pathname): New.
742 (ldfile_add_library_path): Use it.
743 (ldfile_open_file_search): Likewise. Use IS_ABSOLUTE_PATH. Don't
744 search_dirs if given an absolute pathname.
745 (ldfile_open_file): Issue error message for sysrooted
747 * Makefile.am: Updated dependencies.
748 * Makefile.in: Rebuild.
750 2003-03-24 Daniel Néri <dne@mayonnaise.net>
752 * ld.texinfo: Rename all occurances of C54X to TIC54X.
754 2003-03-19 Andreas Schwab <schwab@suse.de>
756 * ldfile.c (ldfile_try_open_bfd): Pop lexer start condition after
759 2003-03-18 Danny Smith <dannysmith@users.sourceforge.net>
761 * deffilep.y (opt_base): If no number given, set to default
764 2003-03-13 Danny Smith <dannysmith@users.sourceforge.net>
766 * deffilep.y (def_import): Use default extension of "dll"
767 if no extension provided in parsed IMPORT definition.
769 * deffilep.y (def_lex): Revert 2003-03-12 change.
770 (dot_name): New id type and rule.
771 (expline): Use instead of ID.
772 (opt_equal_name): Likewise.
774 2003-03-12 Danny Smith <dannysmith@users.sourceforge.net>
776 * deffilep.y (def_lex): Accept '.' as valid non-lead char.
778 2003-03-07 Christopher Faylor <cgf@redhat.com>
780 * configure.tgt: Add NATIVE_LIB_DIRS for cygwin target back after
781 apparent accidental removal on 2003-01-06.
783 2003-03-04 Dmitry Diky <diwil@mail.ru>
785 * Makefile.am: Add new devices x1122 x1132 emulation
786 * configure.tgt: Likewise.
787 * Makefile.in: Regenerate.
788 * emulparams/msp430x1122.sh: New file.
789 * emulparams/msp430x1132.sh: New file.
791 2003-03-03 Alexandre Oliva <aoliva@redhat.com>
793 * ldmain.c (set_scripts_dir): Look for relative to TOOLBINDIR as
796 * ldfile.h (struct search_dirs): Added sysrooted field.
797 * ldlang.h (struct lang_input_statement_struct): Likewise.
798 * ldfile.c (ldfile_add_library_path): Mark sysrooted paths.
799 (ldfile_open_file_search): Look for sysrooted filename starting
800 with / in ld_sysroot instead of in the current directory. Clear
801 sysrooted flag if it's found in the current directory. Set it
802 from the search directory's sysrooted flag where it is found
804 * ldlang.c (ldlang_sysrooted_script): New static variable.
805 (new_afile): Mark search_file_enums as sysrooted if
806 ldlang_sysrooted_script.
807 (load_symbols): Set ldlang_sysrooted_script according to the
808 script's sysrooted field while processing it.
809 * ld.texinfo: Document INPUT behavior in sysroot.
811 2003-03-02 Danny Smith <dannysmith@users.sourceforge.net>
813 * scripttempl/pe.sc: Use PROVIDE with etext, end, _end,
815 2003-03-03 Alan Modra <amodra@bigpond.net.au>
817 * emulparams/elf64alpha.sh (EXTRA_EM_FILE): Define.
818 (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS,
819 PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES,
820 PARSE_AND_LIST_EPILOGUE): Don't define.
821 * emultempl/alphaelf.em: New file.
823 2003-03-01 Alan Modra <amodra@bigpond.net.au>
825 * ldemul.c: Include getopt.h.
826 * emultempl/elf32.em: Include getopt.h earlier.
827 * emultempl/ticoff.em: Likewise.
829 2003-02-28 Alan Modra <amodra@bigpond.net.au>
831 * emultempl/elf32.em (gld${EMULATION_NAME}_get_script): Add combreloc
832 support when scripts read from files.
834 2003-02-28 Alan Modra <amodra@bigpond.net.au>
836 * ldemul.c (ldemul_parse_args): Return FALSE by default.
837 * ldemul.h (struct ld_emulation_xfer_struct): Update parse_args
840 * ldemul.c (ldemul_add_options, ldemul_handle_option): New functions.
841 (ldemul_parse_args): Return bfd_boolean. Formatting.
842 * ldemul.h (ldemul_add_options, ldemul_handle_option): Declare.
843 (ldemul_parse_args): Adjust.
844 (struct ld_emulation_xfer_struct): Add add_options and handle_option.
845 Return bfd_boolean from parse_args.
846 * lexsup.c (parse_args): Malloc shortopts, longopts and
847 really_longopts. Call ldemul_add_options and ldemul_handle_option.
848 * emultempl/aix.em (gld${EMULATION_NAME}_add_options): Split out from
849 gld${EMULATION_NAME}_parse_args.
850 (gld${EMULATION_NAME}_handle_option): Likewise.
851 (ld_${EMULATION_NAME}_emulation): Adjust initializer.
852 * emultempl/armcoff.em: As for aix.em, but remove parse_args.
853 * emultempl/beos.em: Likewise.
854 * emultempl/pe.em: Likewise.
855 * emultempl/ticoff.em: Likewise.
856 * emultempl/elf32.em: Likewise. Don't duplicate long options either.
857 (gld${EMULATION_NAME}_add_sysroot): Prototype.
858 * emultempl/armelf.em (PARSE_AND_LIST_LONGOPTS): Don't duplicate
860 * emultempl/hppaelf.em (PARSE_AND_LIST_LONGOPTS): Likewise.
861 * emultempl/ppc32elf.em (PARSE_AND_LIST_LONGOPTS): Likewise.
862 * emultempl/ppc64elf.em (PARSE_AND_LIST_LONGOPTS): Likewise.
863 * emultempl/armelf_oabi.em (ld_${EMULATION_NAME}_emulation): Adjust
865 * emultempl/generic.em: Likewise.
866 * emultempl/gld960.em: Likewise.
867 * emultempl/gld960c.em: Likewise.
868 * emultempl/linux.em: Likewise.
869 * emultempl/lnk960.em: Likewise.
870 * emultempl/m68kcoff.em: Likewise.
871 * emultempl/mipsecoff.em: Likewise.
872 * emultempl/sunos.em: Likewise.
873 * emultempl/vanilla.em: Likewise.
874 * emultempl/netbsd.em (gldnetbsd_before_parse): Prototype.
876 2003-02-25 Alexandre Oliva <aoliva@redhat.com>
878 * emultempl/elf32.em (gld${EMULATION_NAME}_add_sysroot): Fix
879 memory allocation error.
881 * Makefile.am (ldmain.o): Define TOOLBINDIR.
882 * Makefile.in: Rebuilt.
883 * ldmain.c (ld_sysroot): Try to set from TOOLBINDIR too.
885 2003-02-21 Bob Wilson <bob.wilson@acm.org>
887 * ldlang.c (lang_size_sections_1): Add CHECK_REGIONS argument and only
888 call os_region_check when it is set.
889 (lang_size_sections): Add CHECK_REGIONS argument and pass it through to
890 lang_size_sections_1.
891 (lang_process): Change lang_size_sections calls to set CHECK_REGIONS
892 only for the last call, not on every relaxation iteration.
893 * ldlang.h (lang_size_sections): Update prototype.
894 * pe-dll.c (pe_dll_fill_sections): Set CHECK_REGIONS argument in calls
895 to lang_size_sections.
896 (pe_exe_fill_sections): Likewise.
897 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Likewise.
898 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
899 * emultempl/ppc64elf.em (ppc_before_allocation): Likewise.
900 (ppc_layout_sections_again): Likewise.
902 2003-02-21 Bob Wilson <bob.wilson@acm.org>
904 * gen-doc.texi: Set ARM and HPPA variables.
905 * ld.texinfo: Fix typos and obvious texinfo mistakes. Make section
906 title capitalization more consistent. Add missing menu entries for
907 machine-specific sections and conditionalize them consistently.
908 Conditionalize text that is irrelevant when SingleFormat is set.
909 Add @group divisions to improve page breaks in long examples.
910 Use @iftex/@ifnottex instead of @iftex/@ifinfo so that HTML output
911 is correct. Remove "FIXME" comment about not using
912 @raisesections/@lowersections. Use @raisesections/@lowersections
913 consistently for machine-specific sections. Change to be more polite
914 about poor bug reports. Replace FDL appendix with include of fdl.texi.
915 Move WIN32 node to match its order in the menus.
916 * fdl.texi: New file.
918 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
920 * configure.in (TARGET_SYSTEM_ROOT): Set default to
921 ${exec_prefix}/${target_alias}/sys-root. Match explicit
922 '${exec_prefix}' (in addition to the expansion thereof) as
924 * configure: Rebuilt.
926 2003-02-20 Phil Edwards <pme@gcc.gnu.org>
928 * ldgram.y (vers_defns): Also recurse with 'EXTERN NAME' patterns.
930 2003-02-20 Harri Porten <porten@kde.org>
932 * ldgram.y (vers_defns): Allow optional trailing semicolon in
935 2003-02-18 Alan Modra <amodra@bigpond.net.au>
937 * emultempl/ppc32elf.em: New file.
938 * emulparams/elf32ppc.sh (EXTRA_EM_FILE): Define.
939 * Makefile.am (eelf32lppc.c): Depend on emultempl/ppc32elf.em.
940 (eelf32lppcnto.c): Likewise.
941 (eelf32lppcsim.c): Likewise.
942 (eelf32ppcnto.c): Likewise.
943 (eelf32ppc.c): Likewise.
944 (eelf32ppc_fbsd.c): Likewise.
945 (eelf32ppcsim.c): Likewise.
946 (eelf32ppclinux.c): Likewise.
947 * Makefile.in: Regenerate.
949 2003-02-18 Alan Modra <amodra@bigpond.net.au>
951 * ld.texinfo: Remove spaces between @samp and opening brace.
953 2003-02-18 Alan Modra <amodra@bigpond.net.au>
955 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Check
957 (ppc_before_allocation): Don't do optimizations if wrong hash table.
958 (gld${EMULATION_NAME}_finish): Ditto.
960 2003-02-17 Nick Clifton <nickc@redhat.com>
962 * ldmain.c (main) Default allow_shlib_undefined to true.
963 * lexsup.c (ld_options): Add --no-allow-shlib-undefined.
964 (parse_args): Parse the new switch.
965 * ld.texinfo: Document new switch and default behaviour of
966 allowing undefined symbols in shared libraries.
968 2003-02-11 Dmitry Diky <diwil@mail.ru>
970 * scripttempl/elf32msp430.sc: Add new data anchors definitions.
971 * scripttempl/elf32msp430_3.sc: Likewise.
973 2003-02-11 Uwe Stieber <uwe@wwws.de>
975 * configure.tgt: Add support for kaOS as cross build target
978 2003-02-10 John Daivid Anglin <dave.anglin@nrc-cnrc.gc.ca>
980 * hppaelf.em (group_size): Change default back to 1.
982 2003-02-09 Alan Modra <amodra@bigpond.net.au>
984 * emultempl/ppc64elf.em: Add "no-tls-optimize" option and support code.
986 2003-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
988 * hppaelf.em (group_size): Change default to -1.
990 2003-02-07 Nick Clifton <nickc@redhat.com>
992 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Remove 'n' short
994 (PARSE_AND_LIST_LONGOPTS): Add duplicate entry for
995 no-pipeline-knowledge. This will prevent the getopt package from
996 thinking that there are any shorter abbreviations for
997 --no-pipeline-knowledge.
999 2003-02-07 Jakub Jelinek <jakub@redhat.com>
1001 * genscripts.sh (LIB_PATH): Don't append LIBPATH_SUFFIX to paths
1002 which already have it. Avoid duplicates.
1004 2003-02-06 Jakub Jelinek <jakub@redhat.com>
1006 * emulparams/elf64_s390.sh (LIBPATH_SUFFIX): Set to 64.
1007 * emulparams/elf_x86_64.sh (LIBPATH_SUFFIX): Likewise.
1008 * emulparams/elf64_sparc.sh (LIBPATH_SUFFIX): Set instead of suffix.
1010 2003-02-05 Alan Modra <amodra@bigpond.net.au>
1012 * emultempl/ppc64elf.em (ppc_before_allocation): Size sections then
1013 call ppc64_elf_tls_optimize.
1015 2003-02-03 Daniel Jacobowitz <drow@mvista.com>
1017 * emultempl/elf32.em: Move gld${EMULATION_NAME}_add_sysroot
1018 outside of GNU/Linux conditional.
1020 2003-01-28 Ralf Habacker <ralf.habacker@freenet.de>
1022 * deffilep.y (def_get_module): New function: locate an already
1024 * deffile.h (def_get_module): New prototype.
1025 * pe-dll.c (pe_implied_import_dll): Add code to prevent importing
1026 a dll multiple times.
1028 2003-01-23 Alan Modra <amodra@bigpond.net.au>
1030 * emultempl/sh64elf.em: Include elf32-sh64.h.
1031 (sh64_elf_${EMULATION_NAME}_before_allocation): Adjust for changed
1032 sh64_elf_section_data.
1033 (sh64_elf_${EMULATION_NAME}_after_allocation): Likewise.
1035 2003-01-23 Wu Yongwei <adah@netstd.com>
1037 * ld.texinfo: Remove an extra "i" in --dll-search-prefix.
1038 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Move a
1039 cross-80th-column-margin "an" to the next line.
1041 2003-01-21 Nick Clifton <nickc@redhat.com>
1043 * emulparams/tic3xcoff-onchip.sh: Rename to ...z
1044 * emulparams/tic3xcoff_onchip.sh: ...this.
1045 * Makefile.am (etic3xcoff_onchip.c): Fix name of generated C file.
1046 * Makefile.in: Regenerate.
1048 2003-01-21 Fabio Alemagna <falemagn@aros.org>
1050 * configure.tgt: Handle i[3456]86-*-aros*
1052 2003-01-19 Svein E. Seldal <Svein.Seldal@solidas.com>
1054 * Makefile.am: Added etic3xcoff.o and etic4xcoff_onchip.o
1055 * Makefile.in: Regenerate
1056 * configure.tgt: Added extra target emulations
1057 * emulparams/tic3xcoff.sh: Remove old settings
1058 * emulparams/tic4xcoff.sh: Ditto
1059 * emulparams/tic3xcoff-onchip.sh: Added new
1060 * scripttempl/tic4xcoff.sc: Revise and combine both c3x and c4x
1061 * scripttempl/tic3xcoff.sc: Remove
1063 2003-01-17 Andreas Jaeger <aj@suse.de>
1065 * emultempl/elf32.em (gld${EMULATION_NAME}_add_sysroot): Do not
1068 2003-01-16 Alan Modra <amodra@bigpond.net.au>
1070 * Makefile.in: Regenerate.
1072 2002-01-14 Charles Wilson <cwilson@ece.gatech.edu>
1074 * ld.texinfo (node WIN32): Some clarifications
1075 and formatting fixups.
1077 2003-01-09 Chris Demetriou <cgd@broadcom.com>
1079 * ldmain.c (get_emulation): Sort -mipsNN checks in the usual
1080 order, and handle (ignore) -mips32r2.
1082 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
1084 * ldmain.c (main): Make sure ld_sysroot is initialized.
1086 2003-01-06 Daniel Jacobowitz <drow@mvista.com>
1088 * Makefile.am (eelf32iq10.c): Fix tab/whitespace mixup.
1090 * Makefile.am (ldmain.o): Add @TARGET_SYSTEM_ROOT_DEFINE@.
1091 (GENSCRIPTS): Add @use_sysroot@.
1092 * Makefile.in: Regenerated.
1093 * configure.host: Move setting of NATIVE_LIB_DIRS to...
1094 * configure.tgt: ... here. Use ${target} instead of ${host}
1095 for NATIVE_LIB_DIRS.
1096 * configure.in: Add --with-sysroot.
1097 * configure: Regenerated.
1098 * genscripts.sh: Accept use_sysroot option. Set new variables
1099 NATIVE and USE_LIBPATH. Prepend "=" to directory names if
1100 $use_sysroot. Don't search $tool_lib if $use_sysroot.
1101 * ldfile.c (ldfile_add_library_path): Handle leading '='.
1102 * ldmain.c (TARGET_SYSTEM_ROOT): Define if not defined.
1103 (ld_sysroot): New variable.
1104 (main): Initialize ld_sysroot.
1105 * ldmain.h (ld_sysroot): New extern.
1106 * emultempl/elf32.em: Use NATIVE and USE_LIBPATH instead of
1107 searching $EMULATION_LIBPATH.
1108 (gld${EMULATION_NAME}_add_sysroot): New function.
1109 (gld${EMULATION_NAME}_check_ld_so_conf): Use it. Honor ld_sysroot.
1110 (gld${EMULATION_NAME}_after_open): Likewise. Only search
1111 environment variables if $NATIVE.
1112 * ld.texinfo (Options): Mention "=" prefix in the description of -L.
1113 * NEWS: Mention --with-sysroot.
1115 * emulparams/elf32bmipn32-defs.sh: Set NATIVE and LIBPATH_SUFFIX
1116 instead of setting LIB_PATH.
1117 * emulparams/elf32ppc.sh: Likewise.
1118 * emulparams/elf64_s390.sh: Likewise.
1119 * emulparams/elf64_sparc.sh: Likewise.
1120 * emulparams/elf64ppc.sh: Likewise.
1121 * emulparams/elf_x86_64.sh: Likewise.
1123 * emulparams/elf64_aix.sh: Add "=" prefixes to LIB_PATH.
1124 * emulparams/elf64hppa.sh: Add "=" prefixes to LIB_PATH.
1126 2003-01-03 Charles Wilson <cwilson@ece.gatech.edu>
1128 * pe-dll.c (autofilter_symbollist): Add cygwin_crt0.
1130 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
1132 * Makefile.am (ldmain.o): Pass BINDIR.
1133 * Makefile.in: Regenerated.
1134 * ldmain.c (set_scripts_dir): Use make_relative_prefix for the first
1137 2003-01-02 Ben Elliston <bje@redhat.com>
1139 * Makefile.am (ALL_EMULATIONS): Add eelf32iq2000.o.
1140 (eelf32iq2000.c): New target.
1141 * Makefile.in: Regenerate.
1142 * configure.tgt: Handle iq2000-*-elf.
1143 * emulparams/elf32iq10.sh: New file.
1144 * emulparams/elf32iq2000.sh: New file.
1145 * scripttempl/iq2000.sc: New file.
1147 2003-01-02 Charles Wilson <cwilson@ece.gatech.edu>
1149 * pe-dll.c (autofilter_symbollist): Add do_pseudo_reloc
1150 and _pei386_runtime_relocator to the exclude list.
1152 2003-01-01 Kazu Hirata <kazu@cs.umass.edu>
1154 * ldfile.c: Fix comment typos.
1155 * ldlang.c: Likewise.
1157 * pe-dll.c: Likewise.
1159 2003-01-01 Daniel Jacobowitz <drow@mvista.com>
1161 Suggested by Manfred Hollstein <manfred.h@gmx.net>:
1162 * Makefile.am (ld.1): Depend on configdoc.texi
1164 * Makefile.in: Regenerated.
1166 2002-12-24 Dmitry Diky <diwil@mail.ru>
1168 * Makefile.am: Add msp430 target.
1169 * configure.tgt: Likewise.
1170 * Makefile.in: Regenerate.
1171 * emulparams/msp430x???.sh: New files. Linker script parameters
1172 for various msp430 configurations.
1173 * gen-doc.texi: Enable msp430 documenation.
1174 * ld.texinfo: Document msp430 sections.
1175 * scripttempl/elf32msp430.sc: New file. Linker script for msp430.
1176 * scripttempl/elf32msp430_3.sc: New file. Linker script for msp430.
1178 2002-12-30 Ralf Habacker <Ralf.Habacker@freenet.de>
1179 Charles Wilson <cwilson@ece.gatech.edu>
1181 * config.in (HAVE_REALPATH): New entry.
1182 (HAVE_SYS_STAT_H, HAVE_SYS_TYPES_H): Removed: obsolete.
1184 2002-12-30 Ralf Habacker <ralf.habacker@freenet.de>
1186 * ld.texinfo: New win32 topics: 'symbol aliasing' and 'export dll
1189 2002-12-23 Alan Modra <amodra@bigpond.net.au>
1191 * ldmain.c (main): Init "strip_discarded".
1192 * lexsup.c (OPTION_STRIP_DISCARDED): Define.
1193 (OPTION_NO_STRIP_DISCARDED): Define.
1194 (ld_options): Add "strip-discarded" and "no-strip-discarded".
1195 (parse_args): Handle them.
1197 2002-12-23 Nick Clifton <nickc@redhat.com>
1199 * ld.h (struct args_type): Add new field
1200 'accept_unknown_input_architecture'.
1201 * ldmain.c (main): Initialise 'accept_unknown_input_architecture'
1203 * ldlang.c (lang_check): Pass accept_unknown_input_architecture to
1204 bfd_arch_get_compatible.
1205 * ldfile.c (ldfile_try_open_bfd): Likewise.
1206 * lexsup.c (ld_options): Add new command line switch
1207 --accept-unknown-input-architecture and its inverse.
1208 (parse_args): Handle --accept-unknown-input-architecture.
1209 * ld.texinfo: Document new linker option.
1210 * NEWS: Mention new linker option.
1212 2002-12-20 Alan Modra <amodra@bigpond.net.au>
1214 * ldmain.c (main): Re-order link_info initialization. Init all
1217 2002-12-19 Charles Wilson <cwilson@ece.gatech.edu>
1219 * ld.texinfo: Clarify and extend the documentation
1220 in the Machine Dependent, WIN32 section.
1222 2002-12-18 Ralf Habacker <ralf.habacker@freenet.de>
1224 * ld.texinfo: Add win32 machine depending section.
1225 * gen-doc.texi: Enable win32 machine depending section.
1227 * configure.host: Add win32 library search path.
1229 2002-12-17 Ralf Habacker <ralf.habacker@freenet.de>
1231 * emultempl/pe.em (pe_find_data_imports): Don't search for data
1232 import when auto-import is disabled.
1234 2002-12-17 Danny Smith <dannysmith@users.sourceforge.net>
1236 * emultempl/pe.em (..._recognized_file): Use LD_PATHMAX+1 to
1237 account for trailing '\0'.
1239 2002-12-17 Nick Clifton <nickc@redhat.com>
1241 * emultempl/pe.em (longopts): Duplicate entry for --compact-implib
1242 so that it is not confused with -c.
1244 2002-12-13 Ralf Habacker <Ralf.Habacker@freenet.de>
1245 Charles Wilson <cwilson@ece.gatech.edu>
1247 * configure.in: Add check for realpath function.
1248 * configure: Regenerate.
1249 * config.in: Regenerate.
1250 * aclocal.m4: Regenerate.
1251 * deffile.h: Add .data field to def_file_import
1253 * pe-dll.c (pe_proces_import_defs): Use .data field of
1254 def_file_import structure to initialize flag_data field of
1255 def_file_export structure.
1256 (pe_implied_import_dll): New variables exp_funcbase and
1257 [data|bss]_[start|end]. Use DLL's internal name to set dll_name,
1258 not filename (which may be a symlink). Scan the sections and
1259 initialize [data|bss]_[start|end]. When scanning the export
1260 table, skip _nm_ symbols, and mark any symbols whose rva indicates
1261 that it is in the .bss or .data sections as data.
1262 * sysdep.h: Include limits.h and sys/param.h, and define
1263 LD_PATHMAX as appropriate. Also define REALPATH as realpath if it
1264 exists, NULL otherwise.
1265 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Call
1266 pe_process_import_defs before pe_find_data_imports, so that
1267 auto-import will check the virtual implib as well as "real"
1269 (gld_${EMULATION_NAME}_recognized_file): Use REALPATH to follow
1270 symlinks to their target; check that the target's extension is
1271 .dll before calling pe_implied_import_dll(), not the filename
1272 itself (which may be a symlink).
1274 2002-12-10 Alan Modra <amodra@bigpond.net.au>
1276 * emultempl/elf32.em (struct orphan_save): Add os_tail field.
1277 (gld${EMULATION_NAME}_place_orphan): Re-order output_section_statement
1280 2002-12-08 Alan Modra <amodra@bigpond.net.au>
1282 * ldlang.h: Formatting.
1284 2002-12-07 Alan Modra <amodra@bigpond.net.au>
1286 * ldlang.c (init_os): Ensure sections mentioned in load_base
1289 2002-12-05 Alan Modra <amodra@bigpond.net.au>
1291 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Set
1292 load_base for orphans that follow a section with load_base set.
1294 2002-12-01 H.J. Lu <hjl@gnu.org>
1296 * ld.texinfo: Remove the extra `;' in sample version script.
1298 2002-11-30 Alan Modra <amodra@bigpond.net.au>
1300 * configure.host: Correct dynamic-linker for powerpc64 hosts.
1302 * Makefile.am (eelf32ppcwindiss.c): Correct dependencies.
1303 * Makefile.in: Regenerate.
1305 * ld.h, ldcref.c, ldctor.c, ldctor.h, ldemul.c, ldemul.h, ldexp.c,
1306 ldexp.h, ldfile.c, ldfile.h, ldgram.y, ldlang.c, ldlang.h, ldmain.c,
1307 ldmain.h, ldmisc.c, ldwrite.c, lexsup.c, mri.c, pe-dll.c, pe-dll.h,
1308 emulparams/elf32b4300.sh, emultempl/aix.em, emultempl/armcoff.em,
1309 emultempl/armelf.em, emultempl/armelf_oabi.em, emultempl/beos.em,
1310 emultempl/elf32.em, emultempl/generic.em, emultempl/gld960.em,
1311 emultempl/gld960c.em, emultempl/hppaelf.em, emultempl/linux.em,
1312 emultempl/lnk960.em, emultempl/m68kcoff.em, emultempl/mipsecoff.em,
1313 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em, emultempl/mmo.em,
1314 emultempl/needrelax.em, emultempl/pe.em, emultempl/ppc64elf.em,
1315 emultempl/sh64elf.em, emultempl/sunos.em, emultempl/ticoff.em: Replace
1316 boolean with bfd_boolean, true with TRUE, false with FALSE. Simplify
1317 comparisons of bfd_boolean vars with TRUE/FALSE. Formatting.
1319 2002-11-27 David O'Brien <obrien@FreeBSD.org>
1321 * configure.host: Fix generic FreeBSD configuration entry.
1323 2002-11-27 H.J. Lu <hjl@gnu.org>
1325 * ld.texinfo: Add the missing `;' to sample version scripts.
1327 2002-11-20 Alan Modra <amodra@bigpond.net.au>
1329 * emulparams/elf64ppc.sh (SEGMENT_SIZE): Don't define.
1331 2002-11-14 Egor Duda <deo@logos-m.ru>
1333 * ldmain.c (main): Make runtime relocs disabled by default. Remove
1334 assignment which has no effect.
1335 * pe-dll.h (pe_create_import_fixup): Change prototype.
1336 * pe-dll.c (make_runtime_pseudo_reloc): New function.
1337 (pe_create_runtime_relocator_reference): Ditto.
1338 (pe_create_import_fixup): Handle relocations with non-zero addends.
1339 * emultempl/pe.em: Add options --enable-runtime-pseudo-reloc and
1340 --disable-runtime-pseudo-reloc.
1341 (make_import_fixup): Handle relocations with non-zero addends. Create
1342 an external reference to _pei386_runtime_relocator symbol if at least
1343 one pseudo reloc was created.
1344 * ld.texinfo: Document --enable-runtime-pseudo-reloc and
1345 --disable-runtime-pseudo-reloc options.
1347 2002-11-12 Earl Chew <earl_chew@agilent.com>
1349 * ldlang.c (lang_add_section): Discard debugging sections that have
1350 been marked SEC_EXCLUDE.
1352 2002-11-12 Nick Clifton <nickc@redhat.com>
1354 * configure.in (ALL_LINGUAS): Add da.
1355 * configure: Regenerate.
1356 * po/da.po: New Danish translation.
1358 2002-11-12 Alan Modra <amodra@bigpond.net.au>
1360 * emultempl/ppc64elf.em (ppc_before_allocation): New function.
1361 (LDEMUL_BEFORE_ALLOCATION): Define.
1362 (gld${EMULATION_NAME}_finish): Run discard_info for relocatable
1364 * emultemp/hppaelf.em ((gld${EMULATION_NAME}_finish): Likewise.
1366 2002-11-11 Christopher Faylor <cgf@redhat.com>
1368 * configure.tgt (LIB_PATH): Default to searching w32api directory under
1371 2002-11-11 Charles Wilson <cwilson@ece.gatech.edu>
1373 * pe-dll.c (autofilter_liblist): add libmingwex and libgcj to the list
1374 of restricted auto-export libs.
1376 2002-11-11 Charles Wilson <cwilson@ece.gatech.edu>
1378 * pe-dll.c (autofilter_liblist): Generalize library names to catch more
1379 creative library naming instances like, e.g., libstdc++-2.a.
1381 2002-11-06 Alexandre Oliva <aoliva@redhat.com>
1383 * emulparams/elf32btsmipn32.sh (TEXT_DYNAMIC): Define.
1384 * emulparams/elf64btsmip.sh (TEXT_DYNAMIC): Likewise.
1386 2002-11-07 Danny Smith <dannysmith@users.sourceforge.net>
1388 * deffilep.y (def_lex): Handle '@' as first character of an ID.
1389 * pe-dll.c (auto-export): Filter on "_imp_" prefix, not "_imp__".
1390 (make_one): Don't prefix decorated fastcall symbols with '_'.
1391 (pe_process_import_defs): Likewise.
1392 * emultempl/pe.em (pe_fixup_stdcalls): Don't fixup fastcall
1393 symbols to cdecl names or vise-versa.
1395 2002-10-13 Eric Kohl <ekohl@rz-online.de>
1397 * pe-dll.c (process_def_file): Handle fastcall symbols when
1398 generating undecorated aliases. Don't prefix decorated fastcall
1400 (fill_exported_offsets): Don't prefix decorated fastcall symbols
1403 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
1405 * emultempl/aix.em: Use include <> for generated headers.
1406 * emultempl/beos.em: Likewise.
1407 * emultempl/elf32.em: Likewise.
1408 * emultempl/pe.em: Likewise.
1409 * ldctor.c: Likewise.
1410 * ldexp.c: Likewise.
1411 * ldfile.c: Likewise.
1412 * ldlang.c: Likewise.
1413 * ldlex.c: Likewise.
1414 * ldlex.l: Likewise.
1415 * ldmain.c: Likewise.
1416 * ldmisc.c: Likewise.
1417 * ldwrite.c: Likewise.
1418 * lexsup.c: Likewise.
1420 * pe-dll.c: Likewise.
1422 2002-10-23 Jakub Jelinek <jakub@redhat.com>
1424 * emultempl/elf32.em (place_orphan): Don't put non-allocated .rel*
1425 sections into .rel{,a}.dyn.
1427 2002-10-23 Nick Clifton <nickc@redhat.com>
1429 * lexsup.c (OPTION_NO_OMAGIC): Define.
1430 (ld_options): Add "no-omagic" option.
1431 (parse_args): Parse --no-omagic.
1432 * ld.texinfo: Document --no-omagic.
1433 * NEWS: Mention new option.
1435 2002-10-21 Danny Smith <dannysmith@users.sourceforeg.net>
1437 * scripttempl/pe.sc (__RUNTIME_PSEUDO_RELOC_LIST__,
1438 __RUNTIME_PSEUDO_RELOC_LIST_END__): Add only when relocating.
1440 2002-10-22 Alexandre Oliva <aoliva@redhat.com>
1442 * emulparams/elf32bmipn32-defs.sh: Set ELFSIZE according to
1443 emulation name. Set LIB_PATH only for native tools, and
1444 search the ABI-specific versions of NATIVE_LIB_DIRS before the
1445 .../lib variants, not instead of them. Mostly copied from...
1446 * emulparams/elf32ppc.sh: ... here. Fixed typo.
1447 * emulparams/elf64bmip-defs.sh: Backed out.
1448 * emulparams/elf64bmip.sh: Import elf32bmipn32-defs.sh again.
1449 * emulparams/elf64btsmip.sh: Likewise.
1450 (DATA_ADDR, NONPAGED_TEXT_START_ADDR, SHLIB_TEXT_START_ADDR,
1451 TEXT_DYNAMIC): Removed.
1453 2002-10-17 Alexandre Oliva <aoliva@redhat.com>
1455 * emulparams/elf32bmipn32-defs.sh (LIB_PATH): Set to /usr/lib32.
1456 (GENERATE_SHLIB_SCRIPT): Set to yes.
1457 (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Moved to...
1458 * emulparams/elf32bmipn32.sh: here.
1459 (GENERATE_SHLIB_SCRIPT): Deleted as redundant.
1460 * emulparams/elf32btsmipn32.sh: Delete redundant unsets.
1461 * emulparams/elf64bmip-defs.sh: New file. Extend
1462 elf32bmipn32-defs.sh by overiding ELFSIZE and LIB_PATH.
1463 * emulparams/elf64bmip.sh: Bring in definitions from
1465 (ELFSIZE, GENERATE_SHLIB_SCRIPT, LIB_PATH): Delete redundant
1467 (WRITABLE_RODATA): Moved from elf32bmipn32-defs.sh.
1468 * emulparams/elf64btsmip.sh: Bring in definitions from
1470 (ELFSIZE, GENERATE_SHLIB_SCRIPT): Delete, redundant.
1471 (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Delete redundant unsets.
1473 2002-10-16 Jakub Jelinek <jakub@redhat.com>
1475 * configure.tgt (s390x-*-linux*): Add elf_s390 emulation.
1476 (s390-*-linux*): Add elf64_s390 emulation if want64.
1477 * emulparams/elf64_sparc.sh (LIB_PATH): Update to match 2002-05-22
1478 genscript.sh changes.
1479 * emulparams/elf_x86_64.sh (LIB_PATH): Likewise.
1480 * emulparams/elf64_s390.sh (LIB_PATH): Set up native 64 bit dirs.
1482 2002-10-15 Alan Modra <amodra@bigpond.net.au>
1484 * ldlang.c (load_symbols): Revert last change.
1486 2002-10-14 Alan Modra <amodra@bigpond.net.au>
1488 * ldlang.c (load_symbols): Don't call bfd_link_add_symbols when
1490 (lang_reasonable_defaults): Don't compare against false.
1491 (size_input_section): Likewise.
1492 (lang_size_sections_1): Likewise.
1493 (lang_do_assignments): Likewise.
1494 (lang_add_output): Likewise.
1496 * Makefile.am: Run "make dep-am".
1497 * Makefile.in: Regenerate.
1498 * ldver.c: #include "bfdver.h".
1500 2002-10-13 Stephane Carrez <stcarrez@nerim.fr>
1502 * scripttempl/elfm68hc11.sc: Use KEEP for .vectors, .installN,
1504 * scripttempl/elfm68hc12.sc: Likewise.
1506 2002-10-11 Alan Modra <amodra@bigpond.net.au>
1508 * pe-dll.c (make_import_fixup_mark): Avoid type-punned pointer.
1510 * ldgram.y (memory_spec): Provide empty action.
1511 (section <NAME>): Likewise.
1513 2002-10-10 Jakub Jelinek <jakub@redhat.com>
1515 * ldfile.c (ldfile_try_open_bfd): When searching skip linker scripts if
1516 they have OUTPUT_FORMAT not matching actual output format.
1517 * ldlang.c (lang_get_output_target): New function.
1518 (open_output): Use it.
1519 * ldlang.h (lang_get_output_target): New prototype.
1521 2002-10-10 Alan Modra <amodra@bigpond.net.au>
1523 * emultempl/elf32.em (output_rel_find): Prefer .rel script sections
1524 when orphan is .rel, .rela when orphan is .rela.
1525 (gld${EMULATION_NAME}_place_orphan): Handle combreloc .rel* case
1526 first. Remove outsecname var.
1528 2002-10-09 Richard Shann <richard.shann@superh.com>
1529 Stephen Clarke <stephen.clarke@superh.com>
1531 * Makefile.am: Add eshelf32_linux.o and
1532 eshlelf32_linux.o, new emulations for sh64 Linux.
1533 * Makefile.in: Regenerate.
1534 * configure.tgt: Add sh64eb-*-linux* and sh64-*-linux* emulations.
1535 * emulparams/shelf32_linux.sh: New file.
1536 * emulparams/shlelf32_linux.sh: New file.
1538 2002-10-08 H.J. Lu <hjl@gnu.org>
1540 * ldlang.c (lang_file_exist): Removed.
1541 (new_afile): Revert the last change.
1542 * ldlang.h (lang_file_exist): Removed.
1543 * lexsup.c (parse_args): Revert the last change.
1545 2002-10-07 Ralf Habacker <Ralf.Habacker@freenet.de>
1547 * pe-dll.cc (autofilter_symbolprefixlist): Don't re-export
1548 auto-import symbols.
1549 (make_one): Create _nm_<symbol> for data only.
1551 2002-10-05 Elias Athanasopoulos <eathan@otenet.gr>
1553 * ldlang.c (lang_file_exist): New function.
1554 (new_afile): Abort if the filename to be added matches the linker
1556 * ldlang.h: Add prototype for lang_file_exist.
1557 * lexsup.c (parse_args): Abort if the output filename matches
1558 one of the input filenames.
1560 2002-10-02 Alan Modra <amodra@bigpond.net.au>
1562 * emulparams/elf64ppc.sh (MAXPAGESIZE): Set to 0x10000.
1564 2002-09-30 Alan Modra <amodra@bigpond.net.au>
1566 * scripttempl/elfd30v.sc: Order reloc sections placing .plt last.
1567 * scripttempl/elfm68hc11.sc: Likewise.
1568 * scripttempl/elfm68hc12.sc: Likewise.
1570 * emultempl/elf32.em (output_rel_find): Always place orphan loadable
1571 reloc sections just before .rel.plt/.rela.plt.
1572 (gld${EMULATION_NAME}_place_orphan <.rel>): Remove combreloc code.
1573 Only put loadable reloc sections in hold_rel.
1575 2002-09-29 H.J. Lu <hjl@gnu.org>
1577 * emulparams/elf32ppc.sh (OTHER_GOT_RELOC_SECTIONS): New.
1579 2002-09-25 Daniel Jacobowitz <drow@mvista.com>
1581 From "Anita Kulkarni" <AnitaK@kpit.com>
1582 * scripttempl/sh.sc: Handle .eh_frame* and .gcc_exc*
1585 2002-09-25 Alan Modra <amodra@bigpond.net.au>
1587 * genscripts.sh (SEGMENT_SIZE): Use MAXPAGESIZE before
1589 * scripttempl/elf.sc (DATA_SEGMENT_ALIGN): Incorporate
1590 SEGMENT_SIZE alignment.
1591 * emulparams/elf64ppc.sh (DATA_ADDR): Delete.
1592 (SEGMENT_SIZE): Define.
1594 * ldexp.c (fold_unary): New. Split out from exp_fold_tree.
1595 (fold_binary): Correct abs - non-abs case.
1596 (fold_trinary): New. Split out from exp_fold_tree.
1598 2002-09-24 Alan Modra <amodra@bigpond.net.au>
1600 * emulparams/elf64ppc.sh (DATA_ADDR): Define.
1601 * emulparams/elf64_aix.sh (DATA_ADDR): Don't use a fixed address
1602 for start of .data, instead align up to 256M boundary.
1603 * scripttempl/aix.sc: Likewise.
1605 2002-09-22 Mark Elbrecht <snowball3@softhome.net>
1607 * scripttempl/i386go32.sc: Handle bss unique sections.
1609 2002-09-21 Alan Modra <amodra@bigpond.net.au>
1611 * ldmisc.c (vfinfo <%C,%D,%G>): Always output bfd, section and offset.
1613 2002-09-17 Stan Cox <scox@redhat.com>
1615 * emulparams/elf32bmipn32-defs.sh: New file.
1616 * emulparams/elf32bmipn32.sh: Use elf32bmipn32-defs.sh.
1617 * emulparams/elf32btsmipn32.sh: Likewise.
1618 * emulparams/elf64bmip.sh: Likewise.
1619 * emulparams/elf64btsmip.sh: Likewise.
1621 2002-09-16 Bruno Haible <bruno@clisp.org>
1623 * emulparams/elf_i386_fbsd.sh: Set OUTPUT_FORMAT to
1625 * emulparams/elf64alpha_fbsd.sh: Set OUTPUT_FORMAT to
1626 elf64-alpha-freebsd.
1628 2002-09-11 Nick Clifton <nickc@redhat.com>
1630 * NEWS: New TI port supports both C4x and C3x series of DSPs.
1632 * po/tr.po: Updated Turkish translation.
1634 2002-09-06 Jeffrey A Law (law@redhat.com)
1636 * configure.tgt (h8300-*-hms*, h8500-*-hms*): Restore.
1638 2002-09-02 Nick Clifton <nickc@redhat.com>
1640 * scripttempl/v850.sc: Add EXTERN references to __ctbpm __gp and
1642 * emulparams/v850.sh (TEMPLATE_NAME): Define.
1644 2002-08-30 Nick Clifton <nickc@redhat.com>
1646 * scripttempl/elfd10v.sc (MEMORY): Remove UNIFIED, it is not
1647 used. Change INSN to start at 0x01000000 and extend for
1648 256K (ignoring holes). Start the STACK on a word aligned
1650 (.rodata): Start it at the READONLY_START_ADDR.
1652 2002-08-30 Alan Modra <amodra@bigpond.net.au>
1654 * emulparams/elf32ppc.sh (ARCH): Set to "powerpc:common".
1656 2002-08-28 Svein E. Seldal <Svein.Seldal@solidas.com>
1658 * Makefile.am: Add etic4xcoff.o in ALL_EMULATIONS list and
1659 added makefile targets for this file.
1660 * Makefile.in: Regenerate.
1661 * configure.tgt: Added tic4x-coff and c4x-coff emulations.
1662 * NEWS: Mention new port.
1664 2002-08-28 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
1666 * emulparams/tic3xcoff.sh: New file.
1667 * emulparams/tic4xcoff.sh: New file.
1668 * scripttempl/tic3xcoff.sc: New file.
1669 * scripttempl/tic4xcoff.sc: New file.
1671 2002-08-28 Alan Modra <amodra@bigpond.net.au>
1673 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Replace strtoll,
1674 strtoul and strtoull with bfd_scan_vma.
1675 (gld${EMULATION_NAME}_read_file): Likewise.
1677 2002-08-28 Alan Modra <amodra@bigpond.net.au>
1679 * configure.tgt: Remove h8[35]00-*-hms*. Add h8500-*-rtems*.
1681 2002-08-27 Egor Duda <deo@logos-m.ru>
1683 * scripttempl/pe.sc: Handle .rdata_runtime_pseudo_reloc sections.
1684 Add symbols for application to access them.
1686 2002-08-27 Nick Clifton <nickc@redhat.com>
1688 * emultempl/armelf.em: Revert this patch, it is not needed.
1690 2002-08-22 Adam Nemet <anemet@lnxw.com>
1692 2002-08-20 Dan Kegel <dank@kegel.com>
1694 * configure.in: added --with-lib-path argument to ld's configure
1696 * NEWS: Document new switch.
1697 * README: Mention new switch.
1698 * configure: Regenerate.
1699 * Makefile.in: Regenerate.
1701 Based on this patch:
1702 2001-04-25 Christopher Faylor <cgf@cygnus.com>
1704 * Makefile.in (LIB_PATH): Make configurable.
1705 (GENSCRIPTS): Set LIB_PATH in environment.
1706 * configure.in: Substitute LIB_PATH.
1708 2002-08-22 Adam Nemet <anemet@lnxw.com>
1710 * emultempl/armelf.em: Include elf-bfd.h and elf/arm.h.
1711 (arm_elf_finish): Set the last bit of DT_INIT and DT_FINI
1712 depending on the type of the function.
1713 (arm_elf_convert_thumb_symbol_to_address): New function.
1715 2002-08-22 Graeme Peterson <gp@qnx.com>
1717 * Makefile.am: Add esh{l}elf_nto.o files.
1718 * Makefile.in: Regenerate.
1719 * configure.tgt: Add support for sh-**-nto* targets.
1720 * emulparams/shelf_nto.sh: New file.
1721 * emulparams/shlelf_nto.sh: New file.
1723 2002-08-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
1725 * ldlang.c (offsetof): Define if not defined.
1727 2002-08-14 H.J. Lu <hjl@gnu.org>
1729 * configure.tgt: Always enable 64bit emulations for 32bit
1732 2002-08-13 Alan Modra <amodra@bigpond.net.au>
1734 * emulparams/elf32_dlx.sh (TARGET_PAGE_SIZE): Set to 1.
1735 (MAXPAGESIZE): Set to 1.
1737 * ld.h (ALIGN_N): Delete.
1738 * ldexp.h (align_n): Declare.
1739 * ldexp.c (align_n): New function.
1740 (fold_binary): Use align_n instead of ALIGN_N.
1741 (exp_fold_tree): Likewise.
1742 * ldlang.c (lang_size_sections_1): Likewise.
1743 (lang_one_common): Likewise.
1744 * ld.texinfo (ALIGN): Remove power of 2 restriction.
1746 2002-07-31 Graeme Peterson <gp@qnx.com>
1748 * configure.tgt: Add support for powerpc{le}-*-nto* targets.
1749 * Makefile.am: Add eelf32{l}ppcnto.o files.
1750 * Makefile.in: Regenerate.
1751 * emulparams/elf32lppcnto.sh: New file.
1752 * emulparams/elf32ppcnto.sh: New file.
1754 2002-08-07 H.J. Lu <hjl@gnu.org>
1756 * ld.texinfo: Document --no-undefined-version.
1758 * ldlang.c (lang_new_vers_pattern): Set the `symver' and
1759 `script.' fields to 0.
1761 * ldmain.c (main): Initialize the allow_undefined_version to
1764 * lexsup.c (OPTION_NO_UNDEFINED_VERSION): New.
1765 (ld_options): Add --no-undefined-version.
1766 (parse_args): Support OPTION_NO_UNDEFINED_VERSION.
1768 2002-08-07 Nick Clifton <nickc@redhat.com>
1770 * emultempl/armelf.em (arm_elf_before_allocation): Only search for
1771 an interworking bfd if there are input bfds. (107501)
1773 2002-08-06 Alan Modra <amodra@bigpond.net.au>
1775 * emultempl/aix.em (gld*_before_parse): Set default arch. Reverts
1778 2002-08-01 Nick Clifton <nickc@redhat.com>
1780 * emulparams/armelf.sh: Revert previous delta.
1781 * scripttempl/elf.sc: Revert previous delta.
1783 2002-07-31 H.J. Lu <hjl@gnu.org>
1785 * configure.tgt (powerpc*-*-linux*): Enable elf64ppc for
1786 --enable-64-bit-bfd.
1788 2002-07-31 H.J. Lu <hjl@gnu.org>
1790 * configure.tgt: Enable x86-64 emulation for Linux/i386 if
1791 64bit BFD is selected.
1793 2002-07-31 H.J. Lu <hjl@gnu.org>
1795 * configure.tgt: Enable 64bit emulations for 32bit Linux/mips
1796 if 64bit BFD is selected.
1798 2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
1800 * emultempl/netbsd.em (LDEMUL_BEFORE_PARSE): New file to custom set
1801 link_info.common_skip_ar_aymbols.
1802 * emulparams/ns32knbsd.sh (EXTRA_EM_FILE): Refer to extra file.
1804 * ldmain.c (main): Initialize new field
1805 link_info.common_skip_ar_aymbols.
1807 2002-07-31 Adam Nemet <anemet@lnxw.com>
1809 * emulparams/armelf.sh (OTHER_PLT_SECTIONS): New variable. Set it
1811 * scripttempl/elf.sc: Comment it. Use the same way as ${PLT} is
1814 2002-07-31 Nick Clifton <nickc@redhat.com>
1816 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
1817 of the PDP-11 and 2.11BSD a.out support.
1819 2002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1821 * Makefile.am (eelf32btsmipn32.o, eelf32ltsmipn32.o): New emulations
1822 for n32 ABI support.
1823 * Makefile.in: Regenerate.
1824 * configure.tgt (mips64*el-*-linux-gnu*,mips64*-*-linux-gnu*): Add
1825 n32 ABI emulations for these 64 bit targets.
1826 * emulparams/elf32bmipn32.sh: Expand comment.
1827 * emulparams/elf32btsmipn32.sh: New file, for traditional big endian
1829 * emulparams/elf32ltsmipn32.sh: Likewise for little endian.
1831 2002-07-30 Graeme Peterson <gp@qnx.com>
1833 * configure.tgt: Add support for arm-*-nto target.
1834 * Makefile.am: Add earmnto.o file.
1835 * Makefile.in: Regenerate.
1836 * NEWS: Mention port of ARM support to QNX.
1837 * emulparams/armnto.sh: New file.
1839 2002-07-30 Jakub Jelinek <jakub@redhat.com>
1841 * ldlang.c (lang_add_section): Don't turn .tbss into normal sections
1842 for relocatable link.
1843 (lang_size_sections_1): Don't make .tbss zero size for relocatable
1846 2002-07-26 Bernd Schmidt <bernds@redhat.com>
1848 * emulparams/elf32frv.sh (OTHER_RELOCATING_SECTIONS): Delete.
1851 2002-07-25 Nick Clifton <nickc@redhat.com>
1853 * po/sv.po: Updated Swedish translation.
1854 * po/es.po: Updated Spanish translation.
1855 * po/fr.po: Updated French translation.
1857 2002-07-24 Nick Clifton <nickc@redhat.com>
1859 * po/sv.po: Updated Swedish translation.
1860 * po/es.po: Updated Spanish translation.
1862 2002-07-23 Nick Clifton <nickc@redhat.com>
1864 * po/fr.po: Updated French translation.
1866 2002-07-20 Alan Modra <amodra@bigpond.net.au>
1868 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
1869 bomb on /DISCARD/ input section.
1870 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1871 * emultempl/mmo.em (mmo_place_orphan): Likewise.
1873 2002-07-19 Hans-Peter Nilsson <hp@bitrange.com>
1875 * emultempl/mmo.em (mmo_place_orphan): Handle case of no .text
1878 2002-07-16 Denis Chertykov <denisc@overta.ru>
1879 Nick Clifton <nickc@redhat.com>
1880 Frank Ch. Eigler <fche@redhat.com>
1881 John Healy <jhealy@redhat.com>
1883 * configure.tgt: Add support for ip2k-elf.
1884 * Makefile.am: Add support for ip2k-elf.
1885 * Makefile.in: Regenerate.
1886 * emulparams/elf32ip2k.sh: New file.
1887 * scripttempl/ip2k.sc: New file
1888 * NEWS: Mention support for new port.
1890 2002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
1892 * NEWS: Add 'Changes in 2.13'.
1894 2002-07-14 H.J. Lu <hjl@gnu.org>
1896 * ld.texinfo: Document a .symver takes precedence over a
1899 2002-07-12 Alan Modra <amodra@bigpond.net.au>
1901 * emulparams/elf64ppc.sh (ARCH): Set to powerpc:common64.
1902 (COMMONPAGESIZE): Define.
1904 2002-07-09 Alan Modra <amodra@bigpond.net.au>
1906 * emulparams/hppanbsd.sh: Remark that hppaobsd.sh references this file.
1908 2002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
1910 * configure.tgt: Add support for alpha-*-openbsd*, hppa-*-openbsd*,
1911 powerpc-*-openbsd* and sparc64-*-openbsd*.
1912 * Makefile.am (ALL_EMULATIONS): Add ehppaobsd.o.
1913 * Makefile.in: Regenerate.
1914 * emulparams/hppaobsd.sh: New file.
1916 2002-07-05 Alan Modra <amodra@bigpond.net.au>
1918 * ldlang.c (print_wild_statement): Fix output formatting.
1920 2002-07-04 Alan Modra <amodra@bigpond.net.au>
1922 * ldlang.c: (strip_excluded_output_sections): New function.
1923 (lang_process): Call it.
1924 (lang_size_sections_1): Revert 2002-06-10 change.
1926 2002-07-03 Alan Modra <amodra@bigpond.net.au>
1928 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
1930 * Makefile.in: Regenerate.
1932 2002-07-02 Alan Modra <amodra@bigpond.net.au>
1934 * ldfile.c (ldfile_try_open_bfd): Formatting.
1936 * ldmisc.c (demangle): Move so that it doesn't intrude between
1937 vfinfo comment and body. Add comment.
1939 2002-07-01 John David Anglin <dave@hiauly1.hia.nrc.ca>
1941 * emulparams/vax.sh (OUTPUT_FORMAT): Use a.out-vax-bsd format.
1943 2002-07-01 Alan Modra <amodra@bigpond.net.au>
1945 * ldlang.h (entry_sym): Make it a struct bfd_sym_chain.
1946 * ldlang.c (entry_sym): Likewise.
1947 (ldlang_undef_chain_list_type): Likewise.
1948 (lang_finish): Adjust references to entry_symbol.
1949 (lang_add_entry): Likewise.
1950 (lang_gc_sections): Use link_info.gc_sym_list.
1951 (lang_process): Set link_info.gc_sym_list.
1952 * ldlex.l: Include bfdlink.h.
1953 * ldmain.c (main): Init link_info.gc_sym_list.
1954 * emultempl/aix.em: Adjust references to entry_symbol.
1955 * emultempl/armcoff.em: Likewise.
1956 * emultempl/armelf.em: Likewise.
1957 * emultempl/pe.em: Likewise.
1958 * emultempl/ppc64elf.em (ppc_after_open): New function.
1959 (LDEMUL_AFTER_OPEN): Define.
1960 * emulparams/elf64ppc.sh: KEEP .opd sections.
1962 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
1964 * emulparams/m68hc12elfb.sh (EEPROM_MEMORY): Define.
1965 * emulparams/m68hc11elfb.sh (EEPROM_MEMORY): Define.
1966 * emulparams/m68hc11elf.sh (EEPROM_SIZE): Define.
1967 (EEPROM_START_ADDR): Define.
1968 (EEPROM_MEMORY): Define.
1969 * emulparams/m68hc12elf.sh: Likewise.
1970 * scripttempl/elfm68hc11.sc: Handle .eeprom section; handle .softregs
1971 section to put soft registers in .page0.
1972 * scripttempl/elfm68hc12.sc: Likewise but put soft registers in bss.
1974 2002-06-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
1976 * emulparams/hppa64linux.sh (OTHER_GOT_RELOC_SECTIONS): Add rela.opd
1977 section. Add ${RELOCATING-0}.
1979 2002-06-26 J"orn Rennecke <joern.rennecke@superh.com>
1981 * emulparams/shelf.sh (STACK_ADDR): Don't define.
1982 (OTHER_SECTIONS): Define.
1983 * emulparams/shelf_nbsd.sh ((STACK_ADDR): Don't undef.
1984 (OTHER_SECTIONS): Undef.
1986 2002-06-26 Alan Modra <amodra@bigpond.net.au>
1988 * ldmisc.c (demangle): Restore dots stripped from sym name.
1990 2002-06-25 H.J. Lu <hjl@gnu.org>
1992 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
1993 * Makefile.in: Regenerated.
1995 2002-06-20 Nick Clifton <nickc@cambridge.redhat.com>
1997 * ld.texinfo (Bug Reporting): Update text to suggest a limit on
1998 the size of attached object files, to allow make the object files
1999 available via FTP or HTTP and to mention that the mail will be
2000 sent to a mailing list.
2002 2002-06-20 Nathanael Nerode <neroden@twcny.rr.com>
2004 * configure.host (romp): Drop support.
2006 2002-06-18 Chris Demetriou <cgd@broadcom.com>
2008 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Check
2009 section flags for SEC_DATA, rather than for SEC_CODE being unset.
2011 2002-06-18 Chris Demetriou <cgd@broadcom.com>
2013 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Fix
2014 format specifier used to print BFD name.
2016 2002-06-18 Dave Brolley <brolley@redhat.com>
2018 From Catherine Moore, Michael Meissner, Jim Blandy:
2019 * emulparams/elf32frv.sh: New file.
2020 * configure.tgt: Support frv-*-*.
2021 * Makefile.am (ALL_EMULATIONS): Add eelf32frv.o.
2022 (eelf32frv.c): New target.
2024 2002-06-17 Tom Rix <trix@redhat.com>
2026 * emultempl/elf32.em: gld*_get_script: Check for
2027 GENERATE_COMBRELOC_SCRIPT.
2028 * scripttempl/elfd10v.sc : Fix STACK and INSN.
2029 * emulparams/d10velf.sh : Fix TEXT_START_ADDR.
2031 2002-06-13 J"orn Rennecke <joern.rennecke@superh.com>
2033 * configure.tgt: Add support for sh[1234]*le*-*-elf, sh[1234]*-*-elf.
2035 2002-06-12 H.J. Lu <hjl@gnu.org>
2037 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Return
2038 false if xvec doesn't match.
2040 2002-06-10 Richard Sandiford <rsandifo@redhat.com>
2042 * ldlang.c (lang_size_sections_1): Skip removed output sections.
2044 2002-06-08 Alan Modra <amodra@bigpond.net.au>
2046 * ldexp.c: Replace CONST with const.
2047 * ldfile.c: Likewise.
2048 * ldfile.h: Likewise.
2049 * ldlex.l: Likewise.
2051 * pe-dll.h: Likewise.
2053 2002-06-07 Alan Modra <amodra@bigpond.net.au>
2055 * emultempl/ppc64elf.em (new_vers_pattern): Warning fix.
2057 2002-06-07 Charles Wilson <cwilson@ece.gatech.edu>
2059 * ldmain.c (main): initialize link_info.pei386_auto_import
2060 to -1 == implicit enable.
2061 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
2062 initialize link_info.pei386_auto_import to -1 == implicit
2064 (gld_${EMULATION_NAME}_parse_args): When processing
2065 --enable-auto-import and --disable-auto-import options, use
2066 '1' and '0' instead of 'true' and 'false'.
2067 (pe_find_data_imports): Only issue message about auto-import
2068 when the feature is implicitly enabled. Downgrade message to
2069 informational instead of warning.
2071 2002-06-07 Alan Modra <amodra@bigpond.net.au>
2073 * scripttempl/elf.sc (.tbss): Fix mismatched parentheses/braces.
2075 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
2077 * configure.host (hppa*64*-*-hpux11*): Define NATIVE_LIB_DIRS,
2078 HOSTING_CRT0 and HOSTING_LIBS.
2080 2002-06-05 J"orn Rennecke <joern.rennecke@superh.com>
2082 * configure.tgt (shle*-*-elf*, sh64le-*-elf*): New configurations.
2084 2002-06-05 Jason Thorpe <thorpej@wasabisystems.com>
2086 * emulparams/ns32knbsd.sh (EXECUTABLE_SYMBOLS): Set _DYNAMIC to 0.
2087 (NONPAGED_TEXT_START_ADDR): Set to 0x1000.
2089 2002-06-05 Alan Modra <amodra@bigpond.net.au>
2091 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Place
2092 SEC_EXCLUDE sections when doing a relocatable link.
2094 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
2096 * Makefile.am (ALL_EMULATIONS): Add eshelf32_nbsd.o,
2097 eshlelf32_nbsd.o, eshelf64_nbsd.o, and eshlelf64_nbsd.o.
2098 (eshelf32_nbsd.c, eshelf64_nbsd.c, eshlelf32_nbsd.c)
2099 (eshlelf64_nbsd.c): New rules.
2100 * Makefile.in: Regenerate.
2101 * configure.tgt (sh5le-*-netbsd*, sh5-*-netbsd*, sh64le-*-netbsd*)
2102 (sh64-*-netbsd*): New targets.
2103 * emulparams/shelf32_nbsd.sh: New file.
2104 * emulparams/shelf64_nbsd.sh: New file.
2105 * emulparams/shlelf32_nbsd.sh: New file.
2106 * emulparams/shlelf64_nbsd.sh: New file.
2108 2002-06-04 Alan Modra <amodra@bigpond.net.au>
2110 * ldlang.c (section_already_linked): Call bfd_discard_group. Typo fix.
2112 2002-06-02 Marek Michalkiewicz <marekm@amelek.gda.pl>
2114 * scripttempl/avr.sc: Changes to support current GCC and avr-libc,
2115 C++ constructors/destructors, loosely based on the m68hc11 port.
2117 2002-05-31 Alan Modra <amodra@bigpond.net.au>
2119 * Makefile.in: Regenerate.
2120 * aclocal.m4: Regenerate.
2121 * config.in: Regenerate.
2122 * configure: Regenerate.
2124 2002-05-31 Graeme Peterson <gp@qnx.com>
2126 * Makefile.am (ALL_EMULATIONS): Add ei386nto.o.
2127 (ei386nto.c): Add rule.
2128 * Makefile.in: Regenerate.
2129 * configure.tgt: Add i[3456]86-*-nto-qnx*.
2130 * emulparams/i386nto.sh: New file.
2132 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
2134 * NEWS: Add entry for VAX ELF support.
2136 2002-05-29 Matt Thomas <matt@3am-software.com>
2137 Jason Thorpe <thorpej@wasabisystems.com>
2139 * Makefile.am (ALL_EMULATIONS): Add eelf32vax.o and evaxnbsd.o.
2141 (evaxnbsd.c): New rules.
2142 * Makefile.in: Regenerate.
2143 * configure.tgt (vax-*-netbsdelf*)
2145 (vax-*-netbsd*): New targets.
2146 * emulparams/elf32vax.sh: New file.
2147 * emulparams/vaxnbsd.sh: New file.
2149 2002-05-29 Adam Nemet <anemet@lnxw.com>
2151 * emultempl/armelf.em (arm_elf_after_open): Don't determine
2152 bfd_for_interwork, instead add glue sections to each input bfd.
2153 (bfd_for_interwork): New global.
2154 (arm_elf_set_bfd_for_interworking): New function.
2155 (arm_elf_before_allocation): Use it.
2157 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
2159 * Makefile.am: Add DLX make target.
2160 * configure.tgt: Add DLX configuration.
2161 * Makefile.in: Regenerate.
2162 * emulparams/elf32_dlx.sh: New file
2163 * scripttempl/dlx.sc: New file
2165 2002-05-27 Per Lundberg <per@caleb.dnsalias.org>
2167 * Makefile.am (eelf_i386_chaos): Use elf_chaos.sc script.
2168 * Makefile.in: Regenerate.
2169 * emulparams/elf_chaos.sh: Use elf_chaos script.
2170 * scripttempl/elf_chaos.sc: New file.
2172 2002-05-27 Richard Sandiford <rsandifo@redhat.com>
2174 * ldlang.c (lang_size_sections_1): Move check for conflicting load
2175 addresses and regions from here...
2176 (lang_get_regions): ...to this new function.
2177 (lang_leave_output_section_statement): Use lang_get_regions.
2178 (lang_leave_overlay): Likewise.
2179 * mri.c (mri_draw_tree): Pass null as last argument to
2180 lang_leave_output_section_statement.
2181 * emultempl/elf32.em (gld*_place_orphan): Likewise.
2182 * emultempl/mmo.em (mmo_place_orphan): Likewise.
2183 * emultempl/pe.em (gld*_place_orphan): Likewise.
2185 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
2187 * configure.tgt: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
2189 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
2191 * ldemul.c: Fix formatting.
2192 * ldfile.c: Likewise.
2193 * pe-dll.c: Likewise.
2194 * pe-dll.h: Likewise.
2196 2002-05-25 Alan Modra <amodra@bigpond.net.au>
2198 * ldlang.c (lang_process): Formatting, grammar.
2200 * ldlex.l: Use #include "" instead of <> for local header files.
2202 2002-05-24 TAMURA Kent <kent@netbsd.org>
2204 * configure.tgt: Add a target for i386-netbsdpe.
2206 2002-05-23 Jakub Jelinek <jakub@redhat.com>
2208 * scripttempl/elf.sc: Add .rel{,a}.t{bss,data}, .tdata and .tbss.
2209 * ldlang.c (lang_add_section): Set SEC_THREAD_LOCAL for
2210 output section if necessary. Handle .tbss.
2211 (lang_size_sections): Clear _raw_size for .tbss section
2212 (it allocates space in PT_TLS segment only).
2213 * ldwrite.c (build_link_order): Build link order for .tbss too.
2215 2002-05-23 Alan Modra <amodra@bigpond.net.au>
2217 * configure.in: Correct spelling of AC_PREREQ.
2219 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
2221 * pe-dll.c (autofilter_liblist): Add more system libs excluded by
2223 (autofilter_objlist): Add crtbegin.o, crtend.o.
2225 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
2227 * emultempl/pe.em (OPTION_EXCLUDE_LIBS): Add new define.
2228 (longopts): Add new option --exclude-libs.
2229 (gld_${EMULATION_NAME}_list_options): Give quick help about it.
2230 (gld_${EMULATION_NAME}_parse_args): Use it.
2231 * pe-dll.h (pe_dll_add_excludes): Add second param to prototype.
2232 * pe-dll.c (exclude_list_struct): Add field type to distinguish symbols
2233 from whole archives.
2234 (pe_dll_add_excludes): Set excludes->type.
2235 (auto_export): Add new variable libname and set to archive basename if
2236 abfd. Use it when filtering default and user-specified libarary
2237 excludes. Let string "ALL" mean all libs when filtering user-specified
2239 * ld.texinfo: Document --exclude-libs.
2241 2002-05-22 Alan Modra <amodra@bigpond.net.au>
2243 * ldemul.c (ldemul_new_vers_pattern): New function.
2244 * ldemul.h (ldemul_new_vers_pattern): Declare.
2245 (struct ld_emulation_xfer_struct): Add new_vers_pattern.
2246 * ldlang.c (lang_new_vers_pattern): Call ldemul_new_vers_pattern.
2247 * emultempl/ppc64elf.em (dotsyms): New static var.
2248 (gld${EMULATION_NAME}_new_vers_pattern): New function.
2249 (LDEMUL_NEW_VERS_PATTERN): Define.
2250 (PARSE_AND_LIST_PROLOGUE): Add OPTION_DOTSYMS, OPTION_NO_DOTSYMS.
2251 (PARSE_AND_LIST_LONGOPTS): Likewise.
2252 (PARSE_AND_LIST_ARGS_CASES): Handle them.
2253 * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Update
2255 * emultempl/armcoff.em: Likewise.
2256 * emultempl/armelf_oabi.em: Likewise.
2257 * emultempl/beos.em: Likewise.
2258 * emultempl/elf32.em: Likewise.
2259 * emultempl/generic.em: Likewise.
2260 * emultempl/gld960.em: Likewise.
2261 * emultempl/gld960c.em: Likewise.
2262 * emultempl/linux.em: Likewise.
2263 * emultempl/lnk960.em: Likewise.
2264 * emultempl/m68kcoff.em: Likewise.
2265 * emultempl/mipsecoff.em: Likewise.
2266 * emultempl/pe.em: Likewise.
2267 * emultempl/sunos.em: Likewise.
2268 * emultempl/ticoff.em: Likewise.
2269 * emultempl/vanilla.em: Likewise.
2271 2002-05-22 Alan Modra <amodra@bigpond.net.au>
2273 * genscripts.sh (LIB_PATH): For native targets, concatenate $libdir
2274 and $NATIVE_LIB_DIRS. Add $tool_lib before other libs.
2275 (LIB_SEARCH_DIRS): No need to use "tr".
2276 (COMPILE_IN): Only set for native targets.
2277 * configure.host (NATIVE_LIB_DIRS): Specify all native search dirs
2278 here, rather than adding lib:/usr/lib:/usr/local/lib in genscripts.sh.
2279 * configure.tgt (powerpc*): Set tdir_*.
2280 (powerpcle*): Correct targ_extra_emuls.
2281 * emulparams/elf32ppc.sh (LIB_PATH): Set up native 64 bit dirs.
2282 * emulparams/elf64ppc.sh (LIB_PATH): Likewise.
2284 2002-05-22 Alan Modra <amodra@bigpond.net.au>
2286 * emultempl/pe.em (set_pe_subsystem): Don't set "cmdline" when
2287 calling lang_add_entry.
2289 2002-05-21 H.J. Lu (hjl@gnu.org)
2291 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_args): Handle
2293 (gld${EMULATION_NAME}_list_options): Add "-z muldefs".
2295 * ld.texinfo: Updated for --allow-multiple-definition and
2298 * ldmain.c (main): Initialize the allow_multiple_definition
2301 * lexsup.c (OPTION_ALLOW_MULTIPLE_DEFINITION): New.
2302 (ld_options): Add --allow-multiple-definition.
2303 (parse_args): Support OPTION_ALLOW_MULTIPLE_DEFINITION.
2305 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
2307 * Makefile.am (ALL_EMULATIONS): Add earmelfb_nbsd.o.
2308 (earmelfb_nbsd.c): New rule.
2309 * Makefile.in: Regenerate.
2310 * configure.tgt (armeb-*-netbsdelf*): New target.
2311 (arm-*-netbsdelf*): Add armelfb_nbsd to targ_extra_emuls.
2312 (arm-*-netbsd*): Likewise.
2313 * emulparams/armelfb_nbsd.sh: New file.
2315 2002-05-18 Tom Rix <trix@redhat.com>
2317 * emultempl/aix.em (gld*_parse_args): Add -bnortl and -bnortllib
2320 2002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
2322 * Makefile.am: Add new emulations avr1, avr2, avr3, avr4, avr5.
2323 * Makefile.in: Regenerate.
2324 * configure.tgt (avr-*-*): Add avr[1-5] to targ_extra_emuls.
2326 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
2328 * emulparams/avr1.sh: New file.
2329 * emulparams/avr2.sh: New file.
2330 * emulparams/avr3.sh: New file.
2331 * emulparams/avr4.sh: New file.
2332 * emulparams/avr5.sh: New file.
2333 * scripttempl/avr.sc: New file.
2335 2002-05-15 Alan Modra <amodra@bigpond.net.au>
2337 * ldlang.c (section_already_linked): Call bfd_link_just_syms.
2338 (lang_place_orphans): Abort if just_syms_flag.
2340 2002-05-10 Tom Rix <trix@redhat.com>
2342 * emultempl/aix.em: (gld*_set_output_arch): New function. Use
2343 architecture and machine information in the output bfd.
2344 (gld*_before_parse): Remove old arch and machine code.
2345 (choose_target): Rename to gld*_choose_target.
2346 (rtld): Change type to int.
2347 * ldfile.c (ldfile_try_open_bfd): Disable compatiblity check for
2348 objects in XCOFF archives.
2349 * ldfile.h: Update copyright date.
2351 2002-05-10 Jakub Jelinek <jakub@redhat.com>
2353 * ldmain.c (main): Enable -z combreloc by default.
2355 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
2357 * Makefile.am: Honour DESTDIR.
2358 * Makefile.in: Regenerate.
2360 2002-05-07 Richard Sandiford <rsandifo@redhat.com>
2362 * ldlang.h (lang_output_section_statement_type): Add update_dot_tree.
2363 (lang_enter_overlay): Remove the last two parameters.
2364 (lang_leave_overlay): Take them here instead.
2365 * ldgram.y (memspec_at_opt): Set $$ to null if no region is given.
2366 (section): Pass LMA and crossref flag to lang_leave_overlay rather
2367 than lang_enter_overlay.
2368 * ldlang.c (lang_memory_region_lookup): Return null for null names.
2369 (lang_output_section_statement_lookup): Initialize update_dot_tree.
2370 (lang_size_sections_1): Evaluate it.
2371 (lang_leave_output_section_statement): Rework LMA lookup.
2372 (overlay_lma, overlay_nocrossrefs): Remove.
2373 (lang_enter_overlay): Remove LMA and crossref arguments.
2374 (lang_enter_overlay_section): Don't set the LMA here.
2375 (lang_leave_overlay): Take LMA and crossref arguments. Move the '.'
2376 assignment to the last section's update_dot_tree. Unconditionally
2377 use the load and run-time regions specified in the OVERLAY statement.
2378 Likewise the first section's LMA. Only set the other sections' LMAs
2379 when no load region is given.
2381 2002-05-06 Nick Clifton <nickc@redhat.com>
2383 * po/sv.po: New translation.
2385 2002-05-04 Alan Modra <amodra@bigpond.net.au>
2387 * emultempl/hppaelf.em (build_section_lists): New function.
2388 (gld${EMULATION_NAME}_finish): Call elf32_hppa_setup_section_lists
2389 and build_section_lists.
2391 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
2393 * ld.h: Fix formatting.
2394 * ldexp.c: Likewise.
2395 * ldfile.c: Likewise.
2396 * ldlang.c: Likewise.
2397 * ldmain.c: Likewise.
2398 * lexsup.c: Likewise.
2399 * pe-dll.c: Likewise.
2401 2002-05-02 Alan Modra <amodra@bigpond.net.au>
2403 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
2404 Adjust for ppc64_elf_set_toc change. #include libbfd.h.
2405 (build_section_lists): Do output_section tests here.
2407 2002-04-30 Tom Rix <trix@redhat.com>
2409 * emultempl/aix.em : (gld*_parse_arge): Formatting changes.
2411 2002-05-01 Alan Modra <amodra@bigpond.net.au>
2413 Long branch stubs, multiple stub sections.
2414 * emultempl/ppc64elf.em: Include ldctor.h.
2415 (stub_file): New var.
2416 (group_size): New var.
2417 (ppc_create_output_section_statements): New function.
2418 (struct hook_stub_info): New.
2419 (hook_in_stub): New function.
2420 (ppc_add_stub_section): New function.
2421 (ppc_layout_sections_again): New function.
2422 (build_section_lists): New function.
2423 (gld${EMULATION_NAME}_finish): Rewrite.
2424 (real_func): New var.
2425 (ppc_for_each_input_file_wrapper): New function.
2426 (ppc_lang_for_each_input_file): New function.
2427 (lang_for_each_input_file): Define.
2428 (PARSE_AND_LIST_PROLOGUE): Define.
2429 (PARSE_AND_LIST_LONGOPTS): Define.
2430 (PARSE_AND_LIST_OPTIONS): Define.
2431 (PARSE_AND_LIST_ARGS_CASES): Define.
2432 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
2434 2002-04-30 Tom Rix <trix@redhat.com>
2436 * emultempl/aix.em (gld*_parse_arge, gld*_before_allocation): Add
2437 -blibpath, -bnolibpath support.
2439 2002-04-30 Mark Mitchell <mark@codesourcery.com>
2441 * Makefile.am (ALL_EMULATIONS): Add elf32ppcwindiss.o.
2442 (eelf32ppcwindiss.c): New target.
2443 * Makefile.in: Regenerated.
2444 * configure.tgt: Add support for powerpc-*-windiss.
2445 * emulparams/elf32ppcwindiss.sh: New file.
2447 2002-04-30 Richard Sandiford <rsandifo@redhat.com>
2449 * ldlang.c (print_assignment): Update print_dot for assignments to ".".
2450 * ldexp.c (exp_print_token): Add "infix_p" argument.
2451 (exp_print_tree): Update accordingly.
2453 2002-04-28 Alan Modra <amodra@bigpond.net.au>
2455 * Makefile.am (mpw): New maintainer mode rule to make mpw-*.c files.
2456 * Makefile.in: Regenerate.
2457 * mpw-elfmips.c: Delete.
2458 * mpw-eppcmac.c: Delete.
2459 * mpw-esh.c: Delete.
2460 * mpw-idtmips.c: Delete.
2462 2002-04-17 J"orn Rennecke <joern.rennecke@superh.com>
2464 * emulparams/shelf32.sh (MACHINE): Now sh5.
2466 2002-04-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2468 * ldgram.y: Fix syntax warning.
2470 2002-04-11 Nick Clifton <nickc@cambridge.redhat.com>
2472 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Add 'n' in order
2473 to prevent "-n" from being taken as an abbreviation for
2474 "--no-pipeline-knowledge".
2476 2002-04-08 Alan Modra <amodra@bigpond.net.au>
2478 * ldlang.c (lang_size_sections_1): Don't complain about
2479 SEC_NEVER_LOAD sections having no memory region specified.
2481 * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.
2483 2002-04-07 matthew green <mrg@redhat.com>
2485 * configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
2487 2002-04-04 Alan Modra <amodra@bigpond.net.au>
2489 * dep-in.sed: Cope with absolute paths.
2490 * Makefile.am (dep.sed): Subst TOPDIR and BFDDIR.
2492 * Makefile.in: Regenerate.
2494 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2496 * emulparams/elf64btsmip.sh: n64 replaces .reginfo with .MIPS.options.
2498 2002-04-03 Jakub Jelinek <jakub@redhat.com>
2500 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size
2501 is smaller than maximum, round dot up to common page boundary.
2503 2002-03-28 Alan Modra <amodra@bigpond.net.au>
2505 * configure.host: Set up for generic hosts first, then tweak as
2506 necessary in more specific targets.
2507 (HOSTING_LIBS): Include libgcc_eh.a if found.
2509 2002-03-23 Andreas Jaeger <aj@suse.de>
2511 * emulparams/elf_x86_64.sh (COMMONPAGESIZE): Set it.
2513 2002-03-21 Alan Modra <amodra@bigpond.net.au>
2515 * Makefile.am: Run "make dep-am".
2516 * Makefile.in: Regenerate.
2518 2002-03-21 Albert Chin-A-Young <china@thewrittenword.com>
2520 * genscripts.sh (LIB_SEARCH_DIRS): Quote path.
2522 2002-03-20 Alan Modra <amodra@bigpond.net.au>
2524 * ldlang.c (ldlang_add_undef): If the output bfd has been opened,
2525 add the symbol to the linker hash table immediately.
2526 (lang_place_undefineds): Split symbol creation out..
2527 (insert_undefined): ..to here.
2529 2002-03-18 David O'Brien <obrien@FreeBSD.org>
2531 * emultempl/elf32.em: Use lbasename vs. basename to fix problem where
2532 the contents of the buffer returned from basename function will are
2533 getting overwritten while still being used.
2535 2002-03-18 Jan Hubicka <jh@suse.cz>
2536 Andreas Jaeger <aj@suse.de>
2537 Andreas Schwab <schwab@suse.de>
2539 * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native.
2540 * elf_x86_64.sh (ARCH): Set to i386:x86-64
2541 set libraries to default to lib64 paths.
2543 2002-03-18 Tom Rix <trix@redhat.com>
2545 * Makefile.am : Add eaix5ppc and eaix5rs6, AIX 5 support.
2546 * configure.tgt : Same.
2547 * emulparms/aix5ppc.sh : New file. For eaix5ppc.
2548 * emulparms/aix5rs6.sh : New file. For eaix5rs6.
2549 * emulparms/aixppc.sh : OUPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT
2550 emulation parameters for better -b32, -b64 support.
2551 * emulparms/aixrs6.sh : Same.
2552 * emulparms/ppcmacos.sh : Same.
2553 * emultempl/aix.em (choose_target) : Use new emulation parameters
2554 OUTPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT.
2555 * Makefile.in : Regenerate.
2557 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
2559 * po/fr.po: Updated version.
2561 2002-03-18 Alan Modra <amodra@bigpond.net.au>
2563 * ldmain.c (main): Move .text readonly flag fudges from here..
2564 * ldlang.c (lang_process): ..to here.
2566 2002-03-14 Alan Modra <amodra@bigpond.net.au>
2568 * ldlang.c (lang_check): Remove the word size check added in last
2569 change. Treat emitrelocations case as for relocatable links.
2571 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
2573 * po/fr.po: Updated version.
2575 2002-03-13 Alan Modra <amodra@bigpond.net.au>
2577 * ldlang.c (lang_check): Do relocatable link checks first, so that
2578 warn_mismatch can't override. Check compatible and word size too.
2580 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
2582 * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
2584 2002-03-05 Jakub Jelinek <jakub@redhat.com>
2586 * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
2589 2002-03-04 H.J. Lu <hjl@gnu.org>
2591 * scripttempl/elf.sc: Put .preinit_array, .init_array and
2592 .fini_array in the data segment.
2594 2002-03-04 Alan Modra <amodra@bigpond.net.au>
2596 * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
2598 2002-03-01 David Mosberger <davidm@hpl.hp.com>
2600 * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
2601 .init_array, and .fini_array.
2603 2002-02-20 Andreas Schwab <schwab@suse.de>
2605 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
2606 .IA64_unwind* in a relocatable link.
2608 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
2610 * NEWS: Mark 2.12 branch.
2612 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
2614 * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
2615 * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
2617 2002-02-18 Tom Rix <trix@redhat.com>
2619 * emultempl/aix.em (gld*_parse_args): Add -brtl support.
2620 (gld*_before_allocation): Same.
2621 (gld*_create_output_section_statements): Generate
2622 __rtinit if run time linking. Add librtl.a to the link.
2623 (gld*_read_file): Clean.
2625 2002-02-18 Alan Modra <amodra@bigpond.net.au>
2627 * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
2629 2002-02-18 David O'Brien <obrien@FreeBSD.org>
2631 * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
2632 eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
2633 and eelf64alpha_fbsd.
2634 * Makefile.in: Regenerate.
2635 * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
2636 x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
2637 use a FreeBSD-specific emulation rather than the psABI one.
2638 * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
2639 for all FreeBSD ELF systems.
2640 * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
2642 * emulparams/elf32ppc_fbsd.sh: Likewise.
2643 * emulparams/elf64_ia64_fbsd.sh: Likewise.
2644 * emulparams/elf64_sparc_fbsd.sh: Likewise.
2645 * emulparams/elf64alpha_fbsd.sh: Likewise.
2646 * emulparams/elf_i386_fbsd.sh: Likewise.
2647 * emulparams/elf_x86_64_fbsd.sh: Likewise.
2649 2002-02-18 Nick Clifton <nickc@cambridge.redhat.com>
2651 * po/tr.po: Updated version.
2653 2002-02-18 Alan Modra <amodra@bigpond.net.au>
2655 * ld.texinfo (Output Section Fill): Fix amateur texinfo.
2658 2002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
2660 * emultempl/mmo.em (mmo_after_open): Don't call
2661 _bfd_mmix_check_all_relocs when producing ELF output.
2663 2002-02-15 Richard Henderson <rth@redhat.com>
2665 * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
2666 definition. Emit a unop+nop pair.
2668 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
2670 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
2671 for presence of .MMIX.reg_contents.linker_allocated before early
2674 * NEWS: Mention support for MMIX.
2676 2002-02-15 Alan Modra <amodra@bigpond.net.au>
2678 Support arbitrary length fill patterns.
2679 * ld.texinfo (Output Section Fill): Describe fill expressions.
2680 (FILL): Refer to the above.
2681 * ldexp.h (etree_value_type): Add "str" field.
2682 (union etree_union): Add "str" to "value" struct.
2683 (exp_bigintop): Declare.
2684 (exp_get_fill): Declare.
2685 * ldexp.c: Include "safe-ctype.h".
2686 (exp_intop): Set value.str to NULL.
2687 (exp_bigintop): New function.
2688 (new_rel): Pass in "str", and set new.str from it.
2689 (new_rel_from_section): Set new.str to NULL.
2690 (fold_name): Adjust calls to new_rel.
2691 (exp_fold_tree): Likewise.
2692 (exp_get_fill): New function.
2693 * ldgram.y (struct big_int bigint, fill_type *fill): New.
2694 (INT): Returns a "bigint". Adjust all code handling INTs.
2695 (fill_opt): Returns a "fill".
2696 (fill_exp): Split out of fill_opt, use for FILL.
2697 * ldlang.h (struct _fill_type): New.
2698 (fill_type): Move typedef to ldexp.h.
2699 (lang_output_section_statement_type): "fill" is now a pointer.
2700 (lang_fill_statement_type): Likewise.
2701 (lang_padding_statement_type): Likewise.
2702 (lang_add_fill): Now takes a "fill_type *" param.
2703 (lang_leave_output_section_statement): Likewise.
2704 (lang_do_assignments): Likewise.
2705 (lang_size_sections): Likewise.
2706 (lang_leave_overlay_section): Likewise.
2707 (lang_leave_overlay): Likewise.
2708 * ldlang.c: Include ldgram.h after ldexp.h.
2709 (lang_output_section_statement_lookup): Adjust for fill_type change.
2710 (print_fill_statement): Likewise.
2711 (print_padding_statement): Likewise.
2712 (insert_pad): Now takes a "fill_type *" arg.
2713 (size_input_section): Likewise.
2714 (lang_size_sections_1): Likewise.
2715 (lang_size_sections): Likewise.
2716 (lang_do_assignments): Likewise.
2717 (lang_add_fill): Likewise.
2718 (lang_leave_output_section_statement): Likewise.
2719 (lang_leave_overlay_section): Likewise.
2720 (lang_leave_overlay): Likewise.
2721 Adjust all callers of the above function.
2722 * ldlex.l: Include ldgram.h after ldexp.h. Allow hex numbers
2723 starting with "0X" as well as "0x". Return bigint.str for hex
2724 numbers starting with "0x" or "0X", zero bigint.str otherwise.
2725 Always use base 16 for numbers starting with "$".
2726 * ldmain.c: Include ldgram.h after ldexp.h.
2727 * ldwrite.c (build_link_order): Use bfd_data_link_order in place
2728 of bfd_fill_link_order.
2729 * pe-dll.c: Adjust lang_do_assignments calls.
2730 * emultempl/elf32.em: Likewise.
2731 * emultempl/hppaelf.em: Likewise.
2732 * emultempl/ppc64elf.em: Likewise.
2733 * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
2734 lang_add_assignment call.
2735 * emultempl/pe.em: Likewise.
2737 2002-02-14 Phil Edwards <pme@gcc.gnu.org>
2739 * ld.texinfo (VERSION scripts): Symbol names are globbing patterns.
2740 * ldgram.y (lang_new_vers_regex): Rename to lang_new_vers_pattern;
2741 the pattern in question is not a regexp.
2742 * ldlang.c: Likewise.
2743 * ldlang.h: Likewise.
2744 * ldlex.l (V_IDENTIFIER): Allow '[', ']', '-', '!', and '^' also.
2746 2002-02-12 Jakub Jelinek <jakub@redhat.com>
2748 * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
2749 * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
2750 (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
2751 * ldexp.c (exp_data_seg): New variable.
2752 (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
2753 (fold_binary): Handle DATA_SEGMENT_ALIGN.
2754 (exp_fold_tree): Handle DATA_SEGMENT_END.
2755 Pass allocation_done when recursing instead of hardcoding
2756 lang_allocating_phase_enum.
2757 * ldexp.h (exp_data_seg): New.
2758 * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
2759 (lang_size_sections): New.
2760 * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
2761 * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
2762 if COMMONPAGESIZE is defined.
2763 * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
2764 * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
2765 * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
2766 * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
2767 * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
2770 2002-02-11 Alan Modra <amodra@bigpond.net.au>
2772 * Makefile.in: Regenerate.
2774 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
2776 * lexsup.c: Remove strtoul declaration.
2778 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
2780 * ldmain.c: Add prototype for main ().
2781 * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
2782 * emultempl/lnk960.em (lnk960_choose_target): Function should
2785 2002-02-10 Alan Modra <amodra@bigpond.net.au>
2787 * ldlang.c (entry_section): New initialised variable.
2788 (lang_finish): Use it.
2789 * ldlang.h (entry_section): Declare.
2790 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
2791 entry_section to ".opd".
2793 2002-02-09 Chris Demetriou <cgd@broadcom.com>
2795 * ld.texinfo (Options): Add back in -nostdlib documentation,
2796 which had been inadvertently removed.
2798 2002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
2800 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
2801 register section vma to a sane value after emitting error. Make
2802 fatal conditions cause program exit when emitting message.
2804 2002-02-08 Ivan Guzvinec <ivang@opencores.org>
2806 * configure.tgt: Add or32-*-rtems target.
2808 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
2810 Contribute sh64-elf.
2811 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
2812 * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
2813 in OTHER_RELOCATABLE_SECTIONS.
2814 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
2815 * emulparams/shelf32.sh (STACK_ADDR): Define.
2816 (OTHER_RELOCATABLE_SECTIONS): Renamed to...
2817 (OTHER_SECTIONS): this. Removed stack settings.
2818 * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
2819 (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
2820 2001-03-12 DJ Delorie <dj@redhat.com>
2821 * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
2822 relaxing if any shmedia or mixed sections are found.
2823 2001-03-07 DJ Delorie <dj@redhat.com>
2824 * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
2825 einfo. Gracefully decline to output to non-elf formats.
2826 2001-03-06 Hans-Peter Nilsson <hpn@redhat.com>
2827 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
2828 Default to _end aligned to next multiple of 0x40000, plus 0x40000.
2829 * emulparams/shelf32.sh: Ditto.
2830 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
2831 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
2833 2001-01-10 Ben Elliston <bje@redhat.com>
2834 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
2835 non-portable shell constructs. From Hans-Peter Nilsson.
2836 2001-01-09 Hans-Peter Nilsson <hpn@cygnus.com>
2837 * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
2838 * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
2839 dependencies to the shell script include chain.
2840 * Makefile.in: Regenerate.
2841 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
2842 * emultempl/sh64elf.em: Update and tweak comments.
2843 (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
2844 make a .cranges section SEC_IN_MEMORY.
2845 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
2846 * emultempl/sh64elf.em
2847 (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
2848 .cranges section found to be necessary; continue and set stored
2849 section contents flags for sections with non-mixed contents.
2850 Use a struct sh64_section_data container and sh64_elf_section_data
2851 to store contents-type flags.
2852 Remove unused update of "isec".
2853 (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
2854 sections marked SHF_SH5_ISA32_MIXED. Use sh64_elf_section_data to
2855 access contents-type flags. Assert that the associated container
2856 is initialized. Use that container, not elf_gp_size, to hold size
2857 of linker-generated cranges contents.
2858 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
2859 * emultempl/sh64elf.em
2860 (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
2861 there's already a .cranges section. When section flag difference
2862 is found, don't NULL-check cranges a second time. Tweak comments.
2863 (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
2864 merging, not max size, as size of ld-generated .cranges contents.
2865 Don't set ELF section flags in output section. When checking for
2866 needed .cranges descriptors, don't use a variable; compare
2867 incoming ELF section flags directly to SHF_SH5_ISA32_MIXED. Tweak
2869 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
2870 * emultempl/sh64elf.em: New file.
2871 * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
2872 * Makefile.in: Regenerate.
2873 * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
2874 (OTHER_RELOCATING_SECTIONS): Ditto.
2875 (EXTRA_EM_FILE): New, set to sh64elf if not set.
2876 * emulparams/shlelf32.sh: Stub out all settings except
2877 OUTPUT_FORMAT. Source shelf32.sh.
2878 * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
2879 OTHER_RELOCATING_SECTIONS.
2880 (OTHER_RELOCATING_SECTIONS): Remove .cranges.
2881 * emulparams/shlelf64.sh: Stub out all settings except
2882 OUTPUT_FORMAT. Source shelf64.sh.
2883 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
2884 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
2886 (DATA_START_SYMBOLS): Define, provide ___data.
2887 (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
2888 for consecutive .data section.
2889 (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
2890 section after .data section.
2891 * emulparams/shlelf64.sh: Ditto.
2892 * emulparams/shelf32.sh: Ditto.
2893 (ALIGNMENT): Define to 8.
2894 * emulparams/shelf32.sh: Ditto.
2895 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
2896 * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
2897 built-in linker scripts.
2898 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
2899 * emulparams/shlelf64.sh: New.
2900 * emulparams/shelf64.sh: New.
2901 * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
2903 * Makefile.am: Add support for shlelf64 and shelf64.
2904 * Makefile.in: Regenerate.
2905 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
2906 * configure.tgt (sh64-*-elf*): Add shelf as default.
2907 Add shlelf to targ_extra_emuls.
2908 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
2909 * emulparams/shelf32.sh: New file.
2910 * emulparams/shlelf32.sh: New file.
2911 * Makefile.am: Add support for shlelf32 and shelf32.
2912 * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
2913 * Makefile.in: Regenerate.
2915 2002-02-05 Hans-Peter Nilsson <hp@axis.com>
2917 * ldlang.c (lang_reset_memory_regions): Rename from
2918 reset_memory_regions. Change all callers. Make public.
2919 * ldlang.h (lang_reset_memory_regions): Prototype.
2920 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
2921 lang_reset_memory_regions before lang_size_sections.
2922 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
2923 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
2925 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
2927 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
2928 arithmetic when checking for too many global registers.
2930 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
2932 * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
2933 (ehppanbsd.c): New rule.
2934 * Makefile.in: Regenerate.
2935 * configure.tgt (hppa*-*-netbsd*): New target.
2936 * emulparams/hppalinux.sh: Add comment to check other files
2937 that source this file it is modified, and list which
2939 * emulparams/hppanbsd.sh: New file.
2941 2002-02-01 Geoffrey Keating <geoffk@redhat.com>
2943 * scripttempl/xstormy16.sc: Don't allocate extra space for the
2946 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
2948 Support on-demand global register allocation from
2949 R_MMIX_BASE_PLUS_OFFSET relocs.
2950 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
2951 mmix_set_reg_section_vma. Call
2952 _bfd_mmix_finalize_linker_allocated_gregs.
2953 (mmix_before_allocation): New function.
2954 (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
2955 (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
2956 * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
2957 (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
2958 before .MMIX.reg_contents.
2959 * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
2960 (mmo_after_open): New function.
2961 (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
2962 * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting. Add
2963 .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
2965 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
2967 * emulparams/or32.sh: New file.
2968 * emulparams/or32elf.sh: New file.
2969 * scripttempl/or32.sc: New file.
2970 * configure.tgt : Add support for or32.
2971 * configure: Regenerate
2972 * Makefile.am: Add support for or32.
2973 * Makefile.in: Regenerate.
2974 * NEWS: Mention support for or32.
2975 * po/ld.pot: Regenerate.
2977 2002-01-29 Chris Demetriou <cgd@broadcom.com>
2978 Mitch Lichtenberg <mpl@broadcom.com>
2980 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
2981 * emultempl/mipself.em: New file to handle MIPS ELF embedded
2982 reloc creation (ld --embedded-relocs).
2984 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
2986 * configure: Regenerated.
2988 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
2990 * Makefile.am (install): Depend on install-info.
2991 * Makefile.in: Regenerate.
2993 2002-01-26 Christian Rose <menthos@menthos.com>
2995 * ldmain.c (main): Use full sentences to ease translation.
2997 2002-01-26 Nick Clifton <nickc@cambridge.redhat.com>
2999 * po/fr.po: Updated version.
3001 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
3003 * po/es.po: Updated version.
3005 2002-01-25 Andreas Jaeger <aj@suse.de>
3007 * ldlex.l (yy_input): Correct error check.
3009 2002-01-25 Alan Modra <amodra@bigpond.net.au>
3011 * ldmisc.c (demangle): Put back dots when string not demangled.
3013 2002-01-22 Richard Henderson <rth@redhat.com>
3015 * emulparams/elf64alpha.sh (NOP): Use unop.
3017 2002-01-21 Andreas Jaeger <aj@suse.de>
3019 * ldlex.l: Use fread instead of read.
3021 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
3023 * configure.tgt (ia64-*-netbsd*): New target.
3025 2002-01-21 H.J. Lu <hjl@gnu.org>
3027 * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
3029 * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
3031 2002-01-18 Andreas Jaeger <aj@suse.de>
3033 * ldver.c (ldversion): Update year.
3035 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
3037 * po/ld.pot: Regenerate.
3039 2002-01-16 Alan Modra <amodra@bigpond.net.au>
3041 * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
3042 * Makefile.in: Regenerate.
3043 * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
3044 * emultempl/ppc64elf.em: New file.
3046 2002-01-15 DJ Delorie <dj@redhat.com>
3048 * scripttempl/pe.sc: Add support for constructor priorities.
3050 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
3052 * emulparams/avr1200.sh (DATA_START): Define as 0x60.
3053 * emulparams/avr23xx.sh: Likewise.
3054 * emulparams/avr4433.sh: Likewise.
3055 * emulparams/avr44x4.sh: Likewise.
3056 * emulparams/avr85xx.sh: Likewise.
3057 * emulparams/avrmega103.sh: Likewise.
3058 * emulparams/avrmega161.sh: Likewise.
3059 * emulparams/avrmega603.sh: Likewise.
3060 * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
3062 2002-01-08 Alexandre Oliva <aoliva@redhat.com>
3064 * ldlang.c (walk_wild_section): Exclude object file if enclosing
3065 archive is excluded.
3067 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
3069 * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
3070 (eshelf_nbsd.c): New rule.
3071 (eshlelf_nbsd.c): New rule.
3072 * Makefile.in: Regenerate.
3073 * configure.tgt (sh*le-*-netbsdelf*): New target.
3074 (sh*-*-netbsdelf*): New target.
3075 * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
3076 * emulparams/shelf_nbsd.sh: New emulation.
3077 * emulparams/shlelf_nbsd.sh: New emulation.
3079 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
3081 * po/es.po: New file: Spanish translation.
3082 * configure.in (ALL_LINGUAS): Add es.
3083 * configure: Regenerate.
3085 2002-01-06 John Marshall <jmarshall@acm.org>
3087 * ld.texinfo: Note that --emit-relocs is currently only
3088 implemented for ELF.
3090 2002-01-05 Alan Modra <amodra@bigpond.net.au>
3092 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
3093 of bfd_section_list_remove and bfd_section_list_insert macros.
3094 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
3095 * emultempl/mmo.em (mmo_place_orphan): Likewise.
3097 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
3099 * configure.tgt (x86_64-*-netbsd*): New target.
3101 2001-12-21 Tom Rix <trix@redhat.com>
3103 (gld*_create_output_section_statements): New function.
3104 For -binitfini support.
3105 * emultempl/aix.em (gld*_before_parse): Fix comment.
3106 * emultempl/aix.em (gld*_parse_args): Fix comment.
3108 2001-12-20 Jason Thorpe <thorpej@wasabisystems.com>
3110 * configure.tgt (mips*-dec-netbsd*): Delete alias for
3112 (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
3114 * configure.tgt (arm-*-netbsdelf*): Add target.
3115 (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
3116 * emulparams/armelf_nbsd.sh: Added.
3117 * Makefile.am: Add rules for earmelf_nbsd.
3118 * Makefile.in: Regenerate.
3120 2001-12-19 Andreas Jaeger <aj@suse.de>,
3121 Susanne Oberhauser <froh@suse.de>
3123 * configure.host: Add rules for x86_64-*linux-gnu. Change
3124 s390x-linux entry to use gcc to report configuration, replace gcc
3125 with $CC in s390-linux
3127 2001-12-19 Andreas Jaeger <aj@suse.de>
3129 * ld.texinfo (VERSION): Fix markup.
3131 2001-12-18 matthew green <mrg@eterna.com.au>
3133 * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
3134 (m68kelfnbsd.c): New rule.
3135 * Makefile.in: Regenerate.
3136 * configure.tgt (m68*-hp-netbsd*): Renamed to ..
3137 (m68*-*-netbsd*4k*): .. this.
3138 (m68*-*-netbsdelf*): New target.
3139 (m68*-*-netbsd*): Also include ELF support.
3140 (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
3141 * emulparams/m68kelfnbsd.sh: New emulation.
3143 2001-12-18 Jakub Jelinek <jakub@redhat.com>
3145 * ldgram.y (vers_node): Support anonymous version tags.
3146 * ldlang.c (lang_register_vers_node): Ensure anonymous version
3147 tag is not defined together with non-anonymous versions.
3148 * ld.texinfo: Document it.
3150 2001-12-18 Nick Clifton <nickc@cambridge.redhat.com>
3152 * po/tr.po: New file: Turkish translation.
3153 * configure.in (ALL_LINGUAS): Add tr.
3154 * configure: Regenerate.
3156 2001-12-17 Jason Thorpe <thorpej@wasabisystems.com>
3158 * Makefile.am: Add rules for eelf64alpha_nbsd.
3159 * Makefile.in: Regenerate.
3160 * configure.tgt (alpha*-*-netbsd*): Set
3161 targ_emul to elf64alpha_nbsd.
3162 * emulparams/elf64alpha_nbsd.sh: Added.
3164 2001-12-17 Alan Modra <amodra@bigpond.net.au>
3166 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
3167 section_tail when fiddling with section list.
3168 (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
3169 broken into separate strings to make translation easier.
3170 * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
3171 fiddling with section list.
3172 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
3174 2001-12-16 Hans-Peter Nilsson <hp@bitrange.com>
3176 * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
3178 2001-12-15 Alan Modra <amodra@bigpond.net.au>
3180 * ldmain.c (main): Initialise link_info.eh_frame_hdr.
3182 2001-12-13 Jakub Jelinek <jakub@redhat.com>
3184 * emultempl/elf32.em (finish): Supply output_bfd
3185 to bfd_elf*_discard_info.
3186 (OPTION_EH_FRAME_HDR): Define.
3187 (longopts): Add --eh-frame-hdr.
3188 (parse_args): Handle it.
3189 (list_options): Add --eh-frame-hdr to help.
3190 * emultempl/hppaelf.em (finish): Supply output_bfd
3191 to bfd_elf*_discard_info.
3192 * scripttempl/elf.sc (.eh_frame_hdr): Add.
3194 2001-12-13 Alan Modra <amodra@bigpond.net.au>
3196 * lexsup.c (parse_args): Don't pass shortopts to second call to
3197 getopt functions. Restore optind rather than decrementing before
3198 second call. Remove errind as it now duplicates last_optind.
3200 2001-12-11 Christopher Faylor <cgf@redhat.com>
3202 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
3204 2001-12-07 Geoffrey Keating <geoffk@redhat.com>
3205 Richard Henderson <rth@redhat.com>
3207 * Makefile.am: Add support for xstormy16.
3208 * configure.tgt: Add support for xstormy16.
3209 * Makefile.in: Regenerate.
3210 * emulparams/elf32xstormy16.sh: New file.
3211 * scripttempl/xstormy16.sc: New file.
3213 2001-10-01 Christopher Faylor <cgf@cygnus.com>
3215 * Makefile.in (LIB_PATH): Make configurable.
3216 (GENSCRIPTS): Set LIB_PATH in environment.
3217 * configure.in: Substitute LIB_PATH.
3218 * configure: Regenerate.
3219 * configure.tgt (*cygwin): Set LIB_PATH for cross build.
3220 * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
3222 2001-12-07 Nick Clifton <nickc@cambridge.redhat.com>
3224 * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
3225 describing the -N option so that it is easier to translate into
3228 2001-12-05 Nick Clifton <nickc@cambridge.redhat.com>
3230 * emultempl/pe.em (..._list_options): Replace multiple fprintf
3231 statements describing a single option with a single, newline
3232 escaped fprintf. This allows better translation into other
3235 * ldmain.c (add_archive_element): Combine multiple strings
3236 into a single string to permit better translation into other
3239 2001-12-05 Tom Rix <trix@redhat.com>
3241 * Makefile.am: Remove eaixppc64.
3242 * Makefile.in: Regenerate.
3244 2001-12-04 Tom Rix <trix@redhat.com>
3246 * emultempl/aix.em (choose_target): Change default target to
3247 OUTPUT_FORMAT for ppcmacos. Add braces to remove compiler
3249 (gld*_read_file): Fix typo.
3250 (change_symbol_mode): Add prototype.
3253 * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
3254 * emulparams/aixrs6.sh : Same.
3255 * emulparams/ppcmacos.sh : Same.
3256 * emulparams/aixppc64.sh : Delete file.
3257 * emultempl/aix.em : Formatting changes.
3259 2001-12-04 Hans-Peter Nilsson <hp@axis.com>
3261 * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
3262 (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
3264 (OTHER_END_SYMBOLS): Fix formatting.
3265 * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
3266 (OTHER_END_SYMBOLS): Fix formatting.
3268 2001-12-04 Alan Modra <amodra@bigpond.net.au>
3270 * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
3272 2001-12-02 Tom Rix <trix@redhat.com>
3274 * configure.tgt : Remove eaixppc64 emulations.
3275 * Makefile.in : Remove eaixppc64.c
3276 * ldemul.c (ldemul_choose_target): New parameters argc, argv.
3277 (ldemul_default_target): Same.
3278 * emultempl/gld960.em (gld960_choose_target): Same.
3279 * emultempl/gld960c.em (gld960_choose_target): Same.
3280 * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
3281 * emultempl/aix.em (is_syscall): syscall_mask now a variable.
3282 * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
3283 * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
3284 * emultempl/aix.em (choose_target): New function. Handle emulation of
3287 2001-11-27 H.J. Lu <hjl@gnu.org>
3289 * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
3290 * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
3291 * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
3292 * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
3293 * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
3294 * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
3295 * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
3296 * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
3298 * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
3301 (REL_SDATA): Likewise.
3302 (REL_SBSS): Likewise.
3303 (REL_SDATA2): Likewise.
3304 (REL_SBSS2): Likewise.
3305 (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
3308 2001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3310 * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
3312 * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
3314 2001-11-22 H.J. Lu <hjl@gnu.org>
3316 * Makefile.in: Regenerated with automake based on automake
3317 1.4-8 in RedHat 7.1.
3319 2001-11-22 Alan Modra <amodra@bigpond.net.au>
3321 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
3322 (config.status): Delete rule.
3323 Add extra dependencies to cover sourced emulparams files.
3324 * Makefile.in: Regenerate.
3326 * scripttempl/elf.sc: Order <section>, <section>.* and
3327 corresponding linkonce sections as seen in input files.
3328 Formatting fixes. Zero vma of all sections if not relocating.
3329 (STACK): Define and insert if STACK_ADDR defined.
3330 (OTHER_RELOCATING_SECTIONS): Delete.
3331 (OTHER_END_SYMBOLS): Define.
3332 (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
3333 (OTHER_READWRITE_SECTIONS): Likewise.
3334 (OTHER_GOT_SECTIONS): Likewise.
3335 (OTHER_SDATA_SECTIONS): Likewise.
3336 (OTHER_BSS_SECTIONS): Likewise.
3337 * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
3338 (OTHER_READWRITE_SECTIONS): Likewise.
3339 * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
3340 (OTHER_READWRITE_SECTIONS): Likewise.
3342 * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
3343 (STACK_ADDR): Define.
3344 * emulparams/armelf_oabi.sh: As for armelf.sh.
3345 * emulparams/elf32mcore.sh: As for armelf.sh.
3346 * emulparams/h8300elf.sh: As for armelf.sh.
3347 * emulparams/mn10200.sh: As for armelf.sh.
3348 * emulparams/shelf.sh: As for armelf.sh.
3350 * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
3351 (OTHER_END_SYMBOLS): Define.
3352 * emulparams/m32relf.sh: As for elf32fr30.sh.
3353 * emulparams/h8300helf.sh: As for elf32fr30.sh.
3354 * emulparams/h8300self.sh: As for elf32fr30.sh.
3356 * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
3357 defines with RELOCATING test.
3358 (OTHER_SDATA_SECTIONS): Likewise.
3359 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
3360 (OTHER_END_SYMBOLS): ..this.
3361 * emulparams/crislinux.sh: As for criself.sh.
3363 * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
3365 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
3366 (OTHER_SECTIONS): ..this. Zero vma if not relocating. Order
3367 normal and linkonce sections as seen in input files.
3368 * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
3369 (TEXT_DYNAMIC): Likewise.
3370 (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
3371 (OTHER_SDATA_SECTIONS): Likewise.
3372 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
3373 * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
3374 * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
3375 * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
3376 * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
3377 (OTHER_PLT_RELOC_SECTIONS): Likewise.
3378 (OTHER_READONLY_SECTIONS): Likewise. Order normal and linkonce
3379 sections as seen in input files.
3380 * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
3381 * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
3383 (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
3384 (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
3385 * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
3386 (OTHER_SECTIONS): Instead, use this..
3387 (OTHER_END_SYMBOLS): ..and this.
3389 * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
3390 * emulparams/elf32bsmip.sh: Likewise.
3391 * emulparams/elf32btsmip.sh: Likewise.
3392 * emulparams/elf32ebmip.sh: Likewise.
3393 * emulparams/elf32lmip.sh: Likewise.
3394 * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
3395 * emulparams/elf32lsmip.sh: Likewise.
3396 * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
3397 * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
3398 * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
3399 * emulparams/elf64btsmip.sh: Likewise.
3400 * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
3401 * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
3402 * emulparams/elf32ppclinux.sh: Likewise.
3403 * emulparams/elf32ppcsim.sh: Likewise.
3404 * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
3405 * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
3406 * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
3407 * emulparams/h8300self.sh: Likewise.
3408 * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
3409 * emulparams/sh.sh: Comment.
3410 * emulparams/shl.sh: Source sh.sh, remove duplicates.
3411 * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
3412 * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
3414 2001-11-21 David Heine <dlheine@tensilica.com>
3415 Alan Modra <amodra@bigpond.net.au>
3417 * ldlang.c (map_input_to_output_sections): Replace "break"
3418 accidentally removed with 2001-08-03 change.
3419 (lang_gc_sections_1): Likewise.
3421 2001-11-21 Alan Modra <amodra@bigpond.net.au>
3423 * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
3425 2001-11-20 Angela Marie Thomas <angela@redhat.com>
3427 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
3428 of false when calling lang_size_sections.
3429 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
3431 2001-11-15 Alan Modra <amodra@bigpond.net.au>
3433 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
3434 function when LDEMUL_FINISH isn't set to the same name. Don't
3435 call ${LDEMUL_FINISH}.
3436 (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
3437 * emultempl/armelf.em (arm_elf_finish): Call
3438 gld${EMULATION_NAME}_finish.
3439 * emultempl/hppaelf.em (hppaelf_finish): Rename to
3440 gld${EMULATION_NAME}_finish. Call bfd_elf32_discard_info and
3441 hppaelf_layout_sections_again if necessary.
3442 (need_laying_out): New var.
3443 (hppaelf_layaout_sections_again): Rename to
3444 hppaelf_layout_sections_again. Clear need_laying_out.
3445 (PARSE_AND_LIST_OPTIONS): Format text.
3447 2001-11-14 H.J. Lu <hjl@gnu.org>
3449 * emultempl/armelf.em (arm_elf_finish): Renamed from
3450 gld${EMULATION_NAME}_finish.
3451 (LDEMUL_FINISH): Set to arm_elf_finish.
3453 2001-11-14 Daniel Jacobowitz <drow@mvista.com>
3455 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
3456 (struct ld_emulation_xfer_struct): Use it.
3458 2001-11-13 Ross Alexander <ross.alexander@uk.neceur.com>
3460 * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
3461 additional symbols referenced by newer crt0.o files from HP.
3463 2001-11-12 Anthony Green <green@redhat.com>
3465 * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
3467 2001-11-12 Alfred M. Szmidt <ams@kemisten.nu>
3469 * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
3470 * Makefile.in: Regenerate.
3472 2001-11-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3474 * ld.texinfo: Use @command for commands, @option for options.
3475 * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
3477 * Makefile.in: Rebuild.
3479 2001-11-04 Chris Demetriou <cgd@broadcom.com>
3481 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
3482 Add support for targets.
3484 2001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
3486 * configure.in (ALL_LINGUAS): Add "fr" and "sv"
3487 * configure: Regernate.
3488 * po/fr.po: New file.
3489 * po/sv.po: New file.
3491 2001-11-01 NIIBE Yutaka <gniibe@m17n.org>
3493 * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
3494 as little endian default and to support big endian.
3496 2001-11-01 Chris Demetriou <cgd@broadcom.com>
3498 * ld.texinfo (Options): Document new option, -nostdlib.
3499 * lexsup.c (OPTION_NOSTDLIB): New definition.
3500 (ld_options): Add entry for "nostdlib".
3501 (parse_args): Handle OPTIONS_NOSTDLIB.
3502 * ldfile.c (ldfile_add_library_path): Don't add directories
3503 to the search path if they weren't specified on the command line
3504 and -nostdlib was specified.
3505 * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
3507 2001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
3509 * lexsup.c (parse_args): Prevent infinite parsing loop when
3510 "-rpath.a" is specified on the command line.
3511 Replace calls to fprintf with calls to einfo.
3513 2001-10-31 John Marshall <jmarshall@acm.org>
3515 * ld.texinfo: A historical requirement that MEMORY and SECTIONS
3516 appear only once across all the linker scripts involved in a link
3517 invocation no longer applies. Make the documentation reflect
3520 2001-10-31 NIIBE Yutaka <gniibe@m17n.org>
3522 * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
3524 (sh-*-linux*): Added targ_extra_libpath.
3526 2001-10-31 David Heine <dlheine@tensilica.com>
3528 * ldlang.c (lang_size_sections): Keep a valid output_offset field
3529 for padding statements.
3531 2001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
3533 * configure.tgt (mmix-*-*): New target.
3534 * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
3535 Add dependencies to match.
3536 * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
3537 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
3538 scripttempl/mmo.sc: New files.
3539 * gen-doc.texi: @set MMIX.
3540 * ld.texinfo: Ditto.
3541 [MMIX] Add MMIX node.
3542 * Makefile.in: Regenerate.
3544 2001-10-29 Kazu Hirata <kazu@hxi.com>
3546 * ldlang.c: Fix a comment typo.
3548 2001-10-23 Alan Modra <amodra@bigpond.net.au>
3550 * configure.host: Move alpha*-*-linux-gnu* entry to generic
3551 entries, and match *-*-linux*.
3553 2001-10-20 Alan Modra <amodra@bigpond.net.au>
3555 * ldgram.y (mri_script_command): Surround processing of INCLUDE
3556 with ldlex_script, ldlex_popstate.
3557 (ifile_p1): Likewise.
3558 * ldlex.l (EOF): Don't BEGIN(SCRIPT). Restore lineno from the
3560 (lex_push_file): Save current lineno to lineno_stack. Set lineno
3561 to 1. Don't BEGIN(SCRIPT).
3562 (lex_redirect): Similarly.
3563 * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
3565 2001-10-20 Nick Clifton <nickc@cambridge.redhat.com>
3567 * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
3568 __EH_FRAME_END__ and accept eh frames into data section.
3569 Add ctor and dtor sections.
3571 2001-10-19 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3573 * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
3574 (auto-export): Fix indentation.
3576 2001-10-18 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3578 * pe-dll.c (autofilter_objectlist): Add startup objects
3580 (auto-export): Constify char * p.
3581 Extract file basename and use strcmp rather than ststr
3584 2001-10-18 Chris Demetriou <cgd@broadcom.com>
3586 * ldmain.c (get_emulation): Improve comment about the handling
3589 2001-10-17 Alan Modra <amodra@bigpond.net.au>
3591 * po/POTFILES.in: Regenerate.
3593 2001-10-16 Vassili Karpov <malc@pulsesoft.com>
3595 * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
3596 -z nocopyreloc and -z nocombreloc usage strings.
3598 2001-10-12 Vassili Karpov <malc@pulsesoft.com>
3600 * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
3603 2001-10-11 Aleksey Romanov <aromanov@ennovatenetworks.com>
3605 * scripttempl/armaout.sc: Place .bss section after end of aligned
3606 data section to match behaviour of aout code in constructrion of
3609 2001-10-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3611 * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
3612 startup files for mingw32 dlls to list.
3614 2001-10-10 Chris Demetriou <cgd@broadcom.com>
3616 * emultempl/elf32.em: Fix shell 'if' usage for portability.
3618 2001-10-08 Aldy Hernandez <aldyh@redhat.com>
3620 * configure.tgt (targ): Add arm9e-*-elf.
3622 2001-10-05 H.J. Lu <hjl@gnu.org>
3624 * genscripts.sh: Fix a typo in the last change.
3626 2001-10-05 Jakub Jelinek <jakub@redhat.com>
3628 * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
3629 -z nocombreloc in usage.
3631 2001-10-03 Jim Blandy <jimb@redhat.com>
3633 * genscripts.sh: Include a comment at the top of each generated
3634 script, explaining its purpose.
3636 2001-10-03 Vassili Karpov <malc@pulsesoft.com>
3638 * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
3639 * NEWS: Mention -z nocopyreloc.
3640 * ld.texinfo (Options): Describe nocopyreloc.
3642 2001-10-03 Alan Modra <amodra@bigpond.net.au>
3644 * configure: Regenerate.
3646 2001-10-02 Alan Modra <amodra@bigpond.net.au>
3648 * ldver.h (ld_program_version): Remove declaration.
3649 * lexsup.c (parse_args): Move printing of copyright message..
3650 * ldver.c (ldversion): .. to here.
3651 Use BFD_VERSION_STRING in place of BFD_VERSION.
3652 (ld_program_version): Remove.
3653 * Makefile.am (Makefile): Depend on bfd/configure.in.
3655 * Makefile.in: Regenerate.
3657 2001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
3659 * Makefile.am: Update dependencies with "make dep-am".
3660 * Makefile.in: Regenerate.
3662 2001-09-29 John Reiser <jreiser@BitWagon.com>
3664 * ldlang.c (lang_common): Conditionally inhibit Common allocation.
3665 * lexsup.c: Add --no-define-common commandline option.
3666 * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
3667 * ldlex.l: Likewise.
3668 * ld.h: Add command_line.inhibit_common_definition.
3669 * ldmain.c (main): Initialize.
3670 * ld.texinfo: Document.
3672 2001-09-29 Alan Modra <amodra@bigpond.net.au>
3674 * ldlang.c (section_already_linked): Remove assignment to kept_section.
3676 2001-09-26 Alan Modra <amodra@bigpond.net.au>
3678 * ldmisc.c (USE_STDARG): Remove.
3679 (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
3684 * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
3685 declarations. Update copyright.
3687 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
3689 * pe-dll.c: Remove obsoleted declaration of
3690 pe_get_data_import_dll_name.
3691 (pe_create_import_fixup): Fix thinko.
3693 * ld.texinfo(enable-auto-import): Clarify the explanation.
3695 2001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
3697 * pe-dll.c (pe_create_import_fixup): Revert previous patch.
3698 * emultemp/pe.em (pe_data_import_dll): Move definition outside of
3699 DLL_SUPPORT controlled code.
3701 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
3703 * emultempl/pe.em(pe_data_import_dll): Make static.
3704 (pe_get_data_import_dll_name): New accessor function.
3705 * pe-dll.c(pe_create_import_fixup): call
3706 pe_get_data_import_dll_name() from pe.em, instead of
3707 directly accessing pe_data_import_dll variable from pe.em.
3709 2001-09-18 Bruno Haible <haible@clisp.cons.org>
3711 * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
3712 (def_file_add_directive): Use ISSPACE instead of isspace.
3713 (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
3714 isdigit/isxdigit/isalpha/isalnum.
3715 * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
3716 (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
3717 * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
3718 (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
3720 * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
3721 (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
3723 * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
3724 (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
3725 * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
3726 (ctor_prio): Use ISDIGIT instead of isdigit.
3727 * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
3728 (ldfile_open_file_search): Use ISALPHA instead of isalpha.
3729 (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
3731 * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
3732 (stricpy): Use TOLOWER instead of isupper/tolower.
3733 (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
3734 * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
3735 (lex_warn_invalid): Use ISPRINT instead of isprint.
3736 * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
3737 (main): For gettext, also set the LC_CTYPE locate facet.
3738 (add_keepsyms_file): Use ISSPACE instead of isspace.
3739 * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
3740 (is_num, parse_args): Use ISDIGIT instead of isdigit.
3741 * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
3742 (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
3743 * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
3744 (gldppcmacos_read_file): Use ISSPACE instead of isspace.
3745 * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
3746 (quoteput): Use ISSPACE instead of isspace.
3747 (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
3750 2001-09-18 Alan Modra <amodra@bigpond.net.au>
3752 * deffilep.y (def_stash_module): Constify "name" param.
3754 * pe-dll.c: Replace CONST with const throughout.
3755 (quick_symbol): Constify "n1", "n2", "n3" params.
3756 (make_singleton_name_thunk): Constify "import" param. Make
3757 "buffer_len" a size_t.
3758 (make_import_fixup_entry): Constify "name", "fixup_name",
3759 "dll_symname" params.
3760 (pe_get16): Cast args of bfd_seek. Replace bfd_read with bfd_bread.
3761 (pe_get32): Likewise.
3762 (pe_implied_import_dll): Likewise.
3764 * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
3765 (sort_by_section_name): Likewise.
3767 * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
3768 (make_import_fixup): Cast printf arg, rel->address to long rather
3770 (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
3772 2001-09-15 Alan Modra <amodra@bigpond.net.au>
3774 * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
3775 defines BufferSize. Increase buffer size by one.
3777 2001-09-14 Ralf Habacker <Ralf.Habacker@freenet.de>
3779 * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
3781 2001-09-14 Kevin Lo <kevlo@openbsd.org>
3783 * configure.tgt: Add arm-openbsd target.
3785 2001-09-12 H.J. Lu <hjl@gnu.org>
3787 * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
3789 (ALL_64_EMULATIONS): Here.
3790 * Makefile.in: Regenerated.
3792 2001-09-12 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3794 * emultempl/pe.em(make_import_fixup): change signature to
3795 take asection as well as arelec; we need this for proper
3796 error reporting. Only call pe_create_import_fixup() if
3797 there is no attempt to add a constant addend to the reloc;
3798 otherwise, report error condition.
3799 * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
3800 since final argument is a pointer to make_import_fixup().
3801 Change call to cb() to match make_import_fixup() signature.
3802 (make_import_fixup_mark): make buffer_len unsigned.
3803 * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
3805 2001-09-12 Charles Wilson <cwilson@ece.gatech.edu>
3807 * ld.texinfo: add verbose documentation for auto-import
3808 direct-addressing workaround, to compliment the terse
3811 2001-09-12 Andrew MacLeod <amacleod@redhat.com>
3813 * scripttempl/v850.sc: Add gcc_except_table sections.
3815 2001-09-11 Jeffrey A Law (law@cygnus.com)
3817 * emulparams/h8300helf.sh: Move stack to a much higher memory address.
3818 * emulparams/h8300self.sh: Similarly.
3820 2001-09-05 Danny Smith <dannysmith@users.souceforge.net>
3822 * ld.texinfo (Options, --stack): Correct default value for stack
3825 2001-09-05 Tom Rix <trix@redhat.com>
3827 * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
3829 2001-09-03 Andreas Jaeger <aj@suse.de>
3831 * emultempl/beos.em: Declare prototypes for comparions functions,
3834 2001-09-02 Andreas Jaeger <aj@suse.de>
3836 * emultempl/aix.em: Add missing prototype.
3837 * emultempl/lnk960.em: Likewise.
3838 * emultempl/vanilla.em: Likewise.
3839 * emultempl/armcoff.em: Likewise.
3840 * emultempl/armelf_oabi.em: Likewise.
3841 * emultempl/beos.em: Likewise.
3842 * emultempl/gld960c.em: Likewise.
3843 * emultempl/gld960.em: Likewise.
3845 * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
3846 for prototype declaration.
3848 2001-08-31 Eric Christopher <echristo@redhat.com>
3849 Jason Eckhardt <jle@redhat.com>
3851 * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
3853 2001-08-31 Andreas Jaeger <aj@suse.de>
3855 * emultempl/pe.em: Add missing prototypes.
3856 (gld_${EMULATION_NAME}_after_open): Remove extra args to
3857 pe_find_data_imports.
3858 (pr_sym): Add unused attribute.
3860 2001-08-29 Joel Sherrill <joel@OARcorp.com>
3862 * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
3863 default from coff to elf.
3865 2001-08-29 Jeff Law <law@redhat.com>
3867 * emulparams/h8300helf.sh: Resync with h8300elf.sh. Update
3869 * emulparams/h8300self.sh: Similarly.
3871 2001-08-28 J"orn Rennecke <amylaar@redhat.com>
3873 * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
3875 (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
3876 * configure.tgt (h8300-*-elf*): New case.
3877 * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
3878 * emulparams/h8300self.sh: New file.
3879 * Makefile.in: Regenerated.
3881 2001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
3883 * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
3886 2001-08-27 Linus Nordberg <linus@swox.com>
3887 Alan Modra <amodra@bigpond.net.au>
3889 * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
3890 (eelf64ppc.c, eelf64lppc.c): Add make targets.
3892 * Makefile.in: Regenerate.
3893 * configure.tgt: Add powerpc64 support. Move pdp11, pjl, pj
3894 entries to correct alphabetical position.
3895 * emulparams/elf64ppc.sh: New.
3896 * emulparams/elf64lppc.sh: New.
3898 2001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
3900 * ldmain.c (main): Declare BSIZE as static.
3902 2001-08-23 Jakub Jelinek <jakub@redhat.com>
3904 * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
3905 into .rel.dyn resp. .rela.dyn if combreloc.
3906 (get_script): If .x linker script is equal to .xn, only put it
3907 once into the binary.
3908 Add .xc and .xsc scripts.
3909 (parse_args): Handle -z combreloc and -z nocombreloc.
3910 * scripttempl/elf.sc (.rela.sbss): Fix a typo.
3911 For .xc and .xsc scripts put all .rel* or .rela* input sections
3912 but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
3913 * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
3915 Strip trailing whitespace from script.
3916 Generate .xc and .xsc scripts if requested.
3917 * ldmain.c (main): Initialize link_info.combreloc and
3918 link_info.spare_dynamic_tags.
3919 * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
3920 (ld_options): Add --spare-dynamic-tags option.
3921 (parse_args): Likewise.
3922 * ld.texinfo: Document -z combreloc and -z nocombreloc.
3923 * ldint.texinfo: Document .xc and .xsc linker scripts.
3924 * NEWS: Add notes about -z combreloc and SHF_MERGE.
3926 2001-08-22 H.J. Lu <hjl@gnu.org>
3928 * emulparams/elf32fr30.sh: Add a newline.
3930 2001-08-21 Andreas Jaeger <aj@suse.de>
3932 * deffilep.y: Add missing prototypes.
3933 * pe-dll.c: Likewise.
3935 2001-08-20 Alan Modra <amodra@bigpond.net.au>
3937 * ldlang.c (insert_pad): Fix typos in last patch.
3939 * ldlang.c: When traversing lang_statement_union_type lists,
3940 consistently use "header.next" rather than "next".
3941 * mpw-eppcmac.c: Likewise.
3942 * emultempl/beos.em: Likewise.
3943 * emultempl/hppaelf.em: Likewise.
3944 * emultempl/pe.em: Likewise.
3945 * ldlang.h (union lang_statement_union): Remove "next" field.
3947 * ldlang.c (insert_pad): Use offsetof macro.
3948 (lang_size_sections): Always neuter padding statements.
3949 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
3951 * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
3952 passed to lang_size_sections.
3953 (pe_exe_fill_sections): Likewise.
3954 * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
3955 (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
3957 2001-08-18 Alan Modra <amodra@bigpond.net.au>
3959 * emultempl/aix.em: Formatting fixes.
3961 2001-08-18 Alan Modra <amodra@bigpond.net.au>
3963 * ldlang.c (insert_pad): Make use of an existing pad statement if
3964 available. Move code calculating alignment, adjusting section
3965 alignment power, and adjusting dot to ..
3966 (size_input_section): .. here. Remove unused relax param.
3967 (lang_size_sections): Change boolean `relax' param to boolean *.
3968 Adjust call to size_input_section. Make use of insert_pad to
3969 place pad after the assignment statement. If relaxing, zap
3971 (reset_memory_regions): Reset output_bfd section sizes too.
3972 (relax_again): Move to..
3973 (lang_process): ..here. Adjust call to lang_size_sections, and
3974 remove duplicated code.
3975 * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
3977 2001-08-17 Alan Modra <amodra@bigpond.net.au>
3979 * ld.texinfo: Document that fill values now use the four least
3981 * emulparams/elf32fr30.sh (NOP): Update.
3982 * emulparams/elf32mcore.sh: Likewise.
3983 * emulparams/elf64_s390.sh: Likewise.
3984 * emulparams/elf_i386.sh: Likewise.
3985 * emulparams/elf_i386_be.sh: Likewise.
3986 * emulparams/elf_i386_chaos.sh: Likewise.
3987 * emulparams/elf_i386_ldso.sh: Likewise.
3988 * emulparams/elf_s390.sh: Likewise.
3989 * emulparams/elf_x86_64.sh: Likewise.
3990 * emulparams/i386moss.sh: Likewise.
3991 * emulparams/i386nw.sh: Likewise.
3992 * emulparams/m68kelf.sh: Likewise.
3993 * scripttempl/elf.sc: Update NOP comment.
3994 * scripttempl/elfi370.sc: Likewise.
3995 * scripttempl/elfm68hc11.sc: Likewise.
3996 * scripttempl/elfm68hc12.sc: Likewise.
3997 * scripttempl/nw.sc: Likewise.
3999 2001-08-15 Tom Rix <trix@redhat.com>
4001 * ldgram.y (saved_script_handle): Initialize to NULL.
4002 * ldmain.c (main): Change check on saved_script_handle.
4004 2001-08-14 Alan Modra <amodra@bigpond.net.au>
4006 * emultempl/elf32.em: Formatting fixes.
4007 (output_prev_sec_find): Test for bfd_ind_section too; do so by
4008 looking at sec->owner.
4009 (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
4010 (gld${EMULATION_NAME}_place_orphan): Add a few comments. Remove
4011 unused code, and reorganize orphan section placement code.
4013 * ldlang.c (wild_doit): Rename to lang_add_section.
4014 * ldlang.h: Here too.
4015 * mpw-elfmips.c: And here.
4016 * emultempl/beos.em: And here.
4017 * emultempl/elf32.em: And here.
4018 * emultempl/hppaelf.em: And here.
4019 * emultempl/pe.em: And here.
4021 2001-08-13 Richard Henderson <rth@redhat.com>
4023 * emultempl/needrelax.em: New file.
4024 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
4025 * Makefile.am (eelf64_ia64.c): Depend on it.
4026 * Makefile.in: Rebuild.
4028 2001-08-13 Alan Modra <amodra@bigpond.net.au>
4030 * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
4031 output_section is set non-NULL.
4033 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
4034 `true' for SEC_EXCLUDE sections so that the generic code doesn't
4035 needlessly create an output_section_statement. Treat a correctly
4036 named output_section_statement with NULL bfd_section as compatible.
4038 2001-08-13 Hans-Peter Nilsson <hp@bitrange.com>
4040 * emultempl/generic.em: Support EXTRA_EM_FILE.
4041 (ld_${EMULATION_NAME}_emulation): Support emulation parameters
4042 LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
4043 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
4044 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
4045 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
4046 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
4047 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
4048 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
4049 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
4050 LDEMUL_FIND_POTENTIAL_LIBRARIES.
4052 2001-08-12 Richard Henderson <rth@redhat.com>
4054 * scripttempl/elf.sc, scripttempl/elfd30v.sc,
4055 scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
4056 scripttempl/v850.sc: Keep .jcr data.
4058 2001-08-12 H.J. Lu <hjl@gnu.org>
4059 Andrew Haley <aph@cambridge.redhat.com>
4060 Nick Clifton <nickc@redhat.com>
4062 * ldgram.y (had_script): Change name to saved_script_handle.
4063 Change type to file handle.
4064 * ld.h (had_script): Rename and retype.
4065 * ldfile.c (ldfile_open_command_file): Save the file handle
4066 used in saved_script_handle.
4067 * lexsup.c (parse_args): Do not allow -c option to alter
4068 saved_script_handle.
4069 * ldmain.c (main): Print out the linker script used if
4070 --verbose is given. Check saved_script_handle to obtain the
4071 external linker script used, or if NULL, dump the builtin
4073 * ld.texinfo: Document that --verbose now dumps the linker
4074 script used, regardless of whether it was an internal or an
4077 2001-08-10 Andreas Jaeger <aj@suse.de>
4079 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
4081 * configure: Regenerate.
4083 2001-08-09 Alan Modra <amodra@bigpond.net.au>
4085 * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
4087 * scripttempl/elf.sc: Move non-text .dynamic section before
4088 .plt/.got/.sdata* group.
4089 (OTHER_GOT_SECTIONS): Move to immediately after .got.
4090 (OTHER_SDATA_SECTIONS): Add.
4091 * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
4093 * emulparams/crislinux.sh: Likewise.
4094 * emulparams/elf32b4300.sh: Likewise.
4095 * emulparams/elf32bmip.sh: Likewise.
4096 * emulparams/elf32bmipn32.sh: Likewise.
4097 * emulparams/elf32bsmip.sh: Likewise.
4098 * emulparams/elf32btsmip.sh: Likewise.
4099 * emulparams/elf32ebmip.sh: Likewise.
4100 * emulparams/elf32elmip.sh: Likewise.
4101 * emulparams/elf32l4300.sh: Likewise.
4102 * emulparams/elf32lmip.sh: Likewise.
4103 * emulparams/elf32lsmip.sh: Likewise.
4104 * emulparams/elf32ltsmip.sh: Likewise.
4105 * emulparams/elf64bmip.sh: Likewise.
4106 * emulparams/elf64btsmip.sh: Likewise.
4107 * emulparams/elf64ltsmip.sh: Likewise.
4109 2001-08-08 Alan Modra <amodra@bigpond.net.au>
4111 * genscripts.sh: Source the emulparams script before each output
4112 script is generated so that variables like `RELOCATING' may affect
4113 variables defined in the emulparams script.
4115 2001-08-04 Alan Modra <amodra@bigpond.net.au>
4117 * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
4120 * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
4121 ie. iterate over wild_statement.section_list.
4122 (gld${EMULATION_NAME}_place_orphan): Likewise.
4124 2001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4126 * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
4127 .fini[0-4] sections used by _exit
4128 (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
4129 (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
4130 * scripttempl/elfm68hc11.sc: Likewise.
4132 2001-08-03 H.J. Lu <hjl@gnu.org>
4134 * emultempl/beos.em (init): Add the missing initialization.
4136 2001-08-03 Alan Modra <amodra@bigpond.net.au>
4138 * ld.texinfo (Input Section Basics): Clarify ordering of output
4140 * ldlang.c (callback_t): Add wildcard_list param.
4141 (walk_wild_section): Remove "section" param. Rewrite for
4142 lang_wild_statement_type change. Remove unique_section_p test.
4143 (walk_wild_file): Remove "section" param.
4144 (walk_wild): Remove "section" and "file" params.
4145 (lang_gc_wild): Likewise.
4146 (wild): Likewise. Modify for lang_wild_statement_type change.
4147 (wild_sort): Likewise. Add "sec" param.
4148 (gc_section_callback): Likewise.
4149 (output_section_callback): Likewise. Do unique_section_p test.
4150 (map_input_to_output_sections): Modify call to wild.
4151 (lang_gc_sections_1): Likewise.
4152 (print_wild_statement): Modify for lang_wild_statement_type
4154 (lang_add_wild): Replace filename, filenames_sorted param with
4155 filespec. Replace section_name, sections_sorted,
4156 exclude_filename_list with section_list.
4157 * ldlang.h (lang_add_wild): Here too.
4158 (lang_wild_statement_type): Replace section_name, sections_sorted,
4159 and exclude_filename_list with section_list.
4160 * ldgram.y (current_file): Delete.
4161 (%union): Add wildcard_list.
4162 (file_NAME_list): Set type to wildcard_list. Build a linked list
4163 rather than calling lang_add_wild for each entry.
4164 (input_section_spec_no_keep): Call lang_add_wild here instead.
4165 * ld.h (struct wildcard_list): Declare.
4166 * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
4168 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
4170 * ldmain.c (main): initialize link_info.pei386_auto_import
4171 * pe-dll.c: new tables for auto-export filtering
4172 (auto_export): change API, pass abfd for contextual filtering.
4173 Loop thru tables of excluded symbols instead of comparing
4176 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
4178 * pe-dll.c: new variable pe_dll_enable_extra_debug. New
4179 static variable current_sec (static struct sec *). Add
4180 forward declaration for add_bfd_to_link.
4181 (process_def_file): Don't export undefined symbols. Do not
4182 export symbols starting with "_imp__". Call auto_export()
4184 (pe_walk_relocs_of_symbol): New function.
4185 (generate_reloc): add optional extra debugging
4186 (pe_dll_generate_def_file): eliminate extraneous initial blank
4188 (make_one): enlarge symtab to make room for __nm__ symbols
4189 (DATA auto-import support).
4190 (make_singleton_name_thunk): New function.
4191 (make_import_fixup_mark): New function.
4192 (make_import_fixup_entry): New function.
4193 (pe_create_import_fixup): New function.
4194 (add_bfd_to_link): Specify that 'name' argument is a CONST
4196 * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
4197 declare new functions pe_walk_relocs_of_symbol and
4198 pe_create_import_fixup.
4199 * emultempl/pe.em: add new options --enable-auto-import,
4200 --disable-auto-import, and --enable-extra-pe-debug.
4201 (make_import_fixup): New function.
4202 (pe_find_data_imports): New function.
4203 (pr_sym): New function.
4204 (gld_${EMULATION_NAME}_after_open): Add optional extra pe
4205 debugging. Call pe_find_data_imports. Mark .idata as DATA, not
4208 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
4210 * ld.texinfo: add additional documentation for
4211 --export-all-symbols. Document --out-implib,
4212 --enable-auto-image-base, --disable-auto-image-base,
4213 --dll-search-prefix, --enable-auto-import, and
4214 --disable-auto-import.
4215 * ldint.texinfo: Add detailed documentation on auto-import
4218 2001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
4220 * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
4223 2001-07-24 Alan Modra <amodra@bigpond.net.au>
4225 * Makefile.am: Update dependencies with "make dep-am".
4226 * Makefile.in: Regenerate
4228 2001-07-23 Alan Modra <amodra@bigpond.net.au>
4230 * ldcref.c (check_section_sym_xref): New function.
4231 (check_nocrossrefs): Call it.
4232 (check_nocrossref): Interate over h->refs here instead of..
4233 (check_refs): ..here. Pass in the symbol name, section, and bfd
4234 rather than hash_entry pointers.
4235 (struct check_refs_info): Keep symbol name rather than hash entry.
4237 (check_reloc_refs): Tweak for above changes in check_refs_info.
4238 Only report references to section syms when symname is NULL to
4239 prevent duplicate messages for the same reloc.
4241 2001-07-19 Nick Clifton <nickc@cambridge.redhat.com>
4243 * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
4244 available. Do not print NULL trees.
4245 (exp_print_token): Print unknown tokens with values > 126 as
4246 decimal values not ASCII characters.
4248 * ldlang.c (lang_leave_overlay): If a region is specified assign
4249 it to all sections inside the overlay unless they have been
4250 assigned to the own, non-default, memory region.
4252 * README: Add header for consistency with other README files.
4254 2001-07-14 H.J. Lu <hjl@gnu.org>
4256 * emultempl/elf32.em (output_prev_sec_find): Never return
4257 bfd_abs_section_ptr, bfd_com_section_ptr nor
4258 bfd_und_section_ptr.
4260 2001-07-14 Nick Clifton <nickc@cambridge.redhat.com>
4262 * Makefile.am (em32relf.c): Change dependency from generic.em to
4264 * Makefile.in: Regenerate.
4266 2001-07-14 matthew green <mrg@eterna.com.au>
4268 * configure.tgt (i386-*-netbsdelf*): New target.
4269 (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
4271 2001-07-13 Jakub Jelinek <jakub@redhat.com>
4273 * emultempl/elf32.em (output_prev_sec_find): New.
4274 (place_orphan): Use it.
4276 2001-07-11 H.J. Lu <hjl@gnu.org>
4278 * ldmain.c (main): Fix typos in the last change.
4280 2001-07-11 Jakub Jelinek <jakub@redhat.com>
4282 * ldmain.c (main): Disallow -F and -f without -shared.
4284 2001-07-11 Nick Clifton <nickc@cambridge.redhat.com>
4286 * emultempl/pe.em (after_open): Check for the output_bfd not
4287 having any coff_data structure allocated to it.
4289 2001-07-09 David O'Brien <obrien@FreeBSD.org>
4291 * emultempl/elf32.em: Do not assuming that contents of the buffer
4292 returned from basename function will remain unchanged accross other
4295 2001-07-03 H.J. Lu <hjl@gnu.org>
4297 * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
4298 2001-07-03. It creates dynamic entries even for static binaries.
4300 2001-07-03 Jakub Jelinek <jakub@redhat.com>
4302 * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
4303 (DYNAMIC): Use it to reserve few dynamic entries for
4306 2001-06-27 Alan Modra <amodra@bigpond.net.au>
4308 * emulparams/hppa64linux.sh: New file.
4309 * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
4310 * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
4311 (ehppa64linux.c): Add rule to make it.
4313 * Makefile.in: Regenerate.
4315 2001-06-21 Hans-Peter Nilsson <hp@axis.com>
4317 * ld.texinfo (Options, -r): Mention restrictions when using
4318 different object formats.
4320 2001-06-19 Hans-Peter Nilsson <hp@axis.com>
4322 * ldlang.c (lang_check): Emit fatal error if relocatable link
4323 between different object flavours with relocations in input.
4325 2001-06-19 H.J. Lu <hjl@gnu.org>
4327 * ld.texinfo (-E, --export-dynamic): Mention --version-script.
4328 (--version-script): Mention the language support.
4330 2001-06-19 H.J. Lu <hjl@gnu.org>
4332 * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
4334 2001-06-18 H.J. Lu <hjl@gnu.org>
4336 * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
4337 (diststuff): Add $(MANS).
4338 * Makefile.in: Regenerated.
4342 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
4344 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
4345 Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
4346 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
4347 * ld.h (args_type): Remove member export_dynamic. All users
4348 changed to use struct bfd_link_info member.
4350 * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
4351 $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
4352 * Makefile.in: Regenerate.
4354 2001-06-18 H.J. Lu <hjl@gnu.org>
4356 * ldlang.c (init_os): Add the newline to the einfo call.
4357 (lang_check): Likewise.
4358 (lang_do_version_exports_section): Likewise.
4360 2001-06-15 H.J. Lu <hjl@gnu.org>
4362 * lexsup.c (parse_args); Save optind to report unrecognized
4365 2001-06-15 Hans-Peter Nilsson <hp@axis.com>
4367 * ldlang.c (lang_check): Emit fatal error if relocatable link
4368 between different object flavours.
4370 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
4371 Set new link_info member export_dynamic.
4372 * ldmain.c (main): Initialize new link_info member export_dynamic.
4374 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
4376 * ldlang.c (walk_wild): Only call walk_wild_file if
4377 lookup_name returns something.
4378 (lookup_name): If load_symbols fails, return NULL.
4379 (load_symbols): Change to a boolean function.
4380 (open_input_bfds): If load_symbols fails then do not make the
4383 2001-06-08 Alan Modra <amodra@bigpond.net.au>
4385 * ldlang.c (record_bfd_errors): Remove.
4387 * emultempl/aix.em: Fix copyright dates.
4389 2001-06-07 Andreas Jaeger <aj@suse.de>
4391 * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
4392 (TEXT_START_ADDR): Likewise.
4394 2001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
4396 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
4398 2001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
4400 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
4402 2001-05-31 H.J. Lu <hjl@gnu.org>
4404 * ldlang.c (open_input_bfds): Don't change the bfd error
4405 handler whilst loading symbols.
4407 2001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
4409 * configure.tgt: Remove i370-mvs architecture, it is not currently
4412 2001-05-25 H.J. Lu <hjl@gnu.org>
4414 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
4415 like emulparams/aixppc.sh.
4417 2001-05-25 H.J. Lu <hjl@gnu.org>
4419 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
4420 setting of output_filename after bfd_scan_arch.
4421 * emultempl/pe.em: Likewise.
4423 2001-05-25 H.J. Lu <hjl@gnu.org>
4425 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
4426 like emulparams/aixppc.sh.
4428 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
4429 instead of ${srcdir}/emultempl/stringify.sed.
4431 2001-05-25 Timothy Wall <twall@oculustech.com>
4433 * emulparams/elf64_aix.sh: Change settings to match IBM linker
4436 2001-05-25 Alan Modra <amodra@one.net.au>
4438 * configure.host: Replace linuxoldld with linux*oldld.
4439 * configure.tgt: Likewise.
4441 2001-05-24 H.J. Lu <hjl@gnu.org>
4443 * emultempl/stringify.sed: Removed again.
4445 2001-05-24 H.J. Lu <hjl@gnu.org>
4447 * emultempl/aix.em (OUTPUT_ARCH): Defined.
4448 (gld${EMULATION_NAME}_before_parse): Initialize
4449 ldfile_output_architecture, ldfile_output_machine and
4450 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
4451 * emultempl/beos.em: Likewise.
4452 * emultempl/elf32.em: Likewise.
4453 * emultempl/linux.em: Likewise.
4454 * emultempl/mipsecoff.em: Likewise.
4455 * emultempl/pe.em: Likewise.
4456 * emultempl/sunos.em: Likewise.
4458 2001-05-24 Tom Rix <trix@redhat.com>
4460 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
4461 udate import file format.
4462 (change_symbol_mode) New, same
4463 (is_syscall) New, same
4464 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
4465 * emulparams/aixppc64.sh : same
4466 * emulparams/aixrs6.sh : same
4467 * emulparams/ppcmacos.sh : same
4468 * emultempl/aix.em : use strtoull to parse options
4469 * Makefile.am : add eaixppc64 emulation for xcoff64
4470 * Makefile.in : same
4471 * configure.tgt : same
4473 * scripttempl/aix.sc : default text section offset to 0x10000000
4474 default data section offset to 0x20000000
4475 add .sv3264 and .sv64 pseudo sections
4476 loader and debug sections use the currect section offset.
4478 * emultempl/aix.em : Add xcoff64 support
4479 Add -binitfini support
4480 (gld${EMULATION_NAME}_before_parse) -binitfini
4481 (gld${EMULATION_NAME}_parse_args) same
4482 (gld${EMULATION_NAME}_before_allocation) format change for special
4485 * emulparams/aixppc64.sh : New file for xcoff64 support
4487 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
4489 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
4490 variable to avoid non-portable shell construct.
4492 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4494 * ldmain.c (get_emulation): Add -mips5 command line argument.
4496 2001-05-22 Alexandre Oliva <aoliva@redhat.com>
4498 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
4499 (ELF_INTERPRETER_NAME): Define it.
4500 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
4502 * configure.tgt (targ_emul, targ_extra_emuls)
4503 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
4504 as primary, elf_i386 as extra.
4505 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
4506 (eelf_i386_ldso.c): New rule.
4507 * Makefile.in: Rebuilt.
4509 2001-05-22 Nick Clifton <nickc@redhat.com>
4511 * lexsup.c (ld_options): Allow -I to be an alias for
4512 --dynamic-linker. This is for Solaris compatability.
4513 * ld.texinfo: Document that -I can be used.
4516 2001-05-16 Alan Modra <amodra@one.net.au>
4518 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
4519 whether an input section is the first one assigned to an output
4521 Assorted formatting fixes.
4523 2001-05-14 DJ Delorie <dj@delorie.com>
4525 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
4526 * Makefile.in: Ditto.
4528 2001-05-11 Jakub Jelinek <jakub@redhat.com>
4530 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
4531 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
4533 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
4535 2001-05-11 Jakub Jelinek <jakub@redhat.com>
4537 * ldlang.c (lang_process): Call bfd_merge_sections.
4539 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4541 * ldgram.y: Fix typo.
4543 2001-05-03 H.J. Lu <hjl@gnu.org>
4545 * emultempl/elf32.em: Include "libiberty.h".
4546 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
4547 basename of the bfd filename.
4548 (gld${EMULATION_NAME}_stat_needed): Likewise.
4549 (gld${EMULATION_NAME}_try_needed): Likewise.
4550 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
4552 2001-05-02 H.J. Lu <hjl@gnu.org>
4554 * emultempl/pe.em: Include <ctype.h>.
4556 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
4558 * emulparams/elf32openrisc.sh: New file.
4560 * Makefile.am: Add OpenRISC target.
4561 * Makefile.in: Regenerated.
4563 * configure.tgt: Add openrisc-*-* mapping.
4565 2001-05-02 Nick Clifton <nickc@redhat.com>
4567 * emultempl/aix.em: Replace buystring with xstrdup.
4568 * emultempl/beos.em: Replace buystring with xstrdup.
4570 2001-05-02 H.J. Lu <hjl@gnu.org>
4572 * ldfile.c: Include "libiberty.h".
4573 * ldlex.l: Likewise.
4575 * ldmisc.c (buystring): Removed.
4576 * ldmisc.h: Likewise.
4578 * ldfile.c: Replace buystring with xstrdup.
4579 * ldlang.c: Likewise.
4580 * ldlex.l: Likewise.
4581 * ldmain.c: Likewise.
4582 * ldmisc.c: Likewise.
4583 * lexsup.c: Likewise.
4584 * mpw-eppcmac.c: Likewise.
4586 2001-04-30 Andreas Jaeger <aj@suse.de>
4588 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
4590 2001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
4592 * ldlang.c (load_symbols): Give emulation a chance
4593 to process unrecognized file before fatal error is
4594 reported, not after.
4596 2001-04-27 Sean McNeil <sean@mcneil.com>
4598 * configure.tgt: Add arm-vxworks target.
4599 * scripttempl/armcoff.sc: Support .text or .data as a section name
4603 2001-04-13 J.T. Conklin <jtc@redback.com>
4605 * ld.texinfo: Document --fatal-warnings.
4608 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
4609 warnings have been turned into errors.
4610 * lexsup.c (OPTION_WARN_FATAL): Define.
4611 (ld_options): Entry for --fatal-warnings.
4612 (parse_args): Handle OPTION_WARN_FATAL.
4613 * ld.h (ld_config_type): Add fatal_warnings field.
4615 2001-04-13 Jakub Jelinek <jakub@redhat.com>
4617 * ldmain.c (main): Default to discard_sec_merge.
4618 * lexsup.c (OPTION_DISCARD_NONE): Define.
4619 (ld_options): Add --discard-none.
4620 (parse_args): Handle OPTION_DISCARD_NONE.
4621 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
4622 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
4623 all its input sections match.
4625 2001-04-05 Steven J. Hill <sjhill@cotw.com>
4627 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
4628 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
4629 (eelf32ltsmip.c): New target.
4630 (eelf64btsmip.c): Likewise.
4631 (eelf64ltsmip.c): Likewise.
4632 * Makefile.in: Regenerated.
4634 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
4636 (mips*-*-linux-gnu*): Likewise.
4638 * emulparams/elf32ltsmip.sh: New. Traditional little endian
4640 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
4642 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
4645 2001-04-05 Hans-Peter Nilsson <hp@axis.com>
4647 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
4648 correct value of __Stext here.
4649 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
4652 * emulparams/crislinux.sh: Remove FIXME.
4654 2001-04-02 Alan Modra <alan@linuxcare.com.au>
4656 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
4657 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
4659 2001-03-27 Hans-Peter Nilsson <hp@axis.com>
4661 * configure.tgt (cris-*-*): Change default emulation to criself.
4662 (cris-*-*aout*): New rule.
4664 2001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
4666 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
4667 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
4669 2001-03-26 Andreas Jaeger <aj@suse.de>
4671 * ld.texinfo (Overview): Fix syntax in texi code.
4673 2001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4675 * ld.texinfo: Put @c man indications to generate the ld man page.
4676 When generating man, define all the variables. Define SEEALSO
4677 and SYNOPSIS. Re-organize some lines to avoid the cross references.
4678 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
4679 (ld.1): Generate from ld.texinfo.
4680 * Makefile.in: Regenerate.
4682 2001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
4684 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
4685 and '-fdata-sections'. Set the VMA of STABS sections to zero.
4687 2001-03-17 Ulrich Drepper <drepper@redhat.com>
4689 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
4690 is an absolute path look only for this file and not along the path.
4692 2001-03-17 Ulrich Drepper <drepper@redhat.com>
4694 * emultempl/elf32.em (OPTION_GROUP): New macro.
4695 Add new option Bgroup to longopts.
4696 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
4697 (gld*_list_options): Add -Bgroup and -z defs.
4698 * ld.1: Document -Bgroup and -z defs.
4699 * ld.texinfo: Likewise.
4701 2001-03-07 Michael Meissner <meissner@redhat.com>
4703 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
4704 with sections created by -fdata-sections.
4705 (.dynbss,.bss): Ditto.
4707 2001-03-05 Alan Modra <alan@linuxcare.com.au>
4709 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
4710 after_allocation_default, not gld..._before_allocation.
4712 2001-02-27 Alan Modra <alan@linuxcare.com.au>
4714 * configure.in (BFD_VERSION): New.
4715 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
4716 * configure: Regenerate.
4717 * Makefile.am: Run "make dep-am"
4718 * Makefile.in: Regenerate.
4720 2001-02-26 Timothy Wall <twall@cygnus.com>
4722 * emulparams/elf64_aix.sh: Add additional read-only sections;
4723 uncomment lines which are now required.
4725 2001-02-26 H.J. Lu <hjl@gnu.org>
4727 * ldlang.c (open_input_bfds): Set the bfd error handler so
4728 that problems can be caught whilst loading symbols.
4729 (record_bfd_errors): New function: Report BFD errors and mark
4730 the executable output as being invalid.
4732 2001-02-22 Timothy Wall <twall@cygnus.com>
4734 * configure.host: Add configuration for ia64-*-aix*.
4735 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
4736 Add dependencies for eelf64_aix.c.
4737 * Makefile.in: Regenerate.
4738 * configure.tgt: Add ia64-*-aix* mapping.
4739 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
4741 2001-02-20 H.J. Lu <hjl@gnu.org>
4743 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
4744 false if we found the file.
4746 2001-02-18 David O'Brien <obrien@FreeBSD.org>
4748 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
4749 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
4751 2001-02-18 lars brinkhoff <lars@nocrew.org>
4753 * Makefile.am: Add PDP-11 target.
4754 * configure.tgt: Likewise.
4755 * emulparams/pdp11.sh: New file.
4757 2001-02-17 David O'Brien <obrien@FreeBSD.org>
4759 * configure.host: Add a generic FreeBSD configuration entry such that
4760 all [modern] FreeBSD systems on all platforms will look the same.
4762 2001-02-14 H.J. Lu <hjl@gnu.org>
4764 * configure.tgt: Remove mention of earmelf_linux26.
4766 2001-02-13 Richard Henderson <rth@redhat.com>
4768 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
4770 2001-02-13 H.J. Lu <hjl@gnu.org>
4772 * ldexp.h (node_type): Add etree_provided.
4773 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
4774 type to etree_provided if defined by PROVIDE. Allow updating
4776 (exp_print_tree): Handle etree_provided.
4777 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
4780 2001-02-09 David Mosberger <davidm@hpl.hp.com>
4782 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
4783 .IA_64.unwind.* pattern to unwind table section and
4784 .IA_64.unwind_info* pattern to unwind info section.
4786 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
4788 * Makefile.am: Add linux target for S/390.
4789 * Makefile.in: Likewise.
4790 * configure.host: Likewise.
4791 * configure.tgt: Likewise.
4792 * emulparams/elf64_s390.sh: New file.
4793 * emulparams/elf_s390.sh: New file.
4795 2001-02-09 Jakub Jelinek <jakub@redhat.com>
4797 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
4799 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
4801 2001-02-06 Philip Blundell <philb@gnu.org>
4803 * Makefile.am: Remove mention of earmelf_linux26.
4804 * Makefile.in: Regenerate.
4806 2001-02-04 Philip Blundell <philb@gnu.org>
4808 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
4809 * emulparams/armelf_linux26.sh: Delete.
4810 * configure.tgt: Remove mention of armelf_linux26 emulation.
4812 2001-02-01 Nick Clifton <nickc@redhat.com>
4814 * ld.1: Replace occurances of -oformat with --oformat.
4816 2001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
4818 * ldlang.c (lang_leave_overlay): Don't set lma_region when
4819 load_base is specified.
4821 2001-01-24 Hans-Peter Nilsson <hp@axis.com>
4823 * emultempl/elf32.em: Correct spelling in comments and listed
4826 2001-01-23 Alan Modra <alan@linuxcare.com.au>
4828 * ldlang.c (lang_leave_overlay): Only set lma_region from the
4829 default for the first section of a group of overlay sections.
4831 2001-01-22 Alan Modra <alan@linuxcare.com.au>
4833 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
4834 * Makefile.in: Regenerate.
4835 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
4836 Check for null tool_dir.
4838 2001-01-16 Jim Wilson <wilson@redhat.com>
4840 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
4841 and IA_64.unwind.info.
4843 2001-01-16 H.J. Lu <hjl@gnu.org>
4845 * ldlang.c (lang_check): Merge the private data only if the
4846 input file has contents.
4848 2001-01-14 Alan Modra <alan@linuxcare.com.au>
4850 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
4852 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
4853 enabling search for libmilli. On a relocatable link, make .text
4855 (LDEMUL_AFTER_PARSE): Define.
4856 (hppaelf_finish): Correct spelling of relocatable in comments.
4858 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
4859 rummage through the script for sections on the unique list.
4860 Correct length of strncmp for ".note".
4861 (gld${EMULATION_NAME}_check_needed): Rearrange function.
4863 * ldlang.c (unique_section_list): New var.
4864 (unique_section_p): New function.
4865 (walk_wild_section): Don't match sections on unique_section_list.
4866 (lang_add_unique): New function.
4867 Correct spelling of relocatable in comments.
4869 * ldlang.h (struct unique_sections): Declare.
4870 (unique_section_list): Declare.
4871 (unique_section_p): Declare.
4872 (lang_add_unique): Declare.
4874 * lexsup.c (ld_options): Allow --unique to take an optional arg.
4875 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
4877 * ld.texinfo (--unique): Update.
4879 2001-01-13 Nick Clifton <nickc@redhat.com>
4881 * lexsup.c (parse_args): Remove spurious white space.
4883 2001-01-12 Nick Clifton <nickc@redhat.com>
4885 * lexsup.c (parse_args): Update copyright date.
4887 2001-01-12 Philip Blundell <pb@futuretv.com>
4889 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
4891 2001-01-10 Kazu Hirata <kazu@hxi.com>
4893 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
4894 * scripttempl/h8300h.sc: Fix formatting.
4895 * scripttempl/h8300s.sc: Likewise.
4896 * scripttempl/h8500.sc: Likewise.
4897 * scripttempl/h8500b.sc: Likewise.
4898 * scripttempl/h8500c.sc: Likewise.
4899 * scripttempl/h8500m.sc: Likewise.
4900 * scripttempl/h8500s.sc: Likewise.
4902 2000-01-07 David O'Brien <obrien@BSDi.com>
4904 * emultempl/elf32.em: Only perform Linux ld hints processing when
4907 2001-01-07 Philip Blundell <philb@gnu.org>
4909 * ld.texinfo (Bug Reporting): Update email address for reports.
4911 2000-12-31 Nick Clifton <nickc@redhat.com>
4913 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
4914 options by checking for a return value of '?' not -1.
4916 2000-12-28 Nick Clifton <nickc@redhat.com>
4918 * lexsup.c (struct ld_option): Add new enum value:
4920 (ld_options[]): Change -omagic, -output and -oformat options
4921 to be EXACTLY_TWO_DASHES.
4922 (OUTPUT_COUNT): Use ARRAY_SIZE.
4923 (parse_args): Change parameter 'argc' to unsigned.
4924 Place EXACTLY_TWO_DASHES options into new really_longopts
4926 If getopt_long_only fails, try calling getopt_long using the
4927 really_longopts array.
4928 (help): Print a double dash for both EXACTLY_TWO_DASHES and
4931 * ldlex.h: Fix prototype of parse_args.
4933 * ld.texinfo: Document that long options starting with 'o'
4934 must be preceeded by two dashes. Change example of a single
4935 dashed long option from -oformat to -trace-symbol.
4937 2000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
4939 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
4940 (longopts[]): New --no-default-excludes option.
4941 (gld_${EMULATION_NAME}_list_options): Document.
4942 (gld_${EMULATION_NAME}_parse_args): Handle.
4944 2000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4946 * ldlang.c (new_stat): Revert the last beautification with "innocent"
4947 whitespace, it breaks the K&R C preprocessor.
4949 2000-12-11 DJ Delorie <dj@redhat.com>
4951 * ld.texinfo: Add notes about --whole-archive and gcc.
4953 2000-11-18 Fred Fish <fnf@be.com>
4955 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
4956 (ld_options): Entry for --allow-shlib-undefined.
4957 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
4958 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
4960 * ld.texinfo: Document new command line switch.
4962 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
4964 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
4965 .fixup is actually read/write.
4966 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
4967 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
4968 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
4970 2000-12-11 Jan Hubicka <jh@suse.cz>
4972 * NEWS: Add note about x86_64 architecture.
4974 2000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
4976 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
4977 Set DWARF2 sections to a VMA of zero.
4979 2000-12-01 Joel Sherrill <joel@OARcorp.com>
4981 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
4983 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
4984 (sparc*-*-rtems*): Switched from a.out to ELF.
4986 2000-11-30 Jan Hubicka <jh@suse.cz>
4988 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
4989 (eelf_x86_64.c): New.
4990 * Makefile.in: Regenerate.
4991 * configure.tgt: Add support for x86_64-*-linux-gnu*.
4992 * emulparams/elf_x86_64.sh: New.
4994 2000-11-30 Hans-Peter Nilsson <hp@axis.com>
4996 * emulparams/crislinux.sh (ENTRY): Change back to _start.
4997 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
4999 * scripttempl/crisaout.sc: Change all RELOCATING not related to
5000 merging non-a.out sections into CONSTRUCTING.
5002 2000-11-28 Nick Clifton <nickc@redhat.com>
5004 * ld.1 (COPYING): Mention that the GNU Free Documentation
5005 License is present in the sources, but not the output, and
5006 also available from the GNU website.
5007 (GNU Free Documentation License): Comment out this section.
5009 2000-11-28 David O'Brien <obrien@dragon.nuxi.com>
5011 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
5014 2000-11-25 David O'Brien <obrien@FreeBSD.org>
5016 * ld.1: Remove old date so it does not give the impression the manpage
5019 2000-11-24 Nick Clifton <nickc@redhat.com>
5021 * configure.tgt (xscale-coff): Add target.
5022 (xscale-elf): Add target.
5024 2000-11-24 Fred Fish <fnf@be.com>
5026 * ldmain.c (main): Remove redundant init of config.make_executable
5029 2000-11-15 Richard Henderson <rth@redhat.com>
5031 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
5033 2000-11-14 Kazu Hirata <kazu@hxi.com>
5035 * scripttempl/h8300.sc: Fix formatting.
5036 * scripttempl/h8300h.sc: Likewise.
5037 * scripttempl/h8300s.sc: Likewise.
5039 2000-11-14 Denis Chertykov <denisc@overta.ru>
5041 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
5043 2000-11-09 Philip Blundell <pb@futuretv.com>
5045 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
5046 around orphan sections whose names can be represented in C.
5048 2000-11-07 Jim Wilson <wilson@redhat.com>
5050 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
5051 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
5053 2000-11-06 Nick Clifton <nickc@redhat.com>
5055 * ld.texinfo: Add GNU Free Documentation License.
5056 * ldint.texinfo: Add GNU Free Documentation License.
5057 * ld.1: Add GNU Free Documentation License.
5059 2000-11-05 Alan Modra <alan@linuxcare.com.au>
5061 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
5062 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
5064 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
5065 Move 2000-11-02 Makefile.in changes to this file.
5066 * Makefile.in: Regenerate.
5068 2000-11-03 Nick Clifton <nickc@redhat.com>
5070 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
5071 constructors and destructors.
5072 * scripttempl/h8300h.sc: Ditto.
5073 * scripttempl/h8300s.sc: Ditto.
5074 * scripttempl/h8500.sc: Ditto.
5075 * scripttempl/h8500b.sc: Ditto.
5076 * scripttempl/h8500c.sc: Ditto.
5077 * scripttempl/h8500m.sc: Ditto.
5078 * scripttempl/h8500s.sc: Ditto.
5079 * scripttempl/v850.sc: Ditto.
5080 * scripttempl/w65.sc: Ditto.
5081 * scripttempl/z8000.sc: Ditto.
5083 2000-11-02 Per Lundberg <plundis@chaosdev.org>
5085 * Makefile.in (e_i386_chaos.c): New rule.
5086 (ALL_EMULATIONS): Added e_i386_chaos.o.
5087 * emulparams/elf_i386_chaos.sh: New file.
5088 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
5090 2000-10-20 Jakub Jelinek <jakub@redhat.com>
5092 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
5093 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
5094 Fix sed invocation, so that it coped with '/' in Solaris 64bit
5095 library path suffix.
5096 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
5098 2000-10-18 Hans-Peter Nilsson <hp@axis.com>
5100 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
5101 for consecutive sections.
5103 2000-10-17 Chandrakala Chavva <cchavva@redhat.com>
5105 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
5107 * ld.texinfo: Added notes about this new option.
5109 2000-10-16 Nick Clifton <nickc@redhat.com>
5111 * emultempl/pe.em (_after_open): Add tests of return values from
5112 bfd functions. Emit appropriate error messages if necessary.
5114 2000-10-13 Nick Clifton <nickc@redhat.com>
5116 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
5117 local variables - they are not used, but leave in the call to
5118 bfd_canonicalize_symtab.
5119 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
5120 pe_dll_search_prefix.
5122 2000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
5124 * emultempl/pe.em (pe_dll_search_prefix): New variable,
5125 (longopts): New --dll-search-prefix option.
5126 (gld_${EMULATION_NAME}_list_options): Document.
5127 (gld_${EMULATION_NAME}_parse_args): Handle.
5128 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
5129 dynamically, search for a dll named '<prefix><basename>.dll'
5130 in preference to 'lib<basename>.dll' if --dll-search-prefix
5133 2000-10-12 Alan Modra <alan@linuxcare.com.au>
5135 * ldlang.c (section_already_linked): Set kept_section instead of
5138 2000-10-10 Kazu Hirata <kazu@hxi.com>
5140 * deffile.h: Fix formatting.
5141 * lexsup.c: Likewise.
5144 2000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
5146 * pe-dll.c (make_one): Do not generate code thunk for DATA
5148 (process_def_file): deduce DATA flag for auto-export sumbols.
5150 2000-10-09 Kazu Hirata <kazu@hxi.com>
5152 * ld.h: Fix formatting.
5153 * ldcref.c: Likewise.
5154 * ldctor.h: Likewise.
5155 * ldemul.c: Likewise.
5156 * ldemul.h: Likewise.
5157 * ldexp.c: Likewise.
5158 * ldexp.h: Likewise.
5159 * ldfile.c: Likewise.
5160 * ldfile.h: Likewise.
5161 * ldlang.c: Likewise.
5162 * ldlang.h: Likewise.
5163 * ldmain.c: Likewise.
5164 * pe-dll.c: Likewise.
5166 * pe-dll.c: Revert some formatting fixes.
5168 2000-10-08 Kazu Hirata <kazu@hxi.com>
5170 * pe-dll.c: Fix formatting.
5172 2000-10-05 Kazu Hirata <kazu@hxi.com>
5174 * ldlang.c: Fix formatting.
5176 2000-10-03 DJ Delorie <dj@redhat.com>
5178 * pe-dll.c (fill_edata): initialize entire block
5179 (make_one): fill in correct section.
5181 2000-10-03 Kazu Hirata <kazu@hxi.com>
5183 * ldexp.c: Fix formatting.
5185 2000-10-02 DJ Delorie <dj@redhat.com>
5187 * emultempl/pe.em (gld_*_after_open): detect case where there two
5188 import libraries for same dll; rename one to ensure proper link
5191 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
5193 (generate_edata): fix typo
5195 2000-09-29 Hans-Peter Nilsson <hp@axis.com>
5197 * scripttempl/crisaout.sc (ENTRY): Now __start.
5198 (.text): Add default setting for __start.
5199 Remove CONSTRUCTORS handling.
5200 (/DISCARD/): Add .gnu.warning.*.
5201 * emulparams/crislinux.sh (ENTRY): Now __start.
5202 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
5203 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
5204 (ENTRY): Now __start.
5205 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
5206 (EXECUTABLE_SYMBOLS): Add default setting for __start.
5208 2000-09-29 Kazu Hirata <kazu@hxi.com>
5210 * deffile.h: Fix formatting.
5212 * ldcref.c: Likewise.
5213 * ldctor.c: Likewise.
5214 * ldctor.h: Likewise.
5215 * ldemul.c: Likewise.
5216 * ldemul.h: Likewise.
5217 * ldexp.c: Likewise.
5218 * ldexp.h: Likewise.
5219 * ldfile.c: Likewise.
5220 * ldfile.h: Likewise.
5221 * ldlang.c: Likewise.
5222 * ldlang.h: Likewise.
5223 * lexsup.c: Likewise.
5225 * pe-dll.c: Likewise.
5227 2000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
5229 * pe-dll.c (process_def_file): Uninitialized data wasn't
5230 exported with --export-all-symbols switch.
5232 2000-09-28 DJ Delorie <dj@redhat.com>
5234 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
5235 noname work properly.
5237 2000-09-28 Alan Modra <alan@linuxcare.com.au>
5239 * ld.texinfo (HPPA ELF32): New section.
5241 * emultempl/hppaelf.em (group_size): New.
5242 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
5243 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
5244 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
5245 options to prevent abbreviations matching.
5246 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
5247 (PARSE_AND_LIST_ARGS_CASES): Handle it.
5249 2000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5251 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
5252 on the m68*-*-elf target. Make it support COFF input objects.
5254 2000-09-21 Kazu Hirata <kazu@hxi.com>
5256 * ldmain.c: Fix formatting.
5257 * ldmisc.c: Likewise.
5258 * ldver.c: Likewise.
5259 * ldwrite.c: Likewise.
5261 2000-09-21 Alan Modra <alan@linuxcare.com.au>
5263 * ldwrite.c (clone_section): Silence gcc warnings.
5265 2000-09-20 Alan Modra <alan@linuxcare.com.au>
5267 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
5268 out of memory failure.
5270 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
5271 (clone_section): Handle out of memory failures. Rename var to
5272 avoid c++ reserved word.
5274 2000-09-18 Alan Modra <alan@linuxcare.com.au>
5276 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
5277 stub_name param to stub_sec_name.
5278 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
5280 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5282 * emultempl/m68kelf.em: New file.
5283 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
5284 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
5285 * Makefile.in: Regenerate.
5287 2000-09-15 Alan Modra <alan@linuxcare.com.au>
5289 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
5292 2000-09-13 Nick Clifton <nickc@redhat.com>
5294 * ldmain.c (multiple_definition): Disable relaxation if
5295 multiple symbol definitions are encountered - otherwise the
5296 linker could abort with an assertion failure.
5298 2000-09-10 Nick Clifton <nickc@redhat.com>
5300 * mri.c: Fix formatting.
5302 2000-09-07 H.J. Lu <hjl@gnu.org>
5304 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
5305 * configure: Rebuild.
5307 2000-09-07 H.J. Lu <hjl@gnu.org>
5309 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
5310 * Makefile.in: Rebuild.
5312 2000-09-07 Alan Modra <alan@linuxcare.com.au>
5314 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
5315 broken list handling. Create __start_SECNAME and __stop_SECNAME
5316 when no place-holder. Add some comments. Test both SEC_CODE and
5317 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
5318 Handle case where no output section statement created.
5320 2000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
5322 * configure.tgt (sh-*-linux*): Added.
5323 * Makefile.am: Added eshelf_linux and eshlelf_linux.
5324 * Makefile.in: Rebuilt.
5325 * emulparams/shelf_linux.sh: New file.
5326 * emulparams/shlelf_linux.sh: New file.
5328 2000-09-06 Alan Modra <alan@linuxcare.com.au>
5330 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
5331 try shuffling sections when the orphan happens to be the place
5332 holder. Keep count of unique section names generated so we speed
5333 the search for a new name.
5335 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
5337 * configure: Rebuilt with new libtool.m4.
5339 2000-09-05 Nick Clifton <nickc@redhat.com>
5341 * Makefile.in: Regenerate.
5342 * aclocal.m4: Regenerate.
5343 * configure: Regenerate.
5344 * config.in: Regenerate.
5345 * po/ld.pot: Regenerate.
5347 * ldint.texinfo: Remove CVS revision marker - it foils local
5350 * emultempl/ticoff.em: Remove extraneous comma.
5352 2000-09-05 Alan Modra <alan@linuxcare.com.au>
5354 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
5355 to stub section flags.
5356 (hppa_for_each_input_file_wrapper): New.
5357 (hppa_lang_for_each_input_file): New.
5358 (lang_for_each_input_file): Define to call above.
5359 (multi_subspace): New.
5360 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
5361 (PARSE_AND_LIST_PROLOGUE): Define.
5362 (PARSE_AND_LIST_LONGOPTS): Define.
5363 (PARSE_AND_LIST_OPTIONS): Define.
5364 (PARSE_AND_LIST_ARGS_CASES): Define.
5365 (hppaelf_finish): Call elf32_hppa_set_gp.
5366 (hppaelf_set_output_arch): Remove.
5367 (LDEMUL_SET_OUTPUT_ARCH): Remove.
5369 * emulparams/hppalinux.sh (ELFSIZE): Define.
5371 (OTHER_READONLY_SECTIONS): Define.
5373 (GENERATE_SHLIB_SCRIPT): Define.
5375 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
5376 to const throughout. Change `void *' to `PTR' throughout.
5377 (lang_memory_default): Function is local to file, add `static'.
5379 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
5380 (ehppalinux.c): Likewise.
5381 (earmelf.c): Likewise.
5382 (earmelf_linux.c): Likewise.
5383 (earmelf_linux26.c): Likewise.
5384 * Makefile.in: Regenerate.
5386 * ld.h (ld_config_type): Add unique_orphan_sections.
5387 * lexsup.c (OPTION_UNIQUE): Define.
5388 (ld_options): Add "--unique".
5389 (parse_args): Handle it.
5390 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
5391 search for an existing output section if unique_orphan_sections is
5392 set. Make use of bfd_get_unique_section_name rather than
5393 duplicating code here.
5394 * ld.texinfo: Describe --unique.
5396 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
5397 optional arg to split-by-file.
5398 (parse_args): Handle them.
5399 * ld.texinfo: Update description of these options.
5400 * ldwrite.c (clone_section): Pass in the section name. Replace
5401 local code with bfd_get_unique_section_name.
5402 (split_sections): Tidy code and comments. Use a list traversal
5403 more appropriate to the list construction. Handle cooked section
5404 sizes. Split when split_by_reloc reached rather than exceeded.
5405 Track section size and split when split_by_file reached. Fix
5406 link_order_tail (even though it's not used).
5407 (ldwrite): Modify condition for calling split_sections to suit
5408 changed split_by_reloc and split_by_file.
5409 * ldmain.c (main): Init config.split_by_reloc and
5410 config.split_by_file to -1.
5411 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
5412 Change split_by_file to bfd_size_type.
5414 2000-09-02 Nick Clifton <nickc@redhat.com>
5416 * configure.in: Increase version number to 2.10.91.
5417 * NEWS: Mention new ability to support removal of duplicate DWARF2
5419 * configure: Regenerate.
5420 * aclocal.m4: Regenerate.
5421 * config.in: Regenerate.
5423 2000-09-02 Daniel Berlin <dberlin@redhat.com>
5425 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
5427 * scripttempl/elf32avr.sc: Ditto.
5428 * scripttempl/elfd10v.sc: Ditto.
5429 * scripttempl/elfd30v.sc: Ditto.
5430 * scripttempl/elfi370.sc: Ditto.
5431 * scripttempl/elfm68hc11.sc: Ditto.
5432 * scripttempl/elfm68hc12.sc: Ditto.
5433 * scripttempl/elfi386beos.sc: Ditto.
5434 * scripttempl/v850.sc: Ditto.
5436 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
5438 * acinclude.m4: Include libtool and gettext macros from the
5440 * aclocal.m4, configure: Rebuilt.
5442 2000-08-25 Nick Clifton <nickc@redhat.com>
5444 * ldlang.c (open_output): When choosing the target for a
5445 particular endianness, do nothing if the target is not
5448 2000-08-25 H.J. Lu <hjl@gnu.org>
5450 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
5451 check -rpath nor LD_RUN_PATH for cross link.
5452 * ld.texinfo: Document the change.
5454 2000-08-24 Hans-Peter Nilsson <hp@axis.com>
5456 * NEWS: Mention support for CRIS.
5458 2000-08-23 H.J. Lu <hjl@gnu.org>
5460 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
5461 the current runpath list from bfd_elf_get_runpath_list ()
5464 2000-08-22 H.J. Lu <hjl@gnu.org>
5466 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
5467 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
5468 LD_LIBRARY_PATH for native linker. Display the needed DSO if
5469 trace_file_tries is non-zero.
5470 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
5471 if trace_file_tries is non-zero.
5473 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
5476 2000-08-14 Jason Eckhardt <jle@cygnus.com>
5478 * NEWS: Mention i860 support.
5480 2000-08-14 Andreas Schwab <schwab@suse.de>
5482 * scripttempl/elf.sc: Fix last change to use correct comment
5485 2000-08-10 Geoff Keating <geoffk@cygnus.com>
5487 * scripttempl/elf.sc: Add a comment giving the correspondence
5488 between sections, per-datum sections, and linkonce sections. Make
5489 the comment true even for .bss, .sdata, .sdata2, .sbss, and
5492 2000-08-10 Jason Eckhardt <jle@cygnus.com>
5494 * emulparams/elf32_i860.sh: New file.
5495 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
5496 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
5497 (eelf32_i860.c): New rule.
5498 * Makefile.in: Regenerate.
5500 2000-08-10 Nick Clifton <nickc@cygnus.com>
5502 * emulparams/mipspe.sh (ENTRY): Add definition.
5504 2000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
5506 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
5509 2000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5511 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
5512 the final size of .bss section.
5513 * scripttempl/elfm68hc12.sc: Likewise.
5515 2000-08-04 Alan Modra <alan@linuxcare.com.au>
5517 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
5518 gld${EMULATION_NAME}_parse_args for consistency. Combine
5519 lastoptind and prevoptind vars, and keep track of last optind.
5520 (gld_${EMULATION_NAME}_list_options): Rename to
5521 gld${EMULATION_NAME}_list_options.
5523 2000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
5525 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
5526 (i586-sco-sysv5uw7.1.0).
5528 2000-07-27 H.J. Lu <hjl@gnu.org>
5530 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
5531 (PARSE_AND_LIST_PROLOGUE): New.
5532 (PARSE_AND_LIST_LONGOPTS): Likewise.
5533 (PARSE_AND_LIST_OPTIONS): Likewise.
5534 (PARSE_AND_LIST_ARGS_CASES): Likewise.
5535 (PARSE_AND_LIST_EPILOGUE): Likewise.
5537 2000-07-28 Alan Modra <alan@linuxcare.com.au>
5539 * emultempl/armelf.em: Elide functions common to elf32.em,
5540 ie. most of the file.
5541 (arm_elf_after_open): New. Do arm specific things then call
5542 gld${EMULATION_NAME}_after_open.
5543 (arm_elf_before_allocation): New. Call
5544 gld${EMULATION_NAME}_before_allocation then do arm specifics.
5545 (PARSE_AND_LIST_PROLOGUE): Define.
5546 (PARSE_AND_LIST_SHORTOPTS): Define.
5547 (PARSE_AND_LIST_LONGOPTS): Define.
5548 (PARSE_AND_LIST_OPTIONS): Define.
5549 (PARSE_AND_LIST_ARGS_CASES): Define.
5550 (LDEMUL_AFTER_OPEN): Define.
5551 (LDEMUL_BEFORE_ALLOCATION): Define.
5552 (LDEMUL_BEFORE_PARSE): Define.
5553 (LDEMUL_FINISH): Define.
5555 * emultempl/hppaelf.em: Similarly zap most of this file.
5556 (hppaelf_add_stub_section): Prototype.
5557 (hppaelf_layaout_sections_again): Prototype.
5558 (hook_in_stub): Prototype.
5559 (LDEMUL_SET_OUTPUT_ARCH): Define.
5560 (LDEMUL_FINISH): Define.
5561 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
5563 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
5564 (EXTRA_EM_FILE): New.
5565 * emulparams/armelf_linux.sh: Likewise.
5566 * emulparams/armelf_linux26.sh: Likewise.
5567 * emulparams/hppalinux.sh: Likewise.
5568 * emulparams/hppaelf.sh: Likewise.
5571 * emultempl/elf32.em: Fix formatting.
5572 (EXTRA_EM_FILE): Source it.
5573 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
5574 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
5575 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
5576 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
5577 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
5578 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
5579 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
5580 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
5581 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
5582 allow functions in this file to be overridden.
5583 (PARSE_AND_LIST_SHORTOPTS): Handle it.
5585 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
5587 * emultempl/elf32.em: Reorganize file.
5589 2000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
5591 * emulparams/elf64alpha.sh: Implement "-taso" emulation
5592 specific option to fit 64-bit executable in the lower
5593 31-bit address range. This is done by changing start
5594 address of .interp (the very first section of executable)
5595 and then setting EF_ALPHA_32BIT elf header flag.
5597 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5599 * emultempl/m68kcoff.em: New file.
5600 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
5601 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
5603 * Makefile.in: Regenerate.
5605 2000-07-20 H.J. Lu <hjl@gnu.org>
5607 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
5608 and "disable-new-dtags" to stop getopt from treating -d/-e as
5609 abbreviations for these options.
5611 2000-07-20 H.J. Lu <hjl@gnu.org>
5613 * ld.texinfo: Add documentation for --disable-new-dtags and
5616 * ldmain.c (main): Initialize link_info.new_dtags to false.
5618 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
5619 --disable-new-dtags and --enable-new-dtags.
5620 (gld_${EMULATION_NAME}_list_options): Likewise.
5622 2000-07-05 Kenneth Block <krblock@computer.org>
5624 * lexsup.c: Add optional style to demangle switch
5625 * ld.texinfo: Document optional style to demangle switch.
5627 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
5629 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
5631 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
5632 Regenerate dependencies.
5633 * Makefile.in: Rebuild.
5634 * configure.tgt (cris-*-*): New target.
5635 * emulparams/crisaout.sh, emulparams/criself.sh,
5636 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
5637 * po/POTFILES.in, po/ld.pot: Regenerate.
5639 2000-07-20 H.J. Lu <hjl@gnu.org>
5641 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
5642 Print out ignored -z options.
5644 2000-07-19 H.J. Lu <hjl@gnu.org>
5646 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
5647 (PARSE_AND_LIST_PROLOGUE): New.
5648 (PARSE_AND_LIST_LONGOPTS): Likewise.
5649 (PARSE_AND_LIST_OPTIONS): Likewise.
5650 (PARSE_AND_LIST_ARGS_CASES): Likewise.
5652 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
5654 * lexsup.c (ld_options): Comment out 'z'.
5655 (parse_args): Likewise.
5657 * emultempl/elf32.em: Include "elf/common.h".
5658 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
5660 (gld_${EMULATION_NAME}_list_options): Likewise.
5662 * ld.texinfo: Add documentation for the recognized -z options.
5664 2000-07-19 H.J. Lu <hjl@gnu.org>
5666 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
5667 bfd_elf_set_dt_needed_soname ().
5669 2000-07-18 DJ Delorie <dj@cygnus.com>
5671 * pe-dll.c (pe_dll_id_target): check object target name also
5673 2000-07-18 Hans-Peter Nilsson <hp@axis.com>
5675 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
5676 ${INIT_END} if relocating.
5677 (.fini): Likewise ${FINI_START} and ${FINI_END}.
5679 2000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
5681 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
5682 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
5683 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
5684 errors introduced by the old dynamic lib search order.
5686 2000-07-17 DJ Delorie <dj@cygnus.com>
5688 * pe-dll.c (process_def_file): auto-export data items also
5689 (pe_process_import_defs): also see if _imp_ form needed
5691 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
5693 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
5694 for dll import libraries
5696 2000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
5698 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
5699 gcc 2.95.2 and later.
5701 2000-07-11 Kazu Hirata <kazu@hxi.com>
5703 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
5706 2000-07-10 Alan Modra <alan@linuxcare.com.au>
5708 * ldemul.h (struct lang_input_statement_struct): Remove forward
5710 (struct search_dirs): Likewise.
5711 * ldfile.h (struct lang_input_statement_struct): Likewise.
5712 Protect file from multiple inclusion.
5713 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
5714 declaration from macro to file scope.
5716 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
5717 * ldgram.y: Likewise here.
5718 * ldlang.c: And here.
5719 * ldmain.c: And here.
5720 * mpw-elfmips.c: And here.
5721 * mpw-eppcmac.c: And here.
5722 * emultempl/aix.em: And here.
5723 * emultempl/armcoff.em: And here.
5724 * emultempl/armelf.em: And here.
5725 * emultempl/armelf_oabi.em: And here.
5726 * emultempl/beos.em: And here.
5727 * emultempl/elf32.em: And here.
5728 * emultempl/hppaelf.em: And here.
5729 * emultempl/linux.em: And here.
5730 * emultempl/lnk960.em: And here.
5731 * emultempl/pe.em: And here.
5732 * emultempl/sunos.em: And here.
5733 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
5734 * mpw-idtmips.c: Ditto.
5735 * emultempl/generic.em: Ditto.
5736 * emultempl/gld960.em: Ditto.
5737 * emultempl/gld960c.em: Ditto.
5738 * emultempl/mipsecoff.em: Ditto.
5739 * emultempl/ticoff.em: Ditto.
5740 * emultempl/vanilla.em: Ditto.
5742 * pe-dll.c: Include ldfile.h
5743 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
5745 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
5746 arguments to bfd_elf32_size_dynamic_sections call.
5747 (gldelf32ebmip_place_orphan): Add missing arguments to
5748 lang_leave_output_section_statement call.
5750 2000-07-10 H.J. Lu <hjl@gnu.org>
5752 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
5754 (strhash): Likewise.
5755 (compute_dll_image_base): Likewise.
5756 (pe_undef_found_sym): Likewise.
5757 (pe_undef_cdecl_match): Likewise.
5758 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
5759 argument "arch" with ATTRIBUTE_UNUSED.
5761 2000-07-10 Alan Modra <alan@linuxcare.com.au>
5763 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
5765 From Ryan Bradetich <rbradetich@uswest.net>
5766 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
5768 2000-07-09 Alan Modra <alan@linuxcare.com.au>
5770 Changes to create multiple linker stubs, positioned immediately
5771 before the section where they are required.
5772 * emultempl/hppaelf.em: Include elf32-hppa.h.
5773 (stub_sec, file_chain): Delete.
5774 (hppaelf_create_output_section_statements): Don't make a stub
5776 (hook_stub_info): New struct.
5777 (hook_in_stub): New function.
5778 (hppaelf_add_stub_section): New function.
5779 (hppaelf_finish): Do nothing for relocateable links. Modify the
5780 call to elf32_hppa_size_stubs. Move code for updating section
5782 (hppaelf_layaout_sections_again): ..to here, a new function.
5784 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
5785 broken list handling. Pass in a pointer to the list.
5786 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
5788 (hppaelf_before_parse): Prototype.
5789 (hppaelf_set_output_arch): Prototype.
5790 (hppaelf_create_output_section_statements): Prototype.
5791 (hppaelf_delete_padding_statements): Prototype.
5792 (hppaelf_finish): Prototype.
5795 * emultempl/hppaelf.em: Include ctype.h.
5796 (struct orphan_save): New.
5797 (gld${EMULATION_NAME}_place_orphan): New.
5798 (output_rel_find): New.
5799 (hppaelf_get_script): Update from elf32.em.
5800 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
5801 Change emulation_name field to "${EMULATION_NAME}". Add
5802 gld${EMULATION_NAME}_place_orphan.
5804 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
5805 ehppalinux.o, sort it. Regenerate dependencies.
5806 (ehppalinux.c): Depend on hppaelf.em
5807 * Makefile.in: Regenerate.
5809 * configure.tgt: targ_emul=hppalinux for hppa*linux
5811 * emulparams/hppalinux.sh: New.
5812 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
5814 2000-07-08 Alan Modra <alan@linuxcare.com.au>
5816 * lexsup.c (parse_args): Copy section name.
5818 2000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
5820 * emultempl/pe.em: institute the following search order for
5821 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
5822 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
5823 static lib (libfoo.a) if none of the above are found.
5825 2000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
5827 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
5828 (longopts): New --{enable,disable}-auto-image-base options.
5829 (gld_${EMULATION_NAME}_list_options): Document.
5830 (gld_${EMULATION_NAME}_parse): Handle.
5831 (strhash): New static function.
5832 (compute_dll_image_base): New static function.
5833 (gld_${EMULATION_NAME}_set_symbols): Use.
5835 2000-07-05 DJ Delorie <dj@redhat.com>
5839 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
5841 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
5842 * emulparams/elf32btsmip.sh: New file.
5843 * Makefile.am: Add traditional mips target.
5844 * Makefile.in: Rebuild.
5846 2000-07-01 H.J. Lu <hjl@gnu.org>
5848 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
5849 automake to use YLWRAP.
5850 * Makefile.in: Rebuild.
5852 2000-07-01 Alan Modra <alan@linuxcare.com.au>
5854 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
5855 (CLEANFILES): Add DEPA.
5856 * Makefile.in: Regenerate.
5858 2000-06-30 Timothy Wall <twall@ppc>
5860 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
5861 the page in the upper octet of the address.
5863 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
5865 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
5867 2000-06-24 Alan Modra <alan@linuxcare.com.au>
5869 * NEWS: arm-elf does --gc-sections too.
5871 2000-06-22 Alan Modra <alan@linuxcare.com.au>
5873 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
5875 * Makefile.in: Regenerate.
5877 2000-06-21 H.J. Lu <hjl@gnu.org>
5879 * Makefile.am: Rebuild dependency.
5880 * Makefile.in: Rebuild.
5882 2000-06-20 H.J. Lu <hjl@gnu.org>
5884 * Makefile.am: Rebuild dependency.
5885 * Makefile.in: Rebuild.
5887 2000-06-20 Timothy Wall <twall@cygnus.com>
5889 * scripttempl/tic54xcoff.sc: New.
5890 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
5891 * gen-doc.texi: Add flag for TI COFF.
5892 * ld.texinfo: Add documentation for TI COFF handling switches.
5893 * emultempl/ticoff.em: New. TI COFF handling.
5894 * configure.tgt: Add tic54x target.
5895 * Makefile.am: Add tic54x target.
5896 * Makefile.in: Ditto.
5898 2000-06-20 Alan Modra <alan@linuxcare.com.au>
5900 * ldmain.c (set_scripts_dir): Correct pointer comparison when
5901 checking for backslashes.
5903 2000-06-19 Alan Modra <alan@linuxcare.com.au>
5905 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
5907 2000-06-18 Alan Modra <alan@linuxcare.com.au>
5909 * NEWS: Update list of targets supporting --gc-sections.
5911 * scripttempl/elf.sc: KEEP .eh_frame contents.
5912 * scripttempl/elfd30v.sc: Same here.
5914 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
5916 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
5918 * Makefile.in: Rebuild.
5919 * configure.tgt: Recognize m68hc12 and m68hc11.
5920 * scripttempl/elfm68hc12.sc: New file.
5921 * emulparams/m68hc12elfb: New emulation.
5922 * emulparams/m68hc12elf: New emulation.
5923 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
5924 (includes a memory.x script to define the ROM and RAM banks).
5925 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
5926 New configuration files for support of Motorola 68hc11
5928 2000-06-15 Alan Modra <alan@linuxcare.com.au>
5930 * ldmain.c (main): Only change SEC_READONLY for final link.
5932 2000-06-13 H.J. Lu <hjl@gnu.org>
5934 * configure: Regenerate.
5936 2000-06-08 David O'Brien <obrien@FreeBSD.org>
5938 * configure.in (VERSION): Update to show this is the CVS mainline.
5940 2000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5942 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
5943 input objects to be ECOFF.
5944 (check_sections): einfo takes %B, not %P, to print a BFD name.
5946 2000-06-05 Michael Matz <matz@ifh.de>
5948 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
5951 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
5953 2000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
5955 * emulparams/avr1200.sh (STACK): Define as 0.
5956 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
5957 * emulparams/avr4433.sh (STACK): Likewise.
5958 * emulparams/avr44x4.sh (STACK): Likewise.
5959 * emulparams/avr85xx.sh (STACK): Likewise.
5960 * emulparams/avrmega103.sh (STACK): Likewise.
5961 * emulparams/avrmega161.sh (STACK): Likewise.
5962 * emulparams/avrmega603.sh (STACK): Likewise.
5963 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
5964 (__stack): Define from ${STACK} for main().
5966 2000-05-26 Alan Modra <alan@linuxcare.com.au>
5968 * Makefile.am: Update dependencies with "make dep-am"
5969 * Makefile.in: Regenerate.
5971 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
5973 * ldmain.c: Include filenames.h.
5974 (set_scripts_dir): Support backslashes in program name.
5976 2000-05-22 Igor Shevlyakov <igor@windriver.com>
5978 * ldmain.c (main): When deciding if ".text" section should be
5979 read-only, don't forget to reset SEC_READONLY because it
5980 could be already set.
5982 2000-05-22 Thomas de Lellis <tdel@windriver.com>
5984 * ld.1: Add documentation for new command line option:
5985 --section-start <sectionname>=<sectionorg>
5986 This is a generic version of -Ttext etc. which accepts
5987 any section name as a parameter instead of just text/data/
5989 * ld.texinfo: More docs.
5991 * lexsup.c: (parse_args): Recognize new command line option.
5992 (ld_options): Add new option.
5994 2000-05-18 H.J. Lu <hjl@gnu.org>
5996 * lexsup.c (parse_args): `i' == `r', not `q'.
5998 2000-05-18 Jeffrey A Law (law@cygnus.com)
6000 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
6002 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
6003 Rick Gorton <gorton@scrugs.lkg.dec.com>
6005 Add support for '-q' == '--emit-relocs' switch.
6006 * ldmain.c (main): Default to false.
6007 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
6008 * NEWS: Describe the emitrelocations switch.
6009 * ld.texinfo: Describe the emitrelocations switch.
6011 2000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
6013 * emultempl/pe.em (_open_dynamic_archive): New function: Search
6014 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
6015 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
6018 2000-05-15 David O'Brien <obrien@FreeBSD.org>
6020 * lexsup.c (parse_args): Update the year in the copyright notice.
6022 2000-05-13 Alan Modra <alan@linuxcare.com.au>
6024 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
6025 Replace defines with those from intl/libgettext.h to quieten gcc
6028 2000-05-10 H.J. Lu <hjl@gnu.org>
6030 * ldlang.c (open_input_bfds): Don't load the same file within
6031 a group again if the whole archive has been loaded already.
6033 2000-05-03 Alan Modra <alan@linuxcare.com.au>
6035 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
6036 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
6039 2000-05-01 Jim Wilson <wilson@cygnus.com>
6041 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
6043 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
6044 host "ia64-*-linux-gnu*".
6046 2000-04-29 Andreas Jaeger <aj@suse.de>
6048 * ld.h: Correctly check GCC version.
6050 2000-04-25 Jeffrey A Law (law@cygnus.com)
6052 * Makefile.am: Add PA64 support. Add missing dependencies for
6054 * Makefile.in: Rebuilt.
6055 * configure.tgt: Add PA64 support (currently disabled).
6057 2000-04-25 Alan Modra <alan@linuxcare.com.au>
6059 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
6060 (output_rel_find): New function.
6061 (hold_section, hold_use): Delete.
6062 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
6063 hold_interp): Make local to place_orphan.
6064 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
6065 rather than place_section to find possible previous use of orphan.
6066 Similarly find the place-holder output sections. Use returned
6067 value from lang_enter_output_section_statement rather than calling
6068 lang_output_section_statement_lookup.
6069 * emultempl/armelf.em: Same here.
6070 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
6072 * ldlang.c (lang_enter_output_section_statement): Return output
6074 * ldlang.h (lang_enter_output_section_statement): Change
6077 * ldlang.h (lang_output_section_statement): Export it.
6078 * ldlang.c (lang_output_section_statement): Ditto.
6080 2000-04-24 Nick Clifton <nickc@cygnus.com>
6082 * ld.texinfo (Output Section Data): Add note that section data
6083 commands cannot appear outside of section directives.
6085 2000-04-2 Matthew Green <mrg@cygnus.com>
6087 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
6089 2000-04-21 Richard Henderson <rth@cygnus.com>
6090 David Mosberger <davidm@hpl.hp.com>
6092 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
6093 (eelf64_ia64.c): New rule.
6094 * Makefile.in: Rebuild.
6095 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
6096 * emulparams/elf64_ia64.sh: New file.
6098 2000-04-21 Richard Henderson <rth@cygnus.com>
6100 * scripttempl/elfd30v.sc: Place .gcc_except_table.
6102 2000-04-19 Alan Modra <alan@linuxcare.com.au>
6104 * dep-in.sed: Match space at start of file name, not at end.
6106 2000-04-18 H.J. Lu <hjl@gnu.org>
6108 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
6109 lang_leave_output_section_statement () after calling
6110 lang_enter_output_section_statement ().
6111 * emultempl/armelf.em: Likewise.
6113 2000-04-18 Alan Modra <alan@linuxcare.com.au>
6115 * emultempl/elf32.em (struct orphan_save): Add section field.
6116 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
6117 better order, and place first orphan section as we did before the
6118 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
6119 Don't call make_bfd_section here, let wild_doit do the job for us.
6120 Don't build a statement list when we'll only throw it away.
6121 * emultempl/armelf.em: Ditto.
6122 * emultempl/pe.em: Similarly.
6124 2000-04-14 Geoff Keating <geoffk@cygnus.com>
6126 * scripttempl/elfppc.sc: Remove.
6127 * emulparams/elf32ppc.sh: Use elf.sc.
6128 * emulparams/elf32lppc.sh: Use elf.sc.
6129 * emulparams/elf32ppclinux.sh: Use elf.sc.
6130 * emulparams/elf32ppcsim.sh: New file.
6131 * emulparams/elf32lppcsim.sh: New file.
6132 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
6133 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
6134 * Makefile.in: Regenerate.
6135 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
6137 2000-04-14 Alan Modra <alan@linuxcare.com.au>
6139 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
6140 ~SEC_ALLOC sections too. Init start address of debug sections.
6141 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
6142 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
6143 Also set all relocateable section start addresses.
6145 2000-04-13 Geoff Keating <geoffk@cygnus.com>
6147 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
6148 Add new BSS_PLT variable for when .plt need not be contained in
6149 the file. Move _etext so that it is also after .fini, and provide
6150 both etext and _etext with a leading underscore. Mark the start
6153 2000-04-12 Alan Modra <alan@linuxcare.com.au>
6155 * emultempl/elf32.em (struct orphan_save): New.
6156 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
6157 hold_interp): Make them struct orphan_save.
6158 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
6159 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
6160 the end of the relevant section list. Also add associated section
6161 statements to the end of any previous orphan statements.
6162 * emultempl/armelf.em: Similarly.
6163 * emultempl/pe.em: Similarly.
6165 2000-04-11 Alan Modra <alan@linuxcare.com.au>
6167 * ld.texinfo (Simple Example): Remove extraneous paragraph.
6169 2000-04-07 Andrew Cagney <cagney@b1.cygnus.com>
6171 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
6172 --enable-build-warnings option.
6173 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
6174 * Makefile.in, configure: Re-generate.
6176 2000-04-04 Alan Modra <alan@linuxcare.com.au>
6178 * po/ld.pot: Regenerate.
6180 * lexsup.c (help): Restore translated part of bug string.
6182 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
6183 (DEP): Quote when passing vars to sub-make. Add warning message
6185 (DEP1): Rewrite for "gcc -MM".
6186 (CLEANFILES): Add DEP2.
6187 Update dependencies.
6188 * Makefile.in: Regenerate.
6190 2000-04-03 Alan Modra <alan@linuxcare.com.au>
6192 * ld.h: #include "bin-bugs.h"
6193 * lexsup.c (help): Use REPORT_BUGS_TO.
6195 2000-03-27 Denis Chertykov <denisc@overta.ru>
6197 * configure.tgt (avr-*-*): New target support.
6198 * Makefile.am: Likewise.
6199 * scripttempl/elf32avr.sc: New script file.
6200 * emulparams/avr1200.sh: New file.
6201 * emulparams/avr23xx.sh: New file.
6202 * emulparams/avr4433.sh New file.
6203 * emulparams/avr44x4.sh New file.
6204 * emulparams/avr85xx.sh New file.
6205 * emulparams/avrmega103.sh New file.
6206 * emulparams/avrmega161.sh New file.
6207 * emulparams/avrmega603.sh New file.
6208 * Makefile.in: Regenerate.
6210 2000-03-09 Andreas Jaeger <aj@suse.de>
6212 * Makefile.am (check-DEJAGNU): Also unset LANG.
6213 * Makefile.in: Rebuild.
6215 2000-03-06 Ian Lance Taylor <ian@zembu.com>
6217 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
6220 2000-03-02 H.J. Lu <hjl@gnu.org>
6222 * emulparams/elf32mcore.sh: Include "getopt.h".
6224 2000-03-01 Ian Lance Taylor <ian@zembu.com>
6226 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
6228 2000-03-01 H.J. Lu <hjl@gnu.org>
6230 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
6231 * emulparams/shpe.sh: Likewise.
6233 2000-03-01 Nick Clifton <nickc@cygnus.com>
6235 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
6236 to unused parameters.
6238 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
6239 functions only used by DLL code.
6240 (_place_orphan): Initialise 'dollar'.
6242 2000-03-01 H.J. Lu <hjl@gnu.org>
6244 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
6245 indicate if the undefined symbol is a fatal error or not.
6246 Don't delete the output file if "fatal" is false.
6248 2000-02-29 H.J. Lu <hjl@gnu.org>
6250 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
6251 Set LC_COLLATE and LC_ALL to null and export them. It is for
6252 sort which expects the C locale.
6253 Add $(LIBS) to all $(HOSTING_LIBS).
6254 * Makefile.in: Rebuild.
6256 2000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
6258 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
6259 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
6260 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
6261 (ld_emulation_xfer_struct): Add missing NULL initialiser for
6262 find_potential_libraries.
6264 2000-02-28 Jim Blandy <jimb@redhat.com>
6266 * ldgram.y (exclude_name_list): Don't require a comma to separate
6267 list entries; the lexer considers commas to be valid part of a
6268 filename, so in something like `foo, bar' the comma is considered
6269 part of the first filename, `foo,'.
6270 * ld.texinfo: Update section on EXCLUDE_FILE lists.
6272 2000-02-27 Loren J. Rittle <ljrittle@acm.org>
6274 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
6275 host "i[3456]86-*-freebsdelf*".
6277 2000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
6279 * scripttempl/i386go32.sc: Move misplaced semicolons.
6281 2000-02-25 Ian Lance Taylor <ian@zembu.com>
6283 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
6284 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
6285 (eelf64hppa.c, ehppaelf.c): Remove targets.
6286 * Makefile.in: Rebuild.
6288 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
6290 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
6291 GNU/Linux/sparc, but keep the default as 32.
6293 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
6294 it default if sparcv9 or sparc64.
6296 2000-02-24 Nick Clifton <nickc@cygnus.com>
6298 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
6299 * Makefile.in: Regenerate.
6300 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
6302 * ldemul.h (ld_emulation_xfer_struct): Add new field:
6303 find_potential_libraries.
6304 * ldemul.c (ldemul_find_potential_libraries): New function.
6306 * ldfile.c (ldfile_open_file_search): Allow function to be
6308 (ldfile_open_file): Call ldemul_find_potential_libraries.
6309 * ldfile.h: Add prototype for ldfile_open_file_search.
6311 * pe-dll.c: Add support for ARM, MIPS and SH targets.
6313 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
6314 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
6316 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
6317 (gld_X_find_potential_libraries): New function. Search for
6318 libraries called "*.lib".
6320 * scripttempl/pe.sc: Add .pdata section.
6322 2000-02-23 Richard Henderson <rth@cygnus.com>
6324 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
6325 Add and use memory regions.
6327 2000-02-23 Linas Vepstas (linas@linas.org)
6329 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
6331 * Makefile.am: Add support for Linux/IBM 370.
6332 * configure.tgt: Likewise.
6334 * Makefile.in: Regenerate.
6336 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
6338 * ldlang.c (print_input_section, print_data_statement,
6339 print_reloc_statement, print_padding_statement, insert_pad,
6340 size_input_section, lang_check_section_addresses,
6341 lang_size_sections, lang_do_assignments, lang_set_startof,
6342 lang_one_common): Change `opb' to unsigned.
6343 (lang_do_assignments): Also change `size' to unsigned.
6345 2000-02-16 Richard Henderson <rth@cygnus.com>
6347 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
6349 2000-02-16 Timothy Wall <twall@cygnus.com>
6351 * mri.c (mri_draw_tree): Add default LMA region argument to call
6352 to lang_leave_output_section_statement.
6353 * ldlang.h: Update prototypes with LMA region arguments.
6354 * ldlang.c (lang_size_sections): Encapsulate region bounds
6355 checking in os_check_region call.
6356 (os_check_region): New function.
6357 (lang_output_section_statement_lookup): Initialize lma_region.
6358 (lang_leave_output_section_statement): Add LMA region argument.
6359 (lang_leave_overlay): Ditto.
6360 * ldgram.y: Handle LMA region syntax.
6361 * ld.texinfo (Output Section Description): Describe LMA region usage.
6362 * emultempl/armelf.em (gld$place_orphan): Add default value for
6363 lma region in call to lang_leave_output_section_statement.
6364 * emultempl/elf32.em (gld$place_orphan): Add default value for
6365 lma region in call to lang_leave_output_section_statement.
6366 * emultempl/pe.em (gld$place_orphan): Add default value for
6367 lma region in call to lang_leave_output_section_statement.
6370 2000-02-04 Timothy Wall <twall@redhat.com>
6372 * ldlang.c (lang_check_section_addresses): Use bytes instead of
6373 octets when calculating section end addresses.
6375 2000-02-04 Timothy Wall <twall@redhat.com>
6377 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
6379 2000-02-03 Timothy Wall <twall@redhat.com>
6381 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
6383 * ldlang.c (print_input_section, print_data_statement,
6384 print_reloc_statement, print_padding_statement): Print target
6385 address values and section sizes as bytes, not octets.
6386 (insert_pad) Calculate padding size in octets, and adjust "dot"
6388 (size_input_section) Always adjust "dot" by bytes, not octets.
6389 (lang_check_section_addresses, lang_do_assignments) Adjust
6390 "dot" by bytes, not octets. Use the larger of the directive size
6391 or octets_per_byte for the number of octets actually allocated in
6393 (lang_set_startof) Make sure STARTOF returns a target address.
6394 (lang_one_common) Record size changes in octets.
6395 (lang_abs_symbol_at_end_of) Section end symbol's value is
6396 recorded in target bytes.
6397 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
6398 to be clear about behavior when an octet is smaller than one byte.
6400 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
6402 * ldcref.c (output_cref): Don't pass message strings to printf
6406 * ldmisc.c (vfinfo): Same here.
6409 2000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
6411 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
6412 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
6413 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
6414 Add missing NULL initialisers, and comments.
6416 2000-01-21 Nick Clifton <nickc@cygnus.com>
6418 * ldlang.c (lang_size_sections): Fix typo in comment.
6420 2000-01-18 H.J. Lu <hjl@gnu.org>
6422 * ldlang.c (lang_size_sections): Also update the current
6423 address of a region if the SEC_NEVER_LOAD bit is not set.
6425 2000-01-10 Philip Blundell <pb@futuretv.com>
6427 * configure.tgt (arm*-*-conix*): New target.
6429 2000-01-07 Nick Clifton <nickc@cygnus.com>
6431 * ld.texinfo (Options): Remind users to preceed linker command
6432 line switches with -Wl, (or whatever is appropriate) if it is
6433 being invoked by a comnpiler driver program.
6434 Fix description of the behaviour of the -n command line switch.
6436 2000-01-05 Catherine Moore <clm@cygnus.com>
6438 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
6440 * ld.texinfo (EXCLUDE_FILE): Update documentation.
6441 * ldgram.y (wildcard_spec): Support a list of excluded_files.
6442 (exclude_name_list): New.
6443 ldlang.c (walk_wild_section): Support list of excluded files.
6444 (print_wild_statement): Likewise.
6445 (lang_add_wild): Likewise.
6446 * ldlang.h (lang_wild_statement_type): Likewise.
6447 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
6449 2000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
6451 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
6452 (process_def_file): Use.
6453 (pe_dll_compat_implib): New variable.
6456 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
6457 pe_dll_compat_implib.
6459 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
6460 compat-implib options.
6461 (gld_${EMULATION_NAME}_list_options): List new options.
6462 (gld_${EMULATION_NAME}_parse_args): Handle.
6464 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
6467 * deffilep.y (opt_name): Allow "." in name.
6469 For older changes see ChangeLog-9899
6475 version-control: never