1 2003-10-07 Nathan Sidwell <nathan@codesourcery.com>
3 * ldwrite.c (unsplittable_name): New.
4 (clone_section): Strip existing numeric suffix. Only truncate names
6 (split_sections): Use unsplittable_name.
8 2003-10-06 Nick Clifton <nickc@redhat.com>
10 * lexsup.c (parse_args): Report unresolved symbols in shared
11 libraries when creating a dynamic executable. This is a
12 restoration of the default behaviour for previous versions of
15 2003-10-06 Matt Thomas <matt@3am-software.com>
17 * emulparams/hppanbsd.sh: Remove OUTPUT_FORMAT.
18 * emulparams/hppaobsd.sh: Add OUTPUT_FORMAT="elf32-hppa".
20 2003-10-06 Robert Millan <robertmh@gnu.org>
22 * configure.tgt: Match GNU/KNetBSD with new knetbsd*-gnu triplet.
24 2003-10-02 Ivan Warren <ivan@vmfacility.fr>
26 * pe-dll.c (make_one): Correct sym def order & pick right sym for
29 2003-09-30 Chris Demetriou <cgd@broadcom.com>
31 * NEWS: Add an indication of the cutoff for 2.14.
33 2003-09-30 Chris Demetriou <cgd@broadcom.com>
35 * ldmain.c (get_emulation): Ignore "-mips64r2".
37 2003-09-03 Robert Millan <robertmh@gnu.org>
39 * configure.host: Match GNU/KFreeBSD with new kfreebsd*-gnu
41 * configure.tgt: Likewise.
43 2003-08-29 Jafa <jafa@silicondust.com>
45 * emulparams/elf32ip2k.sh (TEMPLATE_NAME): Define.
47 2003-08-21 Nick Clifton <nickc@redhat.com>
49 * po/tr.po: Updated Turkish translation.
51 2003-08-20 Nick Clifton <nickc@redhat.com>
53 * ldmain.c: Initialise the new fields in bfd_link_info to
55 * lexsup.c (enum option_values): New enum. Use this to
56 replace the handed coded values for the long switch options.
57 (ld_options): Add 'unresolved-symbols',
58 'warn-unresolved-symbols' and 'error-unresolved-symbols'.
59 (parse_args): Handle the new switches. Set the values of
60 unresolved_symbols_in_objects and
61 unresolved_symbols_in_shared_libs appropriately. If they were
62 not initialised by the command line, install default values.
63 * emultempl/elf32.em (handle_option): Update OPTION_GROUP and
64 -z defs to use the new fields in bfd_link_info.
65 * ld.texinfo: Document the new switches.
66 * NEWS: Mention this feature.
68 2003-08-15 Dmitry Diky <diwil@mail.ru>
70 * Makefile.am (GENSCRIPTS_EXTRA): New script definition which
71 calls genscripts_extra.sh.
72 Rearrange all msp430 depends using this script.
73 * Makefile.in: Regenerate.
74 * genscripts_extra.sh: New file: Similar to genscripts.sh, except
75 that the script to be run to generate the emulations can be passed
76 as an optional parameter instead of being computed from the
78 * emulparams/msp430all.sh: New file: Combine all msp430 subdevice
79 definitions into one file.
80 * emulparams/msp430x*.sh: Removed.
82 2003-08-15 Nick Clifton <nickc@redhat.com>
84 * ld.texinfo (Options): Put keywords for the -z option into a
85 table. Add more text describing what the -z now option does.
87 2003-08-14 Alan Modra <amodra@bigpond.net.au>
89 * dep-in.sed: Remove libintl.h.
90 * Makefile.am (POTFILES.in): Unset LC_COLLATE.
91 * Makefile.in: Regenerate.
93 2003-08-13 Alan Modra <amodra@bigpond.net.au>
95 * genscripts.sh (libpath.exp): Only generate for first emulation.
96 (LIB_PATH): Correct order of paths. Don't add $tool_lib when
97 already present or when LIB_PATH is set to ":".
99 2003-08-12 Ian Lance Taylor <ian@airs.com>
101 * ldmain.c (undefined_symbol): Change parameter name from `fatal'
102 to `error'. If only a warning, put warning in the reported
103 string. Consistently set failure flag when not a warning.
105 2003-08-08 Dmitry Diky <diwil@mail.ru>
107 * Makefile.am: Add xW42 and xE42 parts. Sort MPU list according to
109 * Makefile.in: Regenerate.
110 * configure.tgt: Add extra emulations.
111 * emulparams/msp430xE423.sh: New file.
112 * emulparams/msp430xE427.sh: New file.
113 * emulparams/msp430xW425.sh: New file.
114 * emulparams/msp430xE425.sh: New file.
115 * emulparams/msp430xW423.sh: New file.
116 * emulparams/msp430xW427.sh: New file.
118 2003-08-07 Danny Smith <dannysmith@users.sourceforge.net>
120 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
121 Change second (cmdline) arg to lang_add_entry to FALSE.
122 (set_pe_subsystem): Change second arg to lang_add_entry to TRUE.
124 2003-08-05 Christian Groessler <chris@groessler.org>
125 Jason Eckhardt <jle@rice.edu>
127 * configure.tgt: Recognize new target i860-*-coff.
128 * Makefile.am (ALL_EMULATIONS): Add ecoff_i860.o.
129 (ecoff_i860.c): New rule.
130 * emulparams/coff_i860.sh: New file.
131 * scripttempl/i860coff.sc: New file.
132 * Makefile.in: Regenerate.
134 2003-08-04 Nick Clifton <nickc@redhat.com>
136 * emultempl/elf32.em (before_allocation): Prepend "warning: "
137 to messages produced for .gnu.warning.SYMBOL sections.
139 2003-08-04 Alan Modra <amodra@bigpond.net.au>
141 * emultempl/elf32.em (output_rel_find): Add "isdyn" param. Put
142 .rel.dyn before other reloc sections. Don't stop looking for reloc
143 sections on finding one that isn't allocated. Match .rel even when
144 placing .rela and vice versa, when setting last_rel and
145 last_rel_alloc for the first time. If no reloc sections in script,
146 prefer allocated section over non-alloc.
147 (gld${EMULATION_NAME}_place_orphan): Handle orphan .rel.dyn.
149 2003-07-29 Kaz Kojima <kkojima@rr.iij4u.or.jp>
151 * emulparams/shelf.sh (OTHER_SECTIONS): Don't include .stack
152 section for shared library.
153 * emulparams/shelf32.sh (OTHER_SECTIONS): Likewise.
154 * emulparams/shelf64.sh (OTHER_SECTIONS): Likewise.
156 2003-07-29 Stephane Carrez <stcarrez@nerim.fr>
158 * scripttempl/elfm68hc12.sc: Add gcc_except_table.
159 * scripttempl/elfm68hc11.sc: Likewise.
161 2003-07-28 Alan Modra <amodra@bigpond.net.au>
163 * emulparams/elf64ppc.sh (GOT): Fix for shell brace matching.
165 * emulparams/elf64ppc.sh (GOT): Don't merge .toc into .got for ld -r.
167 2003-07-27 Alan Modra <amodra@bigpond.net.au>
169 * ld.texinfo: Typo fixes. Document SUBALIGN.
170 * ldgram.y (opt_subalign): Add.
171 * ldlex.l (SUBALIGN): Recognize.
172 * ldlang.c (overlay_subalign): New var.
173 (lang_enter_overlay): Add subalign param.
174 (lang_enter_overlay_section): Pass overlay_subalign to
175 lang_enter_output_section_statement.
176 * ldlang.h (lang_enter_overlay): Update.
178 2003-07-24 Nick Clifton <nickc@redhat.com>
180 * po/fr.po: Updated French translation.
182 2003-07-23 Stephane Carrez <stcarrez@nerim.fr>
184 * scripttempl/elfm68hc11.sc: Keep ctor/dtor sections; Take into
185 account .tramp sections;
186 * scripttempl/elfm68hc12.sc: Likewise.
188 2003-07-17 Charles Wilson <cwilson@ece.gatech.edu>
190 * ld/pe-dll.c: Add libcygwin to autofilter_liblist[]
192 2003-07-17 Nick Clifton <nickc@redhat.com>
194 * po/es.po: New Spanish translation.
196 2003-07-11 Alan Modra <amodra@bigpond.net.au>
198 * po/ld.pot: Regenerate.
200 2003-07-10 Bob Wilson <bob.wilson@acm.org>
202 * emulparams/elf32xtensa.sh (OTHER_READONLY_SECTIONS): Replace .xt.lit
203 with new .got.loc section.
204 (OTHER_READWRITE_SECTIONS): Do not combine linkonce sections for
205 non-relocating links.
206 (OTHER_SECTIONS): Add .xt.lit here. Change it to keep linkonce
207 sections separate for non-relocating links; likewise for .xt.insn.
209 2003-07-10 Alexandre Oliva <aoliva@redhat.com>
211 2001-08-22 Alexandre Oliva <aoliva@redhat.com>
212 * emulparams/elf32am33lin.sh: Adjust to match kernel parameters.
213 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
214 * configure.host (am33_2.0-*-linux*): Added.
215 * configure.tgt (am33_2.0-*-linux*): Likewise.
216 * emulparams/elf32am33lin.sh: New.
217 * Makefile.am (eelf32am33lin.c): New rule.
218 * Makefile.in: Rebuilt.
220 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
222 2001-04-17 Alexandre Oliva <aoliva@redhat.com>
223 * emulparams/mn10300.sh (TEMPLATE_NAME): Define.
224 (GENERATE_SHLIB_SCRIPT): Likewise.
226 2003-07-10 Alan Modra <amodra@bigpond.net.au>
228 * emulparams/elf64ppc.sh (OTHER_GOT_SECTIONS): Don't define.
230 * emultempl/ppc64elf.em (stub_added): New static var.
231 (ppc_create_output_section_statements): Call ppc64_elf_init_stub_bfd.
232 (ppc_add_stub_section): Set stub_added.
233 (gld${EMULATION_NAME}_finish): Look for .got rather than .toc. Adjust
234 ppc64_elf_size_stubs call and test for stubs.
235 * scripttempl/elf.sc (GOT): Define and use.
237 2003-07-08 J"orn Rennecke <joern.rennecke@superh.com>
239 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_after_allocation):
240 Allow second call from ldemul_finish.
242 2003-07-04 J"orn Rennecke <joern.rennecke@superh.com>
244 * emulparams/shelf32.sh (STACK_ADDR): Don't define.
245 (OTHER_SECTIONS): Include .stack.
246 * emulparams/shelf64.sh (OTHER_SECTIONS): Likewise.
248 2003-07-02 Jakub Jelinek <jakub@redhat.com>
250 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't include
252 (OTHER_READWRITE_SECTIONS): Include .opd if -pie.
253 * scripttempl/elf.sc: Use SHLIB_DATA_ADDR instead of DATA_ADDR
256 2003-06-28 Alan Modra <amodra@bigpond.net.au>
258 * ld.h: Convert to C90, remove unnecessary prototypes and casts.
259 Replace PTR with void *. Formatting.
260 * ldcref.c: Likewise.
261 * ldctor.c: Likewise.
262 * ldctor.h: Likewise.
263 * ldemul.h: Likewise.
266 * ldfile.c: Likewise.
267 * ldfile.h: Likewise.
268 * ldlang.c: Likewise.
269 * ldlang.h: Likewise.
272 * ldmain.c: Likewise.
273 * ldmain.h: Likewise.
274 * ldmisc.c: Likewise.
275 * ldmisc.h: Likewise.
277 * ldwrite.c: Likewise.
278 * ldwrite.h: Likewise.
279 * lexsup.c: Likewise.
282 * pe-dll.c: Likewise.
283 * pe-dll.h: Likewise.
284 * deffilep.y: Likewise.
285 * deffile.h: Likewise. Don't include ansidecl.h.
286 * emulparams/elf32mcore.sh: Remove unnecessary cast.
287 * emultempl/m68kcoff.em: Likewise.
288 * emultempl/m68kelf.em: Likewise.
289 * emultempl/ticoff.em: Remove lang_add_output_format declaration.
290 * sysdep.h: Don't include ansidecl.h.
291 * Makefile.am: Run "make dep-am".
292 * Makefile.in: Regenerate.
294 2003-06-27 Nick Clifton <nickc@redhat.com>
296 * deffilep.y (def_file_add_directive): Cope with NUL seperated
297 directives. Fix reporting of unparseable directives.
298 (def_error): Check for a NULL def_filename.
300 2003-06-27 Alan Modra <amodra@bigpond.net.au>
302 * emultempl/aix.em: Convert to C90, remove unnecessary prototypes
303 and casts. Replace PTR with void *. Formatting.
304 * emultempl/alphaelf.em: Likewise.
305 * emultempl/armcoff.em: Likewise.
306 * emultempl/armelf.em: Likewise.
307 * emultempl/armelf_oabi.em: Likewise.
308 * emultempl/beos.em: Likewise.
309 * emultempl/elf32.em: Likewise.
310 * emultempl/generic.em: Likewise.
311 * emultempl/gld960.em: Likewise.
312 * emultempl/gld960c.em: Likewise.
313 * emultempl/hppaelf.em: Likewise.
314 * emultempl/linux.em: Likewise.
315 * emultempl/lnk960.em: Likewise.
316 * emultempl/m68hc1xelf.em: Likewise.
317 * emultempl/m68kcoff.em: Likewise.
318 * emultempl/m68kelf.em: Likewise.
319 * emultempl/mipsecoff.em: Likewise.
320 * emultempl/mipself.em: Likewise.
321 * emultempl/mmix-elfnmmo.em: Likewise.
322 * emultempl/mmixelf.em: Likewise.
323 * emultempl/mmo.em: Likewise.
324 * emultempl/needrelax.em: Likewise.
325 * emultempl/netbsd.em: Likewise.
326 * emultempl/pe.em: Likewise.
327 * emultempl/sh64elf.em: Likewise.
328 * emultempl/sunos.em: Likewise.
329 * emultempl/ticoff.em: Likewise.
330 * emultempl/vanilla.em: Likewise.
331 * emultempl/xtensaelf.em: Likewise.
332 * Makefile.am: Correct dependencies.
333 * Makefile.in: Regenerate.
335 2003-06-25 Alan Modra <amodra@bigpond.net.au>
337 * ld.texinfo: Correct spelling of "relocatable".
338 * ldctor.c: Likewise.
340 * ldfile.c: Likewise.
341 * ldint.texinfo: Likewise.
342 * ldlang.c: Likewise.
343 * ldmain.c: Likewise.
344 * ldwrite.c: Likewise.
345 * lexsup.c: Likewise.
346 * emultempl/aix.em: Likewise.
347 * emultempl/alphaelf.em: Likewise.
348 * emultempl/armcoff.em: Likewise.
349 * emultempl/armelf_oabi.em: Likewise.
350 * emultempl/beos.em: Likewise.
351 * emultempl/elf32.em: Likewise.
352 * emultempl/generic.em: Likewise.
353 * emultempl/gld960.em: Likewise.
354 * emultempl/gld960c.em: Likewise.
355 * emultempl/hppaelf.em: Likewise.
356 * emultempl/linux.em: Likewise.
357 * emultempl/lnk960.em: Likewise.
358 * emultempl/m68hc1xelf.em: Likewise.
359 * emultempl/m68kcoff.em: Likewise.
360 * emultempl/m68kelf.em: Likewise.
361 * emultempl/mipsecoff.em: Likewise.
362 * emultempl/mipself.em: Likewise.
363 * emultempl/mmix-elfnmmo.em: Likewise.
364 * emultempl/mmo.em: Likewise.
365 * emultempl/needrelax.em: Likewise.
366 * emultempl/pe.em: Likewise.
367 * emultempl/ppc64elf.em: Likewise.
368 * emultempl/sh64elf.em: Likewise.
369 * emultempl/sunos.em: Likewise.
370 * emultempl/ticoff.em: Likewise.
371 * emultempl/xtensaelf.em: Likewise.
373 2003-06-24 Alan Modra <amodra@bigpond.net.au>
375 * emultempl/ppc32elf.em: Convert to C90.
377 2003-06-20 Alan Modra <amodra@bigpond.net.au>
379 * emultempl/ppc64elf.em: Convert to C90 function definitions, remove
380 unnecessary prototypes and casts.
382 2003-06-19 Alan Modra <amodra@bigpond.net.au>
384 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Dump out
385 statistics from ppc64_elf_build_stubs.
387 2003-06-19 Alan Modra <amodra@bigpond.net.au>
389 * emultempl/ppc64elf.em (build_section_lists): Check return status
390 from ppc64_elf_next_input_section.
392 2003-06-17 H.J. Lu <hongjiu.lu@intel.com>
394 * ldlang.c (section_already_linked): Put back assignment of
397 2003-06-17 Rainer Keuchel <rkeuchel@allgeier.com>
399 * pe-dll.c (generate_reloc): Catch and ignore an ARM_26D
402 2003-06-17 Loren James Rittle <rittle@latour.rsch.comm.mot.com>
404 * configure.host (*-*-freebsd*): Add known path for ld-elf.so.1
405 if not produced by gcc.
407 2003-06-16 Hans-Peter Nilsson <hp@axis.com>
409 * configure.tgt: Add specific case for cris-*-linux-gnu*
410 with crislinux emulation only.
412 2003-06-13 Robert Millan <zeratul2@wanadoo.es>
414 * configure.tgt: Add i386-netbsd-gnu target.
416 2003-06-12 Richard Sandiford <rsandifo@redhat.com>
418 * configure.tgt (mips*-sgi-irix6*): Add the o32 and n64 emulations
419 to $targ_extra_libpath.
421 2003-06-11 H.J. Lu <hongjiu.lu@intel.com>
423 * po/Make-in (DESTDIR): New.
424 (install-data-yes): Support $(DESTDIR).
425 (uninstall): Likewise.
427 2003-06-10 Doug Evans <dje@sebabeach.org>
429 * Makefile.am (ALL_EMULATIONS): Add em32relf.o.
430 * Makefile.in: Regenerate.
432 2003-06-10 Richard Sandiford <rsandifo@redhat.com>
434 * configure.tgt (h8300*): Add h8300sxn emulations.
435 * Makefile.am (ALL_EMULATIONS): Add eh8300sxn.o and eh8300sxnelf.o.
436 (eh8300sxn.c, eh8300sxnelf.c): New rules.
437 * Makefile.in: Regenerate.
438 * emulparams/h8300sxnelf.sh, emulparams/h8300sxn.sh: New files.
439 * scripttempl/h8300sxn.sc: New file.
441 2003-06-10 Alan Modra <amodra@bigpond.net.au>
443 * emulparams/elf64ppc.sh (EXECUTABLE_SYMBOLS, OTHER_BSS_END_SYMBOLS,
444 CTOR_START, CTOR_END, DTOR_START, DTOR_END): Don't define.
446 2003-06-08 Alan Modra <amodra@bigpond.net.au>
448 * emultempl/ppc64elf.em (emit_stub_syms, toc_section): New vars.
449 (build_toc_list): New function.
450 (gld${EMULATION_NAME}_finish): Call build_toc_list and
451 ppc64_elf_reinit_toc. Adjust ppc64_elf_build_stubs call.
452 (OPTION_STUBSYMS): Define.
453 (PARSE_AND_LIST_LONGOPTS): Add emit-stub-syms.
454 (PARSE_AND_LIST_OPTIONS): Document.
455 (PARSE_AND_LIST_ARGS_CASES): Handle.
457 2003-06-05 Roland McGrath <roland@redhat.com>
459 * emultempl/elf32.em (gld${EMULATION_NAME}_list_options): Remove
460 extra \t in -z noexecstack line.
462 2003-05-23 Jakub Jelinek <jakub@redhat.com>
464 * ldgram.y (phdr_type): Grok PT_GNU_STACK.
465 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Add
466 -z execstack and -z noexecstack.
467 (gld${EMULATION_NAME}_list_options): Likewise.
468 * scripttempl/elf.sc: If not -r, discard .note.GNU-stack section.
470 2003-06-03 Michael Snyder <msnyder@redhat.com>
471 and Bernd Schmidt <bernds@redhat.com>
472 and Alexandre Oliva <aoliva@redhat.com>
474 * Makefile.am: Add new emulations for h8300sx.
475 * Makefile.in: Regenerate.
476 * configure.tgt: Add new emulations.
477 * emulparams/h8300sx.sh: New emulation.
478 * emulparams/h8300sxelf.sh: Ditto.
479 * scripttempl/h8300sx.sc: Ditto.
481 2003-06-03 H.J. Lu <hongjiu.lu@intel.com>
483 * ldmisc.c: Include "bfdlink.h".
484 (error_handler): Handle LD_DEFINITION_IN_DISCARDED_SECTION
485 and -LD_DEFINITION_IN_DISCARDED_SECTION.
487 * Makefile.am: Rebuild dependency.
488 * Makefile.in: Regenerated.
490 2003-06-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
492 * emulparams/shlelf_linux.sh (GENERATE_PIE_SCRIPT): Set to yes.
493 * emulparams/shlelf32_linux.sh (GENERATE_PIE_SCRIPT): Likewize.
495 2003-06-02 Fabrizio Gennari <fabrizio.ge@tiscalinet.it>
497 * pe-dll.c (fill_edata): Scan table pe_dll->exports, which is
498 sorted alphabetically, instead of exported_symbols, which is
501 2003-05-30 Ulrich Drepper <drepper@redhat.com>
502 Jakub Jelinek <jakub@redhat.com>
504 * lexsup.c (OPTION_PIE): Define.
505 (ld_options): Add -pie and --pic-executable options.
506 (parse_args): Handle OPTION_PIE.
507 * ldmain.c (main): Initialize link_info.pie and
508 link_info.executable.
509 * genscripts.sh: Generate PIE scripts.
510 * ld.texinfo: Document -pie and --pic-executable options.
511 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open):
512 (gld${EMULATION_NAME}_place_orphan): Likewise.
513 (gld${EMULATION_NAME}_get_script): Include PIE scripts.
514 * scripttempl/elf.sc: In PIE scripts set . the same way as in
516 * emulparams/elf_i386.sh (GENERATE_PIE_SCRIPT): Set to yes.
517 * emulparams/elf64_ia64.sh (GENERATE_PIE_SCRIPT): Likewise.
518 * emulparams/elf32ppc.sh (GENERATE_PIE_SCRIPT): Likewise.
519 * emulparams/elf64ppc.sh (GENERATE_PIE_SCRIPT): Likewise.
520 * emulparams/elf_x86_64.sh (GENERATE_PIE_SCRIPT): Likewise.
521 * emulparams/elf_s390.sh (GENERATE_PIE_SCRIPT): Likewise.
522 * emulparams/elf32_sparc.sh (GENERATE_PIE_SCRIPT): Likewise.
523 * emulparams/elf64_sparc.sh (GENERATE_PIE_SCRIPT): Likewise.
524 * emulparams/elf64alpha.sh (GENERATE_PIE_SCRIPT): Likewise.
525 * emulparams/elf64_s390.sh (GENERATE_PIE_SCRIPT): Likewise.
526 * emulparams/elf_i386.sh (GENERATE_PIE_SCRIPT): Likewise.
528 2003-05-30 H.J. Lu <hongjiu.lu@intel.com>
530 * genscripts.sh: Create tmpdir/libpath.exp.
532 2003-05-30 Nick Clifton <nickc@redhat.com>
534 * emultempl/armelf.em (arm_elf_before_allocation): Replace ASSERT
535 with a test for a NULL bfd_for_interworking.
537 2003-05-29 Jason Thorpe <thorpej@wasabisystems.com>
539 * configure.host (*-*-netbsd*): Set HOSTING_CRT0 and HOSTING_LIBS
540 correctly for more recent versions of NetBSD.
541 (alpha*-*-netbsd*): Remove.
542 (i[3-7]86-*-netbsd*): Remove.
544 2003-05-29 Nick Clifton <nickc@redhat.com>
546 * emultempl/pe.em: Include "safe-ctype.h" instead of <ctype.h>.
548 2003-05-26 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
550 * emulparams/elf64btsmip.sh: Set TEXT_START_ADDR to 0x120000000 to
551 trap on pointer crops.
553 2003-05-21 Marcus Comstedt <marcus@mc.pp.se>
555 * configure.tgt: Check for a target triplet of shl-...-netbsdelf
556 as well as shle-...-netbsdelf.
558 2003-05-16 Kelley Cook <kelleycook@wideopenwest.com>
560 * configure.host: Accept i[3-7]86 variants.
561 * configure.tgt: Likewise.
563 2003-05-15 H.J. Lu <hongjiu.lu@intel.com>
565 * emulparams/elf64_ia64.sh: Don't set COMMONPAGESIZE for now.
567 2003-05-09 Daniel Jacobowitz <drow@mvista.com>
569 * Makefile.am (ALL_EMULATIONS): Add earmelfb.o and earmelfb_linux.o.
570 (earmelfb.c, earmelfb_linux.c): New rules.
571 * Makefile.in: Regenerated.
572 * emulparams/armelfb.sh, emulparams/armelfb_linux.sh: New files.
573 * configure.tgt: Add armeb-elf and arm*b-*-linux-gnu.
575 2003-05-09 Nick Clifton <nickc@redhat.com>
577 * ldlang.c (lang_size_sections_1): Default to generating a
578 fatal error message if a loadable section is not allocated
579 to a memory region when regions are defined.
581 2003-05-09 Alan Modra <amodra@bigpond.net.au>
583 * Makefile.am (em68hc11elf.c): Correct dependencies.
584 (em68hc11elfb.c, em68hc12elf.c, em68hc12elfb.c): Likewise.
585 * Makefile.in: Regenerate.
586 * emultempl/elf32.em (find_exp_assignment): Adjust for changed
587 bfd_elf_record_link_assignment name.
589 2003-05-07 Alexandre Oliva <aoliva@redhat.com>
591 * ldmain.h (overflow_cutoff_limit): Declare.
592 * ldmain.c (overflow_cutoff_limit): Define, initialized to 10.
593 (reloc_overflow): Limit error messages based on it.
594 * lexsup.c (parse_args) <OPTION_VERBOSE>: Set cutoff to
597 2003-05-05 Alan Modra <amodra@bigpond.net.au>
599 * ldlex.l: Accept C style comments in version scripts.
601 2003-04-28 H.J. Lu <hjl@gnu.org>
603 * ldlang.c (lang_process): Add the relax finalize pass.
605 * ldmain.c (main): Initialize link_info.relax_finalizing to
608 2003-04-24 Roland McGrath <roland@redhat.com>
610 * ldgram.y (phdr_type): Grok PT_TLS and PT_GNU_EH_FRAME names.
611 If a name string is unknown, give an error rather than crashing later.
613 2003-04-23 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
615 * Makefile.am (ALL_EMULATIONS): Add eh8300hn.o, eh8300sn.o,
616 eh8300hnelf.o, eh8300snelf.o and respective rules.
617 * Makefile.in: Regenerate.
618 * configure.tgt: Add h8300hn, h8300sn, h8300hnelf, h8300snelf
619 * emulparams/h8300hn.sh: New
620 * emulparams/h8300sn.sh: New
621 * emulparams/h8300hnelf.sh: New
622 * emulparams/h8300snelf.sh: New
623 * scripttempl/h8300hn.sc: new
624 * scripttempl/h8300sn.sc: new
626 2003-04-23 H.J. Lu <hjl@gnu.org>
628 * ldmain.c (link_callbacks): Initialize error_handler.
630 * ldmisc.c (error_handler): New function.
632 * ldmisc.h (error_handler): New prototype.
634 2003-04-21 Stephane Carrez <stcarrez@nerim.fr>
636 * emulparams/m68hc11elf.sh: Use m68hc1xelf.em extra.
637 * emulparams/m68hc11elfb.sh: Likewise.
638 * emulparams/m68hc12elf.sh: Likewise.
639 * emulparams/m68hc12elfb.sh: Likewise.
641 2003-04-19 Stephane Carrez <stcarrez@nerim.fr>
643 * emultempl/m68hc1xelf.em: New file to generate far trampolines on
645 (LDEMUL_BEFORE_ALLOCATION): Override to gather the trampolines to
647 (LDEMUL_FINISH): Override to generate the trampolines after gc and
649 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Override to create the
650 stub file for trampolines.
651 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_LONGOPTS): New options
652 --no-trampoline and --bank-window to control the memory bank window.
654 2003-04-18 H.J. Lu <hjl@gnu.org>
656 * ldfile.c (ldfile_add_library_path): Remove the unused
659 2003-04-18 Andrew Haley <aph@cambridge.redhat.com>
661 * scripttempl/xstormy16.sc (__data, __rdata): New.
663 2003-04-16 Nick Clifton <nickc@redhat.com>
665 * scripttempl/xstormy16.sc: Add .jcr section mapping.
667 2003-04-15 H.J. Lu <hjl@gnu.org>
669 From Debian by Jack Howarth <howarth@nitro.med.uc.edu>:
671 * ldlex.l: Use YY_CURRENT_BUFFER instead of yy_current_buffer.
673 2003-04-15 Rohit Kumar Srivastava <rohits@kpitcummins.com>
675 * h8-doc.texi: Replace occurrances of 'Hitachi' with 'Renesas'.
676 * ld.texinfo: Likewise.
678 2003-04-14 Alan Modra <amodra@bigpond.net.au>
680 From Prashanth Tamraparni <prashanth_t@in.ibm.com>
681 * scripttempl/elf.sc (CTOR): Handle crtbeginS.o, crtendS.o and
682 other variants of crtbegin.o, crtend.o.
684 * scripttempl/crisaout.sc (ctors, dtors): Likewise.
685 * scripttempl/elf_chaos.sc (CTOR, DTOR): Likewise.
686 * scripttempl/elfd10v.sc (CTOR, DTOR): Likewise.
687 * scripttempl/elfd30v.sc (CTOR, DTOR): Likewise.
688 * scripttempl/elfxtensa.sc (CTOR, DTOR): Likewise.
689 * scripttempl/iq2000.sc (CTOR, DTOR): Likewise.
690 * scripttempl/mmo.sc (ctors, dtors): Likewise.
691 * scripttempl/xstormy16.sc (CTOR, DTOR): Likewise.
693 2003-04-09 Dmitry Diky <diwil@mail.ru>
695 * scripttempl/elf32msp430.sc: Add initX, finiX, ctors, dtors
696 sections to respect C++ constructor/destructor. Add ctors/dtors
697 start/stop definitions.
698 * scripttempl/elf32msp430_3.sc: Likewise.
700 2003-04-06 Nick Clifton <nickc@redhat.com>
702 * ld.texinfo (Options): Add a reminder of the target specific
703 nature to the description of the i386 PE specific options, for
704 readers who have not read all the way through the manual.
706 2003-04-04 Svein E. Seldal <Svein.Seldal@solidas.com>
708 * configure.tgt: Fixed bug in list of targ_extra_emuls.
709 * emulparams/tic3xcoff.sh (SCRIPT_NAME): Namespace
710 cleanup. Replace s/c4x/tic4x and s/c3x/tic3x/
711 * emulparams/tic3xcoff_onchip.sh: Ditto
712 * emulparams/tic4xcoff.sh: Ditto
713 * scripttempl/tic4xcoff.sc: Ditto
715 2003-04-03 Nick Clifton <nickc@redhat.com>
717 * NEWS: Mention support for Xtensa architecture.
719 2003-04-02 Nick Clifton <nickc@redhat.com>
721 * pe-dll.c (pe_detail_list): arm-pe targets use underscores.
723 2003-04-01 Danny Smith <dannysmith@users.sourceforge.net>
725 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open):
726 Don't call pe_dll_build_section() if link_info.relocateable.
727 (gld_${EMULATION_NAME}_finish): Don't call pe_dll_fill_sections()
728 if link_info.relocateable.
730 2003-04-01 Fabrizio Gennari <fabrizio.ge@tiscalinet.it>
732 * pe-dll.c (process_def_file): Don't create an export
733 section if there are no exports and we're building an exe
734 (pe_dll_build_sections): Ditto
735 (pe_dll_fill_sections): Conditionalize setting
736 abfd->dll true on info->shared
737 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open):
738 If i386pe or armpe, call pe_dll_build_section()
739 for both exe's and dll's, not just dll's.
740 (gld_${EMULATION_NAME}_finish): For all targets except
741 shpe and mipspe, call pe_dll_fill_sections() for both
742 exe's and dll's, not just dll's.
744 2003-04-02 Bob Wilson <bob.wilson@acm.org>
746 * emulparams/xtensa-config.sh: Remove comment indicating that this is
749 2003-04-01 Bob Wilson <bob.wilson@acm.org>
751 * Makefile.am (ALL_EMULATIONS): Add eelf32xtensa.o.
752 (eelf32xtensa.c): New target.
753 * Makefile.in: Regenerate.
754 * configure.tgt: Handle xtensa-*-*.
755 * gen-doc.texi: Set XTENSA variable.
756 * ld.texinfo: Set XTENSA variable. Add new Xtensa node.
757 * emulparams/elf32xtensa.sh: New file.
758 * emulparams/xtensa-config.sh: Likewise.
759 * emultempl/xtensaelf.em: Likewise.
760 * scripttempl/elfxtensa.sc: Likewise.
762 2003-04-01 Jakub Jelinek <jakub@redhat.com>
764 * configure.tgt (powerpc*-*-linux*): Add elf32ppc to ppc64
765 targ_extra_libpath. Add elf64ppc to ppc targ_extra_libpath
766 if --enable-64-bit-bfd.
768 2003-04-01 Nick Clifton <nickc@redhat.com>
770 * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Change name of
772 * emulparams/armelf_linux.sh (OTHER_READONLY_SECTIONS): Change
773 name of note section.
775 2003-03-31 Alexandre Oliva <aoliva@redhat.com>
777 * ld.texinfo (-Tbss, -Tdata, -Ttext): Document in terms of
780 2003-03-31 David Heine <dlheine@suif.stanford.edu>
782 * ldfile.c (ldfile_add_library_path): Always allocate space for
784 * ldlang.c (lang_register_vers_node): Free the node if it cannot
786 * ldmain.c (set_scripts_dir): Always free the constructed
788 (add_keepsyms_file): Fix memory leak.
789 * ldmisc.c (vfinfo): Likewise.
790 * lexsup.c (parse_args): Likewise.
792 2003-03-25 Stan Cox <scox@redhat.com>
793 Nick Clifton <nickc@redhat.com>
795 Contribute support for Intel's iWMMXt chip - an ARM variant:
797 * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Define.
798 * emulparams/armelf_linux.sh (OTHER_READONLY_SECTIONS): Define.
799 * scripttempl/armcoff.sc (.data): Ensure 8 byte alignment.
802 2003-03-25 Alexandre Oliva <aoliva@redhat.com>
804 * ldmain.h (ld_canon_sysroot, ld_canon_sysroot_len): Declare.
805 * ldmain.c (ld_canon_sysroot, ld_canon_sysroot_len): Define.
806 (main): Initialize them.
807 * ldfile.c: Include pathnames.h.
808 (is_sysrooted_pathname): New.
809 (ldfile_add_library_path): Use it.
810 (ldfile_open_file_search): Likewise. Use IS_ABSOLUTE_PATH. Don't
811 search_dirs if given an absolute pathname.
812 (ldfile_open_file): Issue error message for sysrooted
814 * Makefile.am: Updated dependencies.
815 * Makefile.in: Rebuild.
817 2003-03-24 Daniel Néri <dne@mayonnaise.net>
819 * ld.texinfo: Rename all occurances of C54X to TIC54X.
821 2003-03-19 Andreas Schwab <schwab@suse.de>
823 * ldfile.c (ldfile_try_open_bfd): Pop lexer start condition after
826 2003-03-18 Danny Smith <dannysmith@users.sourceforge.net>
828 * deffilep.y (opt_base): If no number given, set to default
831 2003-03-13 Danny Smith <dannysmith@users.sourceforge.net>
833 * deffilep.y (def_import): Use default extension of "dll"
834 if no extension provided in parsed IMPORT definition.
836 * deffilep.y (def_lex): Revert 2003-03-12 change.
837 (dot_name): New id type and rule.
838 (expline): Use instead of ID.
839 (opt_equal_name): Likewise.
841 2003-03-12 Danny Smith <dannysmith@users.sourceforge.net>
843 * deffilep.y (def_lex): Accept '.' as valid non-lead char.
845 2003-03-07 Christopher Faylor <cgf@redhat.com>
847 * configure.tgt: Add NATIVE_LIB_DIRS for cygwin target back after
848 apparent accidental removal on 2003-01-06.
850 2003-03-04 Dmitry Diky <diwil@mail.ru>
852 * Makefile.am: Add new devices x1122 x1132 emulation
853 * configure.tgt: Likewise.
854 * Makefile.in: Regenerate.
855 * emulparams/msp430x1122.sh: New file.
856 * emulparams/msp430x1132.sh: New file.
858 2003-03-03 Alexandre Oliva <aoliva@redhat.com>
860 * ldmain.c (set_scripts_dir): Look for relative to TOOLBINDIR as
863 * ldfile.h (struct search_dirs): Added sysrooted field.
864 * ldlang.h (struct lang_input_statement_struct): Likewise.
865 * ldfile.c (ldfile_add_library_path): Mark sysrooted paths.
866 (ldfile_open_file_search): Look for sysrooted filename starting
867 with / in ld_sysroot instead of in the current directory. Clear
868 sysrooted flag if it's found in the current directory. Set it
869 from the search directory's sysrooted flag where it is found
871 * ldlang.c (ldlang_sysrooted_script): New static variable.
872 (new_afile): Mark search_file_enums as sysrooted if
873 ldlang_sysrooted_script.
874 (load_symbols): Set ldlang_sysrooted_script according to the
875 script's sysrooted field while processing it.
876 * ld.texinfo: Document INPUT behavior in sysroot.
878 2003-03-02 Danny Smith <dannysmith@users.sourceforge.net>
880 * scripttempl/pe.sc: Use PROVIDE with etext, end, _end,
882 2003-03-03 Alan Modra <amodra@bigpond.net.au>
884 * emulparams/elf64alpha.sh (EXTRA_EM_FILE): Define.
885 (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS,
886 PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES,
887 PARSE_AND_LIST_EPILOGUE): Don't define.
888 * emultempl/alphaelf.em: New file.
890 2003-03-01 Alan Modra <amodra@bigpond.net.au>
892 * ldemul.c: Include getopt.h.
893 * emultempl/elf32.em: Include getopt.h earlier.
894 * emultempl/ticoff.em: Likewise.
896 2003-02-28 Alan Modra <amodra@bigpond.net.au>
898 * emultempl/elf32.em (gld${EMULATION_NAME}_get_script): Add combreloc
899 support when scripts read from files.
901 2003-02-28 Alan Modra <amodra@bigpond.net.au>
903 * ldemul.c (ldemul_parse_args): Return FALSE by default.
904 * ldemul.h (struct ld_emulation_xfer_struct): Update parse_args
907 * ldemul.c (ldemul_add_options, ldemul_handle_option): New functions.
908 (ldemul_parse_args): Return bfd_boolean. Formatting.
909 * ldemul.h (ldemul_add_options, ldemul_handle_option): Declare.
910 (ldemul_parse_args): Adjust.
911 (struct ld_emulation_xfer_struct): Add add_options and handle_option.
912 Return bfd_boolean from parse_args.
913 * lexsup.c (parse_args): Malloc shortopts, longopts and
914 really_longopts. Call ldemul_add_options and ldemul_handle_option.
915 * emultempl/aix.em (gld${EMULATION_NAME}_add_options): Split out from
916 gld${EMULATION_NAME}_parse_args.
917 (gld${EMULATION_NAME}_handle_option): Likewise.
918 (ld_${EMULATION_NAME}_emulation): Adjust initializer.
919 * emultempl/armcoff.em: As for aix.em, but remove parse_args.
920 * emultempl/beos.em: Likewise.
921 * emultempl/pe.em: Likewise.
922 * emultempl/ticoff.em: Likewise.
923 * emultempl/elf32.em: Likewise. Don't duplicate long options either.
924 (gld${EMULATION_NAME}_add_sysroot): Prototype.
925 * emultempl/armelf.em (PARSE_AND_LIST_LONGOPTS): Don't duplicate
927 * emultempl/hppaelf.em (PARSE_AND_LIST_LONGOPTS): Likewise.
928 * emultempl/ppc32elf.em (PARSE_AND_LIST_LONGOPTS): Likewise.
929 * emultempl/ppc64elf.em (PARSE_AND_LIST_LONGOPTS): Likewise.
930 * emultempl/armelf_oabi.em (ld_${EMULATION_NAME}_emulation): Adjust
932 * emultempl/generic.em: Likewise.
933 * emultempl/gld960.em: Likewise.
934 * emultempl/gld960c.em: Likewise.
935 * emultempl/linux.em: Likewise.
936 * emultempl/lnk960.em: Likewise.
937 * emultempl/m68kcoff.em: Likewise.
938 * emultempl/mipsecoff.em: Likewise.
939 * emultempl/sunos.em: Likewise.
940 * emultempl/vanilla.em: Likewise.
941 * emultempl/netbsd.em (gldnetbsd_before_parse): Prototype.
943 2003-02-25 Alexandre Oliva <aoliva@redhat.com>
945 * emultempl/elf32.em (gld${EMULATION_NAME}_add_sysroot): Fix
946 memory allocation error.
948 * Makefile.am (ldmain.o): Define TOOLBINDIR.
949 * Makefile.in: Rebuilt.
950 * ldmain.c (ld_sysroot): Try to set from TOOLBINDIR too.
952 2003-02-21 Bob Wilson <bob.wilson@acm.org>
954 * ldlang.c (lang_size_sections_1): Add CHECK_REGIONS argument and only
955 call os_region_check when it is set.
956 (lang_size_sections): Add CHECK_REGIONS argument and pass it through to
957 lang_size_sections_1.
958 (lang_process): Change lang_size_sections calls to set CHECK_REGIONS
959 only for the last call, not on every relaxation iteration.
960 * ldlang.h (lang_size_sections): Update prototype.
961 * pe-dll.c (pe_dll_fill_sections): Set CHECK_REGIONS argument in calls
962 to lang_size_sections.
963 (pe_exe_fill_sections): Likewise.
964 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Likewise.
965 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
966 * emultempl/ppc64elf.em (ppc_before_allocation): Likewise.
967 (ppc_layout_sections_again): Likewise.
969 2003-02-21 Bob Wilson <bob.wilson@acm.org>
971 * gen-doc.texi: Set ARM and HPPA variables.
972 * ld.texinfo: Fix typos and obvious texinfo mistakes. Make section
973 title capitalization more consistent. Add missing menu entries for
974 machine-specific sections and conditionalize them consistently.
975 Conditionalize text that is irrelevant when SingleFormat is set.
976 Add @group divisions to improve page breaks in long examples.
977 Use @iftex/@ifnottex instead of @iftex/@ifinfo so that HTML output
978 is correct. Remove "FIXME" comment about not using
979 @raisesections/@lowersections. Use @raisesections/@lowersections
980 consistently for machine-specific sections. Change to be more polite
981 about poor bug reports. Replace FDL appendix with include of fdl.texi.
982 Move WIN32 node to match its order in the menus.
983 * fdl.texi: New file.
985 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
987 * configure.in (TARGET_SYSTEM_ROOT): Set default to
988 ${exec_prefix}/${target_alias}/sys-root. Match explicit
989 '${exec_prefix}' (in addition to the expansion thereof) as
991 * configure: Rebuilt.
993 2003-02-20 Phil Edwards <pme@gcc.gnu.org>
995 * ldgram.y (vers_defns): Also recurse with 'EXTERN NAME' patterns.
997 2003-02-20 Harri Porten <porten@kde.org>
999 * ldgram.y (vers_defns): Allow optional trailing semicolon in
1002 2003-02-18 Alan Modra <amodra@bigpond.net.au>
1004 * emultempl/ppc32elf.em: New file.
1005 * emulparams/elf32ppc.sh (EXTRA_EM_FILE): Define.
1006 * Makefile.am (eelf32lppc.c): Depend on emultempl/ppc32elf.em.
1007 (eelf32lppcnto.c): Likewise.
1008 (eelf32lppcsim.c): Likewise.
1009 (eelf32ppcnto.c): Likewise.
1010 (eelf32ppc.c): Likewise.
1011 (eelf32ppc_fbsd.c): Likewise.
1012 (eelf32ppcsim.c): Likewise.
1013 (eelf32ppclinux.c): Likewise.
1014 * Makefile.in: Regenerate.
1016 2003-02-18 Alan Modra <amodra@bigpond.net.au>
1018 * ld.texinfo: Remove spaces between @samp and opening brace.
1020 2003-02-18 Alan Modra <amodra@bigpond.net.au>
1022 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Check
1024 (ppc_before_allocation): Don't do optimizations if wrong hash table.
1025 (gld${EMULATION_NAME}_finish): Ditto.
1027 2003-02-17 Nick Clifton <nickc@redhat.com>
1029 * ldmain.c (main) Default allow_shlib_undefined to true.
1030 * lexsup.c (ld_options): Add --no-allow-shlib-undefined.
1031 (parse_args): Parse the new switch.
1032 * ld.texinfo: Document new switch and default behaviour of
1033 allowing undefined symbols in shared libraries.
1035 2003-02-11 Dmitry Diky <diwil@mail.ru>
1037 * scripttempl/elf32msp430.sc: Add new data anchors definitions.
1038 * scripttempl/elf32msp430_3.sc: Likewise.
1040 2003-02-11 Uwe Stieber <uwe@wwws.de>
1042 * configure.tgt: Add support for kaOS as cross build target
1045 2003-02-10 John Daivid Anglin <dave.anglin@nrc-cnrc.gc.ca>
1047 * hppaelf.em (group_size): Change default back to 1.
1049 2003-02-09 Alan Modra <amodra@bigpond.net.au>
1051 * emultempl/ppc64elf.em: Add "no-tls-optimize" option and support code.
1053 2003-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1055 * hppaelf.em (group_size): Change default to -1.
1057 2003-02-07 Nick Clifton <nickc@redhat.com>
1059 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Remove 'n' short
1061 (PARSE_AND_LIST_LONGOPTS): Add duplicate entry for
1062 no-pipeline-knowledge. This will prevent the getopt package from
1063 thinking that there are any shorter abbreviations for
1064 --no-pipeline-knowledge.
1066 2003-02-07 Jakub Jelinek <jakub@redhat.com>
1068 * genscripts.sh (LIB_PATH): Don't append LIBPATH_SUFFIX to paths
1069 which already have it. Avoid duplicates.
1071 2003-02-06 Jakub Jelinek <jakub@redhat.com>
1073 * emulparams/elf64_s390.sh (LIBPATH_SUFFIX): Set to 64.
1074 * emulparams/elf_x86_64.sh (LIBPATH_SUFFIX): Likewise.
1075 * emulparams/elf64_sparc.sh (LIBPATH_SUFFIX): Set instead of suffix.
1077 2003-02-05 Alan Modra <amodra@bigpond.net.au>
1079 * emultempl/ppc64elf.em (ppc_before_allocation): Size sections then
1080 call ppc64_elf_tls_optimize.
1082 2003-02-03 Daniel Jacobowitz <drow@mvista.com>
1084 * emultempl/elf32.em: Move gld${EMULATION_NAME}_add_sysroot
1085 outside of GNU/Linux conditional.
1087 2003-01-28 Ralf Habacker <ralf.habacker@freenet.de>
1089 * deffilep.y (def_get_module): New function: locate an already
1091 * deffile.h (def_get_module): New prototype.
1092 * pe-dll.c (pe_implied_import_dll): Add code to prevent importing
1093 a dll multiple times.
1095 2003-01-23 Alan Modra <amodra@bigpond.net.au>
1097 * emultempl/sh64elf.em: Include elf32-sh64.h.
1098 (sh64_elf_${EMULATION_NAME}_before_allocation): Adjust for changed
1099 sh64_elf_section_data.
1100 (sh64_elf_${EMULATION_NAME}_after_allocation): Likewise.
1102 2003-01-23 Wu Yongwei <adah@netstd.com>
1104 * ld.texinfo: Remove an extra "i" in --dll-search-prefix.
1105 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Move a
1106 cross-80th-column-margin "an" to the next line.
1108 2003-01-21 Nick Clifton <nickc@redhat.com>
1110 * emulparams/tic3xcoff-onchip.sh: Rename to ...z
1111 * emulparams/tic3xcoff_onchip.sh: ...this.
1112 * Makefile.am (etic3xcoff_onchip.c): Fix name of generated C file.
1113 * Makefile.in: Regenerate.
1115 2003-01-21 Fabio Alemagna <falemagn@aros.org>
1117 * configure.tgt: Handle i[3456]86-*-aros*
1119 2003-01-19 Svein E. Seldal <Svein.Seldal@solidas.com>
1121 * Makefile.am: Added etic3xcoff.o and etic4xcoff_onchip.o
1122 * Makefile.in: Regenerate
1123 * configure.tgt: Added extra target emulations
1124 * emulparams/tic3xcoff.sh: Remove old settings
1125 * emulparams/tic4xcoff.sh: Ditto
1126 * emulparams/tic3xcoff-onchip.sh: Added new
1127 * scripttempl/tic4xcoff.sc: Revise and combine both c3x and c4x
1128 * scripttempl/tic3xcoff.sc: Remove
1130 2003-01-17 Andreas Jaeger <aj@suse.de>
1132 * emultempl/elf32.em (gld${EMULATION_NAME}_add_sysroot): Do not
1135 2003-01-16 Alan Modra <amodra@bigpond.net.au>
1137 * Makefile.in: Regenerate.
1139 2002-01-14 Charles Wilson <cwilson@ece.gatech.edu>
1141 * ld.texinfo (node WIN32): Some clarifications
1142 and formatting fixups.
1144 2003-01-09 Chris Demetriou <cgd@broadcom.com>
1146 * ldmain.c (get_emulation): Sort -mipsNN checks in the usual
1147 order, and handle (ignore) -mips32r2.
1149 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
1151 * ldmain.c (main): Make sure ld_sysroot is initialized.
1153 2003-01-06 Daniel Jacobowitz <drow@mvista.com>
1155 * Makefile.am (eelf32iq10.c): Fix tab/whitespace mixup.
1157 * Makefile.am (ldmain.o): Add @TARGET_SYSTEM_ROOT_DEFINE@.
1158 (GENSCRIPTS): Add @use_sysroot@.
1159 * Makefile.in: Regenerated.
1160 * configure.host: Move setting of NATIVE_LIB_DIRS to...
1161 * configure.tgt: ... here. Use ${target} instead of ${host}
1162 for NATIVE_LIB_DIRS.
1163 * configure.in: Add --with-sysroot.
1164 * configure: Regenerated.
1165 * genscripts.sh: Accept use_sysroot option. Set new variables
1166 NATIVE and USE_LIBPATH. Prepend "=" to directory names if
1167 $use_sysroot. Don't search $tool_lib if $use_sysroot.
1168 * ldfile.c (ldfile_add_library_path): Handle leading '='.
1169 * ldmain.c (TARGET_SYSTEM_ROOT): Define if not defined.
1170 (ld_sysroot): New variable.
1171 (main): Initialize ld_sysroot.
1172 * ldmain.h (ld_sysroot): New extern.
1173 * emultempl/elf32.em: Use NATIVE and USE_LIBPATH instead of
1174 searching $EMULATION_LIBPATH.
1175 (gld${EMULATION_NAME}_add_sysroot): New function.
1176 (gld${EMULATION_NAME}_check_ld_so_conf): Use it. Honor ld_sysroot.
1177 (gld${EMULATION_NAME}_after_open): Likewise. Only search
1178 environment variables if $NATIVE.
1179 * ld.texinfo (Options): Mention "=" prefix in the description of -L.
1180 * NEWS: Mention --with-sysroot.
1182 * emulparams/elf32bmipn32-defs.sh: Set NATIVE and LIBPATH_SUFFIX
1183 instead of setting LIB_PATH.
1184 * emulparams/elf32ppc.sh: Likewise.
1185 * emulparams/elf64_s390.sh: Likewise.
1186 * emulparams/elf64_sparc.sh: Likewise.
1187 * emulparams/elf64ppc.sh: Likewise.
1188 * emulparams/elf_x86_64.sh: Likewise.
1190 * emulparams/elf64_aix.sh: Add "=" prefixes to LIB_PATH.
1191 * emulparams/elf64hppa.sh: Add "=" prefixes to LIB_PATH.
1193 2003-01-03 Charles Wilson <cwilson@ece.gatech.edu>
1195 * pe-dll.c (autofilter_symbollist): Add cygwin_crt0.
1197 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
1199 * Makefile.am (ldmain.o): Pass BINDIR.
1200 * Makefile.in: Regenerated.
1201 * ldmain.c (set_scripts_dir): Use make_relative_prefix for the first
1204 2003-01-02 Ben Elliston <bje@redhat.com>
1206 * Makefile.am (ALL_EMULATIONS): Add eelf32iq2000.o.
1207 (eelf32iq2000.c): New target.
1208 * Makefile.in: Regenerate.
1209 * configure.tgt: Handle iq2000-*-elf.
1210 * emulparams/elf32iq10.sh: New file.
1211 * emulparams/elf32iq2000.sh: New file.
1212 * scripttempl/iq2000.sc: New file.
1214 2003-01-02 Charles Wilson <cwilson@ece.gatech.edu>
1216 * pe-dll.c (autofilter_symbollist): Add do_pseudo_reloc
1217 and _pei386_runtime_relocator to the exclude list.
1219 2003-01-01 Kazu Hirata <kazu@cs.umass.edu>
1221 * ldfile.c: Fix comment typos.
1222 * ldlang.c: Likewise.
1224 * pe-dll.c: Likewise.
1226 2003-01-01 Daniel Jacobowitz <drow@mvista.com>
1228 Suggested by Manfred Hollstein <manfred.h@gmx.net>:
1229 * Makefile.am (ld.1): Depend on configdoc.texi
1231 * Makefile.in: Regenerated.
1233 2002-12-24 Dmitry Diky <diwil@mail.ru>
1235 * Makefile.am: Add msp430 target.
1236 * configure.tgt: Likewise.
1237 * Makefile.in: Regenerate.
1238 * emulparams/msp430x???.sh: New files. Linker script parameters
1239 for various msp430 configurations.
1240 * gen-doc.texi: Enable msp430 documenation.
1241 * ld.texinfo: Document msp430 sections.
1242 * scripttempl/elf32msp430.sc: New file. Linker script for msp430.
1243 * scripttempl/elf32msp430_3.sc: New file. Linker script for msp430.
1245 2002-12-30 Ralf Habacker <Ralf.Habacker@freenet.de>
1246 Charles Wilson <cwilson@ece.gatech.edu>
1248 * config.in (HAVE_REALPATH): New entry.
1249 (HAVE_SYS_STAT_H, HAVE_SYS_TYPES_H): Removed: obsolete.
1251 2002-12-30 Ralf Habacker <ralf.habacker@freenet.de>
1253 * ld.texinfo: New win32 topics: 'symbol aliasing' and 'export dll
1256 2002-12-23 Alan Modra <amodra@bigpond.net.au>
1258 * ldmain.c (main): Init "strip_discarded".
1259 * lexsup.c (OPTION_STRIP_DISCARDED): Define.
1260 (OPTION_NO_STRIP_DISCARDED): Define.
1261 (ld_options): Add "strip-discarded" and "no-strip-discarded".
1262 (parse_args): Handle them.
1264 2002-12-23 Nick Clifton <nickc@redhat.com>
1266 * ld.h (struct args_type): Add new field
1267 'accept_unknown_input_architecture'.
1268 * ldmain.c (main): Initialise 'accept_unknown_input_architecture'
1270 * ldlang.c (lang_check): Pass accept_unknown_input_architecture to
1271 bfd_arch_get_compatible.
1272 * ldfile.c (ldfile_try_open_bfd): Likewise.
1273 * lexsup.c (ld_options): Add new command line switch
1274 --accept-unknown-input-architecture and its inverse.
1275 (parse_args): Handle --accept-unknown-input-architecture.
1276 * ld.texinfo: Document new linker option.
1277 * NEWS: Mention new linker option.
1279 2002-12-20 Alan Modra <amodra@bigpond.net.au>
1281 * ldmain.c (main): Re-order link_info initialization. Init all
1284 2002-12-19 Charles Wilson <cwilson@ece.gatech.edu>
1286 * ld.texinfo: Clarify and extend the documentation
1287 in the Machine Dependent, WIN32 section.
1289 2002-12-18 Ralf Habacker <ralf.habacker@freenet.de>
1291 * ld.texinfo: Add win32 machine depending section.
1292 * gen-doc.texi: Enable win32 machine depending section.
1294 * configure.host: Add win32 library search path.
1296 2002-12-17 Ralf Habacker <ralf.habacker@freenet.de>
1298 * emultempl/pe.em (pe_find_data_imports): Don't search for data
1299 import when auto-import is disabled.
1301 2002-12-17 Danny Smith <dannysmith@users.sourceforge.net>
1303 * emultempl/pe.em (..._recognized_file): Use LD_PATHMAX+1 to
1304 account for trailing '\0'.
1306 2002-12-17 Nick Clifton <nickc@redhat.com>
1308 * emultempl/pe.em (longopts): Duplicate entry for --compact-implib
1309 so that it is not confused with -c.
1311 2002-12-13 Ralf Habacker <Ralf.Habacker@freenet.de>
1312 Charles Wilson <cwilson@ece.gatech.edu>
1314 * configure.in: Add check for realpath function.
1315 * configure: Regenerate.
1316 * config.in: Regenerate.
1317 * aclocal.m4: Regenerate.
1318 * deffile.h: Add .data field to def_file_import
1320 * pe-dll.c (pe_proces_import_defs): Use .data field of
1321 def_file_import structure to initialize flag_data field of
1322 def_file_export structure.
1323 (pe_implied_import_dll): New variables exp_funcbase and
1324 [data|bss]_[start|end]. Use DLL's internal name to set dll_name,
1325 not filename (which may be a symlink). Scan the sections and
1326 initialize [data|bss]_[start|end]. When scanning the export
1327 table, skip _nm_ symbols, and mark any symbols whose rva indicates
1328 that it is in the .bss or .data sections as data.
1329 * sysdep.h: Include limits.h and sys/param.h, and define
1330 LD_PATHMAX as appropriate. Also define REALPATH as realpath if it
1331 exists, NULL otherwise.
1332 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Call
1333 pe_process_import_defs before pe_find_data_imports, so that
1334 auto-import will check the virtual implib as well as "real"
1336 (gld_${EMULATION_NAME}_recognized_file): Use REALPATH to follow
1337 symlinks to their target; check that the target's extension is
1338 .dll before calling pe_implied_import_dll(), not the filename
1339 itself (which may be a symlink).
1341 2002-12-10 Alan Modra <amodra@bigpond.net.au>
1343 * emultempl/elf32.em (struct orphan_save): Add os_tail field.
1344 (gld${EMULATION_NAME}_place_orphan): Re-order output_section_statement
1347 2002-12-08 Alan Modra <amodra@bigpond.net.au>
1349 * ldlang.h: Formatting.
1351 2002-12-07 Alan Modra <amodra@bigpond.net.au>
1353 * ldlang.c (init_os): Ensure sections mentioned in load_base
1356 2002-12-05 Alan Modra <amodra@bigpond.net.au>
1358 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Set
1359 load_base for orphans that follow a section with load_base set.
1361 2002-12-01 H.J. Lu <hjl@gnu.org>
1363 * ld.texinfo: Remove the extra `;' in sample version script.
1365 2002-11-30 Alan Modra <amodra@bigpond.net.au>
1367 * configure.host: Correct dynamic-linker for powerpc64 hosts.
1369 * Makefile.am (eelf32ppcwindiss.c): Correct dependencies.
1370 * Makefile.in: Regenerate.
1372 * ld.h, ldcref.c, ldctor.c, ldctor.h, ldemul.c, ldemul.h, ldexp.c,
1373 ldexp.h, ldfile.c, ldfile.h, ldgram.y, ldlang.c, ldlang.h, ldmain.c,
1374 ldmain.h, ldmisc.c, ldwrite.c, lexsup.c, mri.c, pe-dll.c, pe-dll.h,
1375 emulparams/elf32b4300.sh, emultempl/aix.em, emultempl/armcoff.em,
1376 emultempl/armelf.em, emultempl/armelf_oabi.em, emultempl/beos.em,
1377 emultempl/elf32.em, emultempl/generic.em, emultempl/gld960.em,
1378 emultempl/gld960c.em, emultempl/hppaelf.em, emultempl/linux.em,
1379 emultempl/lnk960.em, emultempl/m68kcoff.em, emultempl/mipsecoff.em,
1380 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em, emultempl/mmo.em,
1381 emultempl/needrelax.em, emultempl/pe.em, emultempl/ppc64elf.em,
1382 emultempl/sh64elf.em, emultempl/sunos.em, emultempl/ticoff.em: Replace
1383 boolean with bfd_boolean, true with TRUE, false with FALSE. Simplify
1384 comparisons of bfd_boolean vars with TRUE/FALSE. Formatting.
1386 2002-11-27 David O'Brien <obrien@FreeBSD.org>
1388 * configure.host: Fix generic FreeBSD configuration entry.
1390 2002-11-27 H.J. Lu <hjl@gnu.org>
1392 * ld.texinfo: Add the missing `;' to sample version scripts.
1394 2002-11-20 Alan Modra <amodra@bigpond.net.au>
1396 * emulparams/elf64ppc.sh (SEGMENT_SIZE): Don't define.
1398 2002-11-14 Egor Duda <deo@logos-m.ru>
1400 * ldmain.c (main): Make runtime relocs disabled by default. Remove
1401 assignment which has no effect.
1402 * pe-dll.h (pe_create_import_fixup): Change prototype.
1403 * pe-dll.c (make_runtime_pseudo_reloc): New function.
1404 (pe_create_runtime_relocator_reference): Ditto.
1405 (pe_create_import_fixup): Handle relocations with non-zero addends.
1406 * emultempl/pe.em: Add options --enable-runtime-pseudo-reloc and
1407 --disable-runtime-pseudo-reloc.
1408 (make_import_fixup): Handle relocations with non-zero addends. Create
1409 an external reference to _pei386_runtime_relocator symbol if at least
1410 one pseudo reloc was created.
1411 * ld.texinfo: Document --enable-runtime-pseudo-reloc and
1412 --disable-runtime-pseudo-reloc options.
1414 2002-11-12 Earl Chew <earl_chew@agilent.com>
1416 * ldlang.c (lang_add_section): Discard debugging sections that have
1417 been marked SEC_EXCLUDE.
1419 2002-11-12 Nick Clifton <nickc@redhat.com>
1421 * configure.in (ALL_LINGUAS): Add da.
1422 * configure: Regenerate.
1423 * po/da.po: New Danish translation.
1425 2002-11-12 Alan Modra <amodra@bigpond.net.au>
1427 * emultempl/ppc64elf.em (ppc_before_allocation): New function.
1428 (LDEMUL_BEFORE_ALLOCATION): Define.
1429 (gld${EMULATION_NAME}_finish): Run discard_info for relocatable
1431 * emultemp/hppaelf.em ((gld${EMULATION_NAME}_finish): Likewise.
1433 2002-11-11 Christopher Faylor <cgf@redhat.com>
1435 * configure.tgt (LIB_PATH): Default to searching w32api directory under
1438 2002-11-11 Charles Wilson <cwilson@ece.gatech.edu>
1440 * pe-dll.c (autofilter_liblist): add libmingwex and libgcj to the list
1441 of restricted auto-export libs.
1443 2002-11-11 Charles Wilson <cwilson@ece.gatech.edu>
1445 * pe-dll.c (autofilter_liblist): Generalize library names to catch more
1446 creative library naming instances like, e.g., libstdc++-2.a.
1448 2002-11-06 Alexandre Oliva <aoliva@redhat.com>
1450 * emulparams/elf32btsmipn32.sh (TEXT_DYNAMIC): Define.
1451 * emulparams/elf64btsmip.sh (TEXT_DYNAMIC): Likewise.
1453 2002-11-07 Danny Smith <dannysmith@users.sourceforge.net>
1455 * deffilep.y (def_lex): Handle '@' as first character of an ID.
1456 * pe-dll.c (auto-export): Filter on "_imp_" prefix, not "_imp__".
1457 (make_one): Don't prefix decorated fastcall symbols with '_'.
1458 (pe_process_import_defs): Likewise.
1459 * emultempl/pe.em (pe_fixup_stdcalls): Don't fixup fastcall
1460 symbols to cdecl names or vise-versa.
1462 2002-10-13 Eric Kohl <ekohl@rz-online.de>
1464 * pe-dll.c (process_def_file): Handle fastcall symbols when
1465 generating undecorated aliases. Don't prefix decorated fastcall
1467 (fill_exported_offsets): Don't prefix decorated fastcall symbols
1470 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
1472 * emultempl/aix.em: Use include <> for generated headers.
1473 * emultempl/beos.em: Likewise.
1474 * emultempl/elf32.em: Likewise.
1475 * emultempl/pe.em: Likewise.
1476 * ldctor.c: Likewise.
1477 * ldexp.c: Likewise.
1478 * ldfile.c: Likewise.
1479 * ldlang.c: Likewise.
1480 * ldlex.c: Likewise.
1481 * ldlex.l: Likewise.
1482 * ldmain.c: Likewise.
1483 * ldmisc.c: Likewise.
1484 * ldwrite.c: Likewise.
1485 * lexsup.c: Likewise.
1487 * pe-dll.c: Likewise.
1489 2002-10-23 Jakub Jelinek <jakub@redhat.com>
1491 * emultempl/elf32.em (place_orphan): Don't put non-allocated .rel*
1492 sections into .rel{,a}.dyn.
1494 2002-10-23 Nick Clifton <nickc@redhat.com>
1496 * lexsup.c (OPTION_NO_OMAGIC): Define.
1497 (ld_options): Add "no-omagic" option.
1498 (parse_args): Parse --no-omagic.
1499 * ld.texinfo: Document --no-omagic.
1500 * NEWS: Mention new option.
1502 2002-10-21 Danny Smith <dannysmith@users.sourceforeg.net>
1504 * scripttempl/pe.sc (__RUNTIME_PSEUDO_RELOC_LIST__,
1505 __RUNTIME_PSEUDO_RELOC_LIST_END__): Add only when relocating.
1507 2002-10-22 Alexandre Oliva <aoliva@redhat.com>
1509 * emulparams/elf32bmipn32-defs.sh: Set ELFSIZE according to
1510 emulation name. Set LIB_PATH only for native tools, and
1511 search the ABI-specific versions of NATIVE_LIB_DIRS before the
1512 .../lib variants, not instead of them. Mostly copied from...
1513 * emulparams/elf32ppc.sh: ... here. Fixed typo.
1514 * emulparams/elf64bmip-defs.sh: Backed out.
1515 * emulparams/elf64bmip.sh: Import elf32bmipn32-defs.sh again.
1516 * emulparams/elf64btsmip.sh: Likewise.
1517 (DATA_ADDR, NONPAGED_TEXT_START_ADDR, SHLIB_TEXT_START_ADDR,
1518 TEXT_DYNAMIC): Removed.
1520 2002-10-17 Alexandre Oliva <aoliva@redhat.com>
1522 * emulparams/elf32bmipn32-defs.sh (LIB_PATH): Set to /usr/lib32.
1523 (GENERATE_SHLIB_SCRIPT): Set to yes.
1524 (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Moved to...
1525 * emulparams/elf32bmipn32.sh: here.
1526 (GENERATE_SHLIB_SCRIPT): Deleted as redundant.
1527 * emulparams/elf32btsmipn32.sh: Delete redundant unsets.
1528 * emulparams/elf64bmip-defs.sh: New file. Extend
1529 elf32bmipn32-defs.sh by overiding ELFSIZE and LIB_PATH.
1530 * emulparams/elf64bmip.sh: Bring in definitions from
1532 (ELFSIZE, GENERATE_SHLIB_SCRIPT, LIB_PATH): Delete redundant
1534 (WRITABLE_RODATA): Moved from elf32bmipn32-defs.sh.
1535 * emulparams/elf64btsmip.sh: Bring in definitions from
1537 (ELFSIZE, GENERATE_SHLIB_SCRIPT): Delete, redundant.
1538 (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Delete redundant unsets.
1540 2002-10-16 Jakub Jelinek <jakub@redhat.com>
1542 * configure.tgt (s390x-*-linux*): Add elf_s390 emulation.
1543 (s390-*-linux*): Add elf64_s390 emulation if want64.
1544 * emulparams/elf64_sparc.sh (LIB_PATH): Update to match 2002-05-22
1545 genscript.sh changes.
1546 * emulparams/elf_x86_64.sh (LIB_PATH): Likewise.
1547 * emulparams/elf64_s390.sh (LIB_PATH): Set up native 64 bit dirs.
1549 2002-10-15 Alan Modra <amodra@bigpond.net.au>
1551 * ldlang.c (load_symbols): Revert last change.
1553 2002-10-14 Alan Modra <amodra@bigpond.net.au>
1555 * ldlang.c (load_symbols): Don't call bfd_link_add_symbols when
1557 (lang_reasonable_defaults): Don't compare against false.
1558 (size_input_section): Likewise.
1559 (lang_size_sections_1): Likewise.
1560 (lang_do_assignments): Likewise.
1561 (lang_add_output): Likewise.
1563 * Makefile.am: Run "make dep-am".
1564 * Makefile.in: Regenerate.
1565 * ldver.c: #include "bfdver.h".
1567 2002-10-13 Stephane Carrez <stcarrez@nerim.fr>
1569 * scripttempl/elfm68hc11.sc: Use KEEP for .vectors, .installN,
1571 * scripttempl/elfm68hc12.sc: Likewise.
1573 2002-10-11 Alan Modra <amodra@bigpond.net.au>
1575 * pe-dll.c (make_import_fixup_mark): Avoid type-punned pointer.
1577 * ldgram.y (memory_spec): Provide empty action.
1578 (section <NAME>): Likewise.
1580 2002-10-10 Jakub Jelinek <jakub@redhat.com>
1582 * ldfile.c (ldfile_try_open_bfd): When searching skip linker scripts if
1583 they have OUTPUT_FORMAT not matching actual output format.
1584 * ldlang.c (lang_get_output_target): New function.
1585 (open_output): Use it.
1586 * ldlang.h (lang_get_output_target): New prototype.
1588 2002-10-10 Alan Modra <amodra@bigpond.net.au>
1590 * emultempl/elf32.em (output_rel_find): Prefer .rel script sections
1591 when orphan is .rel, .rela when orphan is .rela.
1592 (gld${EMULATION_NAME}_place_orphan): Handle combreloc .rel* case
1593 first. Remove outsecname var.
1595 2002-10-09 Richard Shann <richard.shann@superh.com>
1596 Stephen Clarke <stephen.clarke@superh.com>
1598 * Makefile.am: Add eshelf32_linux.o and
1599 eshlelf32_linux.o, new emulations for sh64 Linux.
1600 * Makefile.in: Regenerate.
1601 * configure.tgt: Add sh64eb-*-linux* and sh64-*-linux* emulations.
1602 * emulparams/shelf32_linux.sh: New file.
1603 * emulparams/shlelf32_linux.sh: New file.
1605 2002-10-08 H.J. Lu <hjl@gnu.org>
1607 * ldlang.c (lang_file_exist): Removed.
1608 (new_afile): Revert the last change.
1609 * ldlang.h (lang_file_exist): Removed.
1610 * lexsup.c (parse_args): Revert the last change.
1612 2002-10-07 Ralf Habacker <Ralf.Habacker@freenet.de>
1614 * pe-dll.cc (autofilter_symbolprefixlist): Don't re-export
1615 auto-import symbols.
1616 (make_one): Create _nm_<symbol> for data only.
1618 2002-10-05 Elias Athanasopoulos <eathan@otenet.gr>
1620 * ldlang.c (lang_file_exist): New function.
1621 (new_afile): Abort if the filename to be added matches the linker
1623 * ldlang.h: Add prototype for lang_file_exist.
1624 * lexsup.c (parse_args): Abort if the output filename matches
1625 one of the input filenames.
1627 2002-10-02 Alan Modra <amodra@bigpond.net.au>
1629 * emulparams/elf64ppc.sh (MAXPAGESIZE): Set to 0x10000.
1631 2002-09-30 Alan Modra <amodra@bigpond.net.au>
1633 * scripttempl/elfd30v.sc: Order reloc sections placing .plt last.
1634 * scripttempl/elfm68hc11.sc: Likewise.
1635 * scripttempl/elfm68hc12.sc: Likewise.
1637 * emultempl/elf32.em (output_rel_find): Always place orphan loadable
1638 reloc sections just before .rel.plt/.rela.plt.
1639 (gld${EMULATION_NAME}_place_orphan <.rel>): Remove combreloc code.
1640 Only put loadable reloc sections in hold_rel.
1642 2002-09-29 H.J. Lu <hjl@gnu.org>
1644 * emulparams/elf32ppc.sh (OTHER_GOT_RELOC_SECTIONS): New.
1646 2002-09-25 Daniel Jacobowitz <drow@mvista.com>
1648 From "Anita Kulkarni" <AnitaK@kpit.com>
1649 * scripttempl/sh.sc: Handle .eh_frame* and .gcc_exc*
1652 2002-09-25 Alan Modra <amodra@bigpond.net.au>
1654 * genscripts.sh (SEGMENT_SIZE): Use MAXPAGESIZE before
1656 * scripttempl/elf.sc (DATA_SEGMENT_ALIGN): Incorporate
1657 SEGMENT_SIZE alignment.
1658 * emulparams/elf64ppc.sh (DATA_ADDR): Delete.
1659 (SEGMENT_SIZE): Define.
1661 * ldexp.c (fold_unary): New. Split out from exp_fold_tree.
1662 (fold_binary): Correct abs - non-abs case.
1663 (fold_trinary): New. Split out from exp_fold_tree.
1665 2002-09-24 Alan Modra <amodra@bigpond.net.au>
1667 * emulparams/elf64ppc.sh (DATA_ADDR): Define.
1668 * emulparams/elf64_aix.sh (DATA_ADDR): Don't use a fixed address
1669 for start of .data, instead align up to 256M boundary.
1670 * scripttempl/aix.sc: Likewise.
1672 2002-09-22 Mark Elbrecht <snowball3@softhome.net>
1674 * scripttempl/i386go32.sc: Handle bss unique sections.
1676 2002-09-21 Alan Modra <amodra@bigpond.net.au>
1678 * ldmisc.c (vfinfo <%C,%D,%G>): Always output bfd, section and offset.
1680 2002-09-17 Stan Cox <scox@redhat.com>
1682 * emulparams/elf32bmipn32-defs.sh: New file.
1683 * emulparams/elf32bmipn32.sh: Use elf32bmipn32-defs.sh.
1684 * emulparams/elf32btsmipn32.sh: Likewise.
1685 * emulparams/elf64bmip.sh: Likewise.
1686 * emulparams/elf64btsmip.sh: Likewise.
1688 2002-09-16 Bruno Haible <bruno@clisp.org>
1690 * emulparams/elf_i386_fbsd.sh: Set OUTPUT_FORMAT to
1692 * emulparams/elf64alpha_fbsd.sh: Set OUTPUT_FORMAT to
1693 elf64-alpha-freebsd.
1695 2002-09-11 Nick Clifton <nickc@redhat.com>
1697 * NEWS: New TI port supports both C4x and C3x series of DSPs.
1699 * po/tr.po: Updated Turkish translation.
1701 2002-09-06 Jeffrey A Law (law@redhat.com)
1703 * configure.tgt (h8300-*-hms*, h8500-*-hms*): Restore.
1705 2002-09-02 Nick Clifton <nickc@redhat.com>
1707 * scripttempl/v850.sc: Add EXTERN references to __ctbpm __gp and
1709 * emulparams/v850.sh (TEMPLATE_NAME): Define.
1711 2002-08-30 Nick Clifton <nickc@redhat.com>
1713 * scripttempl/elfd10v.sc (MEMORY): Remove UNIFIED, it is not
1714 used. Change INSN to start at 0x01000000 and extend for
1715 256K (ignoring holes). Start the STACK on a word aligned
1717 (.rodata): Start it at the READONLY_START_ADDR.
1719 2002-08-30 Alan Modra <amodra@bigpond.net.au>
1721 * emulparams/elf32ppc.sh (ARCH): Set to "powerpc:common".
1723 2002-08-28 Svein E. Seldal <Svein.Seldal@solidas.com>
1725 * Makefile.am: Add etic4xcoff.o in ALL_EMULATIONS list and
1726 added makefile targets for this file.
1727 * Makefile.in: Regenerate.
1728 * configure.tgt: Added tic4x-coff and c4x-coff emulations.
1729 * NEWS: Mention new port.
1731 2002-08-28 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
1733 * emulparams/tic3xcoff.sh: New file.
1734 * emulparams/tic4xcoff.sh: New file.
1735 * scripttempl/tic3xcoff.sc: New file.
1736 * scripttempl/tic4xcoff.sc: New file.
1738 2002-08-28 Alan Modra <amodra@bigpond.net.au>
1740 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Replace strtoll,
1741 strtoul and strtoull with bfd_scan_vma.
1742 (gld${EMULATION_NAME}_read_file): Likewise.
1744 2002-08-28 Alan Modra <amodra@bigpond.net.au>
1746 * configure.tgt: Remove h8[35]00-*-hms*. Add h8500-*-rtems*.
1748 2002-08-27 Egor Duda <deo@logos-m.ru>
1750 * scripttempl/pe.sc: Handle .rdata_runtime_pseudo_reloc sections.
1751 Add symbols for application to access them.
1753 2002-08-27 Nick Clifton <nickc@redhat.com>
1755 * emultempl/armelf.em: Revert this patch, it is not needed.
1757 2002-08-22 Adam Nemet <anemet@lnxw.com>
1759 2002-08-20 Dan Kegel <dank@kegel.com>
1761 * configure.in: added --with-lib-path argument to ld's configure
1763 * NEWS: Document new switch.
1764 * README: Mention new switch.
1765 * configure: Regenerate.
1766 * Makefile.in: Regenerate.
1768 Based on this patch:
1769 2001-04-25 Christopher Faylor <cgf@cygnus.com>
1771 * Makefile.in (LIB_PATH): Make configurable.
1772 (GENSCRIPTS): Set LIB_PATH in environment.
1773 * configure.in: Substitute LIB_PATH.
1775 2002-08-22 Adam Nemet <anemet@lnxw.com>
1777 * emultempl/armelf.em: Include elf-bfd.h and elf/arm.h.
1778 (arm_elf_finish): Set the last bit of DT_INIT and DT_FINI
1779 depending on the type of the function.
1780 (arm_elf_convert_thumb_symbol_to_address): New function.
1782 2002-08-22 Graeme Peterson <gp@qnx.com>
1784 * Makefile.am: Add esh{l}elf_nto.o files.
1785 * Makefile.in: Regenerate.
1786 * configure.tgt: Add support for sh-**-nto* targets.
1787 * emulparams/shelf_nto.sh: New file.
1788 * emulparams/shlelf_nto.sh: New file.
1790 2002-08-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
1792 * ldlang.c (offsetof): Define if not defined.
1794 2002-08-14 H.J. Lu <hjl@gnu.org>
1796 * configure.tgt: Always enable 64bit emulations for 32bit
1799 2002-08-13 Alan Modra <amodra@bigpond.net.au>
1801 * emulparams/elf32_dlx.sh (TARGET_PAGE_SIZE): Set to 1.
1802 (MAXPAGESIZE): Set to 1.
1804 * ld.h (ALIGN_N): Delete.
1805 * ldexp.h (align_n): Declare.
1806 * ldexp.c (align_n): New function.
1807 (fold_binary): Use align_n instead of ALIGN_N.
1808 (exp_fold_tree): Likewise.
1809 * ldlang.c (lang_size_sections_1): Likewise.
1810 (lang_one_common): Likewise.
1811 * ld.texinfo (ALIGN): Remove power of 2 restriction.
1813 2002-07-31 Graeme Peterson <gp@qnx.com>
1815 * configure.tgt: Add support for powerpc{le}-*-nto* targets.
1816 * Makefile.am: Add eelf32{l}ppcnto.o files.
1817 * Makefile.in: Regenerate.
1818 * emulparams/elf32lppcnto.sh: New file.
1819 * emulparams/elf32ppcnto.sh: New file.
1821 2002-08-07 H.J. Lu <hjl@gnu.org>
1823 * ld.texinfo: Document --no-undefined-version.
1825 * ldlang.c (lang_new_vers_pattern): Set the `symver' and
1826 `script.' fields to 0.
1828 * ldmain.c (main): Initialize the allow_undefined_version to
1831 * lexsup.c (OPTION_NO_UNDEFINED_VERSION): New.
1832 (ld_options): Add --no-undefined-version.
1833 (parse_args): Support OPTION_NO_UNDEFINED_VERSION.
1835 2002-08-07 Nick Clifton <nickc@redhat.com>
1837 * emultempl/armelf.em (arm_elf_before_allocation): Only search for
1838 an interworking bfd if there are input bfds. (107501)
1840 2002-08-06 Alan Modra <amodra@bigpond.net.au>
1842 * emultempl/aix.em (gld*_before_parse): Set default arch. Reverts
1845 2002-08-01 Nick Clifton <nickc@redhat.com>
1847 * emulparams/armelf.sh: Revert previous delta.
1848 * scripttempl/elf.sc: Revert previous delta.
1850 2002-07-31 H.J. Lu <hjl@gnu.org>
1852 * configure.tgt (powerpc*-*-linux*): Enable elf64ppc for
1853 --enable-64-bit-bfd.
1855 2002-07-31 H.J. Lu <hjl@gnu.org>
1857 * configure.tgt: Enable x86-64 emulation for Linux/i386 if
1858 64bit BFD is selected.
1860 2002-07-31 H.J. Lu <hjl@gnu.org>
1862 * configure.tgt: Enable 64bit emulations for 32bit Linux/mips
1863 if 64bit BFD is selected.
1865 2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
1867 * emultempl/netbsd.em (LDEMUL_BEFORE_PARSE): New file to custom set
1868 link_info.common_skip_ar_aymbols.
1869 * emulparams/ns32knbsd.sh (EXTRA_EM_FILE): Refer to extra file.
1871 * ldmain.c (main): Initialize new field
1872 link_info.common_skip_ar_aymbols.
1874 2002-07-31 Adam Nemet <anemet@lnxw.com>
1876 * emulparams/armelf.sh (OTHER_PLT_SECTIONS): New variable. Set it
1878 * scripttempl/elf.sc: Comment it. Use the same way as ${PLT} is
1881 2002-07-31 Nick Clifton <nickc@redhat.com>
1883 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
1884 of the PDP-11 and 2.11BSD a.out support.
1886 2002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1888 * Makefile.am (eelf32btsmipn32.o, eelf32ltsmipn32.o): New emulations
1889 for n32 ABI support.
1890 * Makefile.in: Regenerate.
1891 * configure.tgt (mips64*el-*-linux-gnu*,mips64*-*-linux-gnu*): Add
1892 n32 ABI emulations for these 64 bit targets.
1893 * emulparams/elf32bmipn32.sh: Expand comment.
1894 * emulparams/elf32btsmipn32.sh: New file, for traditional big endian
1896 * emulparams/elf32ltsmipn32.sh: Likewise for little endian.
1898 2002-07-30 Graeme Peterson <gp@qnx.com>
1900 * configure.tgt: Add support for arm-*-nto target.
1901 * Makefile.am: Add earmnto.o file.
1902 * Makefile.in: Regenerate.
1903 * NEWS: Mention port of ARM support to QNX.
1904 * emulparams/armnto.sh: New file.
1906 2002-07-30 Jakub Jelinek <jakub@redhat.com>
1908 * ldlang.c (lang_add_section): Don't turn .tbss into normal sections
1909 for relocatable link.
1910 (lang_size_sections_1): Don't make .tbss zero size for relocatable
1913 2002-07-26 Bernd Schmidt <bernds@redhat.com>
1915 * emulparams/elf32frv.sh (OTHER_RELOCATING_SECTIONS): Delete.
1918 2002-07-25 Nick Clifton <nickc@redhat.com>
1920 * po/sv.po: Updated Swedish translation.
1921 * po/es.po: Updated Spanish translation.
1922 * po/fr.po: Updated French translation.
1924 2002-07-24 Nick Clifton <nickc@redhat.com>
1926 * po/sv.po: Updated Swedish translation.
1927 * po/es.po: Updated Spanish translation.
1929 2002-07-23 Nick Clifton <nickc@redhat.com>
1931 * po/fr.po: Updated French translation.
1933 2002-07-20 Alan Modra <amodra@bigpond.net.au>
1935 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
1936 bomb on /DISCARD/ input section.
1937 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1938 * emultempl/mmo.em (mmo_place_orphan): Likewise.
1940 2002-07-19 Hans-Peter Nilsson <hp@bitrange.com>
1942 * emultempl/mmo.em (mmo_place_orphan): Handle case of no .text
1945 2002-07-16 Denis Chertykov <denisc@overta.ru>
1946 Nick Clifton <nickc@redhat.com>
1947 Frank Ch. Eigler <fche@redhat.com>
1948 John Healy <jhealy@redhat.com>
1950 * configure.tgt: Add support for ip2k-elf.
1951 * Makefile.am: Add support for ip2k-elf.
1952 * Makefile.in: Regenerate.
1953 * emulparams/elf32ip2k.sh: New file.
1954 * scripttempl/ip2k.sc: New file
1955 * NEWS: Mention support for new port.
1957 2002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
1959 * NEWS: Add 'Changes in 2.13'.
1961 2002-07-14 H.J. Lu <hjl@gnu.org>
1963 * ld.texinfo: Document a .symver takes precedence over a
1966 2002-07-12 Alan Modra <amodra@bigpond.net.au>
1968 * emulparams/elf64ppc.sh (ARCH): Set to powerpc:common64.
1969 (COMMONPAGESIZE): Define.
1971 2002-07-09 Alan Modra <amodra@bigpond.net.au>
1973 * emulparams/hppanbsd.sh: Remark that hppaobsd.sh references this file.
1975 2002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
1977 * configure.tgt: Add support for alpha-*-openbsd*, hppa-*-openbsd*,
1978 powerpc-*-openbsd* and sparc64-*-openbsd*.
1979 * Makefile.am (ALL_EMULATIONS): Add ehppaobsd.o.
1980 * Makefile.in: Regenerate.
1981 * emulparams/hppaobsd.sh: New file.
1983 2002-07-05 Alan Modra <amodra@bigpond.net.au>
1985 * ldlang.c (print_wild_statement): Fix output formatting.
1987 2002-07-04 Alan Modra <amodra@bigpond.net.au>
1989 * ldlang.c: (strip_excluded_output_sections): New function.
1990 (lang_process): Call it.
1991 (lang_size_sections_1): Revert 2002-06-10 change.
1993 2002-07-03 Alan Modra <amodra@bigpond.net.au>
1995 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
1997 * Makefile.in: Regenerate.
1999 2002-07-02 Alan Modra <amodra@bigpond.net.au>
2001 * ldfile.c (ldfile_try_open_bfd): Formatting.
2003 * ldmisc.c (demangle): Move so that it doesn't intrude between
2004 vfinfo comment and body. Add comment.
2006 2002-07-01 John David Anglin <dave@hiauly1.hia.nrc.ca>
2008 * emulparams/vax.sh (OUTPUT_FORMAT): Use a.out-vax-bsd format.
2010 2002-07-01 Alan Modra <amodra@bigpond.net.au>
2012 * ldlang.h (entry_sym): Make it a struct bfd_sym_chain.
2013 * ldlang.c (entry_sym): Likewise.
2014 (ldlang_undef_chain_list_type): Likewise.
2015 (lang_finish): Adjust references to entry_symbol.
2016 (lang_add_entry): Likewise.
2017 (lang_gc_sections): Use link_info.gc_sym_list.
2018 (lang_process): Set link_info.gc_sym_list.
2019 * ldlex.l: Include bfdlink.h.
2020 * ldmain.c (main): Init link_info.gc_sym_list.
2021 * emultempl/aix.em: Adjust references to entry_symbol.
2022 * emultempl/armcoff.em: Likewise.
2023 * emultempl/armelf.em: Likewise.
2024 * emultempl/pe.em: Likewise.
2025 * emultempl/ppc64elf.em (ppc_after_open): New function.
2026 (LDEMUL_AFTER_OPEN): Define.
2027 * emulparams/elf64ppc.sh: KEEP .opd sections.
2029 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
2031 * emulparams/m68hc12elfb.sh (EEPROM_MEMORY): Define.
2032 * emulparams/m68hc11elfb.sh (EEPROM_MEMORY): Define.
2033 * emulparams/m68hc11elf.sh (EEPROM_SIZE): Define.
2034 (EEPROM_START_ADDR): Define.
2035 (EEPROM_MEMORY): Define.
2036 * emulparams/m68hc12elf.sh: Likewise.
2037 * scripttempl/elfm68hc11.sc: Handle .eeprom section; handle .softregs
2038 section to put soft registers in .page0.
2039 * scripttempl/elfm68hc12.sc: Likewise but put soft registers in bss.
2041 2002-06-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
2043 * emulparams/hppa64linux.sh (OTHER_GOT_RELOC_SECTIONS): Add rela.opd
2044 section. Add ${RELOCATING-0}.
2046 2002-06-26 J"orn Rennecke <joern.rennecke@superh.com>
2048 * emulparams/shelf.sh (STACK_ADDR): Don't define.
2049 (OTHER_SECTIONS): Define.
2050 * emulparams/shelf_nbsd.sh ((STACK_ADDR): Don't undef.
2051 (OTHER_SECTIONS): Undef.
2053 2002-06-26 Alan Modra <amodra@bigpond.net.au>
2055 * ldmisc.c (demangle): Restore dots stripped from sym name.
2057 2002-06-25 H.J. Lu <hjl@gnu.org>
2059 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
2060 * Makefile.in: Regenerated.
2062 2002-06-20 Nick Clifton <nickc@cambridge.redhat.com>
2064 * ld.texinfo (Bug Reporting): Update text to suggest a limit on
2065 the size of attached object files, to allow make the object files
2066 available via FTP or HTTP and to mention that the mail will be
2067 sent to a mailing list.
2069 2002-06-20 Nathanael Nerode <neroden@twcny.rr.com>
2071 * configure.host (romp): Drop support.
2073 2002-06-18 Chris Demetriou <cgd@broadcom.com>
2075 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Check
2076 section flags for SEC_DATA, rather than for SEC_CODE being unset.
2078 2002-06-18 Chris Demetriou <cgd@broadcom.com>
2080 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Fix
2081 format specifier used to print BFD name.
2083 2002-06-18 Dave Brolley <brolley@redhat.com>
2085 From Catherine Moore, Michael Meissner, Jim Blandy:
2086 * emulparams/elf32frv.sh: New file.
2087 * configure.tgt: Support frv-*-*.
2088 * Makefile.am (ALL_EMULATIONS): Add eelf32frv.o.
2089 (eelf32frv.c): New target.
2091 2002-06-17 Tom Rix <trix@redhat.com>
2093 * emultempl/elf32.em: gld*_get_script: Check for
2094 GENERATE_COMBRELOC_SCRIPT.
2095 * scripttempl/elfd10v.sc : Fix STACK and INSN.
2096 * emulparams/d10velf.sh : Fix TEXT_START_ADDR.
2098 2002-06-13 J"orn Rennecke <joern.rennecke@superh.com>
2100 * configure.tgt: Add support for sh[1234]*le*-*-elf, sh[1234]*-*-elf.
2102 2002-06-12 H.J. Lu <hjl@gnu.org>
2104 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Return
2105 false if xvec doesn't match.
2107 2002-06-10 Richard Sandiford <rsandifo@redhat.com>
2109 * ldlang.c (lang_size_sections_1): Skip removed output sections.
2111 2002-06-08 Alan Modra <amodra@bigpond.net.au>
2113 * ldexp.c: Replace CONST with const.
2114 * ldfile.c: Likewise.
2115 * ldfile.h: Likewise.
2116 * ldlex.l: Likewise.
2118 * pe-dll.h: Likewise.
2120 2002-06-07 Alan Modra <amodra@bigpond.net.au>
2122 * emultempl/ppc64elf.em (new_vers_pattern): Warning fix.
2124 2002-06-07 Charles Wilson <cwilson@ece.gatech.edu>
2126 * ldmain.c (main): initialize link_info.pei386_auto_import
2127 to -1 == implicit enable.
2128 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
2129 initialize link_info.pei386_auto_import to -1 == implicit
2131 (gld_${EMULATION_NAME}_parse_args): When processing
2132 --enable-auto-import and --disable-auto-import options, use
2133 '1' and '0' instead of 'true' and 'false'.
2134 (pe_find_data_imports): Only issue message about auto-import
2135 when the feature is implicitly enabled. Downgrade message to
2136 informational instead of warning.
2138 2002-06-07 Alan Modra <amodra@bigpond.net.au>
2140 * scripttempl/elf.sc (.tbss): Fix mismatched parentheses/braces.
2142 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
2144 * configure.host (hppa*64*-*-hpux11*): Define NATIVE_LIB_DIRS,
2145 HOSTING_CRT0 and HOSTING_LIBS.
2147 2002-06-05 J"orn Rennecke <joern.rennecke@superh.com>
2149 * configure.tgt (shle*-*-elf*, sh64le-*-elf*): New configurations.
2151 2002-06-05 Jason Thorpe <thorpej@wasabisystems.com>
2153 * emulparams/ns32knbsd.sh (EXECUTABLE_SYMBOLS): Set _DYNAMIC to 0.
2154 (NONPAGED_TEXT_START_ADDR): Set to 0x1000.
2156 2002-06-05 Alan Modra <amodra@bigpond.net.au>
2158 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Place
2159 SEC_EXCLUDE sections when doing a relocatable link.
2161 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
2163 * Makefile.am (ALL_EMULATIONS): Add eshelf32_nbsd.o,
2164 eshlelf32_nbsd.o, eshelf64_nbsd.o, and eshlelf64_nbsd.o.
2165 (eshelf32_nbsd.c, eshelf64_nbsd.c, eshlelf32_nbsd.c)
2166 (eshlelf64_nbsd.c): New rules.
2167 * Makefile.in: Regenerate.
2168 * configure.tgt (sh5le-*-netbsd*, sh5-*-netbsd*, sh64le-*-netbsd*)
2169 (sh64-*-netbsd*): New targets.
2170 * emulparams/shelf32_nbsd.sh: New file.
2171 * emulparams/shelf64_nbsd.sh: New file.
2172 * emulparams/shlelf32_nbsd.sh: New file.
2173 * emulparams/shlelf64_nbsd.sh: New file.
2175 2002-06-04 Alan Modra <amodra@bigpond.net.au>
2177 * ldlang.c (section_already_linked): Call bfd_discard_group. Typo fix.
2179 2002-06-02 Marek Michalkiewicz <marekm@amelek.gda.pl>
2181 * scripttempl/avr.sc: Changes to support current GCC and avr-libc,
2182 C++ constructors/destructors, loosely based on the m68hc11 port.
2184 2002-05-31 Alan Modra <amodra@bigpond.net.au>
2186 * Makefile.in: Regenerate.
2187 * aclocal.m4: Regenerate.
2188 * config.in: Regenerate.
2189 * configure: Regenerate.
2191 2002-05-31 Graeme Peterson <gp@qnx.com>
2193 * Makefile.am (ALL_EMULATIONS): Add ei386nto.o.
2194 (ei386nto.c): Add rule.
2195 * Makefile.in: Regenerate.
2196 * configure.tgt: Add i[3456]86-*-nto-qnx*.
2197 * emulparams/i386nto.sh: New file.
2199 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
2201 * NEWS: Add entry for VAX ELF support.
2203 2002-05-29 Matt Thomas <matt@3am-software.com>
2204 Jason Thorpe <thorpej@wasabisystems.com>
2206 * Makefile.am (ALL_EMULATIONS): Add eelf32vax.o and evaxnbsd.o.
2208 (evaxnbsd.c): New rules.
2209 * Makefile.in: Regenerate.
2210 * configure.tgt (vax-*-netbsdelf*)
2212 (vax-*-netbsd*): New targets.
2213 * emulparams/elf32vax.sh: New file.
2214 * emulparams/vaxnbsd.sh: New file.
2216 2002-05-29 Adam Nemet <anemet@lnxw.com>
2218 * emultempl/armelf.em (arm_elf_after_open): Don't determine
2219 bfd_for_interwork, instead add glue sections to each input bfd.
2220 (bfd_for_interwork): New global.
2221 (arm_elf_set_bfd_for_interworking): New function.
2222 (arm_elf_before_allocation): Use it.
2224 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
2226 * Makefile.am: Add DLX make target.
2227 * configure.tgt: Add DLX configuration.
2228 * Makefile.in: Regenerate.
2229 * emulparams/elf32_dlx.sh: New file
2230 * scripttempl/dlx.sc: New file
2232 2002-05-27 Per Lundberg <per@caleb.dnsalias.org>
2234 * Makefile.am (eelf_i386_chaos): Use elf_chaos.sc script.
2235 * Makefile.in: Regenerate.
2236 * emulparams/elf_chaos.sh: Use elf_chaos script.
2237 * scripttempl/elf_chaos.sc: New file.
2239 2002-05-27 Richard Sandiford <rsandifo@redhat.com>
2241 * ldlang.c (lang_size_sections_1): Move check for conflicting load
2242 addresses and regions from here...
2243 (lang_get_regions): ...to this new function.
2244 (lang_leave_output_section_statement): Use lang_get_regions.
2245 (lang_leave_overlay): Likewise.
2246 * mri.c (mri_draw_tree): Pass null as last argument to
2247 lang_leave_output_section_statement.
2248 * emultempl/elf32.em (gld*_place_orphan): Likewise.
2249 * emultempl/mmo.em (mmo_place_orphan): Likewise.
2250 * emultempl/pe.em (gld*_place_orphan): Likewise.
2252 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
2254 * configure.tgt: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
2256 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
2258 * ldemul.c: Fix formatting.
2259 * ldfile.c: Likewise.
2260 * pe-dll.c: Likewise.
2261 * pe-dll.h: Likewise.
2263 2002-05-25 Alan Modra <amodra@bigpond.net.au>
2265 * ldlang.c (lang_process): Formatting, grammar.
2267 * ldlex.l: Use #include "" instead of <> for local header files.
2269 2002-05-24 TAMURA Kent <kent@netbsd.org>
2271 * configure.tgt: Add a target for i386-netbsdpe.
2273 2002-05-23 Jakub Jelinek <jakub@redhat.com>
2275 * scripttempl/elf.sc: Add .rel{,a}.t{bss,data}, .tdata and .tbss.
2276 * ldlang.c (lang_add_section): Set SEC_THREAD_LOCAL for
2277 output section if necessary. Handle .tbss.
2278 (lang_size_sections): Clear _raw_size for .tbss section
2279 (it allocates space in PT_TLS segment only).
2280 * ldwrite.c (build_link_order): Build link order for .tbss too.
2282 2002-05-23 Alan Modra <amodra@bigpond.net.au>
2284 * configure.in: Correct spelling of AC_PREREQ.
2286 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
2288 * pe-dll.c (autofilter_liblist): Add more system libs excluded by
2290 (autofilter_objlist): Add crtbegin.o, crtend.o.
2292 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
2294 * emultempl/pe.em (OPTION_EXCLUDE_LIBS): Add new define.
2295 (longopts): Add new option --exclude-libs.
2296 (gld_${EMULATION_NAME}_list_options): Give quick help about it.
2297 (gld_${EMULATION_NAME}_parse_args): Use it.
2298 * pe-dll.h (pe_dll_add_excludes): Add second param to prototype.
2299 * pe-dll.c (exclude_list_struct): Add field type to distinguish symbols
2300 from whole archives.
2301 (pe_dll_add_excludes): Set excludes->type.
2302 (auto_export): Add new variable libname and set to archive basename if
2303 abfd. Use it when filtering default and user-specified libarary
2304 excludes. Let string "ALL" mean all libs when filtering user-specified
2306 * ld.texinfo: Document --exclude-libs.
2308 2002-05-22 Alan Modra <amodra@bigpond.net.au>
2310 * ldemul.c (ldemul_new_vers_pattern): New function.
2311 * ldemul.h (ldemul_new_vers_pattern): Declare.
2312 (struct ld_emulation_xfer_struct): Add new_vers_pattern.
2313 * ldlang.c (lang_new_vers_pattern): Call ldemul_new_vers_pattern.
2314 * emultempl/ppc64elf.em (dotsyms): New static var.
2315 (gld${EMULATION_NAME}_new_vers_pattern): New function.
2316 (LDEMUL_NEW_VERS_PATTERN): Define.
2317 (PARSE_AND_LIST_PROLOGUE): Add OPTION_DOTSYMS, OPTION_NO_DOTSYMS.
2318 (PARSE_AND_LIST_LONGOPTS): Likewise.
2319 (PARSE_AND_LIST_ARGS_CASES): Handle them.
2320 * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Update
2322 * emultempl/armcoff.em: Likewise.
2323 * emultempl/armelf_oabi.em: Likewise.
2324 * emultempl/beos.em: Likewise.
2325 * emultempl/elf32.em: Likewise.
2326 * emultempl/generic.em: Likewise.
2327 * emultempl/gld960.em: Likewise.
2328 * emultempl/gld960c.em: Likewise.
2329 * emultempl/linux.em: Likewise.
2330 * emultempl/lnk960.em: Likewise.
2331 * emultempl/m68kcoff.em: Likewise.
2332 * emultempl/mipsecoff.em: Likewise.
2333 * emultempl/pe.em: Likewise.
2334 * emultempl/sunos.em: Likewise.
2335 * emultempl/ticoff.em: Likewise.
2336 * emultempl/vanilla.em: Likewise.
2338 2002-05-22 Alan Modra <amodra@bigpond.net.au>
2340 * genscripts.sh (LIB_PATH): For native targets, concatenate $libdir
2341 and $NATIVE_LIB_DIRS. Add $tool_lib before other libs.
2342 (LIB_SEARCH_DIRS): No need to use "tr".
2343 (COMPILE_IN): Only set for native targets.
2344 * configure.host (NATIVE_LIB_DIRS): Specify all native search dirs
2345 here, rather than adding lib:/usr/lib:/usr/local/lib in genscripts.sh.
2346 * configure.tgt (powerpc*): Set tdir_*.
2347 (powerpcle*): Correct targ_extra_emuls.
2348 * emulparams/elf32ppc.sh (LIB_PATH): Set up native 64 bit dirs.
2349 * emulparams/elf64ppc.sh (LIB_PATH): Likewise.
2351 2002-05-22 Alan Modra <amodra@bigpond.net.au>
2353 * emultempl/pe.em (set_pe_subsystem): Don't set "cmdline" when
2354 calling lang_add_entry.
2356 2002-05-21 H.J. Lu (hjl@gnu.org)
2358 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_args): Handle
2360 (gld${EMULATION_NAME}_list_options): Add "-z muldefs".
2362 * ld.texinfo: Updated for --allow-multiple-definition and
2365 * ldmain.c (main): Initialize the allow_multiple_definition
2368 * lexsup.c (OPTION_ALLOW_MULTIPLE_DEFINITION): New.
2369 (ld_options): Add --allow-multiple-definition.
2370 (parse_args): Support OPTION_ALLOW_MULTIPLE_DEFINITION.
2372 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
2374 * Makefile.am (ALL_EMULATIONS): Add earmelfb_nbsd.o.
2375 (earmelfb_nbsd.c): New rule.
2376 * Makefile.in: Regenerate.
2377 * configure.tgt (armeb-*-netbsdelf*): New target.
2378 (arm-*-netbsdelf*): Add armelfb_nbsd to targ_extra_emuls.
2379 (arm-*-netbsd*): Likewise.
2380 * emulparams/armelfb_nbsd.sh: New file.
2382 2002-05-18 Tom Rix <trix@redhat.com>
2384 * emultempl/aix.em (gld*_parse_args): Add -bnortl and -bnortllib
2387 2002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
2389 * Makefile.am: Add new emulations avr1, avr2, avr3, avr4, avr5.
2390 * Makefile.in: Regenerate.
2391 * configure.tgt (avr-*-*): Add avr[1-5] to targ_extra_emuls.
2393 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
2395 * emulparams/avr1.sh: New file.
2396 * emulparams/avr2.sh: New file.
2397 * emulparams/avr3.sh: New file.
2398 * emulparams/avr4.sh: New file.
2399 * emulparams/avr5.sh: New file.
2400 * scripttempl/avr.sc: New file.
2402 2002-05-15 Alan Modra <amodra@bigpond.net.au>
2404 * ldlang.c (section_already_linked): Call bfd_link_just_syms.
2405 (lang_place_orphans): Abort if just_syms_flag.
2407 2002-05-10 Tom Rix <trix@redhat.com>
2409 * emultempl/aix.em: (gld*_set_output_arch): New function. Use
2410 architecture and machine information in the output bfd.
2411 (gld*_before_parse): Remove old arch and machine code.
2412 (choose_target): Rename to gld*_choose_target.
2413 (rtld): Change type to int.
2414 * ldfile.c (ldfile_try_open_bfd): Disable compatiblity check for
2415 objects in XCOFF archives.
2416 * ldfile.h: Update copyright date.
2418 2002-05-10 Jakub Jelinek <jakub@redhat.com>
2420 * ldmain.c (main): Enable -z combreloc by default.
2422 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
2424 * Makefile.am: Honour DESTDIR.
2425 * Makefile.in: Regenerate.
2427 2002-05-07 Richard Sandiford <rsandifo@redhat.com>
2429 * ldlang.h (lang_output_section_statement_type): Add update_dot_tree.
2430 (lang_enter_overlay): Remove the last two parameters.
2431 (lang_leave_overlay): Take them here instead.
2432 * ldgram.y (memspec_at_opt): Set $$ to null if no region is given.
2433 (section): Pass LMA and crossref flag to lang_leave_overlay rather
2434 than lang_enter_overlay.
2435 * ldlang.c (lang_memory_region_lookup): Return null for null names.
2436 (lang_output_section_statement_lookup): Initialize update_dot_tree.
2437 (lang_size_sections_1): Evaluate it.
2438 (lang_leave_output_section_statement): Rework LMA lookup.
2439 (overlay_lma, overlay_nocrossrefs): Remove.
2440 (lang_enter_overlay): Remove LMA and crossref arguments.
2441 (lang_enter_overlay_section): Don't set the LMA here.
2442 (lang_leave_overlay): Take LMA and crossref arguments. Move the '.'
2443 assignment to the last section's update_dot_tree. Unconditionally
2444 use the load and run-time regions specified in the OVERLAY statement.
2445 Likewise the first section's LMA. Only set the other sections' LMAs
2446 when no load region is given.
2448 2002-05-06 Nick Clifton <nickc@redhat.com>
2450 * po/sv.po: New translation.
2452 2002-05-04 Alan Modra <amodra@bigpond.net.au>
2454 * emultempl/hppaelf.em (build_section_lists): New function.
2455 (gld${EMULATION_NAME}_finish): Call elf32_hppa_setup_section_lists
2456 and build_section_lists.
2458 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
2460 * ld.h: Fix formatting.
2461 * ldexp.c: Likewise.
2462 * ldfile.c: Likewise.
2463 * ldlang.c: Likewise.
2464 * ldmain.c: Likewise.
2465 * lexsup.c: Likewise.
2466 * pe-dll.c: Likewise.
2468 2002-05-02 Alan Modra <amodra@bigpond.net.au>
2470 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
2471 Adjust for ppc64_elf_set_toc change. #include libbfd.h.
2472 (build_section_lists): Do output_section tests here.
2474 2002-04-30 Tom Rix <trix@redhat.com>
2476 * emultempl/aix.em : (gld*_parse_arge): Formatting changes.
2478 2002-05-01 Alan Modra <amodra@bigpond.net.au>
2480 Long branch stubs, multiple stub sections.
2481 * emultempl/ppc64elf.em: Include ldctor.h.
2482 (stub_file): New var.
2483 (group_size): New var.
2484 (ppc_create_output_section_statements): New function.
2485 (struct hook_stub_info): New.
2486 (hook_in_stub): New function.
2487 (ppc_add_stub_section): New function.
2488 (ppc_layout_sections_again): New function.
2489 (build_section_lists): New function.
2490 (gld${EMULATION_NAME}_finish): Rewrite.
2491 (real_func): New var.
2492 (ppc_for_each_input_file_wrapper): New function.
2493 (ppc_lang_for_each_input_file): New function.
2494 (lang_for_each_input_file): Define.
2495 (PARSE_AND_LIST_PROLOGUE): Define.
2496 (PARSE_AND_LIST_LONGOPTS): Define.
2497 (PARSE_AND_LIST_OPTIONS): Define.
2498 (PARSE_AND_LIST_ARGS_CASES): Define.
2499 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
2501 2002-04-30 Tom Rix <trix@redhat.com>
2503 * emultempl/aix.em (gld*_parse_arge, gld*_before_allocation): Add
2504 -blibpath, -bnolibpath support.
2506 2002-04-30 Mark Mitchell <mark@codesourcery.com>
2508 * Makefile.am (ALL_EMULATIONS): Add elf32ppcwindiss.o.
2509 (eelf32ppcwindiss.c): New target.
2510 * Makefile.in: Regenerated.
2511 * configure.tgt: Add support for powerpc-*-windiss.
2512 * emulparams/elf32ppcwindiss.sh: New file.
2514 2002-04-30 Richard Sandiford <rsandifo@redhat.com>
2516 * ldlang.c (print_assignment): Update print_dot for assignments to ".".
2517 * ldexp.c (exp_print_token): Add "infix_p" argument.
2518 (exp_print_tree): Update accordingly.
2520 2002-04-28 Alan Modra <amodra@bigpond.net.au>
2522 * Makefile.am (mpw): New maintainer mode rule to make mpw-*.c files.
2523 * Makefile.in: Regenerate.
2524 * mpw-elfmips.c: Delete.
2525 * mpw-eppcmac.c: Delete.
2526 * mpw-esh.c: Delete.
2527 * mpw-idtmips.c: Delete.
2529 2002-04-17 J"orn Rennecke <joern.rennecke@superh.com>
2531 * emulparams/shelf32.sh (MACHINE): Now sh5.
2533 2002-04-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2535 * ldgram.y: Fix syntax warning.
2537 2002-04-11 Nick Clifton <nickc@cambridge.redhat.com>
2539 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Add 'n' in order
2540 to prevent "-n" from being taken as an abbreviation for
2541 "--no-pipeline-knowledge".
2543 2002-04-08 Alan Modra <amodra@bigpond.net.au>
2545 * ldlang.c (lang_size_sections_1): Don't complain about
2546 SEC_NEVER_LOAD sections having no memory region specified.
2548 * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.
2550 2002-04-07 matthew green <mrg@redhat.com>
2552 * configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
2554 2002-04-04 Alan Modra <amodra@bigpond.net.au>
2556 * dep-in.sed: Cope with absolute paths.
2557 * Makefile.am (dep.sed): Subst TOPDIR and BFDDIR.
2559 * Makefile.in: Regenerate.
2561 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2563 * emulparams/elf64btsmip.sh: n64 replaces .reginfo with .MIPS.options.
2565 2002-04-03 Jakub Jelinek <jakub@redhat.com>
2567 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size
2568 is smaller than maximum, round dot up to common page boundary.
2570 2002-03-28 Alan Modra <amodra@bigpond.net.au>
2572 * configure.host: Set up for generic hosts first, then tweak as
2573 necessary in more specific targets.
2574 (HOSTING_LIBS): Include libgcc_eh.a if found.
2576 2002-03-23 Andreas Jaeger <aj@suse.de>
2578 * emulparams/elf_x86_64.sh (COMMONPAGESIZE): Set it.
2580 2002-03-21 Alan Modra <amodra@bigpond.net.au>
2582 * Makefile.am: Run "make dep-am".
2583 * Makefile.in: Regenerate.
2585 2002-03-21 Albert Chin-A-Young <china@thewrittenword.com>
2587 * genscripts.sh (LIB_SEARCH_DIRS): Quote path.
2589 2002-03-20 Alan Modra <amodra@bigpond.net.au>
2591 * ldlang.c (ldlang_add_undef): If the output bfd has been opened,
2592 add the symbol to the linker hash table immediately.
2593 (lang_place_undefineds): Split symbol creation out..
2594 (insert_undefined): ..to here.
2596 2002-03-18 David O'Brien <obrien@FreeBSD.org>
2598 * emultempl/elf32.em: Use lbasename vs. basename to fix problem where
2599 the contents of the buffer returned from basename function will are
2600 getting overwritten while still being used.
2602 2002-03-18 Jan Hubicka <jh@suse.cz>
2603 Andreas Jaeger <aj@suse.de>
2604 Andreas Schwab <schwab@suse.de>
2606 * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native.
2607 * elf_x86_64.sh (ARCH): Set to i386:x86-64
2608 set libraries to default to lib64 paths.
2610 2002-03-18 Tom Rix <trix@redhat.com>
2612 * Makefile.am : Add eaix5ppc and eaix5rs6, AIX 5 support.
2613 * configure.tgt : Same.
2614 * emulparms/aix5ppc.sh : New file. For eaix5ppc.
2615 * emulparms/aix5rs6.sh : New file. For eaix5rs6.
2616 * emulparms/aixppc.sh : OUPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT
2617 emulation parameters for better -b32, -b64 support.
2618 * emulparms/aixrs6.sh : Same.
2619 * emulparms/ppcmacos.sh : Same.
2620 * emultempl/aix.em (choose_target) : Use new emulation parameters
2621 OUTPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT.
2622 * Makefile.in : Regenerate.
2624 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
2626 * po/fr.po: Updated version.
2628 2002-03-18 Alan Modra <amodra@bigpond.net.au>
2630 * ldmain.c (main): Move .text readonly flag fudges from here..
2631 * ldlang.c (lang_process): ..to here.
2633 2002-03-14 Alan Modra <amodra@bigpond.net.au>
2635 * ldlang.c (lang_check): Remove the word size check added in last
2636 change. Treat emitrelocations case as for relocatable links.
2638 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
2640 * po/fr.po: Updated version.
2642 2002-03-13 Alan Modra <amodra@bigpond.net.au>
2644 * ldlang.c (lang_check): Do relocatable link checks first, so that
2645 warn_mismatch can't override. Check compatible and word size too.
2647 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
2649 * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
2651 2002-03-05 Jakub Jelinek <jakub@redhat.com>
2653 * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
2656 2002-03-04 H.J. Lu <hjl@gnu.org>
2658 * scripttempl/elf.sc: Put .preinit_array, .init_array and
2659 .fini_array in the data segment.
2661 2002-03-04 Alan Modra <amodra@bigpond.net.au>
2663 * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
2665 2002-03-01 David Mosberger <davidm@hpl.hp.com>
2667 * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
2668 .init_array, and .fini_array.
2670 2002-02-20 Andreas Schwab <schwab@suse.de>
2672 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
2673 .IA64_unwind* in a relocatable link.
2675 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
2677 * NEWS: Mark 2.12 branch.
2679 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
2681 * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
2682 * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
2684 2002-02-18 Tom Rix <trix@redhat.com>
2686 * emultempl/aix.em (gld*_parse_args): Add -brtl support.
2687 (gld*_before_allocation): Same.
2688 (gld*_create_output_section_statements): Generate
2689 __rtinit if run time linking. Add librtl.a to the link.
2690 (gld*_read_file): Clean.
2692 2002-02-18 Alan Modra <amodra@bigpond.net.au>
2694 * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
2696 2002-02-18 David O'Brien <obrien@FreeBSD.org>
2698 * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
2699 eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
2700 and eelf64alpha_fbsd.
2701 * Makefile.in: Regenerate.
2702 * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
2703 x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
2704 use a FreeBSD-specific emulation rather than the psABI one.
2705 * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
2706 for all FreeBSD ELF systems.
2707 * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
2709 * emulparams/elf32ppc_fbsd.sh: Likewise.
2710 * emulparams/elf64_ia64_fbsd.sh: Likewise.
2711 * emulparams/elf64_sparc_fbsd.sh: Likewise.
2712 * emulparams/elf64alpha_fbsd.sh: Likewise.
2713 * emulparams/elf_i386_fbsd.sh: Likewise.
2714 * emulparams/elf_x86_64_fbsd.sh: Likewise.
2716 2002-02-18 Nick Clifton <nickc@cambridge.redhat.com>
2718 * po/tr.po: Updated version.
2720 2002-02-18 Alan Modra <amodra@bigpond.net.au>
2722 * ld.texinfo (Output Section Fill): Fix amateur texinfo.
2725 2002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
2727 * emultempl/mmo.em (mmo_after_open): Don't call
2728 _bfd_mmix_check_all_relocs when producing ELF output.
2730 2002-02-15 Richard Henderson <rth@redhat.com>
2732 * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
2733 definition. Emit a unop+nop pair.
2735 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
2737 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
2738 for presence of .MMIX.reg_contents.linker_allocated before early
2741 * NEWS: Mention support for MMIX.
2743 2002-02-15 Alan Modra <amodra@bigpond.net.au>
2745 Support arbitrary length fill patterns.
2746 * ld.texinfo (Output Section Fill): Describe fill expressions.
2747 (FILL): Refer to the above.
2748 * ldexp.h (etree_value_type): Add "str" field.
2749 (union etree_union): Add "str" to "value" struct.
2750 (exp_bigintop): Declare.
2751 (exp_get_fill): Declare.
2752 * ldexp.c: Include "safe-ctype.h".
2753 (exp_intop): Set value.str to NULL.
2754 (exp_bigintop): New function.
2755 (new_rel): Pass in "str", and set new.str from it.
2756 (new_rel_from_section): Set new.str to NULL.
2757 (fold_name): Adjust calls to new_rel.
2758 (exp_fold_tree): Likewise.
2759 (exp_get_fill): New function.
2760 * ldgram.y (struct big_int bigint, fill_type *fill): New.
2761 (INT): Returns a "bigint". Adjust all code handling INTs.
2762 (fill_opt): Returns a "fill".
2763 (fill_exp): Split out of fill_opt, use for FILL.
2764 * ldlang.h (struct _fill_type): New.
2765 (fill_type): Move typedef to ldexp.h.
2766 (lang_output_section_statement_type): "fill" is now a pointer.
2767 (lang_fill_statement_type): Likewise.
2768 (lang_padding_statement_type): Likewise.
2769 (lang_add_fill): Now takes a "fill_type *" param.
2770 (lang_leave_output_section_statement): Likewise.
2771 (lang_do_assignments): Likewise.
2772 (lang_size_sections): Likewise.
2773 (lang_leave_overlay_section): Likewise.
2774 (lang_leave_overlay): Likewise.
2775 * ldlang.c: Include ldgram.h after ldexp.h.
2776 (lang_output_section_statement_lookup): Adjust for fill_type change.
2777 (print_fill_statement): Likewise.
2778 (print_padding_statement): Likewise.
2779 (insert_pad): Now takes a "fill_type *" arg.
2780 (size_input_section): Likewise.
2781 (lang_size_sections_1): Likewise.
2782 (lang_size_sections): Likewise.
2783 (lang_do_assignments): Likewise.
2784 (lang_add_fill): Likewise.
2785 (lang_leave_output_section_statement): Likewise.
2786 (lang_leave_overlay_section): Likewise.
2787 (lang_leave_overlay): Likewise.
2788 Adjust all callers of the above function.
2789 * ldlex.l: Include ldgram.h after ldexp.h. Allow hex numbers
2790 starting with "0X" as well as "0x". Return bigint.str for hex
2791 numbers starting with "0x" or "0X", zero bigint.str otherwise.
2792 Always use base 16 for numbers starting with "$".
2793 * ldmain.c: Include ldgram.h after ldexp.h.
2794 * ldwrite.c (build_link_order): Use bfd_data_link_order in place
2795 of bfd_fill_link_order.
2796 * pe-dll.c: Adjust lang_do_assignments calls.
2797 * emultempl/elf32.em: Likewise.
2798 * emultempl/hppaelf.em: Likewise.
2799 * emultempl/ppc64elf.em: Likewise.
2800 * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
2801 lang_add_assignment call.
2802 * emultempl/pe.em: Likewise.
2804 2002-02-14 Phil Edwards <pme@gcc.gnu.org>
2806 * ld.texinfo (VERSION scripts): Symbol names are globbing patterns.
2807 * ldgram.y (lang_new_vers_regex): Rename to lang_new_vers_pattern;
2808 the pattern in question is not a regexp.
2809 * ldlang.c: Likewise.
2810 * ldlang.h: Likewise.
2811 * ldlex.l (V_IDENTIFIER): Allow '[', ']', '-', '!', and '^' also.
2813 2002-02-12 Jakub Jelinek <jakub@redhat.com>
2815 * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
2816 * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
2817 (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
2818 * ldexp.c (exp_data_seg): New variable.
2819 (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
2820 (fold_binary): Handle DATA_SEGMENT_ALIGN.
2821 (exp_fold_tree): Handle DATA_SEGMENT_END.
2822 Pass allocation_done when recursing instead of hardcoding
2823 lang_allocating_phase_enum.
2824 * ldexp.h (exp_data_seg): New.
2825 * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
2826 (lang_size_sections): New.
2827 * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
2828 * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
2829 if COMMONPAGESIZE is defined.
2830 * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
2831 * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
2832 * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
2833 * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
2834 * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
2837 2002-02-11 Alan Modra <amodra@bigpond.net.au>
2839 * Makefile.in: Regenerate.
2841 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
2843 * lexsup.c: Remove strtoul declaration.
2845 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
2847 * ldmain.c: Add prototype for main ().
2848 * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
2849 * emultempl/lnk960.em (lnk960_choose_target): Function should
2852 2002-02-10 Alan Modra <amodra@bigpond.net.au>
2854 * ldlang.c (entry_section): New initialised variable.
2855 (lang_finish): Use it.
2856 * ldlang.h (entry_section): Declare.
2857 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
2858 entry_section to ".opd".
2860 2002-02-09 Chris Demetriou <cgd@broadcom.com>
2862 * ld.texinfo (Options): Add back in -nostdlib documentation,
2863 which had been inadvertently removed.
2865 2002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
2867 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
2868 register section vma to a sane value after emitting error. Make
2869 fatal conditions cause program exit when emitting message.
2871 2002-02-08 Ivan Guzvinec <ivang@opencores.org>
2873 * configure.tgt: Add or32-*-rtems target.
2875 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
2877 Contribute sh64-elf.
2878 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
2879 * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
2880 in OTHER_RELOCATABLE_SECTIONS.
2881 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
2882 * emulparams/shelf32.sh (STACK_ADDR): Define.
2883 (OTHER_RELOCATABLE_SECTIONS): Renamed to...
2884 (OTHER_SECTIONS): this. Removed stack settings.
2885 * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
2886 (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
2887 2001-03-12 DJ Delorie <dj@redhat.com>
2888 * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
2889 relaxing if any shmedia or mixed sections are found.
2890 2001-03-07 DJ Delorie <dj@redhat.com>
2891 * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
2892 einfo. Gracefully decline to output to non-elf formats.
2893 2001-03-06 Hans-Peter Nilsson <hpn@redhat.com>
2894 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
2895 Default to _end aligned to next multiple of 0x40000, plus 0x40000.
2896 * emulparams/shelf32.sh: Ditto.
2897 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
2898 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
2900 2001-01-10 Ben Elliston <bje@redhat.com>
2901 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
2902 non-portable shell constructs. From Hans-Peter Nilsson.
2903 2001-01-09 Hans-Peter Nilsson <hpn@cygnus.com>
2904 * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
2905 * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
2906 dependencies to the shell script include chain.
2907 * Makefile.in: Regenerate.
2908 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
2909 * emultempl/sh64elf.em: Update and tweak comments.
2910 (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
2911 make a .cranges section SEC_IN_MEMORY.
2912 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
2913 * emultempl/sh64elf.em
2914 (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
2915 .cranges section found to be necessary; continue and set stored
2916 section contents flags for sections with non-mixed contents.
2917 Use a struct sh64_section_data container and sh64_elf_section_data
2918 to store contents-type flags.
2919 Remove unused update of "isec".
2920 (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
2921 sections marked SHF_SH5_ISA32_MIXED. Use sh64_elf_section_data to
2922 access contents-type flags. Assert that the associated container
2923 is initialized. Use that container, not elf_gp_size, to hold size
2924 of linker-generated cranges contents.
2925 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
2926 * emultempl/sh64elf.em
2927 (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
2928 there's already a .cranges section. When section flag difference
2929 is found, don't NULL-check cranges a second time. Tweak comments.
2930 (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
2931 merging, not max size, as size of ld-generated .cranges contents.
2932 Don't set ELF section flags in output section. When checking for
2933 needed .cranges descriptors, don't use a variable; compare
2934 incoming ELF section flags directly to SHF_SH5_ISA32_MIXED. Tweak
2936 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
2937 * emultempl/sh64elf.em: New file.
2938 * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
2939 * Makefile.in: Regenerate.
2940 * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
2941 (OTHER_RELOCATING_SECTIONS): Ditto.
2942 (EXTRA_EM_FILE): New, set to sh64elf if not set.
2943 * emulparams/shlelf32.sh: Stub out all settings except
2944 OUTPUT_FORMAT. Source shelf32.sh.
2945 * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
2946 OTHER_RELOCATING_SECTIONS.
2947 (OTHER_RELOCATING_SECTIONS): Remove .cranges.
2948 * emulparams/shlelf64.sh: Stub out all settings except
2949 OUTPUT_FORMAT. Source shelf64.sh.
2950 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
2951 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
2953 (DATA_START_SYMBOLS): Define, provide ___data.
2954 (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
2955 for consecutive .data section.
2956 (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
2957 section after .data section.
2958 * emulparams/shlelf64.sh: Ditto.
2959 * emulparams/shelf32.sh: Ditto.
2960 (ALIGNMENT): Define to 8.
2961 * emulparams/shelf32.sh: Ditto.
2962 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
2963 * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
2964 built-in linker scripts.
2965 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
2966 * emulparams/shlelf64.sh: New.
2967 * emulparams/shelf64.sh: New.
2968 * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
2970 * Makefile.am: Add support for shlelf64 and shelf64.
2971 * Makefile.in: Regenerate.
2972 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
2973 * configure.tgt (sh64-*-elf*): Add shelf as default.
2974 Add shlelf to targ_extra_emuls.
2975 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
2976 * emulparams/shelf32.sh: New file.
2977 * emulparams/shlelf32.sh: New file.
2978 * Makefile.am: Add support for shlelf32 and shelf32.
2979 * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
2980 * Makefile.in: Regenerate.
2982 2002-02-05 Hans-Peter Nilsson <hp@axis.com>
2984 * ldlang.c (lang_reset_memory_regions): Rename from
2985 reset_memory_regions. Change all callers. Make public.
2986 * ldlang.h (lang_reset_memory_regions): Prototype.
2987 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
2988 lang_reset_memory_regions before lang_size_sections.
2989 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
2990 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
2992 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
2994 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
2995 arithmetic when checking for too many global registers.
2997 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
2999 * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
3000 (ehppanbsd.c): New rule.
3001 * Makefile.in: Regenerate.
3002 * configure.tgt (hppa*-*-netbsd*): New target.
3003 * emulparams/hppalinux.sh: Add comment to check other files
3004 that source this file it is modified, and list which
3006 * emulparams/hppanbsd.sh: New file.
3008 2002-02-01 Geoffrey Keating <geoffk@redhat.com>
3010 * scripttempl/xstormy16.sc: Don't allocate extra space for the
3013 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
3015 Support on-demand global register allocation from
3016 R_MMIX_BASE_PLUS_OFFSET relocs.
3017 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
3018 mmix_set_reg_section_vma. Call
3019 _bfd_mmix_finalize_linker_allocated_gregs.
3020 (mmix_before_allocation): New function.
3021 (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
3022 (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
3023 * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
3024 (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
3025 before .MMIX.reg_contents.
3026 * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
3027 (mmo_after_open): New function.
3028 (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
3029 * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting. Add
3030 .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
3032 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
3034 * emulparams/or32.sh: New file.
3035 * emulparams/or32elf.sh: New file.
3036 * scripttempl/or32.sc: New file.
3037 * configure.tgt : Add support for or32.
3038 * configure: Regenerate
3039 * Makefile.am: Add support for or32.
3040 * Makefile.in: Regenerate.
3041 * NEWS: Mention support for or32.
3042 * po/ld.pot: Regenerate.
3044 2002-01-29 Chris Demetriou <cgd@broadcom.com>
3045 Mitch Lichtenberg <mpl@broadcom.com>
3047 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
3048 * emultempl/mipself.em: New file to handle MIPS ELF embedded
3049 reloc creation (ld --embedded-relocs).
3051 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
3053 * configure: Regenerated.
3055 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
3057 * Makefile.am (install): Depend on install-info.
3058 * Makefile.in: Regenerate.
3060 2002-01-26 Christian Rose <menthos@menthos.com>
3062 * ldmain.c (main): Use full sentences to ease translation.
3064 2002-01-26 Nick Clifton <nickc@cambridge.redhat.com>
3066 * po/fr.po: Updated version.
3068 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
3070 * po/es.po: Updated version.
3072 2002-01-25 Andreas Jaeger <aj@suse.de>
3074 * ldlex.l (yy_input): Correct error check.
3076 2002-01-25 Alan Modra <amodra@bigpond.net.au>
3078 * ldmisc.c (demangle): Put back dots when string not demangled.
3080 2002-01-22 Richard Henderson <rth@redhat.com>
3082 * emulparams/elf64alpha.sh (NOP): Use unop.
3084 2002-01-21 Andreas Jaeger <aj@suse.de>
3086 * ldlex.l: Use fread instead of read.
3088 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
3090 * configure.tgt (ia64-*-netbsd*): New target.
3092 2002-01-21 H.J. Lu <hjl@gnu.org>
3094 * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
3096 * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
3098 2002-01-18 Andreas Jaeger <aj@suse.de>
3100 * ldver.c (ldversion): Update year.
3102 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
3104 * po/ld.pot: Regenerate.
3106 2002-01-16 Alan Modra <amodra@bigpond.net.au>
3108 * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
3109 * Makefile.in: Regenerate.
3110 * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
3111 * emultempl/ppc64elf.em: New file.
3113 2002-01-15 DJ Delorie <dj@redhat.com>
3115 * scripttempl/pe.sc: Add support for constructor priorities.
3117 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
3119 * emulparams/avr1200.sh (DATA_START): Define as 0x60.
3120 * emulparams/avr23xx.sh: Likewise.
3121 * emulparams/avr4433.sh: Likewise.
3122 * emulparams/avr44x4.sh: Likewise.
3123 * emulparams/avr85xx.sh: Likewise.
3124 * emulparams/avrmega103.sh: Likewise.
3125 * emulparams/avrmega161.sh: Likewise.
3126 * emulparams/avrmega603.sh: Likewise.
3127 * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
3129 2002-01-08 Alexandre Oliva <aoliva@redhat.com>
3131 * ldlang.c (walk_wild_section): Exclude object file if enclosing
3132 archive is excluded.
3134 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
3136 * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
3137 (eshelf_nbsd.c): New rule.
3138 (eshlelf_nbsd.c): New rule.
3139 * Makefile.in: Regenerate.
3140 * configure.tgt (sh*le-*-netbsdelf*): New target.
3141 (sh*-*-netbsdelf*): New target.
3142 * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
3143 * emulparams/shelf_nbsd.sh: New emulation.
3144 * emulparams/shlelf_nbsd.sh: New emulation.
3146 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
3148 * po/es.po: New file: Spanish translation.
3149 * configure.in (ALL_LINGUAS): Add es.
3150 * configure: Regenerate.
3152 2002-01-06 John Marshall <jmarshall@acm.org>
3154 * ld.texinfo: Note that --emit-relocs is currently only
3155 implemented for ELF.
3157 2002-01-05 Alan Modra <amodra@bigpond.net.au>
3159 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
3160 of bfd_section_list_remove and bfd_section_list_insert macros.
3161 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
3162 * emultempl/mmo.em (mmo_place_orphan): Likewise.
3164 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
3166 * configure.tgt (x86_64-*-netbsd*): New target.
3168 2001-12-21 Tom Rix <trix@redhat.com>
3170 (gld*_create_output_section_statements): New function.
3171 For -binitfini support.
3172 * emultempl/aix.em (gld*_before_parse): Fix comment.
3173 * emultempl/aix.em (gld*_parse_args): Fix comment.
3175 2001-12-20 Jason Thorpe <thorpej@wasabisystems.com>
3177 * configure.tgt (mips*-dec-netbsd*): Delete alias for
3179 (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
3181 * configure.tgt (arm-*-netbsdelf*): Add target.
3182 (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
3183 * emulparams/armelf_nbsd.sh: Added.
3184 * Makefile.am: Add rules for earmelf_nbsd.
3185 * Makefile.in: Regenerate.
3187 2001-12-19 Andreas Jaeger <aj@suse.de>,
3188 Susanne Oberhauser <froh@suse.de>
3190 * configure.host: Add rules for x86_64-*linux-gnu. Change
3191 s390x-linux entry to use gcc to report configuration, replace gcc
3192 with $CC in s390-linux
3194 2001-12-19 Andreas Jaeger <aj@suse.de>
3196 * ld.texinfo (VERSION): Fix markup.
3198 2001-12-18 matthew green <mrg@eterna.com.au>
3200 * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
3201 (m68kelfnbsd.c): New rule.
3202 * Makefile.in: Regenerate.
3203 * configure.tgt (m68*-hp-netbsd*): Renamed to ..
3204 (m68*-*-netbsd*4k*): .. this.
3205 (m68*-*-netbsdelf*): New target.
3206 (m68*-*-netbsd*): Also include ELF support.
3207 (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
3208 * emulparams/m68kelfnbsd.sh: New emulation.
3210 2001-12-18 Jakub Jelinek <jakub@redhat.com>
3212 * ldgram.y (vers_node): Support anonymous version tags.
3213 * ldlang.c (lang_register_vers_node): Ensure anonymous version
3214 tag is not defined together with non-anonymous versions.
3215 * ld.texinfo: Document it.
3217 2001-12-18 Nick Clifton <nickc@cambridge.redhat.com>
3219 * po/tr.po: New file: Turkish translation.
3220 * configure.in (ALL_LINGUAS): Add tr.
3221 * configure: Regenerate.
3223 2001-12-17 Jason Thorpe <thorpej@wasabisystems.com>
3225 * Makefile.am: Add rules for eelf64alpha_nbsd.
3226 * Makefile.in: Regenerate.
3227 * configure.tgt (alpha*-*-netbsd*): Set
3228 targ_emul to elf64alpha_nbsd.
3229 * emulparams/elf64alpha_nbsd.sh: Added.
3231 2001-12-17 Alan Modra <amodra@bigpond.net.au>
3233 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
3234 section_tail when fiddling with section list.
3235 (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
3236 broken into separate strings to make translation easier.
3237 * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
3238 fiddling with section list.
3239 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
3241 2001-12-16 Hans-Peter Nilsson <hp@bitrange.com>
3243 * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
3245 2001-12-15 Alan Modra <amodra@bigpond.net.au>
3247 * ldmain.c (main): Initialise link_info.eh_frame_hdr.
3249 2001-12-13 Jakub Jelinek <jakub@redhat.com>
3251 * emultempl/elf32.em (finish): Supply output_bfd
3252 to bfd_elf*_discard_info.
3253 (OPTION_EH_FRAME_HDR): Define.
3254 (longopts): Add --eh-frame-hdr.
3255 (parse_args): Handle it.
3256 (list_options): Add --eh-frame-hdr to help.
3257 * emultempl/hppaelf.em (finish): Supply output_bfd
3258 to bfd_elf*_discard_info.
3259 * scripttempl/elf.sc (.eh_frame_hdr): Add.
3261 2001-12-13 Alan Modra <amodra@bigpond.net.au>
3263 * lexsup.c (parse_args): Don't pass shortopts to second call to
3264 getopt functions. Restore optind rather than decrementing before
3265 second call. Remove errind as it now duplicates last_optind.
3267 2001-12-11 Christopher Faylor <cgf@redhat.com>
3269 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
3271 2001-12-07 Geoffrey Keating <geoffk@redhat.com>
3272 Richard Henderson <rth@redhat.com>
3274 * Makefile.am: Add support for xstormy16.
3275 * configure.tgt: Add support for xstormy16.
3276 * Makefile.in: Regenerate.
3277 * emulparams/elf32xstormy16.sh: New file.
3278 * scripttempl/xstormy16.sc: New file.
3280 2001-10-01 Christopher Faylor <cgf@cygnus.com>
3282 * Makefile.in (LIB_PATH): Make configurable.
3283 (GENSCRIPTS): Set LIB_PATH in environment.
3284 * configure.in: Substitute LIB_PATH.
3285 * configure: Regenerate.
3286 * configure.tgt (*cygwin): Set LIB_PATH for cross build.
3287 * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
3289 2001-12-07 Nick Clifton <nickc@cambridge.redhat.com>
3291 * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
3292 describing the -N option so that it is easier to translate into
3295 2001-12-05 Nick Clifton <nickc@cambridge.redhat.com>
3297 * emultempl/pe.em (..._list_options): Replace multiple fprintf
3298 statements describing a single option with a single, newline
3299 escaped fprintf. This allows better translation into other
3302 * ldmain.c (add_archive_element): Combine multiple strings
3303 into a single string to permit better translation into other
3306 2001-12-05 Tom Rix <trix@redhat.com>
3308 * Makefile.am: Remove eaixppc64.
3309 * Makefile.in: Regenerate.
3311 2001-12-04 Tom Rix <trix@redhat.com>
3313 * emultempl/aix.em (choose_target): Change default target to
3314 OUTPUT_FORMAT for ppcmacos. Add braces to remove compiler
3316 (gld*_read_file): Fix typo.
3317 (change_symbol_mode): Add prototype.
3320 * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
3321 * emulparams/aixrs6.sh : Same.
3322 * emulparams/ppcmacos.sh : Same.
3323 * emulparams/aixppc64.sh : Delete file.
3324 * emultempl/aix.em : Formatting changes.
3326 2001-12-04 Hans-Peter Nilsson <hp@axis.com>
3328 * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
3329 (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
3331 (OTHER_END_SYMBOLS): Fix formatting.
3332 * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
3333 (OTHER_END_SYMBOLS): Fix formatting.
3335 2001-12-04 Alan Modra <amodra@bigpond.net.au>
3337 * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
3339 2001-12-02 Tom Rix <trix@redhat.com>
3341 * configure.tgt : Remove eaixppc64 emulations.
3342 * Makefile.in : Remove eaixppc64.c
3343 * ldemul.c (ldemul_choose_target): New parameters argc, argv.
3344 (ldemul_default_target): Same.
3345 * emultempl/gld960.em (gld960_choose_target): Same.
3346 * emultempl/gld960c.em (gld960_choose_target): Same.
3347 * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
3348 * emultempl/aix.em (is_syscall): syscall_mask now a variable.
3349 * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
3350 * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
3351 * emultempl/aix.em (choose_target): New function. Handle emulation of
3354 2001-11-27 H.J. Lu <hjl@gnu.org>
3356 * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
3357 * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
3358 * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
3359 * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
3360 * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
3361 * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
3362 * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
3363 * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
3365 * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
3368 (REL_SDATA): Likewise.
3369 (REL_SBSS): Likewise.
3370 (REL_SDATA2): Likewise.
3371 (REL_SBSS2): Likewise.
3372 (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
3375 2001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3377 * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
3379 * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
3381 2001-11-22 H.J. Lu <hjl@gnu.org>
3383 * Makefile.in: Regenerated with automake based on automake
3384 1.4-8 in RedHat 7.1.
3386 2001-11-22 Alan Modra <amodra@bigpond.net.au>
3388 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
3389 (config.status): Delete rule.
3390 Add extra dependencies to cover sourced emulparams files.
3391 * Makefile.in: Regenerate.
3393 * scripttempl/elf.sc: Order <section>, <section>.* and
3394 corresponding linkonce sections as seen in input files.
3395 Formatting fixes. Zero vma of all sections if not relocating.
3396 (STACK): Define and insert if STACK_ADDR defined.
3397 (OTHER_RELOCATING_SECTIONS): Delete.
3398 (OTHER_END_SYMBOLS): Define.
3399 (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
3400 (OTHER_READWRITE_SECTIONS): Likewise.
3401 (OTHER_GOT_SECTIONS): Likewise.
3402 (OTHER_SDATA_SECTIONS): Likewise.
3403 (OTHER_BSS_SECTIONS): Likewise.
3404 * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
3405 (OTHER_READWRITE_SECTIONS): Likewise.
3406 * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
3407 (OTHER_READWRITE_SECTIONS): Likewise.
3409 * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
3410 (STACK_ADDR): Define.
3411 * emulparams/armelf_oabi.sh: As for armelf.sh.
3412 * emulparams/elf32mcore.sh: As for armelf.sh.
3413 * emulparams/h8300elf.sh: As for armelf.sh.
3414 * emulparams/mn10200.sh: As for armelf.sh.
3415 * emulparams/shelf.sh: As for armelf.sh.
3417 * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
3418 (OTHER_END_SYMBOLS): Define.
3419 * emulparams/m32relf.sh: As for elf32fr30.sh.
3420 * emulparams/h8300helf.sh: As for elf32fr30.sh.
3421 * emulparams/h8300self.sh: As for elf32fr30.sh.
3423 * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
3424 defines with RELOCATING test.
3425 (OTHER_SDATA_SECTIONS): Likewise.
3426 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
3427 (OTHER_END_SYMBOLS): ..this.
3428 * emulparams/crislinux.sh: As for criself.sh.
3430 * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
3432 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
3433 (OTHER_SECTIONS): ..this. Zero vma if not relocating. Order
3434 normal and linkonce sections as seen in input files.
3435 * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
3436 (TEXT_DYNAMIC): Likewise.
3437 (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
3438 (OTHER_SDATA_SECTIONS): Likewise.
3439 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
3440 * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
3441 * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
3442 * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
3443 * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
3444 (OTHER_PLT_RELOC_SECTIONS): Likewise.
3445 (OTHER_READONLY_SECTIONS): Likewise. Order normal and linkonce
3446 sections as seen in input files.
3447 * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
3448 * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
3450 (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
3451 (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
3452 * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
3453 (OTHER_SECTIONS): Instead, use this..
3454 (OTHER_END_SYMBOLS): ..and this.
3456 * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
3457 * emulparams/elf32bsmip.sh: Likewise.
3458 * emulparams/elf32btsmip.sh: Likewise.
3459 * emulparams/elf32ebmip.sh: Likewise.
3460 * emulparams/elf32lmip.sh: Likewise.
3461 * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
3462 * emulparams/elf32lsmip.sh: Likewise.
3463 * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
3464 * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
3465 * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
3466 * emulparams/elf64btsmip.sh: Likewise.
3467 * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
3468 * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
3469 * emulparams/elf32ppclinux.sh: Likewise.
3470 * emulparams/elf32ppcsim.sh: Likewise.
3471 * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
3472 * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
3473 * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
3474 * emulparams/h8300self.sh: Likewise.
3475 * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
3476 * emulparams/sh.sh: Comment.
3477 * emulparams/shl.sh: Source sh.sh, remove duplicates.
3478 * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
3479 * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
3481 2001-11-21 David Heine <dlheine@tensilica.com>
3482 Alan Modra <amodra@bigpond.net.au>
3484 * ldlang.c (map_input_to_output_sections): Replace "break"
3485 accidentally removed with 2001-08-03 change.
3486 (lang_gc_sections_1): Likewise.
3488 2001-11-21 Alan Modra <amodra@bigpond.net.au>
3490 * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
3492 2001-11-20 Angela Marie Thomas <angela@redhat.com>
3494 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
3495 of false when calling lang_size_sections.
3496 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
3498 2001-11-15 Alan Modra <amodra@bigpond.net.au>
3500 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
3501 function when LDEMUL_FINISH isn't set to the same name. Don't
3502 call ${LDEMUL_FINISH}.
3503 (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
3504 * emultempl/armelf.em (arm_elf_finish): Call
3505 gld${EMULATION_NAME}_finish.
3506 * emultempl/hppaelf.em (hppaelf_finish): Rename to
3507 gld${EMULATION_NAME}_finish. Call bfd_elf32_discard_info and
3508 hppaelf_layout_sections_again if necessary.
3509 (need_laying_out): New var.
3510 (hppaelf_layaout_sections_again): Rename to
3511 hppaelf_layout_sections_again. Clear need_laying_out.
3512 (PARSE_AND_LIST_OPTIONS): Format text.
3514 2001-11-14 H.J. Lu <hjl@gnu.org>
3516 * emultempl/armelf.em (arm_elf_finish): Renamed from
3517 gld${EMULATION_NAME}_finish.
3518 (LDEMUL_FINISH): Set to arm_elf_finish.
3520 2001-11-14 Daniel Jacobowitz <drow@mvista.com>
3522 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
3523 (struct ld_emulation_xfer_struct): Use it.
3525 2001-11-13 Ross Alexander <ross.alexander@uk.neceur.com>
3527 * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
3528 additional symbols referenced by newer crt0.o files from HP.
3530 2001-11-12 Anthony Green <green@redhat.com>
3532 * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
3534 2001-11-12 Alfred M. Szmidt <ams@kemisten.nu>
3536 * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
3537 * Makefile.in: Regenerate.
3539 2001-11-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3541 * ld.texinfo: Use @command for commands, @option for options.
3542 * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
3544 * Makefile.in: Rebuild.
3546 2001-11-04 Chris Demetriou <cgd@broadcom.com>
3548 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
3549 Add support for targets.
3551 2001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
3553 * configure.in (ALL_LINGUAS): Add "fr" and "sv"
3554 * configure: Regernate.
3555 * po/fr.po: New file.
3556 * po/sv.po: New file.
3558 2001-11-01 NIIBE Yutaka <gniibe@m17n.org>
3560 * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
3561 as little endian default and to support big endian.
3563 2001-11-01 Chris Demetriou <cgd@broadcom.com>
3565 * ld.texinfo (Options): Document new option, -nostdlib.
3566 * lexsup.c (OPTION_NOSTDLIB): New definition.
3567 (ld_options): Add entry for "nostdlib".
3568 (parse_args): Handle OPTIONS_NOSTDLIB.
3569 * ldfile.c (ldfile_add_library_path): Don't add directories
3570 to the search path if they weren't specified on the command line
3571 and -nostdlib was specified.
3572 * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
3574 2001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
3576 * lexsup.c (parse_args): Prevent infinite parsing loop when
3577 "-rpath.a" is specified on the command line.
3578 Replace calls to fprintf with calls to einfo.
3580 2001-10-31 John Marshall <jmarshall@acm.org>
3582 * ld.texinfo: A historical requirement that MEMORY and SECTIONS
3583 appear only once across all the linker scripts involved in a link
3584 invocation no longer applies. Make the documentation reflect
3587 2001-10-31 NIIBE Yutaka <gniibe@m17n.org>
3589 * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
3591 (sh-*-linux*): Added targ_extra_libpath.
3593 2001-10-31 David Heine <dlheine@tensilica.com>
3595 * ldlang.c (lang_size_sections): Keep a valid output_offset field
3596 for padding statements.
3598 2001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
3600 * configure.tgt (mmix-*-*): New target.
3601 * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
3602 Add dependencies to match.
3603 * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
3604 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
3605 scripttempl/mmo.sc: New files.
3606 * gen-doc.texi: @set MMIX.
3607 * ld.texinfo: Ditto.
3608 [MMIX] Add MMIX node.
3609 * Makefile.in: Regenerate.
3611 2001-10-29 Kazu Hirata <kazu@hxi.com>
3613 * ldlang.c: Fix a comment typo.
3615 2001-10-23 Alan Modra <amodra@bigpond.net.au>
3617 * configure.host: Move alpha*-*-linux-gnu* entry to generic
3618 entries, and match *-*-linux*.
3620 2001-10-20 Alan Modra <amodra@bigpond.net.au>
3622 * ldgram.y (mri_script_command): Surround processing of INCLUDE
3623 with ldlex_script, ldlex_popstate.
3624 (ifile_p1): Likewise.
3625 * ldlex.l (EOF): Don't BEGIN(SCRIPT). Restore lineno from the
3627 (lex_push_file): Save current lineno to lineno_stack. Set lineno
3628 to 1. Don't BEGIN(SCRIPT).
3629 (lex_redirect): Similarly.
3630 * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
3632 2001-10-20 Nick Clifton <nickc@cambridge.redhat.com>
3634 * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
3635 __EH_FRAME_END__ and accept eh frames into data section.
3636 Add ctor and dtor sections.
3638 2001-10-19 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3640 * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
3641 (auto-export): Fix indentation.
3643 2001-10-18 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3645 * pe-dll.c (autofilter_objectlist): Add startup objects
3647 (auto-export): Constify char * p.
3648 Extract file basename and use strcmp rather than ststr
3651 2001-10-18 Chris Demetriou <cgd@broadcom.com>
3653 * ldmain.c (get_emulation): Improve comment about the handling
3656 2001-10-17 Alan Modra <amodra@bigpond.net.au>
3658 * po/POTFILES.in: Regenerate.
3660 2001-10-16 Vassili Karpov <malc@pulsesoft.com>
3662 * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
3663 -z nocopyreloc and -z nocombreloc usage strings.
3665 2001-10-12 Vassili Karpov <malc@pulsesoft.com>
3667 * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
3670 2001-10-11 Aleksey Romanov <aromanov@ennovatenetworks.com>
3672 * scripttempl/armaout.sc: Place .bss section after end of aligned
3673 data section to match behaviour of aout code in constructrion of
3676 2001-10-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3678 * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
3679 startup files for mingw32 dlls to list.
3681 2001-10-10 Chris Demetriou <cgd@broadcom.com>
3683 * emultempl/elf32.em: Fix shell 'if' usage for portability.
3685 2001-10-08 Aldy Hernandez <aldyh@redhat.com>
3687 * configure.tgt (targ): Add arm9e-*-elf.
3689 2001-10-05 H.J. Lu <hjl@gnu.org>
3691 * genscripts.sh: Fix a typo in the last change.
3693 2001-10-05 Jakub Jelinek <jakub@redhat.com>
3695 * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
3696 -z nocombreloc in usage.
3698 2001-10-03 Jim Blandy <jimb@redhat.com>
3700 * genscripts.sh: Include a comment at the top of each generated
3701 script, explaining its purpose.
3703 2001-10-03 Vassili Karpov <malc@pulsesoft.com>
3705 * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
3706 * NEWS: Mention -z nocopyreloc.
3707 * ld.texinfo (Options): Describe nocopyreloc.
3709 2001-10-03 Alan Modra <amodra@bigpond.net.au>
3711 * configure: Regenerate.
3713 2001-10-02 Alan Modra <amodra@bigpond.net.au>
3715 * ldver.h (ld_program_version): Remove declaration.
3716 * lexsup.c (parse_args): Move printing of copyright message..
3717 * ldver.c (ldversion): .. to here.
3718 Use BFD_VERSION_STRING in place of BFD_VERSION.
3719 (ld_program_version): Remove.
3720 * Makefile.am (Makefile): Depend on bfd/configure.in.
3722 * Makefile.in: Regenerate.
3724 2001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
3726 * Makefile.am: Update dependencies with "make dep-am".
3727 * Makefile.in: Regenerate.
3729 2001-09-29 John Reiser <jreiser@BitWagon.com>
3731 * ldlang.c (lang_common): Conditionally inhibit Common allocation.
3732 * lexsup.c: Add --no-define-common commandline option.
3733 * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
3734 * ldlex.l: Likewise.
3735 * ld.h: Add command_line.inhibit_common_definition.
3736 * ldmain.c (main): Initialize.
3737 * ld.texinfo: Document.
3739 2001-09-29 Alan Modra <amodra@bigpond.net.au>
3741 * ldlang.c (section_already_linked): Remove assignment to kept_section.
3743 2001-09-26 Alan Modra <amodra@bigpond.net.au>
3745 * ldmisc.c (USE_STDARG): Remove.
3746 (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
3751 * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
3752 declarations. Update copyright.
3754 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
3756 * pe-dll.c: Remove obsoleted declaration of
3757 pe_get_data_import_dll_name.
3758 (pe_create_import_fixup): Fix thinko.
3760 * ld.texinfo(enable-auto-import): Clarify the explanation.
3762 2001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
3764 * pe-dll.c (pe_create_import_fixup): Revert previous patch.
3765 * emultemp/pe.em (pe_data_import_dll): Move definition outside of
3766 DLL_SUPPORT controlled code.
3768 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
3770 * emultempl/pe.em(pe_data_import_dll): Make static.
3771 (pe_get_data_import_dll_name): New accessor function.
3772 * pe-dll.c(pe_create_import_fixup): call
3773 pe_get_data_import_dll_name() from pe.em, instead of
3774 directly accessing pe_data_import_dll variable from pe.em.
3776 2001-09-18 Bruno Haible <haible@clisp.cons.org>
3778 * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
3779 (def_file_add_directive): Use ISSPACE instead of isspace.
3780 (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
3781 isdigit/isxdigit/isalpha/isalnum.
3782 * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
3783 (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
3784 * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
3785 (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
3787 * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
3788 (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
3790 * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
3791 (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
3792 * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
3793 (ctor_prio): Use ISDIGIT instead of isdigit.
3794 * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
3795 (ldfile_open_file_search): Use ISALPHA instead of isalpha.
3796 (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
3798 * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
3799 (stricpy): Use TOLOWER instead of isupper/tolower.
3800 (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
3801 * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
3802 (lex_warn_invalid): Use ISPRINT instead of isprint.
3803 * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
3804 (main): For gettext, also set the LC_CTYPE locate facet.
3805 (add_keepsyms_file): Use ISSPACE instead of isspace.
3806 * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
3807 (is_num, parse_args): Use ISDIGIT instead of isdigit.
3808 * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
3809 (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
3810 * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
3811 (gldppcmacos_read_file): Use ISSPACE instead of isspace.
3812 * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
3813 (quoteput): Use ISSPACE instead of isspace.
3814 (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
3817 2001-09-18 Alan Modra <amodra@bigpond.net.au>
3819 * deffilep.y (def_stash_module): Constify "name" param.
3821 * pe-dll.c: Replace CONST with const throughout.
3822 (quick_symbol): Constify "n1", "n2", "n3" params.
3823 (make_singleton_name_thunk): Constify "import" param. Make
3824 "buffer_len" a size_t.
3825 (make_import_fixup_entry): Constify "name", "fixup_name",
3826 "dll_symname" params.
3827 (pe_get16): Cast args of bfd_seek. Replace bfd_read with bfd_bread.
3828 (pe_get32): Likewise.
3829 (pe_implied_import_dll): Likewise.
3831 * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
3832 (sort_by_section_name): Likewise.
3834 * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
3835 (make_import_fixup): Cast printf arg, rel->address to long rather
3837 (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
3839 2001-09-15 Alan Modra <amodra@bigpond.net.au>
3841 * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
3842 defines BufferSize. Increase buffer size by one.
3844 2001-09-14 Ralf Habacker <Ralf.Habacker@freenet.de>
3846 * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
3848 2001-09-14 Kevin Lo <kevlo@openbsd.org>
3850 * configure.tgt: Add arm-openbsd target.
3852 2001-09-12 H.J. Lu <hjl@gnu.org>
3854 * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
3856 (ALL_64_EMULATIONS): Here.
3857 * Makefile.in: Regenerated.
3859 2001-09-12 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3861 * emultempl/pe.em(make_import_fixup): change signature to
3862 take asection as well as arelec; we need this for proper
3863 error reporting. Only call pe_create_import_fixup() if
3864 there is no attempt to add a constant addend to the reloc;
3865 otherwise, report error condition.
3866 * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
3867 since final argument is a pointer to make_import_fixup().
3868 Change call to cb() to match make_import_fixup() signature.
3869 (make_import_fixup_mark): make buffer_len unsigned.
3870 * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
3872 2001-09-12 Charles Wilson <cwilson@ece.gatech.edu>
3874 * ld.texinfo: add verbose documentation for auto-import
3875 direct-addressing workaround, to compliment the terse
3878 2001-09-12 Andrew MacLeod <amacleod@redhat.com>
3880 * scripttempl/v850.sc: Add gcc_except_table sections.
3882 2001-09-11 Jeffrey A Law (law@cygnus.com)
3884 * emulparams/h8300helf.sh: Move stack to a much higher memory address.
3885 * emulparams/h8300self.sh: Similarly.
3887 2001-09-05 Danny Smith <dannysmith@users.souceforge.net>
3889 * ld.texinfo (Options, --stack): Correct default value for stack
3892 2001-09-05 Tom Rix <trix@redhat.com>
3894 * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
3896 2001-09-03 Andreas Jaeger <aj@suse.de>
3898 * emultempl/beos.em: Declare prototypes for comparions functions,
3901 2001-09-02 Andreas Jaeger <aj@suse.de>
3903 * emultempl/aix.em: Add missing prototype.
3904 * emultempl/lnk960.em: Likewise.
3905 * emultempl/vanilla.em: Likewise.
3906 * emultempl/armcoff.em: Likewise.
3907 * emultempl/armelf_oabi.em: Likewise.
3908 * emultempl/beos.em: Likewise.
3909 * emultempl/gld960c.em: Likewise.
3910 * emultempl/gld960.em: Likewise.
3912 * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
3913 for prototype declaration.
3915 2001-08-31 Eric Christopher <echristo@redhat.com>
3916 Jason Eckhardt <jle@redhat.com>
3918 * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
3920 2001-08-31 Andreas Jaeger <aj@suse.de>
3922 * emultempl/pe.em: Add missing prototypes.
3923 (gld_${EMULATION_NAME}_after_open): Remove extra args to
3924 pe_find_data_imports.
3925 (pr_sym): Add unused attribute.
3927 2001-08-29 Joel Sherrill <joel@OARcorp.com>
3929 * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
3930 default from coff to elf.
3932 2001-08-29 Jeff Law <law@redhat.com>
3934 * emulparams/h8300helf.sh: Resync with h8300elf.sh. Update
3936 * emulparams/h8300self.sh: Similarly.
3938 2001-08-28 J"orn Rennecke <amylaar@redhat.com>
3940 * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
3942 (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
3943 * configure.tgt (h8300-*-elf*): New case.
3944 * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
3945 * emulparams/h8300self.sh: New file.
3946 * Makefile.in: Regenerated.
3948 2001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
3950 * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
3953 2001-08-27 Linus Nordberg <linus@swox.com>
3954 Alan Modra <amodra@bigpond.net.au>
3956 * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
3957 (eelf64ppc.c, eelf64lppc.c): Add make targets.
3959 * Makefile.in: Regenerate.
3960 * configure.tgt: Add powerpc64 support. Move pdp11, pjl, pj
3961 entries to correct alphabetical position.
3962 * emulparams/elf64ppc.sh: New.
3963 * emulparams/elf64lppc.sh: New.
3965 2001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
3967 * ldmain.c (main): Declare BSIZE as static.
3969 2001-08-23 Jakub Jelinek <jakub@redhat.com>
3971 * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
3972 into .rel.dyn resp. .rela.dyn if combreloc.
3973 (get_script): If .x linker script is equal to .xn, only put it
3974 once into the binary.
3975 Add .xc and .xsc scripts.
3976 (parse_args): Handle -z combreloc and -z nocombreloc.
3977 * scripttempl/elf.sc (.rela.sbss): Fix a typo.
3978 For .xc and .xsc scripts put all .rel* or .rela* input sections
3979 but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
3980 * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
3982 Strip trailing whitespace from script.
3983 Generate .xc and .xsc scripts if requested.
3984 * ldmain.c (main): Initialize link_info.combreloc and
3985 link_info.spare_dynamic_tags.
3986 * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
3987 (ld_options): Add --spare-dynamic-tags option.
3988 (parse_args): Likewise.
3989 * ld.texinfo: Document -z combreloc and -z nocombreloc.
3990 * ldint.texinfo: Document .xc and .xsc linker scripts.
3991 * NEWS: Add notes about -z combreloc and SHF_MERGE.
3993 2001-08-22 H.J. Lu <hjl@gnu.org>
3995 * emulparams/elf32fr30.sh: Add a newline.
3997 2001-08-21 Andreas Jaeger <aj@suse.de>
3999 * deffilep.y: Add missing prototypes.
4000 * pe-dll.c: Likewise.
4002 2001-08-20 Alan Modra <amodra@bigpond.net.au>
4004 * ldlang.c (insert_pad): Fix typos in last patch.
4006 * ldlang.c: When traversing lang_statement_union_type lists,
4007 consistently use "header.next" rather than "next".
4008 * mpw-eppcmac.c: Likewise.
4009 * emultempl/beos.em: Likewise.
4010 * emultempl/hppaelf.em: Likewise.
4011 * emultempl/pe.em: Likewise.
4012 * ldlang.h (union lang_statement_union): Remove "next" field.
4014 * ldlang.c (insert_pad): Use offsetof macro.
4015 (lang_size_sections): Always neuter padding statements.
4016 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
4018 * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
4019 passed to lang_size_sections.
4020 (pe_exe_fill_sections): Likewise.
4021 * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
4022 (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
4024 2001-08-18 Alan Modra <amodra@bigpond.net.au>
4026 * emultempl/aix.em: Formatting fixes.
4028 2001-08-18 Alan Modra <amodra@bigpond.net.au>
4030 * ldlang.c (insert_pad): Make use of an existing pad statement if
4031 available. Move code calculating alignment, adjusting section
4032 alignment power, and adjusting dot to ..
4033 (size_input_section): .. here. Remove unused relax param.
4034 (lang_size_sections): Change boolean `relax' param to boolean *.
4035 Adjust call to size_input_section. Make use of insert_pad to
4036 place pad after the assignment statement. If relaxing, zap
4038 (reset_memory_regions): Reset output_bfd section sizes too.
4039 (relax_again): Move to..
4040 (lang_process): ..here. Adjust call to lang_size_sections, and
4041 remove duplicated code.
4042 * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
4044 2001-08-17 Alan Modra <amodra@bigpond.net.au>
4046 * ld.texinfo: Document that fill values now use the four least
4048 * emulparams/elf32fr30.sh (NOP): Update.
4049 * emulparams/elf32mcore.sh: Likewise.
4050 * emulparams/elf64_s390.sh: Likewise.
4051 * emulparams/elf_i386.sh: Likewise.
4052 * emulparams/elf_i386_be.sh: Likewise.
4053 * emulparams/elf_i386_chaos.sh: Likewise.
4054 * emulparams/elf_i386_ldso.sh: Likewise.
4055 * emulparams/elf_s390.sh: Likewise.
4056 * emulparams/elf_x86_64.sh: Likewise.
4057 * emulparams/i386moss.sh: Likewise.
4058 * emulparams/i386nw.sh: Likewise.
4059 * emulparams/m68kelf.sh: Likewise.
4060 * scripttempl/elf.sc: Update NOP comment.
4061 * scripttempl/elfi370.sc: Likewise.
4062 * scripttempl/elfm68hc11.sc: Likewise.
4063 * scripttempl/elfm68hc12.sc: Likewise.
4064 * scripttempl/nw.sc: Likewise.
4066 2001-08-15 Tom Rix <trix@redhat.com>
4068 * ldgram.y (saved_script_handle): Initialize to NULL.
4069 * ldmain.c (main): Change check on saved_script_handle.
4071 2001-08-14 Alan Modra <amodra@bigpond.net.au>
4073 * emultempl/elf32.em: Formatting fixes.
4074 (output_prev_sec_find): Test for bfd_ind_section too; do so by
4075 looking at sec->owner.
4076 (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
4077 (gld${EMULATION_NAME}_place_orphan): Add a few comments. Remove
4078 unused code, and reorganize orphan section placement code.
4080 * ldlang.c (wild_doit): Rename to lang_add_section.
4081 * ldlang.h: Here too.
4082 * mpw-elfmips.c: And here.
4083 * emultempl/beos.em: And here.
4084 * emultempl/elf32.em: And here.
4085 * emultempl/hppaelf.em: And here.
4086 * emultempl/pe.em: And here.
4088 2001-08-13 Richard Henderson <rth@redhat.com>
4090 * emultempl/needrelax.em: New file.
4091 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
4092 * Makefile.am (eelf64_ia64.c): Depend on it.
4093 * Makefile.in: Rebuild.
4095 2001-08-13 Alan Modra <amodra@bigpond.net.au>
4097 * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
4098 output_section is set non-NULL.
4100 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
4101 `true' for SEC_EXCLUDE sections so that the generic code doesn't
4102 needlessly create an output_section_statement. Treat a correctly
4103 named output_section_statement with NULL bfd_section as compatible.
4105 2001-08-13 Hans-Peter Nilsson <hp@bitrange.com>
4107 * emultempl/generic.em: Support EXTRA_EM_FILE.
4108 (ld_${EMULATION_NAME}_emulation): Support emulation parameters
4109 LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
4110 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
4111 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
4112 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
4113 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
4114 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
4115 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
4116 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
4117 LDEMUL_FIND_POTENTIAL_LIBRARIES.
4119 2001-08-12 Richard Henderson <rth@redhat.com>
4121 * scripttempl/elf.sc, scripttempl/elfd30v.sc,
4122 scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
4123 scripttempl/v850.sc: Keep .jcr data.
4125 2001-08-12 H.J. Lu <hjl@gnu.org>
4126 Andrew Haley <aph@cambridge.redhat.com>
4127 Nick Clifton <nickc@redhat.com>
4129 * ldgram.y (had_script): Change name to saved_script_handle.
4130 Change type to file handle.
4131 * ld.h (had_script): Rename and retype.
4132 * ldfile.c (ldfile_open_command_file): Save the file handle
4133 used in saved_script_handle.
4134 * lexsup.c (parse_args): Do not allow -c option to alter
4135 saved_script_handle.
4136 * ldmain.c (main): Print out the linker script used if
4137 --verbose is given. Check saved_script_handle to obtain the
4138 external linker script used, or if NULL, dump the builtin
4140 * ld.texinfo: Document that --verbose now dumps the linker
4141 script used, regardless of whether it was an internal or an
4144 2001-08-10 Andreas Jaeger <aj@suse.de>
4146 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
4148 * configure: Regenerate.
4150 2001-08-09 Alan Modra <amodra@bigpond.net.au>
4152 * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
4154 * scripttempl/elf.sc: Move non-text .dynamic section before
4155 .plt/.got/.sdata* group.
4156 (OTHER_GOT_SECTIONS): Move to immediately after .got.
4157 (OTHER_SDATA_SECTIONS): Add.
4158 * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
4160 * emulparams/crislinux.sh: Likewise.
4161 * emulparams/elf32b4300.sh: Likewise.
4162 * emulparams/elf32bmip.sh: Likewise.
4163 * emulparams/elf32bmipn32.sh: Likewise.
4164 * emulparams/elf32bsmip.sh: Likewise.
4165 * emulparams/elf32btsmip.sh: Likewise.
4166 * emulparams/elf32ebmip.sh: Likewise.
4167 * emulparams/elf32elmip.sh: Likewise.
4168 * emulparams/elf32l4300.sh: Likewise.
4169 * emulparams/elf32lmip.sh: Likewise.
4170 * emulparams/elf32lsmip.sh: Likewise.
4171 * emulparams/elf32ltsmip.sh: Likewise.
4172 * emulparams/elf64bmip.sh: Likewise.
4173 * emulparams/elf64btsmip.sh: Likewise.
4174 * emulparams/elf64ltsmip.sh: Likewise.
4176 2001-08-08 Alan Modra <amodra@bigpond.net.au>
4178 * genscripts.sh: Source the emulparams script before each output
4179 script is generated so that variables like `RELOCATING' may affect
4180 variables defined in the emulparams script.
4182 2001-08-04 Alan Modra <amodra@bigpond.net.au>
4184 * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
4187 * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
4188 ie. iterate over wild_statement.section_list.
4189 (gld${EMULATION_NAME}_place_orphan): Likewise.
4191 2001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4193 * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
4194 .fini[0-4] sections used by _exit
4195 (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
4196 (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
4197 * scripttempl/elfm68hc11.sc: Likewise.
4199 2001-08-03 H.J. Lu <hjl@gnu.org>
4201 * emultempl/beos.em (init): Add the missing initialization.
4203 2001-08-03 Alan Modra <amodra@bigpond.net.au>
4205 * ld.texinfo (Input Section Basics): Clarify ordering of output
4207 * ldlang.c (callback_t): Add wildcard_list param.
4208 (walk_wild_section): Remove "section" param. Rewrite for
4209 lang_wild_statement_type change. Remove unique_section_p test.
4210 (walk_wild_file): Remove "section" param.
4211 (walk_wild): Remove "section" and "file" params.
4212 (lang_gc_wild): Likewise.
4213 (wild): Likewise. Modify for lang_wild_statement_type change.
4214 (wild_sort): Likewise. Add "sec" param.
4215 (gc_section_callback): Likewise.
4216 (output_section_callback): Likewise. Do unique_section_p test.
4217 (map_input_to_output_sections): Modify call to wild.
4218 (lang_gc_sections_1): Likewise.
4219 (print_wild_statement): Modify for lang_wild_statement_type
4221 (lang_add_wild): Replace filename, filenames_sorted param with
4222 filespec. Replace section_name, sections_sorted,
4223 exclude_filename_list with section_list.
4224 * ldlang.h (lang_add_wild): Here too.
4225 (lang_wild_statement_type): Replace section_name, sections_sorted,
4226 and exclude_filename_list with section_list.
4227 * ldgram.y (current_file): Delete.
4228 (%union): Add wildcard_list.
4229 (file_NAME_list): Set type to wildcard_list. Build a linked list
4230 rather than calling lang_add_wild for each entry.
4231 (input_section_spec_no_keep): Call lang_add_wild here instead.
4232 * ld.h (struct wildcard_list): Declare.
4233 * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
4235 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
4237 * ldmain.c (main): initialize link_info.pei386_auto_import
4238 * pe-dll.c: new tables for auto-export filtering
4239 (auto_export): change API, pass abfd for contextual filtering.
4240 Loop thru tables of excluded symbols instead of comparing
4243 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
4245 * pe-dll.c: new variable pe_dll_enable_extra_debug. New
4246 static variable current_sec (static struct sec *). Add
4247 forward declaration for add_bfd_to_link.
4248 (process_def_file): Don't export undefined symbols. Do not
4249 export symbols starting with "_imp__". Call auto_export()
4251 (pe_walk_relocs_of_symbol): New function.
4252 (generate_reloc): add optional extra debugging
4253 (pe_dll_generate_def_file): eliminate extraneous initial blank
4255 (make_one): enlarge symtab to make room for __nm__ symbols
4256 (DATA auto-import support).
4257 (make_singleton_name_thunk): New function.
4258 (make_import_fixup_mark): New function.
4259 (make_import_fixup_entry): New function.
4260 (pe_create_import_fixup): New function.
4261 (add_bfd_to_link): Specify that 'name' argument is a CONST
4263 * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
4264 declare new functions pe_walk_relocs_of_symbol and
4265 pe_create_import_fixup.
4266 * emultempl/pe.em: add new options --enable-auto-import,
4267 --disable-auto-import, and --enable-extra-pe-debug.
4268 (make_import_fixup): New function.
4269 (pe_find_data_imports): New function.
4270 (pr_sym): New function.
4271 (gld_${EMULATION_NAME}_after_open): Add optional extra pe
4272 debugging. Call pe_find_data_imports. Mark .idata as DATA, not
4275 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
4277 * ld.texinfo: add additional documentation for
4278 --export-all-symbols. Document --out-implib,
4279 --enable-auto-image-base, --disable-auto-image-base,
4280 --dll-search-prefix, --enable-auto-import, and
4281 --disable-auto-import.
4282 * ldint.texinfo: Add detailed documentation on auto-import
4285 2001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
4287 * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
4290 2001-07-24 Alan Modra <amodra@bigpond.net.au>
4292 * Makefile.am: Update dependencies with "make dep-am".
4293 * Makefile.in: Regenerate
4295 2001-07-23 Alan Modra <amodra@bigpond.net.au>
4297 * ldcref.c (check_section_sym_xref): New function.
4298 (check_nocrossrefs): Call it.
4299 (check_nocrossref): Interate over h->refs here instead of..
4300 (check_refs): ..here. Pass in the symbol name, section, and bfd
4301 rather than hash_entry pointers.
4302 (struct check_refs_info): Keep symbol name rather than hash entry.
4304 (check_reloc_refs): Tweak for above changes in check_refs_info.
4305 Only report references to section syms when symname is NULL to
4306 prevent duplicate messages for the same reloc.
4308 2001-07-19 Nick Clifton <nickc@cambridge.redhat.com>
4310 * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
4311 available. Do not print NULL trees.
4312 (exp_print_token): Print unknown tokens with values > 126 as
4313 decimal values not ASCII characters.
4315 * ldlang.c (lang_leave_overlay): If a region is specified assign
4316 it to all sections inside the overlay unless they have been
4317 assigned to the own, non-default, memory region.
4319 * README: Add header for consistency with other README files.
4321 2001-07-14 H.J. Lu <hjl@gnu.org>
4323 * emultempl/elf32.em (output_prev_sec_find): Never return
4324 bfd_abs_section_ptr, bfd_com_section_ptr nor
4325 bfd_und_section_ptr.
4327 2001-07-14 Nick Clifton <nickc@cambridge.redhat.com>
4329 * Makefile.am (em32relf.c): Change dependency from generic.em to
4331 * Makefile.in: Regenerate.
4333 2001-07-14 matthew green <mrg@eterna.com.au>
4335 * configure.tgt (i386-*-netbsdelf*): New target.
4336 (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
4338 2001-07-13 Jakub Jelinek <jakub@redhat.com>
4340 * emultempl/elf32.em (output_prev_sec_find): New.
4341 (place_orphan): Use it.
4343 2001-07-11 H.J. Lu <hjl@gnu.org>
4345 * ldmain.c (main): Fix typos in the last change.
4347 2001-07-11 Jakub Jelinek <jakub@redhat.com>
4349 * ldmain.c (main): Disallow -F and -f without -shared.
4351 2001-07-11 Nick Clifton <nickc@cambridge.redhat.com>
4353 * emultempl/pe.em (after_open): Check for the output_bfd not
4354 having any coff_data structure allocated to it.
4356 2001-07-09 David O'Brien <obrien@FreeBSD.org>
4358 * emultempl/elf32.em: Do not assuming that contents of the buffer
4359 returned from basename function will remain unchanged accross other
4362 2001-07-03 H.J. Lu <hjl@gnu.org>
4364 * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
4365 2001-07-03. It creates dynamic entries even for static binaries.
4367 2001-07-03 Jakub Jelinek <jakub@redhat.com>
4369 * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
4370 (DYNAMIC): Use it to reserve few dynamic entries for
4373 2001-06-27 Alan Modra <amodra@bigpond.net.au>
4375 * emulparams/hppa64linux.sh: New file.
4376 * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
4377 * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
4378 (ehppa64linux.c): Add rule to make it.
4380 * Makefile.in: Regenerate.
4382 2001-06-21 Hans-Peter Nilsson <hp@axis.com>
4384 * ld.texinfo (Options, -r): Mention restrictions when using
4385 different object formats.
4387 2001-06-19 Hans-Peter Nilsson <hp@axis.com>
4389 * ldlang.c (lang_check): Emit fatal error if relocatable link
4390 between different object flavours with relocations in input.
4392 2001-06-19 H.J. Lu <hjl@gnu.org>
4394 * ld.texinfo (-E, --export-dynamic): Mention --version-script.
4395 (--version-script): Mention the language support.
4397 2001-06-19 H.J. Lu <hjl@gnu.org>
4399 * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
4401 2001-06-18 H.J. Lu <hjl@gnu.org>
4403 * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
4404 (diststuff): Add $(MANS).
4405 * Makefile.in: Regenerated.
4409 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
4411 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
4412 Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
4413 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
4414 * ld.h (args_type): Remove member export_dynamic. All users
4415 changed to use struct bfd_link_info member.
4417 * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
4418 $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
4419 * Makefile.in: Regenerate.
4421 2001-06-18 H.J. Lu <hjl@gnu.org>
4423 * ldlang.c (init_os): Add the newline to the einfo call.
4424 (lang_check): Likewise.
4425 (lang_do_version_exports_section): Likewise.
4427 2001-06-15 H.J. Lu <hjl@gnu.org>
4429 * lexsup.c (parse_args); Save optind to report unrecognized
4432 2001-06-15 Hans-Peter Nilsson <hp@axis.com>
4434 * ldlang.c (lang_check): Emit fatal error if relocatable link
4435 between different object flavours.
4437 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
4438 Set new link_info member export_dynamic.
4439 * ldmain.c (main): Initialize new link_info member export_dynamic.
4441 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
4443 * ldlang.c (walk_wild): Only call walk_wild_file if
4444 lookup_name returns something.
4445 (lookup_name): If load_symbols fails, return NULL.
4446 (load_symbols): Change to a boolean function.
4447 (open_input_bfds): If load_symbols fails then do not make the
4450 2001-06-08 Alan Modra <amodra@bigpond.net.au>
4452 * ldlang.c (record_bfd_errors): Remove.
4454 * emultempl/aix.em: Fix copyright dates.
4456 2001-06-07 Andreas Jaeger <aj@suse.de>
4458 * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
4459 (TEXT_START_ADDR): Likewise.
4461 2001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
4463 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
4465 2001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
4467 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
4469 2001-05-31 H.J. Lu <hjl@gnu.org>
4471 * ldlang.c (open_input_bfds): Don't change the bfd error
4472 handler whilst loading symbols.
4474 2001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
4476 * configure.tgt: Remove i370-mvs architecture, it is not currently
4479 2001-05-25 H.J. Lu <hjl@gnu.org>
4481 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
4482 like emulparams/aixppc.sh.
4484 2001-05-25 H.J. Lu <hjl@gnu.org>
4486 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
4487 setting of output_filename after bfd_scan_arch.
4488 * emultempl/pe.em: Likewise.
4490 2001-05-25 H.J. Lu <hjl@gnu.org>
4492 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
4493 like emulparams/aixppc.sh.
4495 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
4496 instead of ${srcdir}/emultempl/stringify.sed.
4498 2001-05-25 Timothy Wall <twall@oculustech.com>
4500 * emulparams/elf64_aix.sh: Change settings to match IBM linker
4503 2001-05-25 Alan Modra <amodra@one.net.au>
4505 * configure.host: Replace linuxoldld with linux*oldld.
4506 * configure.tgt: Likewise.
4508 2001-05-24 H.J. Lu <hjl@gnu.org>
4510 * emultempl/stringify.sed: Removed again.
4512 2001-05-24 H.J. Lu <hjl@gnu.org>
4514 * emultempl/aix.em (OUTPUT_ARCH): Defined.
4515 (gld${EMULATION_NAME}_before_parse): Initialize
4516 ldfile_output_architecture, ldfile_output_machine and
4517 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
4518 * emultempl/beos.em: Likewise.
4519 * emultempl/elf32.em: Likewise.
4520 * emultempl/linux.em: Likewise.
4521 * emultempl/mipsecoff.em: Likewise.
4522 * emultempl/pe.em: Likewise.
4523 * emultempl/sunos.em: Likewise.
4525 2001-05-24 Tom Rix <trix@redhat.com>
4527 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
4528 udate import file format.
4529 (change_symbol_mode) New, same
4530 (is_syscall) New, same
4531 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
4532 * emulparams/aixppc64.sh : same
4533 * emulparams/aixrs6.sh : same
4534 * emulparams/ppcmacos.sh : same
4535 * emultempl/aix.em : use strtoull to parse options
4536 * Makefile.am : add eaixppc64 emulation for xcoff64
4537 * Makefile.in : same
4538 * configure.tgt : same
4540 * scripttempl/aix.sc : default text section offset to 0x10000000
4541 default data section offset to 0x20000000
4542 add .sv3264 and .sv64 pseudo sections
4543 loader and debug sections use the currect section offset.
4545 * emultempl/aix.em : Add xcoff64 support
4546 Add -binitfini support
4547 (gld${EMULATION_NAME}_before_parse) -binitfini
4548 (gld${EMULATION_NAME}_parse_args) same
4549 (gld${EMULATION_NAME}_before_allocation) format change for special
4552 * emulparams/aixppc64.sh : New file for xcoff64 support
4554 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
4556 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
4557 variable to avoid non-portable shell construct.
4559 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4561 * ldmain.c (get_emulation): Add -mips5 command line argument.
4563 2001-05-22 Alexandre Oliva <aoliva@redhat.com>
4565 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
4566 (ELF_INTERPRETER_NAME): Define it.
4567 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
4569 * configure.tgt (targ_emul, targ_extra_emuls)
4570 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
4571 as primary, elf_i386 as extra.
4572 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
4573 (eelf_i386_ldso.c): New rule.
4574 * Makefile.in: Rebuilt.
4576 2001-05-22 Nick Clifton <nickc@redhat.com>
4578 * lexsup.c (ld_options): Allow -I to be an alias for
4579 --dynamic-linker. This is for Solaris compatability.
4580 * ld.texinfo: Document that -I can be used.
4583 2001-05-16 Alan Modra <amodra@one.net.au>
4585 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
4586 whether an input section is the first one assigned to an output
4588 Assorted formatting fixes.
4590 2001-05-14 DJ Delorie <dj@delorie.com>
4592 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
4593 * Makefile.in: Ditto.
4595 2001-05-11 Jakub Jelinek <jakub@redhat.com>
4597 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
4598 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
4600 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
4602 2001-05-11 Jakub Jelinek <jakub@redhat.com>
4604 * ldlang.c (lang_process): Call bfd_merge_sections.
4606 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4608 * ldgram.y: Fix typo.
4610 2001-05-03 H.J. Lu <hjl@gnu.org>
4612 * emultempl/elf32.em: Include "libiberty.h".
4613 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
4614 basename of the bfd filename.
4615 (gld${EMULATION_NAME}_stat_needed): Likewise.
4616 (gld${EMULATION_NAME}_try_needed): Likewise.
4617 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
4619 2001-05-02 H.J. Lu <hjl@gnu.org>
4621 * emultempl/pe.em: Include <ctype.h>.
4623 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
4625 * emulparams/elf32openrisc.sh: New file.
4627 * Makefile.am: Add OpenRISC target.
4628 * Makefile.in: Regenerated.
4630 * configure.tgt: Add openrisc-*-* mapping.
4632 2001-05-02 Nick Clifton <nickc@redhat.com>
4634 * emultempl/aix.em: Replace buystring with xstrdup.
4635 * emultempl/beos.em: Replace buystring with xstrdup.
4637 2001-05-02 H.J. Lu <hjl@gnu.org>
4639 * ldfile.c: Include "libiberty.h".
4640 * ldlex.l: Likewise.
4642 * ldmisc.c (buystring): Removed.
4643 * ldmisc.h: Likewise.
4645 * ldfile.c: Replace buystring with xstrdup.
4646 * ldlang.c: Likewise.
4647 * ldlex.l: Likewise.
4648 * ldmain.c: Likewise.
4649 * ldmisc.c: Likewise.
4650 * lexsup.c: Likewise.
4651 * mpw-eppcmac.c: Likewise.
4653 2001-04-30 Andreas Jaeger <aj@suse.de>
4655 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
4657 2001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
4659 * ldlang.c (load_symbols): Give emulation a chance
4660 to process unrecognized file before fatal error is
4661 reported, not after.
4663 2001-04-27 Sean McNeil <sean@mcneil.com>
4665 * configure.tgt: Add arm-vxworks target.
4666 * scripttempl/armcoff.sc: Support .text or .data as a section name
4670 2001-04-13 J.T. Conklin <jtc@redback.com>
4672 * ld.texinfo: Document --fatal-warnings.
4675 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
4676 warnings have been turned into errors.
4677 * lexsup.c (OPTION_WARN_FATAL): Define.
4678 (ld_options): Entry for --fatal-warnings.
4679 (parse_args): Handle OPTION_WARN_FATAL.
4680 * ld.h (ld_config_type): Add fatal_warnings field.
4682 2001-04-13 Jakub Jelinek <jakub@redhat.com>
4684 * ldmain.c (main): Default to discard_sec_merge.
4685 * lexsup.c (OPTION_DISCARD_NONE): Define.
4686 (ld_options): Add --discard-none.
4687 (parse_args): Handle OPTION_DISCARD_NONE.
4688 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
4689 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
4690 all its input sections match.
4692 2001-04-05 Steven J. Hill <sjhill@cotw.com>
4694 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
4695 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
4696 (eelf32ltsmip.c): New target.
4697 (eelf64btsmip.c): Likewise.
4698 (eelf64ltsmip.c): Likewise.
4699 * Makefile.in: Regenerated.
4701 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
4703 (mips*-*-linux-gnu*): Likewise.
4705 * emulparams/elf32ltsmip.sh: New. Traditional little endian
4707 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
4709 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
4712 2001-04-05 Hans-Peter Nilsson <hp@axis.com>
4714 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
4715 correct value of __Stext here.
4716 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
4719 * emulparams/crislinux.sh: Remove FIXME.
4721 2001-04-02 Alan Modra <alan@linuxcare.com.au>
4723 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
4724 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
4726 2001-03-27 Hans-Peter Nilsson <hp@axis.com>
4728 * configure.tgt (cris-*-*): Change default emulation to criself.
4729 (cris-*-*aout*): New rule.
4731 2001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
4733 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
4734 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
4736 2001-03-26 Andreas Jaeger <aj@suse.de>
4738 * ld.texinfo (Overview): Fix syntax in texi code.
4740 2001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4742 * ld.texinfo: Put @c man indications to generate the ld man page.
4743 When generating man, define all the variables. Define SEEALSO
4744 and SYNOPSIS. Re-organize some lines to avoid the cross references.
4745 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
4746 (ld.1): Generate from ld.texinfo.
4747 * Makefile.in: Regenerate.
4749 2001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
4751 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
4752 and '-fdata-sections'. Set the VMA of STABS sections to zero.
4754 2001-03-17 Ulrich Drepper <drepper@redhat.com>
4756 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
4757 is an absolute path look only for this file and not along the path.
4759 2001-03-17 Ulrich Drepper <drepper@redhat.com>
4761 * emultempl/elf32.em (OPTION_GROUP): New macro.
4762 Add new option Bgroup to longopts.
4763 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
4764 (gld*_list_options): Add -Bgroup and -z defs.
4765 * ld.1: Document -Bgroup and -z defs.
4766 * ld.texinfo: Likewise.
4768 2001-03-07 Michael Meissner <meissner@redhat.com>
4770 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
4771 with sections created by -fdata-sections.
4772 (.dynbss,.bss): Ditto.
4774 2001-03-05 Alan Modra <alan@linuxcare.com.au>
4776 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
4777 after_allocation_default, not gld..._before_allocation.
4779 2001-02-27 Alan Modra <alan@linuxcare.com.au>
4781 * configure.in (BFD_VERSION): New.
4782 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
4783 * configure: Regenerate.
4784 * Makefile.am: Run "make dep-am"
4785 * Makefile.in: Regenerate.
4787 2001-02-26 Timothy Wall <twall@cygnus.com>
4789 * emulparams/elf64_aix.sh: Add additional read-only sections;
4790 uncomment lines which are now required.
4792 2001-02-26 H.J. Lu <hjl@gnu.org>
4794 * ldlang.c (open_input_bfds): Set the bfd error handler so
4795 that problems can be caught whilst loading symbols.
4796 (record_bfd_errors): New function: Report BFD errors and mark
4797 the executable output as being invalid.
4799 2001-02-22 Timothy Wall <twall@cygnus.com>
4801 * configure.host: Add configuration for ia64-*-aix*.
4802 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
4803 Add dependencies for eelf64_aix.c.
4804 * Makefile.in: Regenerate.
4805 * configure.tgt: Add ia64-*-aix* mapping.
4806 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
4808 2001-02-20 H.J. Lu <hjl@gnu.org>
4810 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
4811 false if we found the file.
4813 2001-02-18 David O'Brien <obrien@FreeBSD.org>
4815 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
4816 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
4818 2001-02-18 lars brinkhoff <lars@nocrew.org>
4820 * Makefile.am: Add PDP-11 target.
4821 * configure.tgt: Likewise.
4822 * emulparams/pdp11.sh: New file.
4824 2001-02-17 David O'Brien <obrien@FreeBSD.org>
4826 * configure.host: Add a generic FreeBSD configuration entry such that
4827 all [modern] FreeBSD systems on all platforms will look the same.
4829 2001-02-14 H.J. Lu <hjl@gnu.org>
4831 * configure.tgt: Remove mention of earmelf_linux26.
4833 2001-02-13 Richard Henderson <rth@redhat.com>
4835 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
4837 2001-02-13 H.J. Lu <hjl@gnu.org>
4839 * ldexp.h (node_type): Add etree_provided.
4840 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
4841 type to etree_provided if defined by PROVIDE. Allow updating
4843 (exp_print_tree): Handle etree_provided.
4844 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
4847 2001-02-09 David Mosberger <davidm@hpl.hp.com>
4849 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
4850 .IA_64.unwind.* pattern to unwind table section and
4851 .IA_64.unwind_info* pattern to unwind info section.
4853 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
4855 * Makefile.am: Add linux target for S/390.
4856 * Makefile.in: Likewise.
4857 * configure.host: Likewise.
4858 * configure.tgt: Likewise.
4859 * emulparams/elf64_s390.sh: New file.
4860 * emulparams/elf_s390.sh: New file.
4862 2001-02-09 Jakub Jelinek <jakub@redhat.com>
4864 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
4866 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
4868 2001-02-06 Philip Blundell <philb@gnu.org>
4870 * Makefile.am: Remove mention of earmelf_linux26.
4871 * Makefile.in: Regenerate.
4873 2001-02-04 Philip Blundell <philb@gnu.org>
4875 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
4876 * emulparams/armelf_linux26.sh: Delete.
4877 * configure.tgt: Remove mention of armelf_linux26 emulation.
4879 2001-02-01 Nick Clifton <nickc@redhat.com>
4881 * ld.1: Replace occurances of -oformat with --oformat.
4883 2001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
4885 * ldlang.c (lang_leave_overlay): Don't set lma_region when
4886 load_base is specified.
4888 2001-01-24 Hans-Peter Nilsson <hp@axis.com>
4890 * emultempl/elf32.em: Correct spelling in comments and listed
4893 2001-01-23 Alan Modra <alan@linuxcare.com.au>
4895 * ldlang.c (lang_leave_overlay): Only set lma_region from the
4896 default for the first section of a group of overlay sections.
4898 2001-01-22 Alan Modra <alan@linuxcare.com.au>
4900 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
4901 * Makefile.in: Regenerate.
4902 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
4903 Check for null tool_dir.
4905 2001-01-16 Jim Wilson <wilson@redhat.com>
4907 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
4908 and IA_64.unwind.info.
4910 2001-01-16 H.J. Lu <hjl@gnu.org>
4912 * ldlang.c (lang_check): Merge the private data only if the
4913 input file has contents.
4915 2001-01-14 Alan Modra <alan@linuxcare.com.au>
4917 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
4919 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
4920 enabling search for libmilli. On a relocatable link, make .text
4922 (LDEMUL_AFTER_PARSE): Define.
4923 (hppaelf_finish): Correct spelling of relocatable in comments.
4925 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
4926 rummage through the script for sections on the unique list.
4927 Correct length of strncmp for ".note".
4928 (gld${EMULATION_NAME}_check_needed): Rearrange function.
4930 * ldlang.c (unique_section_list): New var.
4931 (unique_section_p): New function.
4932 (walk_wild_section): Don't match sections on unique_section_list.
4933 (lang_add_unique): New function.
4934 Correct spelling of relocatable in comments.
4936 * ldlang.h (struct unique_sections): Declare.
4937 (unique_section_list): Declare.
4938 (unique_section_p): Declare.
4939 (lang_add_unique): Declare.
4941 * lexsup.c (ld_options): Allow --unique to take an optional arg.
4942 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
4944 * ld.texinfo (--unique): Update.
4946 2001-01-13 Nick Clifton <nickc@redhat.com>
4948 * lexsup.c (parse_args): Remove spurious white space.
4950 2001-01-12 Nick Clifton <nickc@redhat.com>
4952 * lexsup.c (parse_args): Update copyright date.
4954 2001-01-12 Philip Blundell <pb@futuretv.com>
4956 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
4958 2001-01-10 Kazu Hirata <kazu@hxi.com>
4960 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
4961 * scripttempl/h8300h.sc: Fix formatting.
4962 * scripttempl/h8300s.sc: Likewise.
4963 * scripttempl/h8500.sc: Likewise.
4964 * scripttempl/h8500b.sc: Likewise.
4965 * scripttempl/h8500c.sc: Likewise.
4966 * scripttempl/h8500m.sc: Likewise.
4967 * scripttempl/h8500s.sc: Likewise.
4969 2000-01-07 David O'Brien <obrien@BSDi.com>
4971 * emultempl/elf32.em: Only perform Linux ld hints processing when
4974 2001-01-07 Philip Blundell <philb@gnu.org>
4976 * ld.texinfo (Bug Reporting): Update email address for reports.
4978 2000-12-31 Nick Clifton <nickc@redhat.com>
4980 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
4981 options by checking for a return value of '?' not -1.
4983 2000-12-28 Nick Clifton <nickc@redhat.com>
4985 * lexsup.c (struct ld_option): Add new enum value:
4987 (ld_options[]): Change -omagic, -output and -oformat options
4988 to be EXACTLY_TWO_DASHES.
4989 (OUTPUT_COUNT): Use ARRAY_SIZE.
4990 (parse_args): Change parameter 'argc' to unsigned.
4991 Place EXACTLY_TWO_DASHES options into new really_longopts
4993 If getopt_long_only fails, try calling getopt_long using the
4994 really_longopts array.
4995 (help): Print a double dash for both EXACTLY_TWO_DASHES and
4998 * ldlex.h: Fix prototype of parse_args.
5000 * ld.texinfo: Document that long options starting with 'o'
5001 must be preceeded by two dashes. Change example of a single
5002 dashed long option from -oformat to -trace-symbol.
5004 2000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
5006 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
5007 (longopts[]): New --no-default-excludes option.
5008 (gld_${EMULATION_NAME}_list_options): Document.
5009 (gld_${EMULATION_NAME}_parse_args): Handle.
5011 2000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5013 * ldlang.c (new_stat): Revert the last beautification with "innocent"
5014 whitespace, it breaks the K&R C preprocessor.
5016 2000-12-11 DJ Delorie <dj@redhat.com>
5018 * ld.texinfo: Add notes about --whole-archive and gcc.
5020 2000-11-18 Fred Fish <fnf@be.com>
5022 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
5023 (ld_options): Entry for --allow-shlib-undefined.
5024 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
5025 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
5027 * ld.texinfo: Document new command line switch.
5029 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
5031 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
5032 .fixup is actually read/write.
5033 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
5034 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
5035 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
5037 2000-12-11 Jan Hubicka <jh@suse.cz>
5039 * NEWS: Add note about x86_64 architecture.
5041 2000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
5043 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
5044 Set DWARF2 sections to a VMA of zero.
5046 2000-12-01 Joel Sherrill <joel@OARcorp.com>
5048 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
5050 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
5051 (sparc*-*-rtems*): Switched from a.out to ELF.
5053 2000-11-30 Jan Hubicka <jh@suse.cz>
5055 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
5056 (eelf_x86_64.c): New.
5057 * Makefile.in: Regenerate.
5058 * configure.tgt: Add support for x86_64-*-linux-gnu*.
5059 * emulparams/elf_x86_64.sh: New.
5061 2000-11-30 Hans-Peter Nilsson <hp@axis.com>
5063 * emulparams/crislinux.sh (ENTRY): Change back to _start.
5064 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
5066 * scripttempl/crisaout.sc: Change all RELOCATING not related to
5067 merging non-a.out sections into CONSTRUCTING.
5069 2000-11-28 Nick Clifton <nickc@redhat.com>
5071 * ld.1 (COPYING): Mention that the GNU Free Documentation
5072 License is present in the sources, but not the output, and
5073 also available from the GNU website.
5074 (GNU Free Documentation License): Comment out this section.
5076 2000-11-28 David O'Brien <obrien@dragon.nuxi.com>
5078 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
5081 2000-11-25 David O'Brien <obrien@FreeBSD.org>
5083 * ld.1: Remove old date so it does not give the impression the manpage
5086 2000-11-24 Nick Clifton <nickc@redhat.com>
5088 * configure.tgt (xscale-coff): Add target.
5089 (xscale-elf): Add target.
5091 2000-11-24 Fred Fish <fnf@be.com>
5093 * ldmain.c (main): Remove redundant init of config.make_executable
5096 2000-11-15 Richard Henderson <rth@redhat.com>
5098 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
5100 2000-11-14 Kazu Hirata <kazu@hxi.com>
5102 * scripttempl/h8300.sc: Fix formatting.
5103 * scripttempl/h8300h.sc: Likewise.
5104 * scripttempl/h8300s.sc: Likewise.
5106 2000-11-14 Denis Chertykov <denisc@overta.ru>
5108 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
5110 2000-11-09 Philip Blundell <pb@futuretv.com>
5112 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
5113 around orphan sections whose names can be represented in C.
5115 2000-11-07 Jim Wilson <wilson@redhat.com>
5117 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
5118 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
5120 2000-11-06 Nick Clifton <nickc@redhat.com>
5122 * ld.texinfo: Add GNU Free Documentation License.
5123 * ldint.texinfo: Add GNU Free Documentation License.
5124 * ld.1: Add GNU Free Documentation License.
5126 2000-11-05 Alan Modra <alan@linuxcare.com.au>
5128 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
5129 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
5131 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
5132 Move 2000-11-02 Makefile.in changes to this file.
5133 * Makefile.in: Regenerate.
5135 2000-11-03 Nick Clifton <nickc@redhat.com>
5137 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
5138 constructors and destructors.
5139 * scripttempl/h8300h.sc: Ditto.
5140 * scripttempl/h8300s.sc: Ditto.
5141 * scripttempl/h8500.sc: Ditto.
5142 * scripttempl/h8500b.sc: Ditto.
5143 * scripttempl/h8500c.sc: Ditto.
5144 * scripttempl/h8500m.sc: Ditto.
5145 * scripttempl/h8500s.sc: Ditto.
5146 * scripttempl/v850.sc: Ditto.
5147 * scripttempl/w65.sc: Ditto.
5148 * scripttempl/z8000.sc: Ditto.
5150 2000-11-02 Per Lundberg <plundis@chaosdev.org>
5152 * Makefile.in (e_i386_chaos.c): New rule.
5153 (ALL_EMULATIONS): Added e_i386_chaos.o.
5154 * emulparams/elf_i386_chaos.sh: New file.
5155 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
5157 2000-10-20 Jakub Jelinek <jakub@redhat.com>
5159 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
5160 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
5161 Fix sed invocation, so that it coped with '/' in Solaris 64bit
5162 library path suffix.
5163 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
5165 2000-10-18 Hans-Peter Nilsson <hp@axis.com>
5167 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
5168 for consecutive sections.
5170 2000-10-17 Chandrakala Chavva <cchavva@redhat.com>
5172 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
5174 * ld.texinfo: Added notes about this new option.
5176 2000-10-16 Nick Clifton <nickc@redhat.com>
5178 * emultempl/pe.em (_after_open): Add tests of return values from
5179 bfd functions. Emit appropriate error messages if necessary.
5181 2000-10-13 Nick Clifton <nickc@redhat.com>
5183 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
5184 local variables - they are not used, but leave in the call to
5185 bfd_canonicalize_symtab.
5186 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
5187 pe_dll_search_prefix.
5189 2000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
5191 * emultempl/pe.em (pe_dll_search_prefix): New variable,
5192 (longopts): New --dll-search-prefix option.
5193 (gld_${EMULATION_NAME}_list_options): Document.
5194 (gld_${EMULATION_NAME}_parse_args): Handle.
5195 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
5196 dynamically, search for a dll named '<prefix><basename>.dll'
5197 in preference to 'lib<basename>.dll' if --dll-search-prefix
5200 2000-10-12 Alan Modra <alan@linuxcare.com.au>
5202 * ldlang.c (section_already_linked): Set kept_section instead of
5205 2000-10-10 Kazu Hirata <kazu@hxi.com>
5207 * deffile.h: Fix formatting.
5208 * lexsup.c: Likewise.
5211 2000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
5213 * pe-dll.c (make_one): Do not generate code thunk for DATA
5215 (process_def_file): deduce DATA flag for auto-export sumbols.
5217 2000-10-09 Kazu Hirata <kazu@hxi.com>
5219 * ld.h: Fix formatting.
5220 * ldcref.c: Likewise.
5221 * ldctor.h: Likewise.
5222 * ldemul.c: Likewise.
5223 * ldemul.h: Likewise.
5224 * ldexp.c: Likewise.
5225 * ldexp.h: Likewise.
5226 * ldfile.c: Likewise.
5227 * ldfile.h: Likewise.
5228 * ldlang.c: Likewise.
5229 * ldlang.h: Likewise.
5230 * ldmain.c: Likewise.
5231 * pe-dll.c: Likewise.
5233 * pe-dll.c: Revert some formatting fixes.
5235 2000-10-08 Kazu Hirata <kazu@hxi.com>
5237 * pe-dll.c: Fix formatting.
5239 2000-10-05 Kazu Hirata <kazu@hxi.com>
5241 * ldlang.c: Fix formatting.
5243 2000-10-03 DJ Delorie <dj@redhat.com>
5245 * pe-dll.c (fill_edata): initialize entire block
5246 (make_one): fill in correct section.
5248 2000-10-03 Kazu Hirata <kazu@hxi.com>
5250 * ldexp.c: Fix formatting.
5252 2000-10-02 DJ Delorie <dj@redhat.com>
5254 * emultempl/pe.em (gld_*_after_open): detect case where there two
5255 import libraries for same dll; rename one to ensure proper link
5258 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
5260 (generate_edata): fix typo
5262 2000-09-29 Hans-Peter Nilsson <hp@axis.com>
5264 * scripttempl/crisaout.sc (ENTRY): Now __start.
5265 (.text): Add default setting for __start.
5266 Remove CONSTRUCTORS handling.
5267 (/DISCARD/): Add .gnu.warning.*.
5268 * emulparams/crislinux.sh (ENTRY): Now __start.
5269 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
5270 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
5271 (ENTRY): Now __start.
5272 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
5273 (EXECUTABLE_SYMBOLS): Add default setting for __start.
5275 2000-09-29 Kazu Hirata <kazu@hxi.com>
5277 * deffile.h: Fix formatting.
5279 * ldcref.c: Likewise.
5280 * ldctor.c: Likewise.
5281 * ldctor.h: Likewise.
5282 * ldemul.c: Likewise.
5283 * ldemul.h: Likewise.
5284 * ldexp.c: Likewise.
5285 * ldexp.h: Likewise.
5286 * ldfile.c: Likewise.
5287 * ldfile.h: Likewise.
5288 * ldlang.c: Likewise.
5289 * ldlang.h: Likewise.
5290 * lexsup.c: Likewise.
5292 * pe-dll.c: Likewise.
5294 2000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
5296 * pe-dll.c (process_def_file): Uninitialized data wasn't
5297 exported with --export-all-symbols switch.
5299 2000-09-28 DJ Delorie <dj@redhat.com>
5301 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
5302 noname work properly.
5304 2000-09-28 Alan Modra <alan@linuxcare.com.au>
5306 * ld.texinfo (HPPA ELF32): New section.
5308 * emultempl/hppaelf.em (group_size): New.
5309 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
5310 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
5311 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
5312 options to prevent abbreviations matching.
5313 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
5314 (PARSE_AND_LIST_ARGS_CASES): Handle it.
5316 2000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5318 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
5319 on the m68*-*-elf target. Make it support COFF input objects.
5321 2000-09-21 Kazu Hirata <kazu@hxi.com>
5323 * ldmain.c: Fix formatting.
5324 * ldmisc.c: Likewise.
5325 * ldver.c: Likewise.
5326 * ldwrite.c: Likewise.
5328 2000-09-21 Alan Modra <alan@linuxcare.com.au>
5330 * ldwrite.c (clone_section): Silence gcc warnings.
5332 2000-09-20 Alan Modra <alan@linuxcare.com.au>
5334 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
5335 out of memory failure.
5337 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
5338 (clone_section): Handle out of memory failures. Rename var to
5339 avoid c++ reserved word.
5341 2000-09-18 Alan Modra <alan@linuxcare.com.au>
5343 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
5344 stub_name param to stub_sec_name.
5345 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
5347 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5349 * emultempl/m68kelf.em: New file.
5350 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
5351 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
5352 * Makefile.in: Regenerate.
5354 2000-09-15 Alan Modra <alan@linuxcare.com.au>
5356 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
5359 2000-09-13 Nick Clifton <nickc@redhat.com>
5361 * ldmain.c (multiple_definition): Disable relaxation if
5362 multiple symbol definitions are encountered - otherwise the
5363 linker could abort with an assertion failure.
5365 2000-09-10 Nick Clifton <nickc@redhat.com>
5367 * mri.c: Fix formatting.
5369 2000-09-07 H.J. Lu <hjl@gnu.org>
5371 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
5372 * configure: Rebuild.
5374 2000-09-07 H.J. Lu <hjl@gnu.org>
5376 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
5377 * Makefile.in: Rebuild.
5379 2000-09-07 Alan Modra <alan@linuxcare.com.au>
5381 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
5382 broken list handling. Create __start_SECNAME and __stop_SECNAME
5383 when no place-holder. Add some comments. Test both SEC_CODE and
5384 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
5385 Handle case where no output section statement created.
5387 2000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
5389 * configure.tgt (sh-*-linux*): Added.
5390 * Makefile.am: Added eshelf_linux and eshlelf_linux.
5391 * Makefile.in: Rebuilt.
5392 * emulparams/shelf_linux.sh: New file.
5393 * emulparams/shlelf_linux.sh: New file.
5395 2000-09-06 Alan Modra <alan@linuxcare.com.au>
5397 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
5398 try shuffling sections when the orphan happens to be the place
5399 holder. Keep count of unique section names generated so we speed
5400 the search for a new name.
5402 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
5404 * configure: Rebuilt with new libtool.m4.
5406 2000-09-05 Nick Clifton <nickc@redhat.com>
5408 * Makefile.in: Regenerate.
5409 * aclocal.m4: Regenerate.
5410 * configure: Regenerate.
5411 * config.in: Regenerate.
5412 * po/ld.pot: Regenerate.
5414 * ldint.texinfo: Remove CVS revision marker - it foils local
5417 * emultempl/ticoff.em: Remove extraneous comma.
5419 2000-09-05 Alan Modra <alan@linuxcare.com.au>
5421 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
5422 to stub section flags.
5423 (hppa_for_each_input_file_wrapper): New.
5424 (hppa_lang_for_each_input_file): New.
5425 (lang_for_each_input_file): Define to call above.
5426 (multi_subspace): New.
5427 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
5428 (PARSE_AND_LIST_PROLOGUE): Define.
5429 (PARSE_AND_LIST_LONGOPTS): Define.
5430 (PARSE_AND_LIST_OPTIONS): Define.
5431 (PARSE_AND_LIST_ARGS_CASES): Define.
5432 (hppaelf_finish): Call elf32_hppa_set_gp.
5433 (hppaelf_set_output_arch): Remove.
5434 (LDEMUL_SET_OUTPUT_ARCH): Remove.
5436 * emulparams/hppalinux.sh (ELFSIZE): Define.
5438 (OTHER_READONLY_SECTIONS): Define.
5440 (GENERATE_SHLIB_SCRIPT): Define.
5442 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
5443 to const throughout. Change `void *' to `PTR' throughout.
5444 (lang_memory_default): Function is local to file, add `static'.
5446 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
5447 (ehppalinux.c): Likewise.
5448 (earmelf.c): Likewise.
5449 (earmelf_linux.c): Likewise.
5450 (earmelf_linux26.c): Likewise.
5451 * Makefile.in: Regenerate.
5453 * ld.h (ld_config_type): Add unique_orphan_sections.
5454 * lexsup.c (OPTION_UNIQUE): Define.
5455 (ld_options): Add "--unique".
5456 (parse_args): Handle it.
5457 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
5458 search for an existing output section if unique_orphan_sections is
5459 set. Make use of bfd_get_unique_section_name rather than
5460 duplicating code here.
5461 * ld.texinfo: Describe --unique.
5463 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
5464 optional arg to split-by-file.
5465 (parse_args): Handle them.
5466 * ld.texinfo: Update description of these options.
5467 * ldwrite.c (clone_section): Pass in the section name. Replace
5468 local code with bfd_get_unique_section_name.
5469 (split_sections): Tidy code and comments. Use a list traversal
5470 more appropriate to the list construction. Handle cooked section
5471 sizes. Split when split_by_reloc reached rather than exceeded.
5472 Track section size and split when split_by_file reached. Fix
5473 link_order_tail (even though it's not used).
5474 (ldwrite): Modify condition for calling split_sections to suit
5475 changed split_by_reloc and split_by_file.
5476 * ldmain.c (main): Init config.split_by_reloc and
5477 config.split_by_file to -1.
5478 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
5479 Change split_by_file to bfd_size_type.
5481 2000-09-02 Nick Clifton <nickc@redhat.com>
5483 * configure.in: Increase version number to 2.10.91.
5484 * NEWS: Mention new ability to support removal of duplicate DWARF2
5486 * configure: Regenerate.
5487 * aclocal.m4: Regenerate.
5488 * config.in: Regenerate.
5490 2000-09-02 Daniel Berlin <dberlin@redhat.com>
5492 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
5494 * scripttempl/elf32avr.sc: Ditto.
5495 * scripttempl/elfd10v.sc: Ditto.
5496 * scripttempl/elfd30v.sc: Ditto.
5497 * scripttempl/elfi370.sc: Ditto.
5498 * scripttempl/elfm68hc11.sc: Ditto.
5499 * scripttempl/elfm68hc12.sc: Ditto.
5500 * scripttempl/elfi386beos.sc: Ditto.
5501 * scripttempl/v850.sc: Ditto.
5503 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
5505 * acinclude.m4: Include libtool and gettext macros from the
5507 * aclocal.m4, configure: Rebuilt.
5509 2000-08-25 Nick Clifton <nickc@redhat.com>
5511 * ldlang.c (open_output): When choosing the target for a
5512 particular endianness, do nothing if the target is not
5515 2000-08-25 H.J. Lu <hjl@gnu.org>
5517 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
5518 check -rpath nor LD_RUN_PATH for cross link.
5519 * ld.texinfo: Document the change.
5521 2000-08-24 Hans-Peter Nilsson <hp@axis.com>
5523 * NEWS: Mention support for CRIS.
5525 2000-08-23 H.J. Lu <hjl@gnu.org>
5527 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
5528 the current runpath list from bfd_elf_get_runpath_list ()
5531 2000-08-22 H.J. Lu <hjl@gnu.org>
5533 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
5534 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
5535 LD_LIBRARY_PATH for native linker. Display the needed DSO if
5536 trace_file_tries is non-zero.
5537 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
5538 if trace_file_tries is non-zero.
5540 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
5543 2000-08-14 Jason Eckhardt <jle@cygnus.com>
5545 * NEWS: Mention i860 support.
5547 2000-08-14 Andreas Schwab <schwab@suse.de>
5549 * scripttempl/elf.sc: Fix last change to use correct comment
5552 2000-08-10 Geoff Keating <geoffk@cygnus.com>
5554 * scripttempl/elf.sc: Add a comment giving the correspondence
5555 between sections, per-datum sections, and linkonce sections. Make
5556 the comment true even for .bss, .sdata, .sdata2, .sbss, and
5559 2000-08-10 Jason Eckhardt <jle@cygnus.com>
5561 * emulparams/elf32_i860.sh: New file.
5562 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
5563 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
5564 (eelf32_i860.c): New rule.
5565 * Makefile.in: Regenerate.
5567 2000-08-10 Nick Clifton <nickc@cygnus.com>
5569 * emulparams/mipspe.sh (ENTRY): Add definition.
5571 2000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
5573 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
5576 2000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5578 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
5579 the final size of .bss section.
5580 * scripttempl/elfm68hc12.sc: Likewise.
5582 2000-08-04 Alan Modra <alan@linuxcare.com.au>
5584 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
5585 gld${EMULATION_NAME}_parse_args for consistency. Combine
5586 lastoptind and prevoptind vars, and keep track of last optind.
5587 (gld_${EMULATION_NAME}_list_options): Rename to
5588 gld${EMULATION_NAME}_list_options.
5590 2000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
5592 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
5593 (i586-sco-sysv5uw7.1.0).
5595 2000-07-27 H.J. Lu <hjl@gnu.org>
5597 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
5598 (PARSE_AND_LIST_PROLOGUE): New.
5599 (PARSE_AND_LIST_LONGOPTS): Likewise.
5600 (PARSE_AND_LIST_OPTIONS): Likewise.
5601 (PARSE_AND_LIST_ARGS_CASES): Likewise.
5602 (PARSE_AND_LIST_EPILOGUE): Likewise.
5604 2000-07-28 Alan Modra <alan@linuxcare.com.au>
5606 * emultempl/armelf.em: Elide functions common to elf32.em,
5607 ie. most of the file.
5608 (arm_elf_after_open): New. Do arm specific things then call
5609 gld${EMULATION_NAME}_after_open.
5610 (arm_elf_before_allocation): New. Call
5611 gld${EMULATION_NAME}_before_allocation then do arm specifics.
5612 (PARSE_AND_LIST_PROLOGUE): Define.
5613 (PARSE_AND_LIST_SHORTOPTS): Define.
5614 (PARSE_AND_LIST_LONGOPTS): Define.
5615 (PARSE_AND_LIST_OPTIONS): Define.
5616 (PARSE_AND_LIST_ARGS_CASES): Define.
5617 (LDEMUL_AFTER_OPEN): Define.
5618 (LDEMUL_BEFORE_ALLOCATION): Define.
5619 (LDEMUL_BEFORE_PARSE): Define.
5620 (LDEMUL_FINISH): Define.
5622 * emultempl/hppaelf.em: Similarly zap most of this file.
5623 (hppaelf_add_stub_section): Prototype.
5624 (hppaelf_layaout_sections_again): Prototype.
5625 (hook_in_stub): Prototype.
5626 (LDEMUL_SET_OUTPUT_ARCH): Define.
5627 (LDEMUL_FINISH): Define.
5628 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
5630 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
5631 (EXTRA_EM_FILE): New.
5632 * emulparams/armelf_linux.sh: Likewise.
5633 * emulparams/armelf_linux26.sh: Likewise.
5634 * emulparams/hppalinux.sh: Likewise.
5635 * emulparams/hppaelf.sh: Likewise.
5638 * emultempl/elf32.em: Fix formatting.
5639 (EXTRA_EM_FILE): Source it.
5640 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
5641 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
5642 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
5643 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
5644 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
5645 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
5646 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
5647 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
5648 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
5649 allow functions in this file to be overridden.
5650 (PARSE_AND_LIST_SHORTOPTS): Handle it.
5652 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
5654 * emultempl/elf32.em: Reorganize file.
5656 2000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
5658 * emulparams/elf64alpha.sh: Implement "-taso" emulation
5659 specific option to fit 64-bit executable in the lower
5660 31-bit address range. This is done by changing start
5661 address of .interp (the very first section of executable)
5662 and then setting EF_ALPHA_32BIT elf header flag.
5664 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5666 * emultempl/m68kcoff.em: New file.
5667 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
5668 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
5670 * Makefile.in: Regenerate.
5672 2000-07-20 H.J. Lu <hjl@gnu.org>
5674 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
5675 and "disable-new-dtags" to stop getopt from treating -d/-e as
5676 abbreviations for these options.
5678 2000-07-20 H.J. Lu <hjl@gnu.org>
5680 * ld.texinfo: Add documentation for --disable-new-dtags and
5683 * ldmain.c (main): Initialize link_info.new_dtags to false.
5685 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
5686 --disable-new-dtags and --enable-new-dtags.
5687 (gld_${EMULATION_NAME}_list_options): Likewise.
5689 2000-07-05 Kenneth Block <krblock@computer.org>
5691 * lexsup.c: Add optional style to demangle switch
5692 * ld.texinfo: Document optional style to demangle switch.
5694 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
5696 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
5698 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
5699 Regenerate dependencies.
5700 * Makefile.in: Rebuild.
5701 * configure.tgt (cris-*-*): New target.
5702 * emulparams/crisaout.sh, emulparams/criself.sh,
5703 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
5704 * po/POTFILES.in, po/ld.pot: Regenerate.
5706 2000-07-20 H.J. Lu <hjl@gnu.org>
5708 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
5709 Print out ignored -z options.
5711 2000-07-19 H.J. Lu <hjl@gnu.org>
5713 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
5714 (PARSE_AND_LIST_PROLOGUE): New.
5715 (PARSE_AND_LIST_LONGOPTS): Likewise.
5716 (PARSE_AND_LIST_OPTIONS): Likewise.
5717 (PARSE_AND_LIST_ARGS_CASES): Likewise.
5719 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
5721 * lexsup.c (ld_options): Comment out 'z'.
5722 (parse_args): Likewise.
5724 * emultempl/elf32.em: Include "elf/common.h".
5725 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
5727 (gld_${EMULATION_NAME}_list_options): Likewise.
5729 * ld.texinfo: Add documentation for the recognized -z options.
5731 2000-07-19 H.J. Lu <hjl@gnu.org>
5733 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
5734 bfd_elf_set_dt_needed_soname ().
5736 2000-07-18 DJ Delorie <dj@cygnus.com>
5738 * pe-dll.c (pe_dll_id_target): check object target name also
5740 2000-07-18 Hans-Peter Nilsson <hp@axis.com>
5742 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
5743 ${INIT_END} if relocating.
5744 (.fini): Likewise ${FINI_START} and ${FINI_END}.
5746 2000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
5748 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
5749 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
5750 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
5751 errors introduced by the old dynamic lib search order.
5753 2000-07-17 DJ Delorie <dj@cygnus.com>
5755 * pe-dll.c (process_def_file): auto-export data items also
5756 (pe_process_import_defs): also see if _imp_ form needed
5758 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
5760 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
5761 for dll import libraries
5763 2000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
5765 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
5766 gcc 2.95.2 and later.
5768 2000-07-11 Kazu Hirata <kazu@hxi.com>
5770 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
5773 2000-07-10 Alan Modra <alan@linuxcare.com.au>
5775 * ldemul.h (struct lang_input_statement_struct): Remove forward
5777 (struct search_dirs): Likewise.
5778 * ldfile.h (struct lang_input_statement_struct): Likewise.
5779 Protect file from multiple inclusion.
5780 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
5781 declaration from macro to file scope.
5783 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
5784 * ldgram.y: Likewise here.
5785 * ldlang.c: And here.
5786 * ldmain.c: And here.
5787 * mpw-elfmips.c: And here.
5788 * mpw-eppcmac.c: And here.
5789 * emultempl/aix.em: And here.
5790 * emultempl/armcoff.em: And here.
5791 * emultempl/armelf.em: And here.
5792 * emultempl/armelf_oabi.em: And here.
5793 * emultempl/beos.em: And here.
5794 * emultempl/elf32.em: And here.
5795 * emultempl/hppaelf.em: And here.
5796 * emultempl/linux.em: And here.
5797 * emultempl/lnk960.em: And here.
5798 * emultempl/pe.em: And here.
5799 * emultempl/sunos.em: And here.
5800 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
5801 * mpw-idtmips.c: Ditto.
5802 * emultempl/generic.em: Ditto.
5803 * emultempl/gld960.em: Ditto.
5804 * emultempl/gld960c.em: Ditto.
5805 * emultempl/mipsecoff.em: Ditto.
5806 * emultempl/ticoff.em: Ditto.
5807 * emultempl/vanilla.em: Ditto.
5809 * pe-dll.c: Include ldfile.h
5810 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
5812 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
5813 arguments to bfd_elf32_size_dynamic_sections call.
5814 (gldelf32ebmip_place_orphan): Add missing arguments to
5815 lang_leave_output_section_statement call.
5817 2000-07-10 H.J. Lu <hjl@gnu.org>
5819 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
5821 (strhash): Likewise.
5822 (compute_dll_image_base): Likewise.
5823 (pe_undef_found_sym): Likewise.
5824 (pe_undef_cdecl_match): Likewise.
5825 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
5826 argument "arch" with ATTRIBUTE_UNUSED.
5828 2000-07-10 Alan Modra <alan@linuxcare.com.au>
5830 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
5832 From Ryan Bradetich <rbradetich@uswest.net>
5833 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
5835 2000-07-09 Alan Modra <alan@linuxcare.com.au>
5837 Changes to create multiple linker stubs, positioned immediately
5838 before the section where they are required.
5839 * emultempl/hppaelf.em: Include elf32-hppa.h.
5840 (stub_sec, file_chain): Delete.
5841 (hppaelf_create_output_section_statements): Don't make a stub
5843 (hook_stub_info): New struct.
5844 (hook_in_stub): New function.
5845 (hppaelf_add_stub_section): New function.
5846 (hppaelf_finish): Do nothing for relocateable links. Modify the
5847 call to elf32_hppa_size_stubs. Move code for updating section
5849 (hppaelf_layaout_sections_again): ..to here, a new function.
5851 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
5852 broken list handling. Pass in a pointer to the list.
5853 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
5855 (hppaelf_before_parse): Prototype.
5856 (hppaelf_set_output_arch): Prototype.
5857 (hppaelf_create_output_section_statements): Prototype.
5858 (hppaelf_delete_padding_statements): Prototype.
5859 (hppaelf_finish): Prototype.
5862 * emultempl/hppaelf.em: Include ctype.h.
5863 (struct orphan_save): New.
5864 (gld${EMULATION_NAME}_place_orphan): New.
5865 (output_rel_find): New.
5866 (hppaelf_get_script): Update from elf32.em.
5867 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
5868 Change emulation_name field to "${EMULATION_NAME}". Add
5869 gld${EMULATION_NAME}_place_orphan.
5871 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
5872 ehppalinux.o, sort it. Regenerate dependencies.
5873 (ehppalinux.c): Depend on hppaelf.em
5874 * Makefile.in: Regenerate.
5876 * configure.tgt: targ_emul=hppalinux for hppa*linux
5878 * emulparams/hppalinux.sh: New.
5879 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
5881 2000-07-08 Alan Modra <alan@linuxcare.com.au>
5883 * lexsup.c (parse_args): Copy section name.
5885 2000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
5887 * emultempl/pe.em: institute the following search order for
5888 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
5889 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
5890 static lib (libfoo.a) if none of the above are found.
5892 2000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
5894 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
5895 (longopts): New --{enable,disable}-auto-image-base options.
5896 (gld_${EMULATION_NAME}_list_options): Document.
5897 (gld_${EMULATION_NAME}_parse): Handle.
5898 (strhash): New static function.
5899 (compute_dll_image_base): New static function.
5900 (gld_${EMULATION_NAME}_set_symbols): Use.
5902 2000-07-05 DJ Delorie <dj@redhat.com>
5906 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
5908 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
5909 * emulparams/elf32btsmip.sh: New file.
5910 * Makefile.am: Add traditional mips target.
5911 * Makefile.in: Rebuild.
5913 2000-07-01 H.J. Lu <hjl@gnu.org>
5915 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
5916 automake to use YLWRAP.
5917 * Makefile.in: Rebuild.
5919 2000-07-01 Alan Modra <alan@linuxcare.com.au>
5921 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
5922 (CLEANFILES): Add DEPA.
5923 * Makefile.in: Regenerate.
5925 2000-06-30 Timothy Wall <twall@ppc>
5927 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
5928 the page in the upper octet of the address.
5930 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
5932 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
5934 2000-06-24 Alan Modra <alan@linuxcare.com.au>
5936 * NEWS: arm-elf does --gc-sections too.
5938 2000-06-22 Alan Modra <alan@linuxcare.com.au>
5940 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
5942 * Makefile.in: Regenerate.
5944 2000-06-21 H.J. Lu <hjl@gnu.org>
5946 * Makefile.am: Rebuild dependency.
5947 * Makefile.in: Rebuild.
5949 2000-06-20 H.J. Lu <hjl@gnu.org>
5951 * Makefile.am: Rebuild dependency.
5952 * Makefile.in: Rebuild.
5954 2000-06-20 Timothy Wall <twall@cygnus.com>
5956 * scripttempl/tic54xcoff.sc: New.
5957 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
5958 * gen-doc.texi: Add flag for TI COFF.
5959 * ld.texinfo: Add documentation for TI COFF handling switches.
5960 * emultempl/ticoff.em: New. TI COFF handling.
5961 * configure.tgt: Add tic54x target.
5962 * Makefile.am: Add tic54x target.
5963 * Makefile.in: Ditto.
5965 2000-06-20 Alan Modra <alan@linuxcare.com.au>
5967 * ldmain.c (set_scripts_dir): Correct pointer comparison when
5968 checking for backslashes.
5970 2000-06-19 Alan Modra <alan@linuxcare.com.au>
5972 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
5974 2000-06-18 Alan Modra <alan@linuxcare.com.au>
5976 * NEWS: Update list of targets supporting --gc-sections.
5978 * scripttempl/elf.sc: KEEP .eh_frame contents.
5979 * scripttempl/elfd30v.sc: Same here.
5981 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
5983 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
5985 * Makefile.in: Rebuild.
5986 * configure.tgt: Recognize m68hc12 and m68hc11.
5987 * scripttempl/elfm68hc12.sc: New file.
5988 * emulparams/m68hc12elfb: New emulation.
5989 * emulparams/m68hc12elf: New emulation.
5990 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
5991 (includes a memory.x script to define the ROM and RAM banks).
5992 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
5993 New configuration files for support of Motorola 68hc11
5995 2000-06-15 Alan Modra <alan@linuxcare.com.au>
5997 * ldmain.c (main): Only change SEC_READONLY for final link.
5999 2000-06-13 H.J. Lu <hjl@gnu.org>
6001 * configure: Regenerate.
6003 2000-06-08 David O'Brien <obrien@FreeBSD.org>
6005 * configure.in (VERSION): Update to show this is the CVS mainline.
6007 2000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
6009 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
6010 input objects to be ECOFF.
6011 (check_sections): einfo takes %B, not %P, to print a BFD name.
6013 2000-06-05 Michael Matz <matz@ifh.de>
6015 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
6018 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
6020 2000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
6022 * emulparams/avr1200.sh (STACK): Define as 0.
6023 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
6024 * emulparams/avr4433.sh (STACK): Likewise.
6025 * emulparams/avr44x4.sh (STACK): Likewise.
6026 * emulparams/avr85xx.sh (STACK): Likewise.
6027 * emulparams/avrmega103.sh (STACK): Likewise.
6028 * emulparams/avrmega161.sh (STACK): Likewise.
6029 * emulparams/avrmega603.sh (STACK): Likewise.
6030 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
6031 (__stack): Define from ${STACK} for main().
6033 2000-05-26 Alan Modra <alan@linuxcare.com.au>
6035 * Makefile.am: Update dependencies with "make dep-am"
6036 * Makefile.in: Regenerate.
6038 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
6040 * ldmain.c: Include filenames.h.
6041 (set_scripts_dir): Support backslashes in program name.
6043 2000-05-22 Igor Shevlyakov <igor@windriver.com>
6045 * ldmain.c (main): When deciding if ".text" section should be
6046 read-only, don't forget to reset SEC_READONLY because it
6047 could be already set.
6049 2000-05-22 Thomas de Lellis <tdel@windriver.com>
6051 * ld.1: Add documentation for new command line option:
6052 --section-start <sectionname>=<sectionorg>
6053 This is a generic version of -Ttext etc. which accepts
6054 any section name as a parameter instead of just text/data/
6056 * ld.texinfo: More docs.
6058 * lexsup.c: (parse_args): Recognize new command line option.
6059 (ld_options): Add new option.
6061 2000-05-18 H.J. Lu <hjl@gnu.org>
6063 * lexsup.c (parse_args): `i' == `r', not `q'.
6065 2000-05-18 Jeffrey A Law (law@cygnus.com)
6067 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
6069 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
6070 Rick Gorton <gorton@scrugs.lkg.dec.com>
6072 Add support for '-q' == '--emit-relocs' switch.
6073 * ldmain.c (main): Default to false.
6074 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
6075 * NEWS: Describe the emitrelocations switch.
6076 * ld.texinfo: Describe the emitrelocations switch.
6078 2000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
6080 * emultempl/pe.em (_open_dynamic_archive): New function: Search
6081 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
6082 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
6085 2000-05-15 David O'Brien <obrien@FreeBSD.org>
6087 * lexsup.c (parse_args): Update the year in the copyright notice.
6089 2000-05-13 Alan Modra <alan@linuxcare.com.au>
6091 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
6092 Replace defines with those from intl/libgettext.h to quieten gcc
6095 2000-05-10 H.J. Lu <hjl@gnu.org>
6097 * ldlang.c (open_input_bfds): Don't load the same file within
6098 a group again if the whole archive has been loaded already.
6100 2000-05-03 Alan Modra <alan@linuxcare.com.au>
6102 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
6103 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
6106 2000-05-01 Jim Wilson <wilson@cygnus.com>
6108 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
6110 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
6111 host "ia64-*-linux-gnu*".
6113 2000-04-29 Andreas Jaeger <aj@suse.de>
6115 * ld.h: Correctly check GCC version.
6117 2000-04-25 Jeffrey A Law (law@cygnus.com)
6119 * Makefile.am: Add PA64 support. Add missing dependencies for
6121 * Makefile.in: Rebuilt.
6122 * configure.tgt: Add PA64 support (currently disabled).
6124 2000-04-25 Alan Modra <alan@linuxcare.com.au>
6126 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
6127 (output_rel_find): New function.
6128 (hold_section, hold_use): Delete.
6129 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
6130 hold_interp): Make local to place_orphan.
6131 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
6132 rather than place_section to find possible previous use of orphan.
6133 Similarly find the place-holder output sections. Use returned
6134 value from lang_enter_output_section_statement rather than calling
6135 lang_output_section_statement_lookup.
6136 * emultempl/armelf.em: Same here.
6137 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
6139 * ldlang.c (lang_enter_output_section_statement): Return output
6141 * ldlang.h (lang_enter_output_section_statement): Change
6144 * ldlang.h (lang_output_section_statement): Export it.
6145 * ldlang.c (lang_output_section_statement): Ditto.
6147 2000-04-24 Nick Clifton <nickc@cygnus.com>
6149 * ld.texinfo (Output Section Data): Add note that section data
6150 commands cannot appear outside of section directives.
6152 2000-04-2 Matthew Green <mrg@cygnus.com>
6154 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
6156 2000-04-21 Richard Henderson <rth@cygnus.com>
6157 David Mosberger <davidm@hpl.hp.com>
6159 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
6160 (eelf64_ia64.c): New rule.
6161 * Makefile.in: Rebuild.
6162 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
6163 * emulparams/elf64_ia64.sh: New file.
6165 2000-04-21 Richard Henderson <rth@cygnus.com>
6167 * scripttempl/elfd30v.sc: Place .gcc_except_table.
6169 2000-04-19 Alan Modra <alan@linuxcare.com.au>
6171 * dep-in.sed: Match space at start of file name, not at end.
6173 2000-04-18 H.J. Lu <hjl@gnu.org>
6175 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
6176 lang_leave_output_section_statement () after calling
6177 lang_enter_output_section_statement ().
6178 * emultempl/armelf.em: Likewise.
6180 2000-04-18 Alan Modra <alan@linuxcare.com.au>
6182 * emultempl/elf32.em (struct orphan_save): Add section field.
6183 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
6184 better order, and place first orphan section as we did before the
6185 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
6186 Don't call make_bfd_section here, let wild_doit do the job for us.
6187 Don't build a statement list when we'll only throw it away.
6188 * emultempl/armelf.em: Ditto.
6189 * emultempl/pe.em: Similarly.
6191 2000-04-14 Geoff Keating <geoffk@cygnus.com>
6193 * scripttempl/elfppc.sc: Remove.
6194 * emulparams/elf32ppc.sh: Use elf.sc.
6195 * emulparams/elf32lppc.sh: Use elf.sc.
6196 * emulparams/elf32ppclinux.sh: Use elf.sc.
6197 * emulparams/elf32ppcsim.sh: New file.
6198 * emulparams/elf32lppcsim.sh: New file.
6199 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
6200 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
6201 * Makefile.in: Regenerate.
6202 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
6204 2000-04-14 Alan Modra <alan@linuxcare.com.au>
6206 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
6207 ~SEC_ALLOC sections too. Init start address of debug sections.
6208 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
6209 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
6210 Also set all relocateable section start addresses.
6212 2000-04-13 Geoff Keating <geoffk@cygnus.com>
6214 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
6215 Add new BSS_PLT variable for when .plt need not be contained in
6216 the file. Move _etext so that it is also after .fini, and provide
6217 both etext and _etext with a leading underscore. Mark the start
6220 2000-04-12 Alan Modra <alan@linuxcare.com.au>
6222 * emultempl/elf32.em (struct orphan_save): New.
6223 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
6224 hold_interp): Make them struct orphan_save.
6225 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
6226 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
6227 the end of the relevant section list. Also add associated section
6228 statements to the end of any previous orphan statements.
6229 * emultempl/armelf.em: Similarly.
6230 * emultempl/pe.em: Similarly.
6232 2000-04-11 Alan Modra <alan@linuxcare.com.au>
6234 * ld.texinfo (Simple Example): Remove extraneous paragraph.
6236 2000-04-07 Andrew Cagney <cagney@b1.cygnus.com>
6238 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
6239 --enable-build-warnings option.
6240 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
6241 * Makefile.in, configure: Re-generate.
6243 2000-04-04 Alan Modra <alan@linuxcare.com.au>
6245 * po/ld.pot: Regenerate.
6247 * lexsup.c (help): Restore translated part of bug string.
6249 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
6250 (DEP): Quote when passing vars to sub-make. Add warning message
6252 (DEP1): Rewrite for "gcc -MM".
6253 (CLEANFILES): Add DEP2.
6254 Update dependencies.
6255 * Makefile.in: Regenerate.
6257 2000-04-03 Alan Modra <alan@linuxcare.com.au>
6259 * ld.h: #include "bin-bugs.h"
6260 * lexsup.c (help): Use REPORT_BUGS_TO.
6262 2000-03-27 Denis Chertykov <denisc@overta.ru>
6264 * configure.tgt (avr-*-*): New target support.
6265 * Makefile.am: Likewise.
6266 * scripttempl/elf32avr.sc: New script file.
6267 * emulparams/avr1200.sh: New file.
6268 * emulparams/avr23xx.sh: New file.
6269 * emulparams/avr4433.sh New file.
6270 * emulparams/avr44x4.sh New file.
6271 * emulparams/avr85xx.sh New file.
6272 * emulparams/avrmega103.sh New file.
6273 * emulparams/avrmega161.sh New file.
6274 * emulparams/avrmega603.sh New file.
6275 * Makefile.in: Regenerate.
6277 2000-03-09 Andreas Jaeger <aj@suse.de>
6279 * Makefile.am (check-DEJAGNU): Also unset LANG.
6280 * Makefile.in: Rebuild.
6282 2000-03-06 Ian Lance Taylor <ian@zembu.com>
6284 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
6287 2000-03-02 H.J. Lu <hjl@gnu.org>
6289 * emulparams/elf32mcore.sh: Include "getopt.h".
6291 2000-03-01 Ian Lance Taylor <ian@zembu.com>
6293 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
6295 2000-03-01 H.J. Lu <hjl@gnu.org>
6297 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
6298 * emulparams/shpe.sh: Likewise.
6300 2000-03-01 Nick Clifton <nickc@cygnus.com>
6302 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
6303 to unused parameters.
6305 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
6306 functions only used by DLL code.
6307 (_place_orphan): Initialise 'dollar'.
6309 2000-03-01 H.J. Lu <hjl@gnu.org>
6311 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
6312 indicate if the undefined symbol is a fatal error or not.
6313 Don't delete the output file if "fatal" is false.
6315 2000-02-29 H.J. Lu <hjl@gnu.org>
6317 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
6318 Set LC_COLLATE and LC_ALL to null and export them. It is for
6319 sort which expects the C locale.
6320 Add $(LIBS) to all $(HOSTING_LIBS).
6321 * Makefile.in: Rebuild.
6323 2000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
6325 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
6326 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
6327 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
6328 (ld_emulation_xfer_struct): Add missing NULL initialiser for
6329 find_potential_libraries.
6331 2000-02-28 Jim Blandy <jimb@redhat.com>
6333 * ldgram.y (exclude_name_list): Don't require a comma to separate
6334 list entries; the lexer considers commas to be valid part of a
6335 filename, so in something like `foo, bar' the comma is considered
6336 part of the first filename, `foo,'.
6337 * ld.texinfo: Update section on EXCLUDE_FILE lists.
6339 2000-02-27 Loren J. Rittle <ljrittle@acm.org>
6341 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
6342 host "i[3456]86-*-freebsdelf*".
6344 2000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
6346 * scripttempl/i386go32.sc: Move misplaced semicolons.
6348 2000-02-25 Ian Lance Taylor <ian@zembu.com>
6350 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
6351 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
6352 (eelf64hppa.c, ehppaelf.c): Remove targets.
6353 * Makefile.in: Rebuild.
6355 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
6357 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
6358 GNU/Linux/sparc, but keep the default as 32.
6360 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
6361 it default if sparcv9 or sparc64.
6363 2000-02-24 Nick Clifton <nickc@cygnus.com>
6365 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
6366 * Makefile.in: Regenerate.
6367 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
6369 * ldemul.h (ld_emulation_xfer_struct): Add new field:
6370 find_potential_libraries.
6371 * ldemul.c (ldemul_find_potential_libraries): New function.
6373 * ldfile.c (ldfile_open_file_search): Allow function to be
6375 (ldfile_open_file): Call ldemul_find_potential_libraries.
6376 * ldfile.h: Add prototype for ldfile_open_file_search.
6378 * pe-dll.c: Add support for ARM, MIPS and SH targets.
6380 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
6381 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
6383 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
6384 (gld_X_find_potential_libraries): New function. Search for
6385 libraries called "*.lib".
6387 * scripttempl/pe.sc: Add .pdata section.
6389 2000-02-23 Richard Henderson <rth@cygnus.com>
6391 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
6392 Add and use memory regions.
6394 2000-02-23 Linas Vepstas (linas@linas.org)
6396 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
6398 * Makefile.am: Add support for Linux/IBM 370.
6399 * configure.tgt: Likewise.
6401 * Makefile.in: Regenerate.
6403 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
6405 * ldlang.c (print_input_section, print_data_statement,
6406 print_reloc_statement, print_padding_statement, insert_pad,
6407 size_input_section, lang_check_section_addresses,
6408 lang_size_sections, lang_do_assignments, lang_set_startof,
6409 lang_one_common): Change `opb' to unsigned.
6410 (lang_do_assignments): Also change `size' to unsigned.
6412 2000-02-16 Richard Henderson <rth@cygnus.com>
6414 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
6416 2000-02-16 Timothy Wall <twall@cygnus.com>
6418 * mri.c (mri_draw_tree): Add default LMA region argument to call
6419 to lang_leave_output_section_statement.
6420 * ldlang.h: Update prototypes with LMA region arguments.
6421 * ldlang.c (lang_size_sections): Encapsulate region bounds
6422 checking in os_check_region call.
6423 (os_check_region): New function.
6424 (lang_output_section_statement_lookup): Initialize lma_region.
6425 (lang_leave_output_section_statement): Add LMA region argument.
6426 (lang_leave_overlay): Ditto.
6427 * ldgram.y: Handle LMA region syntax.
6428 * ld.texinfo (Output Section Description): Describe LMA region usage.
6429 * emultempl/armelf.em (gld$place_orphan): Add default value for
6430 lma region in call to lang_leave_output_section_statement.
6431 * emultempl/elf32.em (gld$place_orphan): Add default value for
6432 lma region in call to lang_leave_output_section_statement.
6433 * emultempl/pe.em (gld$place_orphan): Add default value for
6434 lma region in call to lang_leave_output_section_statement.
6437 2000-02-04 Timothy Wall <twall@redhat.com>
6439 * ldlang.c (lang_check_section_addresses): Use bytes instead of
6440 octets when calculating section end addresses.
6442 2000-02-04 Timothy Wall <twall@redhat.com>
6444 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
6446 2000-02-03 Timothy Wall <twall@redhat.com>
6448 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
6450 * ldlang.c (print_input_section, print_data_statement,
6451 print_reloc_statement, print_padding_statement): Print target
6452 address values and section sizes as bytes, not octets.
6453 (insert_pad) Calculate padding size in octets, and adjust "dot"
6455 (size_input_section) Always adjust "dot" by bytes, not octets.
6456 (lang_check_section_addresses, lang_do_assignments) Adjust
6457 "dot" by bytes, not octets. Use the larger of the directive size
6458 or octets_per_byte for the number of octets actually allocated in
6460 (lang_set_startof) Make sure STARTOF returns a target address.
6461 (lang_one_common) Record size changes in octets.
6462 (lang_abs_symbol_at_end_of) Section end symbol's value is
6463 recorded in target bytes.
6464 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
6465 to be clear about behavior when an octet is smaller than one byte.
6467 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
6469 * ldcref.c (output_cref): Don't pass message strings to printf
6473 * ldmisc.c (vfinfo): Same here.
6476 2000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
6478 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
6479 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
6480 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
6481 Add missing NULL initialisers, and comments.
6483 2000-01-21 Nick Clifton <nickc@cygnus.com>
6485 * ldlang.c (lang_size_sections): Fix typo in comment.
6487 2000-01-18 H.J. Lu <hjl@gnu.org>
6489 * ldlang.c (lang_size_sections): Also update the current
6490 address of a region if the SEC_NEVER_LOAD bit is not set.
6492 2000-01-10 Philip Blundell <pb@futuretv.com>
6494 * configure.tgt (arm*-*-conix*): New target.
6496 2000-01-07 Nick Clifton <nickc@cygnus.com>
6498 * ld.texinfo (Options): Remind users to preceed linker command
6499 line switches with -Wl, (or whatever is appropriate) if it is
6500 being invoked by a comnpiler driver program.
6501 Fix description of the behaviour of the -n command line switch.
6503 2000-01-05 Catherine Moore <clm@cygnus.com>
6505 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
6507 * ld.texinfo (EXCLUDE_FILE): Update documentation.
6508 * ldgram.y (wildcard_spec): Support a list of excluded_files.
6509 (exclude_name_list): New.
6510 ldlang.c (walk_wild_section): Support list of excluded files.
6511 (print_wild_statement): Likewise.
6512 (lang_add_wild): Likewise.
6513 * ldlang.h (lang_wild_statement_type): Likewise.
6514 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
6516 2000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
6518 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
6519 (process_def_file): Use.
6520 (pe_dll_compat_implib): New variable.
6523 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
6524 pe_dll_compat_implib.
6526 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
6527 compat-implib options.
6528 (gld_${EMULATION_NAME}_list_options): List new options.
6529 (gld_${EMULATION_NAME}_parse_args): Handle.
6531 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
6534 * deffilep.y (opt_name): Allow "." in name.
6536 For older changes see ChangeLog-9899
6542 version-control: never