1 2001-12-19 Andreas Jaeger <aj@suse.de>
3 * ld.texinfo (VERSION): Fix markup.
5 2001-12-18 matthew green <mrg@eterna.com.au>
7 * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
8 (m68kelfnbsd.c): New rule.
9 * Makefile.in: Regenerate.
10 * configure.tgt (m68*-hp-netbsd*): Renamed to ..
11 (m68*-*-netbsd*4k*): .. this.
12 (m68*-*-netbsdelf*): New target.
13 (m68*-*-netbsd*): Also include ELF support.
14 (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
15 * emulparams/m68kelfnbsd.sh: New emulation.
17 2001-12-18 Jakub Jelinek <jakub@redhat.com>
19 * ldgram.y (vers_node): Support anonymous version tags.
20 * ldlang.c (lang_register_vers_node): Ensure anonymous version
21 tag is not defined together with non-anonymous versions.
22 * ld.texinfo: Document it.
24 2001-12-18 Nick Clifton <nickc@cambridge.redhat.com>
26 * po/tr.po: New file: Turkish translation.
27 * configure.in (ALL_LINGUAS): Add tr.
28 * configure: Regenerate.
30 2001-12-17 Jason Thorpe <thorpej@wasabisystems.com>
32 * Makefile.am: Add rules for eelf64alpha_nbsd.
33 * Makefile.in: Regenerate.
34 * configure.tgt (alpha*-*-netbsd*): Set
35 targ_emul to elf64alpha_nbsd.
36 * emulparams/elf64alpha_nbsd.sh: Added.
38 2001-12-17 Alan Modra <amodra@bigpond.net.au>
40 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
41 section_tail when fiddling with section list.
42 (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
43 broken into separate strings to make translation easier.
44 * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
45 fiddling with section list.
46 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
48 2001-12-16 Hans-Peter Nilsson <hp@bitrange.com>
50 * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
52 2001-12-15 Alan Modra <amodra@bigpond.net.au>
54 * ldmain.c (main): Initialise link_info.eh_frame_hdr.
56 2001-12-13 Jakub Jelinek <jakub@redhat.com>
58 * emultempl/elf32.em (finish): Supply output_bfd
59 to bfd_elf*_discard_info.
60 (OPTION_EH_FRAME_HDR): Define.
61 (longopts): Add --eh-frame-hdr.
62 (parse_args): Handle it.
63 (list_options): Add --eh-frame-hdr to help.
64 * emultempl/hppaelf.em (finish): Supply output_bfd
65 to bfd_elf*_discard_info.
66 * scripttempl/elf.sc (.eh_frame_hdr): Add.
68 2001-12-13 Alan Modra <amodra@bigpond.net.au>
70 * lexsup.c (parse_args): Don't pass shortopts to second call to
71 getopt functions. Restore optind rather than decrementing before
72 second call. Remove errind as it now duplicates last_optind.
74 2001-12-11 Christopher Faylor <cgf@redhat.com>
76 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
78 2001-12-07 Geoffrey Keating <geoffk@redhat.com>
79 Richard Henderson <rth@redhat.com>
81 * Makefile.am: Add support for xstormy16.
82 * configure.tgt: Add support for xstormy16.
83 * Makefile.in: Regenerate.
84 * emulparams/elf32xstormy16.sh: New file.
85 * scripttempl/xstormy16.sc: New file.
87 2001-10-01 Christopher Faylor <cgf@cygnus.com>
89 * Makefile.in (LIB_PATH): Make configurable.
90 (GENSCRIPTS): Set LIB_PATH in environment.
91 * configure.in: Substitute LIB_PATH.
92 * configure: Regenerate.
93 * configure.tgt (*cygwin): Set LIB_PATH for cross build.
94 * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
96 2001-12-07 Nick Clifton <nickc@cambridge.redhat.com>
98 * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
99 describing the -N option so that it is easier to translate into
102 2001-12-05 Nick Clifton <nickc@cambridge.redhat.com>
104 * emultempl/pe.em (..._list_options): Replace multiple fprintf
105 statements describing a single option with a single, newline
106 escaped fprintf. This allows better translation into other
109 * ldmain.c (add_archive_element): Combine multiple strings
110 into a single string to permit better translation into other
113 2001-12-05 Tom Rix <trix@redhat.com>
115 * Makefile.am: Remove eaixppc64.
116 * Makefile.in: Regenerate.
118 2001-12-04 Tom Rix <trix@redhat.com>
120 * emultempl/aix.em (choose_target): Change default target to
121 OUTPUT_FORMAT for ppcmacos. Add braces to remove compiler
123 (gld*_read_file): Fix typo.
124 (change_symbol_mode): Add prototype.
127 * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
128 * emulparams/aixrs6.sh : Same.
129 * emulparams/ppcmacos.sh : Same.
130 * emulparams/aixppc64.sh : Delete file.
131 * emultempl/aix.em : Formatting changes.
133 2001-12-04 Hans-Peter Nilsson <hp@axis.com>
135 * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
136 (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
138 (OTHER_END_SYMBOLS): Fix formatting.
139 * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
140 (OTHER_END_SYMBOLS): Fix formatting.
142 2001-12-04 Alan Modra <amodra@bigpond.net.au>
144 * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
146 2001-12-02 Tom Rix <trix@redhat.com>
148 * configure.tgt : Remove eaixppc64 emulations.
149 * Makefile.in : Remove eaixppc64.c
150 * ldemul.c (ldemul_choose_target): New parameters argc, argv.
151 (ldemul_default_target): Same.
152 * emultempl/gld960.em (gld960_choose_target): Same.
153 * emultempl/gld960c.em (gld960_choose_target): Same.
154 * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
155 * emultempl/aix.em (is_syscall): syscall_mask now a variable.
156 * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
157 * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
158 * emultempl/aix.em (choose_target): New function. Handle emulation of
161 2001-11-27 H.J. Lu <hjl@gnu.org>
163 * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
164 * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
165 * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
166 * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
167 * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
168 * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
169 * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
170 * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
172 * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
175 (REL_SDATA): Likewise.
176 (REL_SBSS): Likewise.
177 (REL_SDATA2): Likewise.
178 (REL_SBSS2): Likewise.
179 (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
182 2001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
184 * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
186 * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
188 2001-11-22 H.J. Lu <hjl@gnu.org>
190 * Makefile.in: Regenerated with automake based on automake
193 2001-11-22 Alan Modra <amodra@bigpond.net.au>
195 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
196 (config.status): Delete rule.
197 Add extra dependencies to cover sourced emulparams files.
198 * Makefile.in: Regenerate.
200 * scripttempl/elf.sc: Order <section>, <section>.* and
201 corresponding linkonce sections as seen in input files.
202 Formatting fixes. Zero vma of all sections if not relocating.
203 (STACK): Define and insert if STACK_ADDR defined.
204 (OTHER_RELOCATING_SECTIONS): Delete.
205 (OTHER_END_SYMBOLS): Define.
206 (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
207 (OTHER_READWRITE_SECTIONS): Likewise.
208 (OTHER_GOT_SECTIONS): Likewise.
209 (OTHER_SDATA_SECTIONS): Likewise.
210 (OTHER_BSS_SECTIONS): Likewise.
211 * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
212 (OTHER_READWRITE_SECTIONS): Likewise.
213 * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
214 (OTHER_READWRITE_SECTIONS): Likewise
216 * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
217 (STACK_ADDR): Define.
218 * emulparams/armelf_oabi.sh: As for armelf.sh.
219 * emulparams/elf32mcore.sh: As for armelf.sh.
220 * emulparams/h8300elf.sh: As for armelf.sh.
221 * emulparams/mn10200.sh: As for armelf.sh.
222 * emulparams/shelf.sh: As for armelf.sh.
224 * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
225 (OTHER_END_SYMBOLS): Define.
226 * emulparams/m32relf.sh: As for elf32fr30.sh.
227 * emulparams/h8300helf.sh: As for elf32fr30.sh.
228 * emulparams/h8300self.sh: As for elf32fr30.sh.
230 * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
231 defines with RELOCATING test.
232 (OTHER_SDATA_SECTIONS): Likewise.
233 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
234 (OTHER_END_SYMBOLS): ..this.
235 * emulparams/crislinux.sh: As for criself.sh.
237 * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
239 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
240 (OTHER_SECTIONS): ..this. Zero vma if not relocating. Order
241 normal and linkonce sections as seen in input files.
242 * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
243 (TEXT_DYNAMIC): Likewise.
244 (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
245 (OTHER_SDATA_SECTIONS): Likewise.
246 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
247 * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
248 * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
249 * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
250 * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
251 (OTHER_PLT_RELOC_SECTIONS): Likewise.
252 (OTHER_READONLY_SECTIONS): Likewise. Order normal and linkonce
253 sections as seen in input files.
254 * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
255 * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
257 (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
258 (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
259 * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
260 (OTHER_SECTIONS): Instead, use this..
261 (OTHER_END_SYMBOLS): ..and this.
263 * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
264 * emulparams/elf32bsmip.sh: Likewise.
265 * emulparams/elf32btsmip.sh: Likewise.
266 * emulparams/elf32ebmip.sh: Likewise.
267 * emulparams/elf32lmip.sh: Likewise.
268 * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
269 * emulparams/elf32lsmip.sh: Likewise.
270 * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
271 * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
272 * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
273 * emulparams/elf64btsmip.sh: Likewise.
274 * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
275 * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
276 * emulparams/elf32ppclinux.sh: Likewise.
277 * emulparams/elf32ppcsim.sh: Likewise.
278 * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
279 * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
280 * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
281 * emulparams/h8300self.sh: Likewise.
282 * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
283 * emulparams/sh.sh: Comment.
284 * emulparams/shl.sh: Source sh.sh, remove duplicates.
285 * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
286 * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
288 2001-11-21 David Heine <dlheine@tensilica.com>
289 Alan Modra <amodra@bigpond.net.au>
291 * ldlang.c (map_input_to_output_sections): Replace "break"
292 accidentally removed with 2001-08-03 change.
293 (lang_gc_sections_1): Likewise.
295 2001-11-21 Alan Modra <amodra@bigpond.net.au>
297 * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
299 2001-11-20 Angela Marie Thomas <angela@redhat.com>
301 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
302 of false when calling lang_size_sections.
303 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
305 2001-11-15 Alan Modra <amodra@bigpond.net.au>
307 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
308 function when LDEMUL_FINISH isn't set to the same name. Don't
309 call ${LDEMUL_FINISH}.
310 (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
311 * emultempl/armelf.em (arm_elf_finish): Call
312 gld${EMULATION_NAME}_finish.
313 * emultempl/hppaelf.em (hppaelf_finish): Rename to
314 gld${EMULATION_NAME}_finish. Call bfd_elf32_discard_info and
315 hppaelf_layout_sections_again if necessary.
316 (need_laying_out): New var.
317 (hppaelf_layaout_sections_again): Rename to
318 hppaelf_layout_sections_again. Clear need_laying_out.
319 (PARSE_AND_LIST_OPTIONS): Format text.
321 2001-11-14 H.J. Lu <hjl@gnu.org>
323 * emultempl/armelf.em (arm_elf_finish): Renamed from
324 gld${EMULATION_NAME}_finish.
325 (LDEMUL_FINISH): Set to arm_elf_finish.
327 2001-11-14 Daniel Jacobowitz <drow@mvista.com>
329 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
330 (struct ld_emulation_xfer_struct): Use it.
332 Tue Nov 13 11:27:14 2001 Ross Alexander <ross.alexander@uk.neceur.com>
334 * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
335 additional symbols referenced by newer crt0.o files from HP.
337 2001-11-12 Anthony Green <green@redhat.com>
339 * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
341 2001-11-12 Alfred M. Szmidt <ams@kemisten.nu>
343 * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
344 * Makefile.in: Regenerate.
346 2001-11-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
348 * ld.texinfo: Use @command for commands, @option for options.
349 * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
351 * Makefile.in: Rebuild.
353 2001-11-04 Chris Demetriou <cgd@broadcom.com>
355 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
356 Add support for targets.
358 2001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
360 * configure.in (ALL_LINGUAS): Add "fr" and "sv"
361 * configure: Regernate.
362 * po/fr.po: New file.
363 * po/sv.po: New file.
365 2001-11-01 NIIBE Yutaka <gniibe@m17n.org>
367 * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
368 as little endian default and to support big endian.
370 2001-11-01 Chris Demetriou <cgd@broadcom.com>
372 * ld.texinfo (Options): Document new option, -nostdlib.
373 * lexsup.c (OPTION_NOSTDLIB): New definition.
374 (ld_options): Add entry for "nostdlib".
375 (parse_args): Handle OPTIONS_NOSTDLIB.
376 * ldfile.c (ldfile_add_library_path): Don't add directories
377 to the search path if they weren't specified on the command line
378 and -nostdlib was specified.
379 * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
381 2001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
383 * lexsup.c (parse_args): Prevent infinite parsing loop when
384 "-rpath.a" is specified on the command line.
385 Replace calls to fprintf with calls to einfo.
387 2001-10-31 John Marshall <jmarshall@acm.org>
389 * ld.texinfo: A historical requirement that MEMORY and SECTIONS
390 appear only once across all the linker scripts involved in a link
391 invocation no longer applies. Make the documentation reflect
394 2001-10-31 NIIBE Yutaka <gniibe@m17n.org>
396 * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
398 (sh-*-linux*): Added targ_extra_libpath.
400 2001-10-31 David Heine <dlheine@tensilica.com>
402 * ldlang.c (lang_size_sections): Keep a valid output_offset field
403 for padding statements.
405 2001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
407 * configure.tgt (mmix-*-*): New target.
408 * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
409 Add dependencies to match.
410 * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
411 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
412 scripttempl/mmo.sc: New files.
413 * gen-doc.texi: @set MMIX.
415 [MMIX] Add MMIX node.
416 * Makefile.in: Regenerate.
418 2001-10-29 Kazu Hirata <kazu@hxi.com>
420 * ldlang.c: Fix a comment typo.
422 2001-10-23 Alan Modra <amodra@bigpond.net.au>
424 * configure.host: Move alpha*-*-linux-gnu* entry to generic
425 entries, and match *-*-linux*.
427 2001-10-20 Alan Modra <amodra@bigpond.net.au>
429 * ldgram.y (mri_script_command): Surround processing of INCLUDE
430 with ldlex_script, ldlex_popstate.
431 (ifile_p1): Likewise.
432 * ldlex.l (EOF): Don't BEGIN(SCRIPT). Restore lineno from the
434 (lex_push_file): Save current lineno to lineno_stack. Set lineno
435 to 1. Don't BEGIN(SCRIPT).
436 (lex_redirect): Similarly.
437 * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
439 2001-10-20 Nick Clifton <nickc@cambridge.redhat.com>
441 * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
442 __EH_FRAME_END__ and accept eh frames into data section.
443 Add ctor and dtor sections.
445 2001-10-19 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
447 * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
448 (auto-export): Fix indentation.
450 2001-10-18 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
452 * pe-dll.c (autofilter_objectlist): Add startup objects
454 (auto-export): Constify char * p.
455 Extract file basename and use strcmp rather than ststr
458 2001-10-18 Chris Demetriou <cgd@broadcom.com>
460 * ldmain.c (get_emulation): Improve comment about the handling
463 2001-10-17 Alan Modra <amodra@bigpond.net.au>
465 * po/POTFILES.in: Regenerate.
467 2001-10-16 Vassili Karpov <malc@pulsesoft.com>
469 * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
470 -z nocopyreloc and -z nocombreloc usage strings.
472 2001-10-12 Vassili Karpov <malc@pulsesoft.com>
474 * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
477 2001-10-11 Aleksey Romanov <aromanov@ennovatenetworks.com>
479 * scripttempl/armaout.sc: Place .bss section after end of aligned
480 data section to match behaviour of aout code in constructrion of
483 2001-10-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
485 * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
486 startup files for mingw32 dlls to list.
488 2001-10-10 Chris Demetriou <cgd@broadcom.com>
490 * emultempl/elf32.em: Fix shell 'if' usage for portability.
492 2001-10-08 Aldy Hernandez <aldyh@redhat.com>
494 * configure.tgt (targ): Add arm9e-*-elf.
496 2001-10-05 H.J. Lu <hjl@gnu.org>
498 * genscripts.sh: Fix a typo in the last change.
500 2001-10-05 Jakub Jelinek <jakub@redhat.com>
502 * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
503 -z nocombreloc in usage.
505 2001-10-03 Jim Blandy <jimb@redhat.com>
507 * genscripts.sh: Include a comment at the top of each generated
508 script, explaining its purpose.
510 2001-10-03 Vassili Karpov <malc@pulsesoft.com>
512 * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
513 * NEWS: Mention -z nocopyreloc.
514 * ld.texinfo (Options): Describe nocopyreloc.
516 2001-10-03 Alan Modra <amodra@bigpond.net.au>
518 * configure: Regenerate.
520 2001-10-02 Alan Modra <amodra@bigpond.net.au>
522 * ldver.h (ld_program_version): Remove declaration.
523 * lexsup.c (parse_args): Move printing of copyright message..
524 * ldver.c (ldversion): .. to here.
525 Use BFD_VERSION_STRING in place of BFD_VERSION.
526 (ld_program_version): Remove.
527 * Makefile.am (Makefile): Depend on bfd/configure.in.
529 * Makefile.in: Regenerate.
531 2001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
533 * Makefile.am: Update dependencies with "make dep-am".
534 * Makefile.in: Regenerate.
536 2001-09-29 John Reiser <jreiser@BitWagon.com>
538 * ldlang.c (lang_common): Conditionally inhibit Common allocation.
539 * lexsup.c: Add --no-define-common commandline option.
540 * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
542 * ld.h: Add command_line.inhibit_common_definition.
543 * ldmain.c (main): Initialize.
544 * ld.texinfo: Document.
546 2001-09-26 Alan Modra <amodra@bigpond.net.au>
548 * ldmisc.c (USE_STDARG): Remove.
549 (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
554 * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
555 declarations. Update copyright.
557 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
559 * pe-dll.c: Remove obsoleted declaration of
560 pe_get_data_import_dll_name.
561 (pe_create_import_fixup): Fix thinko.
563 * ld.texinfo(enable-auto-import): Clarify the explanation.
565 2001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
567 * pe-dll.c (pe_create_import_fixup): Revert previous patch.
568 * emultemp/pe.em (pe_data_import_dll): Move definition outside of
569 DLL_SUPPORT controlled code.
571 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
573 * emultempl/pe.em(pe_data_import_dll): Make static.
574 (pe_get_data_import_dll_name): New accessor function.
575 * pe-dll.c(pe_create_import_fixup): call
576 pe_get_data_import_dll_name() from pe.em, instead of
577 directly accessing pe_data_import_dll variable from pe.em.
579 2001-09-18 Bruno Haible <haible@clisp.cons.org>
581 * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
582 (def_file_add_directive): Use ISSPACE instead of isspace.
583 (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
584 isdigit/isxdigit/isalpha/isalnum.
585 * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
586 (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
587 * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
588 (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
590 * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
591 (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
593 * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
594 (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
595 * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
596 (ctor_prio): Use ISDIGIT instead of isdigit.
597 * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
598 (ldfile_open_file_search): Use ISALPHA instead of isalpha.
599 (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
601 * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
602 (stricpy): Use TOLOWER instead of isupper/tolower.
603 (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
604 * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
605 (lex_warn_invalid): Use ISPRINT instead of isprint.
606 * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
607 (main): For gettext, also set the LC_CTYPE locate facet.
608 (add_keepsyms_file): Use ISSPACE instead of isspace.
609 * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
610 (is_num, parse_args): Use ISDIGIT instead of isdigit.
611 * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
612 (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
613 * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
614 (gldppcmacos_read_file): Use ISSPACE instead of isspace.
615 * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
616 (quoteput): Use ISSPACE instead of isspace.
617 (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
620 2001-09-18 Alan Modra <amodra@bigpond.net.au>
622 * deffilep.y (def_stash_module): Constify "name" param.
624 * pe-dll.c: Replace CONST with const throughout.
625 (quick_symbol): Constify "n1", "n2", "n3" params.
626 (make_singleton_name_thunk): Constify "import" param. Make
627 "buffer_len" a size_t.
628 (make_import_fixup_entry): Constify "name", "fixup_name",
629 "dll_symname" params.
630 (pe_get16): Cast args of bfd_seek. Replace bfd_read with bfd_bread.
631 (pe_get32): Likewise.
632 (pe_implied_import_dll): Likewise.
634 * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
635 (sort_by_section_name): Likewise.
637 * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
638 (make_import_fixup): Cast printf arg, rel->address to long rather
640 (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
642 2001-09-15 Alan Modra <amodra@bigpond.net.au>
644 * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
645 defines BufferSize. Increase buffer size by one.
647 2001-09-14 Ralf Habacker <Ralf.Habacker@freenet.de>
649 * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
651 2001-09-14 Kevin Lo <kevlo@openbsd.org>
653 * configure.tgt: Add arm-openbsd target.
655 2001-09-12 H.J. Lu <hjl@gnu.org>
657 * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
659 (ALL_64_EMULATIONS): Here.
660 * Makefile.in: Regenerated.
662 2001-09-12 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
664 * emultempl/pe.em(make_import_fixup): change signature to
665 take asection as well as arelec; we need this for proper
666 error reporting. Only call pe_create_import_fixup() if
667 there is no attempt to add a constant addend to the reloc;
668 otherwise, report error condition.
669 * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
670 since final argument is a pointer to make_import_fixup().
671 Change call to cb() to match make_import_fixup() signature.
672 (make_import_fixup_mark): make buffer_len unsigned.
673 * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
675 2001-09-12 Charles Wilson <cwilson@ece.gatech.edu>
677 * ld.texinfo: add verbose documentation for auto-import
678 direct-addressing workaround, to compliment the terse
681 2001-09-12 Andrew MacLeod <amacleod@redhat.com>
683 * scripttempl/v850.sc: Add gcc_except_table sections.
685 Fri Sep 7 11:34:24 2001 Jeffrey A Law (law@cygnus.com)
687 * emulparams/h8300helf.sh: Move stack to a much higher memory address.
688 * emulparams/h8300self.sh: Similarly.
690 2001-09-05 Danny Smith <dannysmith@users.souceforge.net>
692 * ld.texinfo (Options, --stack): Correct default value for stack
695 2001-09-05 Tom Rix <trix@redhat.com>
697 * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
699 2001-09-03 Andreas Jaeger <aj@suse.de>
701 * emultempl/beos.em: Declare prototypes for comparions functions,
704 2001-09-02 Andreas Jaeger <aj@suse.de>
706 * emultempl/aix.em: Add missing prototype.
707 * emultempl/lnk960.em: Likewise.
708 * emultempl/vanilla.em: Likewise.
709 * emultempl/armcoff.em: Likewise.
710 * emultempl/armelf_oabi.em: Likewise.
711 * emultempl/beos.em: Likewise.
712 * emultempl/gld960c.em: Likewise.
713 * emultempl/gld960.em: Likewise.
715 * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
716 for prototype declaration.
718 2001-08-31 Eric Christopher <echristo@redhat.com>
719 Jason Eckhardt <jle@redhat.com>
721 * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
723 2001-08-31 Andreas Jaeger <aj@suse.de>
725 * emultempl/pe.em: Add missing prototypes.
726 (gld_${EMULATION_NAME}_after_open): Remove extra args to
727 pe_find_data_imports.
728 (pr_sym): Add unused attribute.
730 2001-08-29 Joel Sherrill <joel@OARcorp.com>
732 * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
733 default from coff to elf.
735 2001-08-29 Jeff Law <law@redhat.com>
737 * emulparams/h8300helf.sh: Resync with h8300elf.sh. Update
739 * emulparams/h8300self.sh: Similarly.
741 Wed Aug 28 13:37:20 2001 J"orn Rennecke <amylaar@redhat.com>
743 * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
745 (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
746 * configure.tgt (h8300-*-elf*): New case.
747 * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
748 * emulparams/h8300self.sh: New file.
749 * Makefile.in: Regenerated.
751 2001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
753 * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
756 2001-08-27 Linus Nordberg <linus@swox.com>
757 Alan Modra <amodra@bigpond.net.au>
759 * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
760 (eelf64ppc.c, eelf64lppc.c): Add make targets.
762 * Makefile.in: Regenerate.
763 * configure.tgt: Add powerpc64 support. Move pdp11, pjl, pj
764 entries to correct alphabetical position.
765 * emulparams/elf64ppc.sh: New.
766 * emulparams/elf64lppc.sh: New.
768 2001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
770 * ldmain.c (main): Declare BSIZE as static.
772 2001-08-23 Jakub Jelinek <jakub@redhat.com>
774 * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
775 into .rel.dyn resp. .rela.dyn if combreloc.
776 (get_script): If .x linker script is equal to .xn, only put it
777 once into the binary.
778 Add .xc and .xsc scripts.
779 (parse_args): Handle -z combreloc and -z nocombreloc.
780 * scripttempl/elf.sc (.rela.sbss): Fix a typo.
781 For .xc and .xsc scripts put all .rel* or .rela* input sections
782 but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
783 * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
785 Strip trailing whitespace from script.
786 Generate .xc and .xsc scripts if requested.
787 * ldmain.c (main): Initialize link_info.combreloc and
788 link_info.spare_dynamic_tags.
789 * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
790 (ld_options): Add --spare-dynamic-tags option.
791 (parse_args): Likewise.
792 * ld.texinfo: Document -z combreloc and -z nocombreloc.
793 * ldint.texinfo: Document .xc and .xsc linker scripts.
794 * NEWS: Add notes about -z combreloc and SHF_MERGE.
796 2001-08-22 H.J. Lu <hjl@gnu.org>
798 * emulparams/elf32fr30.sh: Add a newline.
800 2001-08-21 Andreas Jaeger <aj@suse.de>
802 * deffilep.y: Add missing prototypes.
803 * pe-dll.c: Likewise.
805 2001-08-20 Alan Modra <amodra@bigpond.net.au>
807 * ldlang.c (insert_pad): Fix typos in last patch.
809 * ldlang.c: When traversing lang_statement_union_type lists,
810 consistently use "header.next" rather than "next".
811 * mpw-eppcmac.c: Likewise.
812 * emultempl/beos.em: Likewise.
813 * emultempl/hppaelf.em: Likewise.
814 * emultempl/pe.em: Likewise.
815 * ldlang.h (union lang_statement_union): Remove "next" field.
817 * ldlang.c (insert_pad): Use offsetof macro.
818 (lang_size_sections): Always neuter padding statements.
819 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
821 * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
822 passed to lang_size_sections.
823 (pe_exe_fill_sections): Likewise.
824 * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
825 (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
827 2001-08-18 Alan Modra <amodra@bigpond.net.au>
829 * emultempl/aix.em: Formatting fixes.
831 2001-08-18 Alan Modra <amodra@bigpond.net.au>
833 * ldlang.c (insert_pad): Make use of an existing pad statement if
834 available. Move code calculating alignment, adjusting section
835 alignment power, and adjusting dot to ..
836 (size_input_section): .. here. Remove unused relax param.
837 (lang_size_sections): Change boolean `relax' param to boolean *.
838 Adjust call to size_input_section. Make use of insert_pad to
839 place pad after the assignment statement. If relaxing, zap
841 (reset_memory_regions): Reset output_bfd section sizes too.
842 (relax_again): Move to..
843 (lang_process): ..here. Adjust call to lang_size_sections, and
844 remove duplicated code.
845 * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
847 2001-08-17 Alan Modra <amodra@bigpond.net.au>
849 * ld.texinfo: Document that fill values now use the four least
851 * emulparams/elf32fr30.sh (NOP): Update.
852 * emulparams/elf32mcore.sh: Likewise.
853 * emulparams/elf64_s390.sh: Likewise.
854 * emulparams/elf_i386.sh: Likewise.
855 * emulparams/elf_i386_be.sh: Likewise.
856 * emulparams/elf_i386_chaos.sh: Likewise.
857 * emulparams/elf_i386_ldso.sh: Likewise.
858 * emulparams/elf_s390.sh: Likewise.
859 * emulparams/elf_x86_64.sh: Likewise.
860 * emulparams/i386moss.sh: Likewise.
861 * emulparams/i386nw.sh: Likewise.
862 * emulparams/m68kelf.sh: Likewise.
863 * scripttempl/elf.sc: Update NOP comment.
864 * scripttempl/elfi370.sc: Likewise.
865 * scripttempl/elfm68hc11.sc: Likewise.
866 * scripttempl/elfm68hc12.sc: Likewise.
867 * scripttempl/nw.sc: Likewise.
869 2001-08-15 Tom Rix <trix@redhat.com>
871 * ldgram.y (saved_script_handle): Initialize to NULL.
872 * ldmain.c (main): Change check on saved_script_handle.
874 2001-08-14 Alan Modra <amodra@bigpond.net.au>
876 * emultempl/elf32.em: Formatting fixes.
877 (output_prev_sec_find): Test for bfd_ind_section too; do so by
878 looking at sec->owner.
879 (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
880 (gld${EMULATION_NAME}_place_orphan): Add a few comments. Remove
881 unused code, and reorganize orphan section placement code.
883 * ldlang.c (wild_doit): Rename to lang_add_section.
884 * ldlang.h: Here too.
885 * mpw-elfmips.c: And here.
886 * emultempl/beos.em: And here.
887 * emultempl/elf32.em: And here.
888 * emultempl/hppaelf.em: And here.
889 * emultempl/pe.em: And here.
891 2001-08-13 Richard Henderson <rth@redhat.com>
893 * emultempl/needrelax.em: New file.
894 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
895 * Makefile.am (eelf64_ia64.c): Depend on it.
896 * Makefile.in: Rebuild.
898 2001-08-13 Alan Modra <amodra@bigpond.net.au>
900 * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
901 output_section is set non-NULL.
903 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
904 `true' for SEC_EXCLUDE sections so that the generic code doesn't
905 needlessly create an output_section_statement. Treat a correctly
906 named output_section_statement with NULL bfd_section as compatible.
908 2001-08-13 Hans-Peter Nilsson <hp@bitrange.com>
910 * emultempl/generic.em: Support EXTRA_EM_FILE.
911 (ld_${EMULATION_NAME}_emulation): Support emulation parameters
912 LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
913 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
914 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
915 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
916 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
917 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
918 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
919 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
920 LDEMUL_FIND_POTENTIAL_LIBRARIES.
922 2001-08-12 Richard Henderson <rth@redhat.com>
924 * scripttempl/elf.sc, scripttempl/elfd30v.sc,
925 scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
926 scripttempl/v850.sc: Keep .jcr data.
928 2001-08-12 H.J. Lu <hjl@gnu.org>
929 Andrew Haley <aph@cambridge.redhat.com>
930 Nick Clifton <nickc@redhat.com>
932 * ldgram.y (had_script): Change name to saved_script_handle.
933 Change type to file handle.
934 * ld.h (had_script): Rename and retype.
935 * ldfile.c (ldfile_open_command_file): Save the file handle
936 used in saved_script_handle.
937 * lexsup.c (parse_args): Do not allow -c option to alter
939 * ldmain.c (main): Print out the linker script used if
940 --verbose is given. Check saved_script_handle to obtain the
941 external linker script used, or if NULL, dump the builtin
943 * ld.texinfo: Document that --verbose now dumps the linker
944 script used, regardless of whether it was an internal or an
947 2001-08-10 Andreas Jaeger <aj@suse.de>
949 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
951 * configure: Regenerate.
953 2001-08-09 Alan Modra <amodra@bigpond.net.au>
955 * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
957 * scripttempl/elf.sc: Move non-text .dynamic section before
958 .plt/.got/.sdata* group.
959 (OTHER_GOT_SECTIONS): Move to immediately after .got.
960 (OTHER_SDATA_SECTIONS): Add.
961 * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
963 * emulparams/crislinux.sh: Likewise.
964 * emulparams/elf32b4300.sh: Likewise.
965 * emulparams/elf32bmip.sh: Likewise.
966 * emulparams/elf32bmipn32.sh: Likewise.
967 * emulparams/elf32bsmip.sh: Likewise.
968 * emulparams/elf32btsmip.sh: Likewise.
969 * emulparams/elf32ebmip.sh: Likewise.
970 * emulparams/elf32elmip.sh: Likewise.
971 * emulparams/elf32l4300.sh: Likewise.
972 * emulparams/elf32lmip.sh: Likewise.
973 * emulparams/elf32lsmip.sh: Likewise.
974 * emulparams/elf32ltsmip.sh: Likewise.
975 * emulparams/elf64bmip.sh: Likewise.
976 * emulparams/elf64btsmip.sh: Likewise.
977 * emulparams/elf64ltsmip.sh: Likewise.
979 2001-08-08 Alan Modra <amodra@bigpond.net.au>
981 * genscripts.sh: Source the emulparams script before each output
982 script is generated so that variables like `RELOCATING' may affect
983 variables defined in the emulparams script.
985 2001-08-04 Alan Modra <amodra@bigpond.net.au>
987 * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
990 * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
991 ie. iterate over wild_statement.section_list.
992 (gld${EMULATION_NAME}_place_orphan): Likewise.
994 2001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
996 * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
997 .fini[0-4] sections used by _exit
998 (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
999 (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
1000 * scripttempl/elfm68hc11.sc: Likewise.
1002 2001-08-03 H.J. Lu <hjl@gnu.org>
1004 * emultempl/beos.em (init): Add the missing initialization.
1006 2001-08-03 Alan Modra <amodra@bigpond.net.au>
1008 * ld.texinfo (Input Section Basics): Clarify ordering of output
1010 * ldlang.c (callback_t): Add wildcard_list param.
1011 (walk_wild_section): Remove "section" param. Rewrite for
1012 lang_wild_statement_type change. Remove unique_section_p test.
1013 (walk_wild_file): Remove "section" param.
1014 (walk_wild): Remove "section" and "file" params.
1015 (lang_gc_wild): Likewise.
1016 (wild): Likewise. Modify for lang_wild_statement_type change.
1017 (wild_sort): Likewise. Add "sec" param.
1018 (gc_section_callback): Likewise.
1019 (output_section_callback): Likewise. Do unique_section_p test.
1020 (map_input_to_output_sections): Modify call to wild.
1021 (lang_gc_sections_1): Likewise.
1022 (print_wild_statement): Modify for lang_wild_statement_type
1024 (lang_add_wild): Replace filename, filenames_sorted param with
1025 filespec. Replace section_name, sections_sorted,
1026 exclude_filename_list with section_list.
1027 * ldlang.h (lang_add_wild): Here too.
1028 (lang_wild_statement_type): Replace section_name, sections_sorted,
1029 and exclude_filename_list with section_list.
1030 * ldgram.y (current_file): Delete.
1031 (%union): Add wildcard_list.
1032 (file_NAME_list): Set type to wildcard_list. Build a linked list
1033 rather than calling lang_add_wild for each entry.
1034 (input_section_spec_no_keep): Call lang_add_wild here instead.
1035 * ld.h (struct wildcard_list): Declare.
1036 * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
1038 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
1040 * ldmain.c (main): initialize link_info.pei386_auto_import
1041 * pe-dll.c: new tables for auto-export filtering
1042 (auto_export): change API, pass abfd for contextual filtering.
1043 Loop thru tables of excluded symbols instead of comparing
1046 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
1048 * pe-dll.c: new variable pe_dll_enable_extra_debug. New
1049 static variable current_sec (static struct sec *). Add
1050 forward declaration for add_bfd_to_link.
1051 (process_def_file): Don't export undefined symbols. Do not
1052 export symbols starting with "_imp__". Call auto_export()
1054 (pe_walk_relocs_of_symbol): New function.
1055 (generate_reloc): add optional extra debugging
1056 (pe_dll_generate_def_file): eliminate extraneous initial blank
1058 (make_one): enlarge symtab to make room for __nm__ symbols
1059 (DATA auto-import support).
1060 (make_singleton_name_thunk): New function.
1061 (make_import_fixup_mark): New function.
1062 (make_import_fixup_entry): New function.
1063 (pe_create_import_fixup): New function.
1064 (add_bfd_to_link): Specify that 'name' argument is a CONST
1066 * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
1067 declare new functions pe_walk_relocs_of_symbol and
1068 pe_create_import_fixup.
1069 * emultempl/pe.em: add new options --enable-auto-import,
1070 --disable-auto-import, and --enable-extra-pe-debug.
1071 (make_import_fixup): New function.
1072 (pe_find_data_imports): New function.
1073 (pr_sym): New function.
1074 (gld_${EMULATION_NAME}_after_open): Add optional extra pe
1075 debugging. Call pe_find_data_imports. Mark .idata as DATA, not
1078 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
1080 * ld.texinfo: add additional documentation for
1081 --export-all-symbols. Document --out-implib,
1082 --enable-auto-image-base, --disable-auto-image-base,
1083 --dll-search-prefix, --enable-auto-import, and
1084 --disable-auto-import.
1085 * ldint.texinfo: Add detailed documentation on auto-import
1088 2001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
1090 * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
1093 2001-07-24 Alan Modra <amodra@bigpond.net.au>
1095 * Makefile.am: Update dependencies with "make dep-am".
1096 * Makefile.in: Regenerate
1098 2001-07-23 Alan Modra <amodra@bigpond.net.au>
1100 * ldcref.c (check_section_sym_xref): New function.
1101 (check_nocrossrefs): Call it.
1102 (check_nocrossref): Interate over h->refs here instead of..
1103 (check_refs): ..here. Pass in the symbol name, section, and bfd
1104 rather than hash_entry pointers.
1105 (struct check_refs_info): Keep symbol name rather than hash entry.
1107 (check_reloc_refs): Tweak for above changes in check_refs_info.
1108 Only report references to section syms when symname is NULL to
1109 prevent duplicate messages for the same reloc.
1111 2001-07-19 Nick Clifton <nickc@cambridge.redhat.com>
1113 * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
1114 available. Do not print NULL trees.
1115 (exp_print_token): Print unknown tokens with values > 126 as
1116 decimal values not ASCII characters.
1118 * ldlang.c (lang_leave_overlay): If a region is specified assign
1119 it to all sections inside the overlay unless they have been
1120 assigned to the own, non-default, memory region.
1122 * README: Add header for consistency with other README files.
1124 2001-07-14 H.J. Lu <hjl@gnu.org>
1126 * emultempl/elf32.em (output_prev_sec_find): Never return
1127 bfd_abs_section_ptr, bfd_com_section_ptr nor
1128 bfd_und_section_ptr.
1130 2001-07-14 Nick Clifton <nickc@cambridge.redhat.com>
1132 * Makefile.am (em32relf.c): Change dependency from generic.em to
1134 * Makefile.in: Regenerate.
1136 2001-07-14 matthew green <mrg@eterna.com.au>
1138 * configure.tgt (i386-*-netbsdelf*): New target.
1139 (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
1141 2001-07-13 Jakub Jelinek <jakub@redhat.com>
1143 * emultempl/elf32.em (output_prev_sec_find): New.
1144 (place_orphan): Use it.
1146 2001-07-11 H.J. Lu <hjl@gnu.org>
1148 * ldmain.c (main): Fix typos in the last change.
1150 2001-07-11 Jakub Jelinek <jakub@redhat.com>
1152 * ldmain.c (main): Disallow -F and -f without -shared.
1154 2001-07-11 Nick Clifton <nickc@cambridge.redhat.com>
1156 * emultempl/pe.em (after_open): Check for the output_bfd not
1157 having any coff_data structure allocated to it.
1159 2001-07-09 David O'Brien <obrien@FreeBSD.org>
1161 * emultempl/elf32.em: Do not assuming that contents of the buffer
1162 returned from basename function will remain unchanged accross other
1165 2001-07-03 H.J. Lu <hjl@gnu.org>
1167 * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
1168 2001-07-03. It creates dynamic entries even for static binaries.
1170 2001-07-03 Jakub Jelinek <jakub@redhat.com>
1172 * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
1173 (DYNAMIC): Use it to reserve few dynamic entries for
1176 2001-06-27 Alan Modra <amodra@bigpond.net.au>
1178 * emulparams/hppa64linux.sh: New file.
1179 * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
1180 * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
1181 (ehppa64linux.c): Add rule to make it.
1183 * Makefile.in: Regenerate.
1185 2001-06-21 Hans-Peter Nilsson <hp@axis.com>
1187 * ld.texinfo (Options, -r): Mention restrictions when using
1188 different object formats.
1190 2001-06-19 Hans-Peter Nilsson <hp@axis.com>
1192 * ldlang.c (lang_check): Emit fatal error if relocatable link
1193 between different object flavours with relocations in input.
1195 2001-06-19 H.J. Lu <hjl@gnu.org>
1197 * ld.texinfo (-E, --export-dynamic): Mention --version-script.
1198 (--version-script): Mention the language support.
1200 2001-06-19 H.J. Lu <hjl@gnu.org>
1202 * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
1204 2001-06-18 H.J. Lu <hjl@gnu.org>
1206 * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
1207 (diststuff): Add $(MANS).
1208 * Makefile.in: Regenerated.
1212 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
1214 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
1215 Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
1216 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
1217 * ld.h (args_type): Remove member export_dynamic. All users
1218 changed to use struct bfd_link_info member.
1220 * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
1221 $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
1222 * Makefile.in: Regenerate.
1224 2001-06-18 H.J. Lu <hjl@gnu.org>
1226 * ldlang.c (init_os): Add the newline to the einfo call.
1227 (lang_check): Likewise.
1228 (lang_do_version_exports_section): Likewise.
1230 2001-06-15 H.J. Lu <hjl@gnu.org>
1232 * lexsup.c (parse_args); Save optind to report unrecognized
1235 2001-06-15 Hans-Peter Nilsson <hp@axis.com>
1237 * ldlang.c (lang_check): Emit fatal error if relocatable link
1238 between different object flavours.
1240 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
1241 Set new link_info member export_dynamic.
1242 * ldmain.c (main): Initialize new link_info member export_dynamic.
1244 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
1246 * ldlang.c (walk_wild): Only call walk_wild_file if
1247 lookup_name returns something.
1248 (lookup_name): If load_symbols fails, return NULL.
1249 (load_symbols): Change to a boolean function.
1250 (open_input_bfds): If load_symbols fails then do not make the
1253 2001-06-08 Alan Modra <amodra@bigpond.net.au>
1255 * ldlang.c (record_bfd_errors): Remove.
1257 * emultempl/aix.em: Fix copyright dates.
1259 2001-06-07 Andreas Jaeger <aj@suse.de>
1261 * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
1262 (TEXT_START_ADDR): Likewise.
1264 2001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
1266 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
1268 2001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1270 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
1272 2001-05-31 H.J. Lu <hjl@gnu.org>
1274 * ldlang.c (open_input_bfds): Don't change the bfd error
1275 handler whilst loading symbols.
1277 2001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
1279 * configure.tgt: Remove i370-mvs architecture, it is not currently
1282 2001-05-25 H.J. Lu <hjl@gnu.org>
1284 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
1285 like emulparams/aixppc.sh.
1287 2001-05-25 H.J. Lu <hjl@gnu.org>
1289 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
1290 setting of output_filename after bfd_scan_arch.
1291 * emultempl/pe.em: Likewise.
1293 2001-05-25 H.J. Lu <hjl@gnu.org>
1295 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
1296 like emulparams/aixppc.sh.
1298 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
1299 instead of ${srcdir}/emultempl/stringify.sed.
1301 2001-05-25 Timothy Wall <twall@oculustech.com>
1303 * emulparams/elf64_aix.sh: Change settings to match IBM linker
1306 2001-05-25 Alan Modra <amodra@one.net.au>
1308 * configure.host: Replace linuxoldld with linux*oldld.
1309 * configure.tgt: Likewise.
1311 2001-05-24 H.J. Lu <hjl@gnu.org>
1313 * emultempl/stringify.sed: Removed again.
1315 2001-05-24 H.J. Lu <hjl@gnu.org>
1317 * emultempl/aix.em (OUTPUT_ARCH): Defined.
1318 (gld${EMULATION_NAME}_before_parse): Initialize
1319 ldfile_output_architecture, ldfile_output_machine and
1320 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
1321 * emultempl/beos.em: Likewise.
1322 * emultempl/elf32.em: Likewise.
1323 * emultempl/linux.em: Likewise.
1324 * emultempl/mipsecoff.em: Likewise.
1325 * emultempl/pe.em: Likewise.
1326 * emultempl/sunos.em: Likewise.
1328 2001-05-24 Tom Rix <trix@redhat.com>
1330 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
1331 udate import file format.
1332 (change_symbol_mode) New, same
1333 (is_syscall) New, same
1334 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
1335 * emulparams/aixppc64.sh : same
1336 * emulparams/aixrs6.sh : same
1337 * emulparams/ppcmacos.sh : same
1338 * emultempl/aix.em : use strtoull to parse options
1339 * Makefile.am : add eaixppc64 emulation for xcoff64
1340 * Makefile.in : same
1341 * configure.tgt : same
1343 * scripttempl/aix.sc : default text section offset to 0x10000000
1344 default data section offset to 0x20000000
1345 add .sv3264 and .sv64 pseudo sections
1346 loader and debug sections use the currect section offset.
1348 * emultempl/aix.em : Add xcoff64 support
1349 Add -binitfini support
1350 (gld${EMULATION_NAME}_before_parse) -binitfini
1351 (gld${EMULATION_NAME}_parse_args) same
1352 (gld${EMULATION_NAME}_before_allocation) format change for special
1355 * emulparams/aixppc64.sh : New file for xcoff64 support
1357 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
1359 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
1360 variable to avoid non-portable shell construct.
1362 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1364 * ldmain.c (get_emulation): Add -mips5 command line argument.
1366 2001-05-22 Alexandre Oliva <aoliva@redhat.com>
1368 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
1369 (ELF_INTERPRETER_NAME): Define it.
1370 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
1372 * configure.tgt (targ_emul, targ_extra_emuls)
1373 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
1374 as primary, elf_i386 as extra.
1375 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
1376 (eelf_i386_ldso.c): New rule.
1377 * Makefile.in: Rebuilt.
1379 2001-05-22 Nick Clifton <nickc@redhat.com>
1381 * lexsup.c (ld_options): Allow -I to be an alias for
1382 --dynamic-linker. This is for Solaris compatability.
1383 * ld.texinfo: Document that -I can be used.
1386 2001-05-16 Alan Modra <amodra@one.net.au>
1388 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
1389 whether an input section is the first one assigned to an output
1391 Assorted formatting fixes.
1393 2001-05-14 DJ Delorie <dj@delorie.com>
1395 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
1396 * Makefile.in: Ditto.
1398 2001-05-11 Jakub Jelinek <jakub@redhat.com>
1400 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
1401 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
1403 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
1405 2001-05-11 Jakub Jelinek <jakub@redhat.com>
1407 * ldlang.c (lang_process): Call bfd_merge_sections.
1409 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1411 * ldgram.y: Fix typo.
1413 2001-05-03 H.J. Lu <hjl@gnu.org>
1415 * emultempl/elf32.em: Include "libiberty.h".
1416 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
1417 basename of the bfd filename.
1418 (gld${EMULATION_NAME}_stat_needed): Likewise.
1419 (gld${EMULATION_NAME}_try_needed): Likewise.
1420 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
1422 2001-05-02 H.J. Lu <hjl@gnu.org>
1424 * emultempl/pe.em: Include <ctype.h>.
1426 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
1428 * emulparams/elf32openrisc.sh: New file.
1430 * Makefile.am: Add OpenRISC target.
1431 * Makefile.in: Regenerated.
1433 * configure.tgt: Add openrisc-*-* mapping.
1435 2001-05-02 Nick Clifton <nickc@redhat.com>
1437 * emultempl/aix.em: Replace buystring with xstrdup.
1438 * emultempl/beos.em: Replace buystring with xstrdup.
1440 2001-05-02 H.J. Lu <hjl@gnu.org>
1442 * ldfile.c: Include "libiberty.h".
1443 * ldlex.l: Likewise.
1445 * ldmisc.c (buystring): Removed.
1446 * ldmisc.h: Likewise.
1448 * ldfile.c: Replace buystring with xstrdup.
1449 * ldlang.c: Likewise.
1450 * ldlex.l: Likewise.
1451 * ldmain.c: Likewise.
1452 * ldmisc.c: Likewise.
1453 * lexsup.c: Likewise.
1454 * mpw-eppcmac.c: Likewise.
1456 2001-04-30 Andreas Jaeger <aj@suse.de>
1458 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
1460 2001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
1462 * ldlang.c (load_symbols): Give emulation a chance
1463 to process unrecognized file before fatal error is
1464 reported, not after.
1466 2001-04-27 Sean McNeil <sean@mcneil.com>
1468 * configure.tgt: Add arm-vxworks target.
1469 * scripttempl/armcoff.sc: Support .text or .data as a section name
1473 2001-04-13 J.T. Conklin <jtc@redback.com>
1475 * ld.texinfo: Document --fatal-warnings.
1478 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
1479 warnings have been turned into errors.
1480 * lexsup.c (OPTION_WARN_FATAL): Define.
1481 (ld_options): Entry for --fatal-warnings.
1482 (parse_args): Handle OPTION_WARN_FATAL.
1483 * ld.h (ld_config_type): Add fatal_warnings field.
1485 2001-04-13 Jakub Jelinek <jakub@redhat.com>
1487 * ldmain.c (main): Default to discard_sec_merge.
1488 * lexsup.c (OPTION_DISCARD_NONE): Define.
1489 (ld_options): Add --discard-none.
1490 (parse_args): Handle OPTION_DISCARD_NONE.
1491 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
1492 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
1493 all its input sections match.
1495 2001-04-05 Steven J. Hill <sjhill@cotw.com>
1497 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
1498 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
1499 (eelf32ltsmip.c): New target.
1500 (eelf64btsmip.c): Likewise.
1501 (eelf64ltsmip.c): Likewise.
1502 * Makefile.in: Regenerated.
1504 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
1506 (mips*-*-linux-gnu*): Likewise.
1508 * emulparams/elf32ltsmip.sh: New. Traditional little endian
1510 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
1512 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
1515 2001-04-05 Hans-Peter Nilsson <hp@axis.com>
1517 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
1518 correct value of __Stext here.
1519 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
1522 * emulparams/crislinux.sh: Remove FIXME.
1524 2001-04-02 Alan Modra <alan@linuxcare.com.au>
1526 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
1527 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
1529 2001-03-27 Hans-Peter Nilsson <hp@axis.com>
1531 * configure.tgt (cris-*-*): Change default emulation to criself.
1532 (cris-*-*aout*): New rule.
1534 2001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
1536 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
1537 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
1539 2001-03-26 Andreas Jaeger <aj@suse.de>
1541 * ld.texinfo (Overview): Fix syntax in texi code.
1543 2001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1545 * ld.texinfo: Put @c man indications to generate the ld man page.
1546 When generating man, define all the variables. Define SEEALSO
1547 and SYNOPSIS. Re-organize some lines to avoid the cross references.
1548 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
1549 (ld.1): Generate from ld.texinfo.
1550 * Makefile.in: Regenerate.
1552 2001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
1554 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
1555 and '-fdata-sections'. Set the VMA of STABS sections to zero.
1557 2001-03-17 Ulrich Drepper <drepper@redhat.com>
1559 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
1560 is an absolute path look only for this file and not along the path.
1562 2001-03-17 Ulrich Drepper <drepper@redhat.com>
1564 * emultempl/elf32.em (OPTION_GROUP): New macro.
1565 Add new option Bgroup to longopts.
1566 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
1567 (gld*_list_options): Add -Bgroup and -z defs.
1568 * ld.1: Document -Bgroup and -z defs.
1569 * ld.texinfo: Likewise.
1571 2001-03-07 Michael Meissner <meissner@redhat.com>
1573 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
1574 with sections created by -fdata-sections.
1575 (.dynbss,.bss): Ditto.
1577 2001-03-05 Alan Modra <alan@linuxcare.com.au>
1579 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
1580 after_allocation_default, not gld..._before_allocation.
1582 2001-02-27 Alan Modra <alan@linuxcare.com.au>
1584 * configure.in (BFD_VERSION): New.
1585 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
1586 * configure: Regenerate.
1587 * Makefile.am: Run "make dep-am"
1588 * Makefile.in: Regenerate.
1590 2001-02-26 Timothy Wall <twall@cygnus.com>
1592 * emulparams/elf64_aix.sh: Add additional read-only sections;
1593 uncomment lines which are now required.
1595 2001-02-26 H.J. Lu <hjl@gnu.org>
1597 * ldlang.c (open_input_bfds): Set the bfd error handler so
1598 that problems can be caught whilst loading symbols.
1599 (record_bfd_errors): New function: Report BFD errors and mark
1600 the executable output as being invalid.
1602 2001-02-22 Timothy Wall <twall@cygnus.com>
1604 * configure.host: Add configuration for ia64-*-aix*.
1605 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
1606 Add dependencies for eelf64_aix.c.
1607 * Makefile.in: Regenerate.
1608 * configure.tgt: Add ia64-*-aix* mapping.
1609 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
1610 * testsuite/ld-bootstrap/bootstrap.exp: Exclude ia64 flavor from
1613 2001-02-20 H.J. Lu <hjl@gnu.org>
1615 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
1616 false if we found the file.
1618 2001-02-18 David O'Brien <obrien@FreeBSD.org>
1620 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
1621 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
1623 2001-02-18 lars brinkhoff <lars@nocrew.org>
1625 * Makefile.am: Add PDP-11 target.
1626 * configure.tgt: Likewise.
1627 * emulparams/pdp11.sh: New file.
1629 2001-02-17 David O'Brien <obrien@FreeBSD.org>
1631 * configure.host: Add a generic FreeBSD configuration entry such that
1632 all [modern] FreeBSD systems on all platforms will look the same.
1634 2001-02-14 H.J. Lu <hjl@gnu.org>
1636 * configure.tgt: Remove mention of earmelf_linux26.
1638 2001-02-13 Richard Henderson <rth@redhat.com>
1640 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
1642 2001-02-13 H.J. Lu <hjl@gnu.org>
1644 * ldexp.h (node_type): Add etree_provided.
1645 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
1646 type to etree_provided if defined by PROVIDE. Allow updating
1648 (exp_print_tree): Handle etree_provided.
1649 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
1652 2001-02-09 David Mosberger <davidm@hpl.hp.com>
1654 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
1655 .IA_64.unwind.* pattern to unwind table section and
1656 .IA_64.unwind_info* pattern to unwind info section.
1658 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
1660 * Makefile.am: Add linux target for S/390.
1661 * Makefile.in: Likewise.
1662 * configure.host: Likewise.
1663 * configure.tgt: Likewise.
1664 * emulparams/elf64_s390.sh: New file.
1665 * emulparams/elf_s390.sh: New file.
1667 2001-02-09 Jakub Jelinek <jakub@redhat.com>
1669 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
1671 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
1673 2001-02-06 Philip Blundell <philb@gnu.org>
1675 * Makefile.am: Remove mention of earmelf_linux26.
1676 * Makefile.in: Regenerate.
1678 2001-02-04 Philip Blundell <philb@gnu.org>
1680 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
1681 * emulparams/armelf_linux26.sh: Delete.
1682 * configure.tgt: Remove mention of armelf_linux26 emulation.
1684 2001-02-01 Nick Clifton <nickc@redhat.com>
1686 * ld.1: Replace occurances of -oformat with --oformat.
1688 2001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
1690 * ldlang.c (lang_leave_overlay): Don't set lma_region when
1691 load_base is specified.
1693 2001-01-24 Hans-Peter Nilsson <hp@axis.com>
1695 * emultempl/elf32.em: Correct spelling in comments and listed
1698 2001-01-23 Alan Modra <alan@linuxcare.com.au>
1700 * ldlang.c (lang_leave_overlay): Only set lma_region from the
1701 default for the first section of a group of overlay sections.
1703 2001-01-22 Alan Modra <alan@linuxcare.com.au>
1705 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
1706 * Makefile.in: Regenerate.
1707 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
1708 Check for null tool_dir.
1710 2001-01-16 Jim Wilson <wilson@redhat.com>
1712 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
1713 and IA_64.unwind.info.
1715 2001-01-16 H.J. Lu <hjl@gnu.org>
1717 * ldlang.c (lang_check): Merge the private data only if the
1718 input file has contents.
1720 2001-01-14 Alan Modra <alan@linuxcare.com.au>
1722 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
1724 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
1725 enabling search for libmilli. On a relocatable link, make .text
1727 (LDEMUL_AFTER_PARSE): Define.
1728 (hppaelf_finish): Correct spelling of relocatable in comments.
1730 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
1731 rummage through the script for sections on the unique list.
1732 Correct length of strncmp for ".note".
1733 (gld${EMULATION_NAME}_check_needed): Rearrange function.
1735 * ldlang.c (unique_section_list): New var.
1736 (unique_section_p): New function.
1737 (walk_wild_section): Don't match sections on unique_section_list.
1738 (lang_add_unique): New function.
1739 Correct spelling of relocatable in comments.
1741 * ldlang.h (struct unique_sections): Declare.
1742 (unique_section_list): Declare.
1743 (unique_section_p): Declare.
1744 (lang_add_unique): Declare.
1746 * lexsup.c (ld_options): Allow --unique to take an optional arg.
1747 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
1749 * ld.texinfo (--unique): Update.
1751 2001-01-13 Nick Clifton <nickc@redhat.com>
1753 * lexsup.c (parse_args): Remove spurious white space.
1755 2001-01-12 Nick Clifton <nickc@redhat.com>
1757 * lexsup.c (parse_args): Update copyright date.
1759 2001-01-12 Philip Blundell <pb@futuretv.com>
1761 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
1763 2001-01-10 Kazu Hirata <kazu@hxi.com>
1765 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
1766 * scripttempl/h8300h.sc: Fix formatting.
1767 * scripttempl/h8300s.sc: Likewise.
1768 * scripttempl/h8500.sc: Likewise.
1769 * scripttempl/h8500b.sc: Likewise.
1770 * scripttempl/h8500c.sc: Likewise.
1771 * scripttempl/h8500m.sc: Likewise.
1772 * scripttempl/h8500s.sc: Likewise.
1774 2000-01-07 David O'Brien <obrien@BSDi.com>
1776 * emultempl/elf32.em: Only perform Linux ld hints processing when
1779 2001-01-07 Philip Blundell <philb@gnu.org>
1781 * ld.texinfo (Bug Reporting): Update email address for reports.
1783 2000-12-31 Nick Clifton <nickc@redhat.com>
1785 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
1786 options by checking for a return value of '?' not -1.
1788 2000-12-28 Nick Clifton <nickc@redhat.com>
1790 * lexsup.c (struct ld_option): Add new enum value:
1792 (ld_options[]): Change -omagic, -output and -oformat options
1793 to be EXACTLY_TWO_DASHES.
1794 (OUTPUT_COUNT): Use ARRAY_SIZE.
1795 (parse_args): Change parameter 'argc' to unsigned.
1796 Place EXACTLY_TWO_DASHES options into new really_longopts
1798 If getopt_long_only fails, try calling getopt_long using the
1799 really_longopts array.
1800 (help): Print a double dash for both EXACTLY_TWO_DASHES and
1803 * ldlex.h: Fix prototype of parse_args.
1805 * ld.texinfo: Document that long options starting with 'o'
1806 must be preceeded by two dashes. Change example of a single
1807 dashed long option from -oformat to -trace-symbol.
1809 2000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1811 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
1812 (longopts[]): New --no-default-excludes option.
1813 (gld_${EMULATION_NAME}_list_options): Document.
1814 (gld_${EMULATION_NAME}_parse_args): Handle.
1816 2000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1818 * ldlang.c (new_stat): Revert the last beautification with "innocent"
1819 whitespace, it breaks the K&R C preprocessor.
1821 2000-12-11 DJ Delorie <dj@redhat.com>
1823 * ld.texinfo: Add notes about --whole-archive and gcc.
1825 2000-11-18 Fred Fish <fnf@be.com>
1827 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
1828 (ld_options): Entry for --allow-shlib-undefined.
1829 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
1830 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
1832 * ld.texinfo: Document new command line switch.
1834 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
1836 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
1837 .fixup is actually read/write.
1838 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
1839 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
1840 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
1842 Mon Dec 11 14:50:33 MET 2000 Jan Hubicka <jh@suse.cz>
1844 * NEWS: Add note about x86_64 architecture.
1846 2000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
1848 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
1849 Set DWARF2 sections to a VMA of zero.
1851 2000-12-01 Joel Sherrill <joel@OARcorp.com>
1853 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
1855 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
1856 (sparc*-*-rtems*): Switched from a.out to ELF.
1858 2000-11-30 Jan Hubicka <jh@suse.cz>
1860 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
1861 (eelf_x86_64.c): New.
1862 * Makefile.in: Regenerate.
1863 * configure.tgt: Add support for x86_64-*-linux-gnu*.
1864 * emulparams/elf_x86_64.sh: New.
1866 2000-11-30 Hans-Peter Nilsson <hp@axis.com>
1868 * emulparams/crislinux.sh (ENTRY): Change back to _start.
1869 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
1871 * scripttempl/crisaout.sc: Change all RELOCATING not related to
1872 merging non-a.out sections into CONSTRUCTING.
1874 2000-11-28 Nick Clifton <nickc@redhat.com>
1876 * ld.1 (COPYING): Mention that the GNU Free Documentation
1877 License is present in the sources, but not the output, and
1878 also available from the GNU website.
1879 (GNU Free Documentation License): Comment out this section.
1881 2000-11-28 David O'Brien <obrien@dragon.nuxi.com>
1883 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
1886 2000-11-25 David O'Brien <obrien@FreeBSD.org>
1888 * ld.1: Remove old date so it does not give the impression the manpage
1891 2000-11-24 Nick Clifton <nickc@redhat.com>
1893 * configure.tgt (xscale-coff): Add target.
1894 (xscale-elf): Add target.
1896 2000-11-24 Fred Fish <fnf@be.com>
1898 * ldmain.c (main): Remove redundant init of config.make_executable
1901 2000-11-15 Richard Henderson <rth@redhat.com>
1903 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
1905 2000-11-14 Kazu Hirata <kazu@hxi.com>
1907 * scripttempl/h8300.sc: Fix formatting.
1908 * scripttempl/h8300h.sc: Likewise.
1909 * scripttempl/h8300s.sc: Likewise.
1911 Tue Nov 14 00:59:19 2000 Denis Chertykov <denisc@overta.ru>
1913 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
1915 2000-11-09 Philip Blundell <pb@futuretv.com>
1917 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
1918 around orphan sections whose names can be represented in C.
1920 2000-11-07 Jim Wilson <wilson@redhat.com>
1922 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
1923 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
1925 2000-11-06 Nick Clifton <nickc@redhat.com>
1927 * ld.texinfo: Add GNU Free Documentation License.
1928 * ldint.texinfo: Add GNU Free Documentation License.
1929 * ld.1: Add GNU Free Documentation License.
1931 2000-11-05 Alan Modra <alan@linuxcare.com.au>
1933 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
1934 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
1936 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
1937 Move 2000-11-02 Makefile.in changes to this file.
1938 * Makefile.in: Regenerate.
1940 2000-11-03 Nick Clifton <nickc@redhat.com>
1942 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
1943 constructors and destructors.
1944 * scripttempl/h8300h.sc: Ditto.
1945 * scripttempl/h8300s.sc: Ditto.
1946 * scripttempl/h8500.sc: Ditto.
1947 * scripttempl/h8500b.sc: Ditto.
1948 * scripttempl/h8500c.sc: Ditto.
1949 * scripttempl/h8500m.sc: Ditto.
1950 * scripttempl/h8500s.sc: Ditto.
1951 * scripttempl/v850.sc: Ditto.
1952 * scripttempl/w65.sc: Ditto.
1953 * scripttempl/z8000.sc: Ditto.
1955 2000-11-02 Per Lundberg <plundis@chaosdev.org>
1957 * Makefile.in (e_i386_chaos.c): New rule.
1958 (ALL_EMULATIONS): Added e_i386_chaos.o.
1959 * emulparams/elf_i386_chaos.sh: New file.
1960 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
1962 2000-10-20 Jakub Jelinek <jakub@redhat.com>
1964 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
1965 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
1966 Fix sed invocation, so that it coped with '/' in Solaris 64bit
1967 library path suffix.
1968 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
1970 2000-10-18 Hans-Peter Nilsson <hp@axis.com>
1972 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
1973 for consecutive sections.
1975 2000-10-17 Chandrakala Chavva <cchavva@redhat.com>
1977 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
1979 * ld.texinfo: Added notes about this new option.
1981 2000-10-16 Nick Clifton <nickc@redhat.com>
1983 * emultempl/pe.em (_after_open): Add tests of return values from
1984 bfd functions. Emit appropriate error messages if necessary.
1986 2000-10-13 Nick Clifton <nickc@redhat.com>
1988 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
1989 local variables - they are not used, but leave in the call to
1990 bfd_canonicalize_symtab.
1991 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
1992 pe_dll_search_prefix.
1994 2000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
1996 * emultempl/pe.em (pe_dll_search_prefix): New variable,
1997 (longopts): New --dll-search-prefix option.
1998 (gld_${EMULATION_NAME}_list_options): Document.
1999 (gld_${EMULATION_NAME}_parse_args): Handle.
2000 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
2001 dynamically, search for a dll named '<prefix><basename>.dll'
2002 in preference to 'lib<basename>.dll' if --dll-search-prefix
2005 2000-10-12 Alan Modra <alan@linuxcare.com.au>
2007 * ldlang.c (section_already_linked): Set kept_section instead of
2010 2000-10-10 Kazu Hirata <kazu@hxi.com>
2012 * deffile.h: Fix formatting.
2013 * lexsup.c: Likewise.
2016 2000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2018 * pe-dll.c (make_one): Do not generate code thunk for DATA
2020 (process_def_file): deduce DATA flag for auto-export sumbols.
2022 2000-10-09 Kazu Hirata <kazu@hxi.com>
2024 * ld.h: Fix formatting.
2025 * ldcref.c: Likewise.
2026 * ldctor.h: Likewise.
2027 * ldemul.c: Likewise.
2028 * ldemul.h: Likewise.
2029 * ldexp.c: Likewise.
2030 * ldexp.h: Likewise.
2031 * ldfile.c: Likewise.
2032 * ldfile.h: Likewise.
2033 * ldlang.c: Likewise.
2034 * ldlang.h: Likewise.
2035 * ldmain.c: Likewise.
2036 * pe-dll.c: Likewise.
2038 * pe-dll.c: Revert some formatting fixes.
2040 2000-10-08 Kazu Hirata <kazu@hxi.com>
2042 * pe-dll.c: Fix formatting.
2044 2000-10-05 Kazu Hirata <kazu@hxi.com>
2046 * ldlang.c: Fix formatting.
2048 2000-10-03 DJ Delorie <dj@redhat.com>
2050 * pe-dll.c (fill_edata): initialize entire block
2051 (make_one): fill in correct section.
2053 2000-10-03 Kazu Hirata <kazu@hxi.com>
2055 * ldexp.c: Fix formatting.
2057 2000-10-02 DJ Delorie <dj@redhat.com>
2059 * emultempl/pe.em (gld_*_after_open): detect case where there two
2060 import libraries for same dll; rename one to ensure proper link
2063 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
2065 (generate_edata): fix typo
2067 2000-09-29 Hans-Peter Nilsson <hp@axis.com>
2069 * scripttempl/crisaout.sc (ENTRY): Now __start.
2070 (.text): Add default setting for __start.
2071 Remove CONSTRUCTORS handling.
2072 (/DISCARD/): Add .gnu.warning.*.
2073 * emulparams/crislinux.sh (ENTRY): Now __start.
2074 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
2075 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
2076 (ENTRY): Now __start.
2077 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
2078 (EXECUTABLE_SYMBOLS): Add default setting for __start.
2080 2000-09-29 Kazu Hirata <kazu@hxi.com>
2082 * deffile.h: Fix formatting.
2084 * ldcref.c: Likewise.
2085 * ldctor.c: Likewise.
2086 * ldctor.h: Likewise.
2087 * ldemul.c: Likewise.
2088 * ldemul.h: Likewise.
2089 * ldexp.c: Likewise.
2090 * ldexp.h: Likewise.
2091 * ldfile.c: Likewise.
2092 * ldfile.h: Likewise.
2093 * ldlang.c: Likewise.
2094 * ldlang.h: Likewise.
2095 * lexsup.c: Likewise.
2097 * pe-dll.c: Likewise.
2099 2000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2101 * pe-dll.c (process_def_file): Uninitialized data wasn't
2102 exported with --export-all-symbols switch.
2104 2000-09-28 DJ Delorie <dj@redhat.com>
2106 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
2107 noname work properly.
2109 2000-09-28 Alan Modra <alan@linuxcare.com.au>
2111 * ld.texinfo (HPPA ELF32): New section.
2113 * emultempl/hppaelf.em (group_size): New.
2114 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
2115 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
2116 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
2117 options to prevent abbreviations matching.
2118 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
2119 (PARSE_AND_LIST_ARGS_CASES): Handle it.
2121 2000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2123 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
2124 on the m68*-*-elf target. Make it support COFF input objects.
2126 2000-09-21 Kazu Hirata <kazu@hxi.com>
2128 * ldmain.c: Fix formatting.
2129 * ldmisc.c: Likewise.
2130 * ldver.c: Likewise.
2131 * ldwrite.c: Likewise.
2133 2000-09-21 Alan Modra <alan@linuxcare.com.au>
2135 * ldwrite.c (clone_section): Silence gcc warnings.
2137 2000-09-20 Alan Modra <alan@linuxcare.com.au>
2139 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
2140 out of memory failure.
2142 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
2143 (clone_section): Handle out of memory failures. Rename var to
2144 avoid c++ reserved word.
2146 2000-09-18 Alan Modra <alan@linuxcare.com.au>
2148 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
2149 stub_name param to stub_sec_name.
2150 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
2152 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2154 * emultempl/m68kelf.em: New file.
2155 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
2156 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
2157 * Makefile.in: Regenerate.
2159 2000-09-15 Alan Modra <alan@linuxcare.com.au>
2161 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
2164 2000-09-13 Nick Clifton <nickc@redhat.com>
2166 * ldmain.c (multiple_definition): Disable relaxation if
2167 multiple symbol definitions are encountered - otherwise the
2168 linker could abort with an assertion failure.
2170 2000-09-10 Nick Clifton <nickc@redhat.com>
2172 * mri.c: Fix formatting.
2174 2000-09-07 H.J. Lu <hjl@gnu.org>
2176 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
2177 * configure: Rebuild.
2179 2000-09-07 H.J. Lu <hjl@gnu.org>
2181 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
2182 * Makefile.in: Rebuild.
2184 2000-09-07 Alan Modra <alan@linuxcare.com.au>
2186 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
2187 broken list handling. Create __start_SECNAME and __stop_SECNAME
2188 when no place-holder. Add some comments. Test both SEC_CODE and
2189 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
2190 Handle case where no output section statement created.
2192 2000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
2194 * configure.tgt (sh-*-linux*): Added.
2195 * Makefile.am: Added eshelf_linux and eshlelf_linux.
2196 * Makefile.in: Rebuilt.
2197 * emulparams/shelf_linux.sh: New file.
2198 * emulparams/shlelf_linux.sh: New file.
2200 2000-09-06 Alan Modra <alan@linuxcare.com.au>
2202 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
2203 try shuffling sections when the orphan happens to be the place
2204 holder. Keep count of unique section names generated so we speed
2205 the search for a new name.
2207 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
2209 * configure: Rebuilt with new libtool.m4.
2211 2000-09-05 Nick Clifton <nickc@redhat.com>
2213 * Makefile.in: Regenerate.
2214 * aclocal.m4: Regenerate.
2215 * configure: Regenerate.
2216 * config.in: Regenerate.
2217 * po/ld.pot: Regenerate.
2219 * ldint.texinfo: Remove CVS revision marker - it foils local
2222 * emultempl/ticoff.em: Remove extraneous comma.
2224 2000-09-05 Alan Modra <alan@linuxcare.com.au>
2226 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
2227 to stub section flags.
2228 (hppa_for_each_input_file_wrapper): New.
2229 (hppa_lang_for_each_input_file): New.
2230 (lang_for_each_input_file): Define to call above.
2231 (multi_subspace): New.
2232 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
2233 (PARSE_AND_LIST_PROLOGUE): Define.
2234 (PARSE_AND_LIST_LONGOPTS): Define.
2235 (PARSE_AND_LIST_OPTIONS): Define.
2236 (PARSE_AND_LIST_ARGS_CASES): Define.
2237 (hppaelf_finish): Call elf32_hppa_set_gp.
2238 (hppaelf_set_output_arch): Remove.
2239 (LDEMUL_SET_OUTPUT_ARCH): Remove.
2241 * emulparams/hppalinux.sh (ELFSIZE): Define.
2243 (OTHER_READONLY_SECTIONS): Define.
2245 (GENERATE_SHLIB_SCRIPT): Define.
2247 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
2248 to const throughout. Change `void *' to `PTR' throughout.
2249 (lang_memory_default): Function is local to file, add `static'.
2251 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
2252 (ehppalinux.c): Likewise.
2253 (earmelf.c): Likewise.
2254 (earmelf_linux.c): Likewise.
2255 (earmelf_linux26.c): Likewise.
2256 * Makefile.in: Regenerate.
2258 * ld.h (ld_config_type): Add unique_orphan_sections.
2259 * lexsup.c (OPTION_UNIQUE): Define.
2260 (ld_options): Add "--unique".
2261 (parse_args): Handle it.
2262 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
2263 search for an existing output section if unique_orphan_sections is
2264 set. Make use of bfd_get_unique_section_name rather than
2265 duplicating code here.
2266 * ld.texinfo: Describe --unique.
2268 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
2269 optional arg to split-by-file.
2270 (parse_args): Handle them.
2271 * ld.texinfo: Update description of these options.
2272 * ldwrite.c (clone_section): Pass in the section name. Replace
2273 local code with bfd_get_unique_section_name.
2274 (split_sections): Tidy code and comments. Use a list traversal
2275 more appropriate to the list construction. Handle cooked section
2276 sizes. Split when split_by_reloc reached rather than exceeded.
2277 Track section size and split when split_by_file reached. Fix
2278 link_order_tail (even though it's not used).
2279 (ldwrite): Modify condition for calling split_sections to suit
2280 changed split_by_reloc and split_by_file.
2281 * ldmain.c (main): Init config.split_by_reloc and
2282 config.split_by_file to -1.
2283 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
2284 Change split_by_file to bfd_size_type.
2286 2000-09-02 Nick Clifton <nickc@redhat.com>
2288 * configure.in: Increase version number to 2.10.91.
2289 * NEWS: Mention new ability to support removal of duplicate DWARF2
2291 * configure: Regenerate.
2292 * aclocal.m4: Regenerate.
2293 * config.in: Regenerate.
2295 2000-09-02 Daniel Berlin <dberlin@redhat.com>
2297 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
2299 * scripttempl/elf32avr.sc: Ditto.
2300 * scripttempl/elfd10v.sc: Ditto.
2301 * scripttempl/elfd30v.sc: Ditto.
2302 * scripttempl/elfi370.sc: Ditto.
2303 * scripttempl/elfm68hc11.sc: Ditto.
2304 * scripttempl/elfm68hc12.sc: Ditto.
2305 * scripttempl/elfi386beos.sc: Ditto.
2306 * scripttempl/v850.sc: Ditto.
2308 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
2310 * acinclude.m4: Include libtool and gettext macros from the
2312 * aclocal.m4, configure: Rebuilt.
2314 2000-08-25 Nick Clifton <nickc@redhat.com>
2316 * ldlang.c (open_output): When choosing the target for a
2317 particular endianness, do nothing if the target is not
2320 2000-08-25 H.J. Lu <hjl@gnu.org>
2322 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
2323 check -rpath nor LD_RUN_PATH for cross link.
2324 * ld.texinfo: Document the change.
2326 2000-08-24 Hans-Peter Nilsson <hp@axis.com>
2328 * NEWS: Mention support for CRIS.
2330 2000-08-23 H.J. Lu <hjl@gnu.org>
2332 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
2333 the current runpath list from bfd_elf_get_runpath_list ()
2336 2000-08-22 H.J. Lu <hjl@gnu.org>
2338 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
2339 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
2340 LD_LIBRARY_PATH for native linker. Display the needed DSO if
2341 trace_file_tries is non-zero.
2342 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
2343 if trace_file_tries is non-zero.
2345 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
2348 2000-08-14 Jason Eckhardt <jle@cygnus.com>
2350 * NEWS: Mention i860 support.
2352 2000-08-14 Andreas Schwab <schwab@suse.de>
2354 * scripttempl/elf.sc: Fix last change to use correct comment
2357 2000-08-10 Geoff Keating <geoffk@cygnus.com>
2359 * scripttempl/elf.sc: Add a comment giving the correspondence
2360 between sections, per-datum sections, and linkonce sections. Make
2361 the comment true even for .bss, .sdata, .sdata2, .sbss, and
2364 2000-08-10 Jason Eckhardt <jle@cygnus.com>
2366 * emulparams/elf32_i860.sh: New file.
2367 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
2368 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
2369 (eelf32_i860.c): New rule.
2370 * Makefile.in: Regenerate.
2372 2000-08-10 Nick Clifton <nickc@cygnus.com>
2374 * emulparams/mipspe.sh (ENTRY): Add definition.
2376 2000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
2378 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
2381 2000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2383 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
2384 the final size of .bss section.
2385 * scripttempl/elfm68hc12.sc: Likewise.
2387 2000-08-04 Alan Modra <alan@linuxcare.com.au>
2389 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
2390 gld${EMULATION_NAME}_parse_args for consistency. Combine
2391 lastoptind and prevoptind vars, and keep track of last optind.
2392 (gld_${EMULATION_NAME}_list_options): Rename to
2393 gld${EMULATION_NAME}_list_options.
2395 2000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
2397 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
2398 (i586-sco-sysv5uw7.1.0).
2400 2000-07-27 H.J. Lu <hjl@gnu.org>
2402 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
2403 (PARSE_AND_LIST_PROLOGUE): New.
2404 (PARSE_AND_LIST_LONGOPTS): Likewise.
2405 (PARSE_AND_LIST_OPTIONS): Likewise.
2406 (PARSE_AND_LIST_ARGS_CASES): Likewise.
2407 (PARSE_AND_LIST_EPILOGUE): Likewise.
2409 2000-07-28 Alan Modra <alan@linuxcare.com.au>
2411 * emultempl/armelf.em: Elide functions common to elf32.em,
2412 ie. most of the file.
2413 (arm_elf_after_open): New. Do arm specific things then call
2414 gld${EMULATION_NAME}_after_open.
2415 (arm_elf_before_allocation): New. Call
2416 gld${EMULATION_NAME}_before_allocation then do arm specifics.
2417 (PARSE_AND_LIST_PROLOGUE): Define.
2418 (PARSE_AND_LIST_SHORTOPTS): Define.
2419 (PARSE_AND_LIST_LONGOPTS): Define.
2420 (PARSE_AND_LIST_OPTIONS): Define.
2421 (PARSE_AND_LIST_ARGS_CASES): Define.
2422 (LDEMUL_AFTER_OPEN): Define.
2423 (LDEMUL_BEFORE_ALLOCATION): Define.
2424 (LDEMUL_BEFORE_PARSE): Define.
2425 (LDEMUL_FINISH): Define.
2427 * emultempl/hppaelf.em: Similarly zap most of this file.
2428 (hppaelf_add_stub_section): Prototype.
2429 (hppaelf_layaout_sections_again): Prototype.
2430 (hook_in_stub): Prototype.
2431 (LDEMUL_SET_OUTPUT_ARCH): Define.
2432 (LDEMUL_FINISH): Define.
2433 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
2435 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
2436 (EXTRA_EM_FILE): New.
2437 * emulparams/armelf_linux.sh: Likewise.
2438 * emulparams/armelf_linux26.sh: Likewise.
2439 * emulparams/hppalinux.sh: Likewise.
2440 * emulparams/hppaelf.sh: Likewise.
2443 * emultempl/elf32.em: Fix formatting.
2444 (EXTRA_EM_FILE): Source it.
2445 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
2446 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
2447 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
2448 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
2449 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
2450 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
2451 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
2452 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
2453 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
2454 allow functions in this file to be overridden.
2455 (PARSE_AND_LIST_SHORTOPTS): Handle it.
2457 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
2459 * emultempl/elf32.em: Reorganize file.
2461 2000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
2463 * emulparams/elf64alpha.sh: Implement "-taso" emulation
2464 specific option to fit 64-bit executable in the lower
2465 31-bit address range. This is done by changing start
2466 address of .interp (the very first section of executable)
2467 and then setting EF_ALPHA_32BIT elf header flag.
2469 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2471 * emultempl/m68kcoff.em: New file.
2472 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
2473 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
2475 * Makefile.in: Regenerate.
2477 2000-07-20 H.J. Lu <hjl@gnu.org>
2479 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
2480 and "disable-new-dtags" to stop getopt from treating -d/-e as
2481 abbreviations for these options.
2483 2000-07-20 H.J. Lu <hjl@gnu.org>
2485 * ld.texinfo: Add documentation for --disable-new-dtags and
2488 * ldmain.c (main): Initialize link_info.new_dtags to false.
2490 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
2491 --disable-new-dtags and --enable-new-dtags.
2492 (gld_${EMULATION_NAME}_list_options): Likewise.
2494 2000-07-05 Kenneth Block <krblock@computer.org>
2496 * lexsup.c: Add optional style to demangle switch
2497 * ld.texinfo: Document optional style to demangle switch.
2499 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
2501 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
2503 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
2504 Regenerate dependencies.
2505 * Makefile.in: Rebuild.
2506 * configure.tgt (cris-*-*): New target.
2507 * emulparams/crisaout.sh, emulparams/criself.sh,
2508 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
2509 * po/POTFILES.in, po/ld.pot: Regenerate.
2511 2000-07-20 H.J. Lu <hjl@gnu.org>
2513 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
2514 Print out ignored -z options.
2516 2000-07-19 H.J. Lu <hjl@gnu.org>
2518 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
2519 (PARSE_AND_LIST_PROLOGUE): New.
2520 (PARSE_AND_LIST_LONGOPTS): Likewise.
2521 (PARSE_AND_LIST_OPTIONS): Likewise.
2522 (PARSE_AND_LIST_ARGS_CASES): Likewise.
2524 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
2526 * lexsup.c (ld_options): Comment out 'z'.
2527 (parse_args): Likewise.
2529 * emultempl/elf32.em: Include "elf/common.h".
2530 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
2532 (gld_${EMULATION_NAME}_list_options): Likewise.
2534 * ld.texinfo: Add documentation for the recognized -z options.
2536 2000-07-19 H.J. Lu <hjl@gnu.org>
2538 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
2539 bfd_elf_set_dt_needed_soname ().
2541 2000-07-18 DJ Delorie <dj@cygnus.com>
2543 * pe-dll.c (pe_dll_id_target): check object target name also
2545 2000-07-18 Hans-Peter Nilsson <hp@axis.com>
2547 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
2548 ${INIT_END} if relocating.
2549 (.fini): Likewise ${FINI_START} and ${FINI_END}.
2551 2000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
2553 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
2554 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
2555 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
2556 errors introduced by the old dynamic lib search order.
2558 2000-07-17 DJ Delorie <dj@cygnus.com>
2560 * pe-dll.c (process_def_file): auto-export data items also
2561 (pe_process_import_defs): also see if _imp_ form needed
2563 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
2565 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
2566 for dll import libraries
2568 2000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
2570 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
2571 gcc 2.95.2 and later.
2573 2000-07-11 Kazu Hirata <kazu@hxi.com>
2575 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
2578 2000-07-10 Alan Modra <alan@linuxcare.com.au>
2580 * ldemul.h (struct lang_input_statement_struct): Remove forward
2582 (struct search_dirs): Likewise.
2583 * ldfile.h (struct lang_input_statement_struct): Likewise.
2584 Protect file from multiple inclusion.
2585 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
2586 declaration from macro to file scope.
2588 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
2589 * ldgram.y: Likewise here.
2590 * ldlang.c: And here.
2591 * ldmain.c: And here.
2592 * mpw-elfmips.c: And here.
2593 * mpw-eppcmac.c: And here.
2594 * emultempl/aix.em: And here.
2595 * emultempl/armcoff.em: And here.
2596 * emultempl/armelf.em: And here.
2597 * emultempl/armelf_oabi.em: And here.
2598 * emultempl/beos.em: And here.
2599 * emultempl/elf32.em: And here.
2600 * emultempl/hppaelf.em: And here.
2601 * emultempl/linux.em: And here.
2602 * emultempl/lnk960.em: And here.
2603 * emultempl/pe.em: And here.
2604 * emultempl/sunos.em: And here.
2605 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
2606 * mpw-idtmips.c: Ditto.
2607 * emultempl/generic.em: Ditto.
2608 * emultempl/gld960.em: Ditto.
2609 * emultempl/gld960c.em: Ditto.
2610 * emultempl/mipsecoff.em: Ditto.
2611 * emultempl/ticoff.em: Ditto.
2612 * emultempl/vanilla.em: Ditto.
2614 * pe-dll.c: Include ldfile.h
2615 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
2617 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
2618 arguments to bfd_elf32_size_dynamic_sections call.
2619 (gldelf32ebmip_place_orphan): Add missing arguments to
2620 lang_leave_output_section_statement call.
2622 2000-07-10 H.J. Lu <hjl@gnu.org>
2624 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
2626 (strhash): Likewise.
2627 (compute_dll_image_base): Likewise.
2628 (pe_undef_found_sym): Likewise.
2629 (pe_undef_cdecl_match): Likewise.
2630 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
2631 argument "arch" with ATTRIBUTE_UNUSED.
2633 2000-07-10 Alan Modra <alan@linuxcare.com.au>
2635 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
2637 From Ryan Bradetich <rbradetich@uswest.net>
2638 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
2640 2000-07-09 Alan Modra <alan@linuxcare.com.au>
2642 Changes to create multiple linker stubs, positioned immediately
2643 before the section where they are required.
2644 * emultempl/hppaelf.em: Include elf32-hppa.h.
2645 (stub_sec, file_chain): Delete.
2646 (hppaelf_create_output_section_statements): Don't make a stub
2648 (hook_stub_info): New struct.
2649 (hook_in_stub): New function.
2650 (hppaelf_add_stub_section): New function.
2651 (hppaelf_finish): Do nothing for relocateable links. Modify the
2652 call to elf32_hppa_size_stubs. Move code for updating section
2654 (hppaelf_layaout_sections_again): ..to here, a new function.
2656 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
2657 broken list handling. Pass in a pointer to the list.
2658 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
2660 (hppaelf_before_parse): Prototype.
2661 (hppaelf_set_output_arch): Prototype.
2662 (hppaelf_create_output_section_statements): Prototype.
2663 (hppaelf_delete_padding_statements): Prototype.
2664 (hppaelf_finish): Prototype.
2667 * emultempl/hppaelf.em: Include ctype.h.
2668 (struct orphan_save): New.
2669 (gld${EMULATION_NAME}_place_orphan): New.
2670 (output_rel_find): New.
2671 (hppaelf_get_script): Update from elf32.em.
2672 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
2673 Change emulation_name field to "${EMULATION_NAME}". Add
2674 gld${EMULATION_NAME}_place_orphan.
2676 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
2677 ehppalinux.o, sort it. Regenerate dependencies.
2678 (ehppalinux.c): Depend on hppaelf.em
2679 * Makefile.in: Regenerate.
2681 * configure.tgt: targ_emul=hppalinux for hppa*linux
2683 * emulparams/hppalinux.sh: New.
2684 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
2686 2000-07-08 Alan Modra <alan@linuxcare.com.au>
2688 * lexsup.c (parse_args): Copy section name.
2690 2000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
2692 * emultempl/pe.em: institute the following search order for
2693 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
2694 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
2695 static lib (libfoo.a) if none of the above are found.
2697 2000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
2699 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
2700 (longopts): New --{enable,disable}-auto-image-base options.
2701 (gld_${EMULATION_NAME}_list_options): Document.
2702 (gld_${EMULATION_NAME}_parse): Handle.
2703 (strhash): New static function.
2704 (compute_dll_image_base): New static function.
2705 (gld_${EMULATION_NAME}_set_symbols): Use.
2707 2000-07-05 DJ Delorie <dj@redhat.com>
2711 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
2713 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
2714 * emulparams/elf32btsmip.sh: New file.
2715 * Makefile.am: Add traditional mips target.
2716 * Makefile.in: Rebuild.
2718 2000-07-01 H.J. Lu <hjl@gnu.org>
2720 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
2721 automake to use YLWRAP.
2722 * Makefile.in: Rebuild.
2724 2000-07-01 Alan Modra <alan@linuxcare.com.au>
2726 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
2727 (CLEANFILES): Add DEPA.
2728 * Makefile.in: Regenerate.
2730 2000-06-30 Timothy Wall <twall@ppc>
2732 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
2733 the page in the upper octet of the address.
2735 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
2737 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
2739 2000-06-24 Alan Modra <alan@linuxcare.com.au>
2741 * NEWS: arm-elf does --gc-sections too.
2743 2000-06-22 Alan Modra <alan@linuxcare.com.au>
2745 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
2747 * Makefile.in: Regenerate.
2749 2000-06-21 H.J. Lu <hjl@gnu.org>
2751 * Makefile.am: Rebuild dependency.
2752 * Makefile.in: Rebuild.
2754 2000-06-20 H.J. Lu <hjl@gnu.org>
2756 * Makefile.am: Rebuild dependency.
2757 * Makefile.in: Rebuild.
2759 2000-06-20 Timothy Wall <twall@cygnus.com>
2761 * scripttempl/tic54xcoff.sc: New.
2762 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
2763 * gen-doc.texi: Add flag for TI COFF.
2764 * ld.texinfo: Add documentation for TI COFF handling switches.
2765 * emultempl/ticoff.em: New. TI COFF handling.
2766 * configure.tgt: Add tic54x target.
2767 * Makefile.am: Add tic54x target.
2768 * Makefile.in: Ditto.
2770 2000-06-20 Alan Modra <alan@linuxcare.com.au>
2772 * ldmain.c (set_scripts_dir): Correct pointer comparison when
2773 checking for backslashes.
2775 2000-06-19 Alan Modra <alan@linuxcare.com.au>
2777 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
2779 2000-06-18 Alan Modra <alan@linuxcare.com.au>
2781 * NEWS: Update list of targets supporting --gc-sections.
2783 * scripttempl/elf.sc: KEEP .eh_frame contents.
2784 * scripttempl/elfd30v.sc: Same here.
2786 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
2788 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
2790 * Makefile.in: Rebuild.
2791 * configure.tgt: Recognize m68hc12 and m68hc11.
2792 * scripttempl/elfm68hc12.sc: New file.
2793 * emulparams/m68hc12elfb: New emulation.
2794 * emulparams/m68hc12elf: New emulation.
2795 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
2796 (includes a memory.x script to define the ROM and RAM banks).
2797 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
2798 New configuration files for support of Motorola 68hc11
2800 2000-06-15 Alan Modra <alan@linuxcare.com.au>
2802 * ldmain.c (main): Only change SEC_READONLY for final link.
2804 2000-06-13 H.J. Lu <hjl@gnu.org>
2806 * configure: Regenerate.
2808 2000-06-08 David O'Brien <obrien@FreeBSD.org>
2810 * configure.in (VERSION): Update to show this is the CVS mainline.
2812 2000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2814 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
2815 input objects to be ECOFF.
2816 (check_sections): einfo takes %B, not %P, to print a BFD name.
2818 2000-06-05 Michael Matz <matz@ifh.de>
2820 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
2823 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
2825 2000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
2827 * emulparams/avr1200.sh (STACK): Define as 0.
2828 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
2829 * emulparams/avr4433.sh (STACK): Likewise.
2830 * emulparams/avr44x4.sh (STACK): Likewise.
2831 * emulparams/avr85xx.sh (STACK): Likewise.
2832 * emulparams/avrmega103.sh (STACK): Likewise.
2833 * emulparams/avrmega161.sh (STACK): Likewise.
2834 * emulparams/avrmega603.sh (STACK): Likewise.
2835 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
2836 (__stack): Define from ${STACK} for main().
2838 2000-05-26 Alan Modra <alan@linuxcare.com.au>
2840 * Makefile.am: Update dependencies with "make dep-am"
2841 * Makefile.in: Regenerate.
2843 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
2845 * ldmain.c: Include filenames.h.
2846 (set_scripts_dir): Support backslashes in program name.
2848 2000-05-22 Igor Shevlyakov <igor@windriver.com>
2850 * ldmain.c (main): When deciding if ".text" section should be
2851 read-only, don't forget to reset SEC_READONLY because it
2852 could be already set.
2854 2000-05-22 Thomas de Lellis <tdel@windriver.com>
2856 * ld.1: Add documentation for new command line option:
2857 --section-start <sectionname>=<sectionorg>
2858 This is a generic version of -Ttext etc. which accepts
2859 any section name as a parameter instead of just text/data/
2861 * ld.texinfo: More docs.
2863 * lexsup.c: (parse_args): Recognize new command line option.
2864 (ld_options): Add new option.
2866 2000-05-18 H.J. Lu <hjl@gnu.org>
2868 * lexsup.c (parse_args): `i' == `r', not `q'.
2870 Thu May 18 10:47:57 2000 Jeffrey A Law (law@cygnus.com)
2872 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
2874 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
2875 Rick Gorton <gorton@scrugs.lkg.dec.com>
2877 Add support for '-q' == '--emit-relocs' switch.
2878 * ldmain.c (main): Default to false.
2879 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
2880 * NEWS: Describe the emitrelocations switch.
2881 * ld.texinfo: Describe the emitrelocations switch.
2883 2000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
2885 * emultempl/pe.em (_open_dynamic_archive): New function: Search
2886 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
2887 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
2890 2000-05-15 David O'Brien <obrien@FreeBSD.org>
2892 * lexsup.c (parse_args): Update the year in the copyright notice.
2894 2000-05-13 Alan Modra <alan@linuxcare.com.au>
2896 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
2897 Replace defines with those from intl/libgettext.h to quieten gcc
2900 2000-05-10 H.J. Lu <hjl@gnu.org>
2902 * ldlang.c (open_input_bfds): Don't load the same file within
2903 a group again if the whole archive has been loaded already.
2905 2000-05-03 Alan Modra <alan@linuxcare.com.au>
2907 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
2908 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
2911 Mon May 1 17:34:34 2000 Jim Wilson <wilson@cygnus.com>
2913 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
2915 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
2916 host "ia64-*-linux-gnu*".
2918 2000-04-29 Andreas Jaeger <aj@suse.de>
2920 * ld.h: Correctly check GCC version.
2922 Tue Apr 25 11:20:43 2000 Jeffrey A Law (law@cygnus.com)
2924 * Makefile.am: Add PA64 support. Add missing dependencies for
2926 * Makefile.in: Rebuilt.
2927 * configure.tgt: Add PA64 support (currently disabled).
2929 2000-04-25 Alan Modra <alan@linuxcare.com.au>
2931 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
2932 (output_rel_find): New function.
2933 (hold_section, hold_use): Delete.
2934 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
2935 hold_interp): Make local to place_orphan.
2936 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
2937 rather than place_section to find possible previous use of orphan.
2938 Similarly find the place-holder output sections. Use returned
2939 value from lang_enter_output_section_statement rather than calling
2940 lang_output_section_statement_lookup.
2941 * emultempl/armelf.em: Same here.
2942 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
2944 * ldlang.c (lang_enter_output_section_statement): Return output
2946 * ldlang.h (lang_enter_output_section_statement): Change
2949 * ldlang.h (lang_output_section_statement): Export it.
2950 * ldlang.c (lang_output_section_statement): Ditto.
2952 2000-04-24 Nick Clifton <nickc@cygnus.com>
2954 * ld.texinfo (Output Section Data): Add note that section data
2955 commands cannot appear outside of section directives.
2957 2000-04-2 Matthew Green <mrg@cygnus.com>
2959 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
2961 Fri Apr 21 13:20:53 2000 Richard Henderson <rth@cygnus.com>
2962 David Mosberger <davidm@hpl.hp.com>
2964 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
2965 (eelf64_ia64.c): New rule.
2966 * Makefile.in: Rebuild.
2967 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
2968 * emulparams/elf64_ia64.sh: New file.
2970 2000-04-21 Richard Henderson <rth@cygnus.com>
2972 * scripttempl/elfd30v.sc: Place .gcc_except_table.
2974 2000-04-19 Alan Modra <alan@linuxcare.com.au>
2976 * dep-in.sed: Match space at start of file name, not at end.
2978 2000-04-18 H.J. Lu <hjl@gnu.org>
2980 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
2981 lang_leave_output_section_statement () after calling
2982 lang_enter_output_section_statement ().
2983 * emultempl/armelf.em: Likewise.
2985 2000-04-18 Alan Modra <alan@linuxcare.com.au>
2987 * emultempl/elf32.em (struct orphan_save): Add section field.
2988 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
2989 better order, and place first orphan section as we did before the
2990 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
2991 Don't call make_bfd_section here, let wild_doit do the job for us.
2992 Don't build a statement list when we'll only throw it away.
2993 * emultempl/armelf.em: Ditto.
2994 * emultempl/pe.em: Similarly.
2996 2000-04-14 Geoff Keating <geoffk@cygnus.com>
2998 * scripttempl/elfppc.sc: Remove.
2999 * emulparams/elf32ppc.sh: Use elf.sc.
3000 * emulparams/elf32lppc.sh: Use elf.sc.
3001 * emulparams/elf32ppclinux.sh: Use elf.sc.
3002 * emulparams/elf32ppcsim.sh: New file.
3003 * emulparams/elf32lppcsim.sh: New file.
3004 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
3005 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
3006 * Makefile.in: Regenerate.
3007 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
3009 2000-04-14 Alan Modra <alan@linuxcare.com.au>
3011 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
3012 ~SEC_ALLOC sections too. Init start address of debug sections.
3013 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
3014 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
3015 Also set all relocateable section start addresses.
3017 2000-04-13 Geoff Keating <geoffk@cygnus.com>
3019 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
3020 Add new BSS_PLT variable for when .plt need not be contained in
3021 the file. Move _etext so that it is also after .fini, and provide
3022 both etext and _etext with a leading underscore. Mark the start
3025 2000-04-12 Alan Modra <alan@linuxcare.com.au>
3027 * emultempl/elf32.em (struct orphan_save): New.
3028 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
3029 hold_interp): Make them struct orphan_save.
3030 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
3031 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
3032 the end of the relevant section list. Also add associated section
3033 statements to the end of any previous orphan statements.
3034 * emultempl/armelf.em: Similarly.
3035 * emultempl/pe.em: Similarly.
3037 2000-04-11 Alan Modra <alan@linuxcare.com.au>
3039 * ld.texinfo (Simple Example): Remove extraneous paragraph.
3041 Fri Apr 7 15:56:57 2000 Andrew Cagney <cagney@b1.cygnus.com>
3043 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
3044 --enable-build-warnings option.
3045 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
3046 * Makefile.in, configure: Re-generate.
3048 2000-04-04 Alan Modra <alan@linuxcare.com.au>
3050 * po/ld.pot: Regenerate.
3052 * lexsup.c (help): Restore translated part of bug string.
3054 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
3055 (DEP): Quote when passing vars to sub-make. Add warning message
3057 (DEP1): Rewrite for "gcc -MM".
3058 (CLEANFILES): Add DEP2.
3059 Update dependencies.
3060 * Makefile.in: Regenerate.
3062 2000-04-03 Alan Modra <alan@linuxcare.com.au>
3064 * ld.h: #include "bin-bugs.h"
3065 * lexsup.c (help): Use REPORT_BUGS_TO.
3067 2000-03-27 Denis Chertykov <denisc@overta.ru>
3069 * configure.tgt (avr-*-*): New target support.
3070 * Makefile.am: Likewise.
3071 * scripttempl/elf32avr.sc: New script file.
3072 * emulparams/avr1200.sh: New file.
3073 * emulparams/avr23xx.sh: New file.
3074 * emulparams/avr4433.sh New file.
3075 * emulparams/avr44x4.sh New file.
3076 * emulparams/avr85xx.sh New file.
3077 * emulparams/avrmega103.sh New file.
3078 * emulparams/avrmega161.sh New file.
3079 * emulparams/avrmega603.sh New file.
3080 * Makefile.in: Regenerate.
3082 2000-03-09 Andreas Jaeger <aj@suse.de>
3084 * Makefile.am (check-DEJAGNU): Also unset LANG.
3085 * Makefile.in: Rebuild.
3087 2000-03-06 Ian Lance Taylor <ian@zembu.com>
3089 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
3092 2000-03-02 H.J. Lu <hjl@gnu.org>
3094 * emulparams/elf32mcore.sh: Include "getopt.h".
3096 2000-03-01 Ian Lance Taylor <ian@zembu.com>
3098 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
3100 2000-03-01 H.J. Lu <hjl@gnu.org>
3102 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
3103 * emulparams/shpe.sh: Likewise.
3105 2000-03-01 Nick Clifton <nickc@cygnus.com>
3107 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
3108 to unused parameters.
3110 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
3111 functions only used by DLL code.
3112 (_place_orphan): Initialise 'dollar'.
3114 2000-03-01 H.J. Lu <hjl@gnu.org>
3116 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
3117 indicate if the undefined symbol is a fatal error or not.
3118 Don't delete the output file if "fatal" is false.
3120 2000-02-29 H.J. Lu <hjl@gnu.org>
3122 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
3123 Set LC_COLLATE and LC_ALL to null and export them. It is for
3124 sort which expects the C locale.
3125 Add $(LIBS) to all $(HOSTING_LIBS).
3126 * Makefile.in: Rebuild.
3128 2000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
3130 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
3131 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
3132 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
3133 (ld_emulation_xfer_struct): Add missing NULL initialiser for
3134 find_potential_libraries.
3136 2000-02-28 Jim Blandy <jimb@redhat.com>
3138 * ldgram.y (exclude_name_list): Don't require a comma to separate
3139 list entries; the lexer considers commas to be valid part of a
3140 filename, so in something like `foo, bar' the comma is considered
3141 part of the first filename, `foo,'.
3142 * ld.texinfo: Update section on EXCLUDE_FILE lists.
3144 2000-02-27 Loren J. Rittle <ljrittle@acm.org>
3146 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
3147 host "i[3456]86-*-freebsdelf*".
3149 2000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
3151 * scripttempl/i386go32.sc: Move misplaced semicolons.
3153 2000-02-25 Ian Lance Taylor <ian@zembu.com>
3155 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
3156 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
3157 (eelf64hppa.c, ehppaelf.c): Remove targets.
3158 * Makefile.in: Rebuild.
3160 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
3162 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
3163 GNU/Linux/sparc, but keep the default as 32.
3165 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
3166 it default if sparcv9 or sparc64.
3168 2000-02-24 Nick Clifton <nickc@cygnus.com>
3170 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
3171 * Makefile.in: Regenerate.
3172 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
3174 * ldemul.h (ld_emulation_xfer_struct): Add new field:
3175 find_potential_libraries.
3176 * ldemul.c (ldemul_find_potential_libraries): New function.
3178 * ldfile.c (ldfile_open_file_search): Allow function to be
3180 (ldfile_open_file): Call ldemul_find_potential_libraries.
3181 * ldfile.h: Add prototype for ldfile_open_file_search.
3183 * pe-dll.c: Add support for ARM, MIPS and SH targets.
3185 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
3186 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
3188 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
3189 (gld_X_find_potential_libraries): New function. Search for
3190 libraries called "*.lib".
3192 * scripttempl/pe.sc: Add .pdata section.
3194 2000-02-23 Richard Henderson <rth@cygnus.com>
3196 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
3197 Add and use memory regions.
3199 2000-02-23 Linas Vepstas (linas@linas.org)
3201 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
3203 * Makefile.am: Add support for Linux/IBM 370.
3204 * configure.tgt: Likewise.
3206 * Makefile.in: Regenerate.
3208 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
3210 * ldlang.c (print_input_section, print_data_statement,
3211 print_reloc_statement, print_padding_statement, insert_pad,
3212 size_input_section, lang_check_section_addresses,
3213 lang_size_sections, lang_do_assignments, lang_set_startof,
3214 lang_one_common): Change `opb' to unsigned.
3215 (lang_do_assignments): Also change `size' to unsigned.
3217 2000-02-16 Richard Henderson <rth@cygnus.com>
3219 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
3221 2000-02-16 Timothy Wall <twall@cygnus.com>
3223 * mri.c (mri_draw_tree): Add default LMA region argument to call
3224 to lang_leave_output_section_statement.
3225 * ldlang.h: Update prototypes with LMA region arguments.
3226 * ldlang.c (lang_size_sections): Encapsulate region bounds
3227 checking in os_check_region call.
3228 (os_check_region): New function.
3229 (lang_output_section_statement_lookup): Initialize lma_region.
3230 (lang_leave_output_section_statement): Add LMA region argument.
3231 (lang_leave_overlay): Ditto.
3232 * ldgram.y: Handle LMA region syntax.
3233 * ld.texinfo (Output Section Description): Describe LMA region usage.
3234 * emultempl/armelf.em (gld$place_orphan): Add default value for
3235 lma region in call to lang_leave_output_section_statement.
3236 * emultempl/elf32.em (gld$place_orphan): Add default value for
3237 lma region in call to lang_leave_output_section_statement.
3238 * emultempl/pe.em (gld$place_orphan): Add default value for
3239 lma region in call to lang_leave_output_section_statement.
3242 2000-02-04 Timothy Wall <twall@redhat.com>
3244 * ldlang.c (lang_check_section_addresses): Use bytes instead of
3245 octets when calculating section end addresses.
3247 2000-02-04 Timothy Wall <twall@redhat.com>
3249 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
3251 2000-02-03 Timothy Wall <twall@redhat.com>
3253 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
3255 * ldlang.c (print_input_section, print_data_statement,
3256 print_reloc_statement, print_padding_statement): Print target
3257 address values and section sizes as bytes, not octets.
3258 (insert_pad) Calculate padding size in octets, and adjust "dot"
3260 (size_input_section) Always adjust "dot" by bytes, not octets.
3261 (lang_check_section_addresses, lang_do_assignments) Adjust
3262 "dot" by bytes, not octets. Use the larger of the directive size
3263 or octets_per_byte for the number of octets actually allocated in
3265 (lang_set_startof) Make sure STARTOF returns a target address.
3266 (lang_one_common) Record size changes in octets.
3267 (lang_abs_symbol_at_end_of) Section end symbol's value is
3268 recorded in target bytes.
3269 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
3270 to be clear about behavior when an octet is smaller than one byte.
3272 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
3274 * ldcref.c (output_cref): Don't pass message strings to printf
3278 * ldmisc.c (vfinfo): Same here.
3281 2000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
3283 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
3284 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
3285 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
3286 Add missing NULL initialisers, and comments.
3288 * testsuite/ld-srec/sr3.cc (__rethrow): New.
3290 2000-01-21 Nick Clifton <nickc@cygnus.com>
3292 * ldlang.c (lang_size_sections): Fix typo in comment.
3294 2000-01-18 H.J. Lu <hjl@gnu.org>
3296 * ldlang.c (lang_size_sections): Also update the current
3297 address of a region if the SEC_NEVER_LOAD bit is not set.
3299 2000-01-10 Philip Blundell <pb@futuretv.com>
3301 * configure.tgt (arm*-*-conix*): New target.
3303 2000-01-07 Nick Clifton <nickc@cygnus.com>
3305 * ld.texinfo (Options): Remind users to preceed linker command
3306 line switches with -Wl, (or whatever is appropriate) if it is
3307 being invoked by a comnpiler driver program.
3308 Fix description of the behaviour of the -n command line switch.
3310 Wed Jan 5 08:02:12 2000 Catherine Moore <clm@cygnus.com>
3312 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
3314 * ld.texinfo (EXCLUDE_FILE): Update documentation.
3315 * ldgram.y (wildcard_spec): Support a list of excluded_files.
3316 (exclude_name_list): New.
3317 ldlang.c (walk_wild_section): Support list of excluded files.
3318 (print_wild_statement): Likewise.
3319 (lang_add_wild): Likewise.
3320 * ldlang.h (lang_wild_statement_type): Likewise.
3321 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
3323 2000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
3325 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
3326 (process_def_file): Use.
3327 (pe_dll_compat_implib): New variable.
3330 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
3331 pe_dll_compat_implib.
3333 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
3334 compat-implib options.
3335 (gld_${EMULATION_NAME}_list_options): List new options.
3336 (gld_${EMULATION_NAME}_parse_args): Handle.
3338 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
3341 * deffilep.y (opt_name): Allow "." in name.
3343 For older changes see ChangeLog-9899
3349 version-control: never