1 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
3 Support on-demand global register allocation from
4 R_MMIX_BASE_PLUS_OFFSET relocs.
5 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
6 mmix_set_reg_section_vma. Call
7 _bfd_mmix_finalize_linker_allocated_gregs.
8 (mmix_before_allocation): New function.
9 (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
10 (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
11 * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
12 (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
13 before .MMIX.reg_contents.
14 * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
15 (mmo_after_open): New function.
16 (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
17 * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting. Add
18 .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
20 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
22 * emulparams/or32.sh: New file.
23 * emulparams/or32elf.sh: New file.
24 * scripttempl/or32.sc: New file.
25 * configure.tgt : Add support for or32.
26 * configure: Regenerate
27 * Makefile.am: Add support for or32.
28 * Makefile.in: Regenerate.
29 * NEWS: Mention support for or32.
30 * po/ld.pot: Regenerate.
32 2002-01-29 Chris Demetriou <cgd@broadcom.com>
33 Mitch Lichtenberg <mpl@broadcom.com>
35 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
36 * emultempl/mipself.em: New file to handle MIPS ELF embedded
37 reloc creation (ld --embedded-relocs).
39 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
41 * configure: Regenerated.
43 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
45 * Makefile.am (install): Depend on install-info.
46 * Makefile.in: Regenerate.
48 2002-01-26 Christian Rose <menthos@menthos.com>
50 * ldmain.c (main): Use full sentences to ease translation.
52 2002-01-26 Nick Clifton <nickc@cambridge.redhat.com>
54 * po/fr.po: Updated version.
56 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
58 * po/es.po: Updated version.
60 2002-01-25 Andreas Jaeger <aj@suse.de>
62 * ldlex.l (yy_input): Correct error check.
64 2002-01-25 Alan Modra <amodra@bigpond.net.au>
66 * ldmisc.c (demangle): Put back dots when string not demangled.
68 2002-01-22 Richard Henderson <rth@redhat.com>
70 * emulparams/elf64alpha.sh (NOP): Use unop.
72 2002-01-21 Andreas Jaeger <aj@suse.de>
74 * ldlex.l: Use fread instead of read.
76 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
78 * configure.tgt (ia64-*-netbsd*): New target.
80 2002-01-21 H.J. Lu <hjl@gnu.org>
82 * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
84 * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
86 2002-01-18 Andreas Jaeger <aj@suse.de>
88 * ldver.c (ldversion): Update year.
90 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
92 * po/ld.pot: Regenerate.
94 2002-01-16 Alan Modra <amodra@bigpond.net.au>
96 * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
97 * Makefile.in: Regenerate.
98 * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
99 * emultempl/ppc64elf.em: New file.
101 2002-01-15 DJ Delorie <dj@redhat.com>
103 * scripttempl/pe.sc: Add support for constructor priorities.
105 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
107 * emulparams/avr1200.sh (DATA_START): Define as 0x60.
108 * emulparams/avr23xx.sh: Likewise.
109 * emulparams/avr4433.sh: Likewise.
110 * emulparams/avr44x4.sh: Likewise.
111 * emulparams/avr85xx.sh: Likewise.
112 * emulparams/avrmega103.sh: Likewise.
113 * emulparams/avrmega161.sh: Likewise.
114 * emulparams/avrmega603.sh: Likewise.
115 * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
117 2002-01-08 Alexandre Oliva <aoliva@redhat.com>
119 * ldlang.c (walk_wild_section): Exclude object file if enclosing
122 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
124 * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
125 (eshelf_nbsd.c): New rule.
126 (eshlelf_nbsd.c): New rule.
127 * Makefile.in: Regenerate.
128 * configure.tgt (sh*le-*-netbsdelf*): New target.
129 (sh*-*-netbsdelf*): New target.
130 * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
131 * ld/emulparams/shelf_nbsd.sh: New emulation.
132 * ld/emulparams/shlelf_nbsd.sh: New emulation.
134 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
136 * po/es.po: New file: Spanish translation.
137 * configure.in (ALL_LINGUAS): Add es.
138 * configure: Regenerate.
140 2002-01-06 John Marshall <jmarshall@acm.org>
142 * ld.texinfo: Note that --emit-relocs is currently only
145 2002-01-05 Alan Modra <amodra@bigpond.net.au>
147 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
148 of bfd_section_list_remove and bfd_section_list_insert macros.
149 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
150 * emultempl/mmo.em (mmo_place_orphan): Likewise.
152 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
154 * configure.tgt (x86_64-*-netbsd*): New target.
156 2001-12-21 Tom Rix <trix@redhat.com>
158 (gld*_create_output_section_statements): New function.
159 For -binitfini support.
160 * emultempl/aix.em (gld*_before_parse): Fix comment.
161 * emultempl/aix.em (gld*_parse_args): Fix comment.
163 2001-12-20 Jason Thorpe <thorpej@wasabisystems.com>
165 * configure.tgt (mips*-dec-netbsd*): Delete alias for
167 (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
169 * configure.tgt (arm-*-netbsdelf*): Add target.
170 (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
171 * emulparams/armelf_nbsd.sh: Added.
172 * Makefile.am: Add rules for earmelf_nbsd.
173 * Makefile.in: Regenerate.
175 2001-12-19 Andreas Jaeger <aj@suse.de>,
176 Susanne Oberhauser <froh@suse.de>
178 * configure.host: Add rules for x86_64-*linux-gnu. Change
179 s390x-linux entry to use gcc to report configuration, replace gcc
180 with $CC in s390-linux
182 2001-12-19 Andreas Jaeger <aj@suse.de>
184 * ld.texinfo (VERSION): Fix markup.
186 2001-12-18 matthew green <mrg@eterna.com.au>
188 * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
189 (m68kelfnbsd.c): New rule.
190 * Makefile.in: Regenerate.
191 * configure.tgt (m68*-hp-netbsd*): Renamed to ..
192 (m68*-*-netbsd*4k*): .. this.
193 (m68*-*-netbsdelf*): New target.
194 (m68*-*-netbsd*): Also include ELF support.
195 (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
196 * emulparams/m68kelfnbsd.sh: New emulation.
198 2001-12-18 Jakub Jelinek <jakub@redhat.com>
200 * ldgram.y (vers_node): Support anonymous version tags.
201 * ldlang.c (lang_register_vers_node): Ensure anonymous version
202 tag is not defined together with non-anonymous versions.
203 * ld.texinfo: Document it.
205 2001-12-18 Nick Clifton <nickc@cambridge.redhat.com>
207 * po/tr.po: New file: Turkish translation.
208 * configure.in (ALL_LINGUAS): Add tr.
209 * configure: Regenerate.
211 2001-12-17 Jason Thorpe <thorpej@wasabisystems.com>
213 * Makefile.am: Add rules for eelf64alpha_nbsd.
214 * Makefile.in: Regenerate.
215 * configure.tgt (alpha*-*-netbsd*): Set
216 targ_emul to elf64alpha_nbsd.
217 * emulparams/elf64alpha_nbsd.sh: Added.
219 2001-12-17 Alan Modra <amodra@bigpond.net.au>
221 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
222 section_tail when fiddling with section list.
223 (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
224 broken into separate strings to make translation easier.
225 * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
226 fiddling with section list.
227 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
229 2001-12-16 Hans-Peter Nilsson <hp@bitrange.com>
231 * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
233 2001-12-15 Alan Modra <amodra@bigpond.net.au>
235 * ldmain.c (main): Initialise link_info.eh_frame_hdr.
237 2001-12-13 Jakub Jelinek <jakub@redhat.com>
239 * emultempl/elf32.em (finish): Supply output_bfd
240 to bfd_elf*_discard_info.
241 (OPTION_EH_FRAME_HDR): Define.
242 (longopts): Add --eh-frame-hdr.
243 (parse_args): Handle it.
244 (list_options): Add --eh-frame-hdr to help.
245 * emultempl/hppaelf.em (finish): Supply output_bfd
246 to bfd_elf*_discard_info.
247 * scripttempl/elf.sc (.eh_frame_hdr): Add.
249 2001-12-13 Alan Modra <amodra@bigpond.net.au>
251 * lexsup.c (parse_args): Don't pass shortopts to second call to
252 getopt functions. Restore optind rather than decrementing before
253 second call. Remove errind as it now duplicates last_optind.
255 2001-12-11 Christopher Faylor <cgf@redhat.com>
257 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
259 2001-12-07 Geoffrey Keating <geoffk@redhat.com>
260 Richard Henderson <rth@redhat.com>
262 * Makefile.am: Add support for xstormy16.
263 * configure.tgt: Add support for xstormy16.
264 * Makefile.in: Regenerate.
265 * emulparams/elf32xstormy16.sh: New file.
266 * scripttempl/xstormy16.sc: New file.
268 2001-10-01 Christopher Faylor <cgf@cygnus.com>
270 * Makefile.in (LIB_PATH): Make configurable.
271 (GENSCRIPTS): Set LIB_PATH in environment.
272 * configure.in: Substitute LIB_PATH.
273 * configure: Regenerate.
274 * configure.tgt (*cygwin): Set LIB_PATH for cross build.
275 * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
277 2001-12-07 Nick Clifton <nickc@cambridge.redhat.com>
279 * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
280 describing the -N option so that it is easier to translate into
283 2001-12-05 Nick Clifton <nickc@cambridge.redhat.com>
285 * emultempl/pe.em (..._list_options): Replace multiple fprintf
286 statements describing a single option with a single, newline
287 escaped fprintf. This allows better translation into other
290 * ldmain.c (add_archive_element): Combine multiple strings
291 into a single string to permit better translation into other
294 2001-12-05 Tom Rix <trix@redhat.com>
296 * Makefile.am: Remove eaixppc64.
297 * Makefile.in: Regenerate.
299 2001-12-04 Tom Rix <trix@redhat.com>
301 * emultempl/aix.em (choose_target): Change default target to
302 OUTPUT_FORMAT for ppcmacos. Add braces to remove compiler
304 (gld*_read_file): Fix typo.
305 (change_symbol_mode): Add prototype.
308 * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
309 * emulparams/aixrs6.sh : Same.
310 * emulparams/ppcmacos.sh : Same.
311 * emulparams/aixppc64.sh : Delete file.
312 * emultempl/aix.em : Formatting changes.
314 2001-12-04 Hans-Peter Nilsson <hp@axis.com>
316 * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
317 (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
319 (OTHER_END_SYMBOLS): Fix formatting.
320 * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
321 (OTHER_END_SYMBOLS): Fix formatting.
323 2001-12-04 Alan Modra <amodra@bigpond.net.au>
325 * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
327 2001-12-02 Tom Rix <trix@redhat.com>
329 * configure.tgt : Remove eaixppc64 emulations.
330 * Makefile.in : Remove eaixppc64.c
331 * ldemul.c (ldemul_choose_target): New parameters argc, argv.
332 (ldemul_default_target): Same.
333 * emultempl/gld960.em (gld960_choose_target): Same.
334 * emultempl/gld960c.em (gld960_choose_target): Same.
335 * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
336 * emultempl/aix.em (is_syscall): syscall_mask now a variable.
337 * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
338 * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
339 * emultempl/aix.em (choose_target): New function. Handle emulation of
342 2001-11-27 H.J. Lu <hjl@gnu.org>
344 * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
345 * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
346 * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
347 * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
348 * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
349 * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
350 * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
351 * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
353 * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
356 (REL_SDATA): Likewise.
357 (REL_SBSS): Likewise.
358 (REL_SDATA2): Likewise.
359 (REL_SBSS2): Likewise.
360 (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
363 2001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
365 * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
367 * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
369 2001-11-22 H.J. Lu <hjl@gnu.org>
371 * Makefile.in: Regenerated with automake based on automake
374 2001-11-22 Alan Modra <amodra@bigpond.net.au>
376 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
377 (config.status): Delete rule.
378 Add extra dependencies to cover sourced emulparams files.
379 * Makefile.in: Regenerate.
381 * scripttempl/elf.sc: Order <section>, <section>.* and
382 corresponding linkonce sections as seen in input files.
383 Formatting fixes. Zero vma of all sections if not relocating.
384 (STACK): Define and insert if STACK_ADDR defined.
385 (OTHER_RELOCATING_SECTIONS): Delete.
386 (OTHER_END_SYMBOLS): Define.
387 (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
388 (OTHER_READWRITE_SECTIONS): Likewise.
389 (OTHER_GOT_SECTIONS): Likewise.
390 (OTHER_SDATA_SECTIONS): Likewise.
391 (OTHER_BSS_SECTIONS): Likewise.
392 * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
393 (OTHER_READWRITE_SECTIONS): Likewise.
394 * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
395 (OTHER_READWRITE_SECTIONS): Likewise
397 * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
398 (STACK_ADDR): Define.
399 * emulparams/armelf_oabi.sh: As for armelf.sh.
400 * emulparams/elf32mcore.sh: As for armelf.sh.
401 * emulparams/h8300elf.sh: As for armelf.sh.
402 * emulparams/mn10200.sh: As for armelf.sh.
403 * emulparams/shelf.sh: As for armelf.sh.
405 * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
406 (OTHER_END_SYMBOLS): Define.
407 * emulparams/m32relf.sh: As for elf32fr30.sh.
408 * emulparams/h8300helf.sh: As for elf32fr30.sh.
409 * emulparams/h8300self.sh: As for elf32fr30.sh.
411 * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
412 defines with RELOCATING test.
413 (OTHER_SDATA_SECTIONS): Likewise.
414 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
415 (OTHER_END_SYMBOLS): ..this.
416 * emulparams/crislinux.sh: As for criself.sh.
418 * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
420 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
421 (OTHER_SECTIONS): ..this. Zero vma if not relocating. Order
422 normal and linkonce sections as seen in input files.
423 * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
424 (TEXT_DYNAMIC): Likewise.
425 (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
426 (OTHER_SDATA_SECTIONS): Likewise.
427 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
428 * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
429 * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
430 * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
431 * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
432 (OTHER_PLT_RELOC_SECTIONS): Likewise.
433 (OTHER_READONLY_SECTIONS): Likewise. Order normal and linkonce
434 sections as seen in input files.
435 * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
436 * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
438 (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
439 (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
440 * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
441 (OTHER_SECTIONS): Instead, use this..
442 (OTHER_END_SYMBOLS): ..and this.
444 * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
445 * emulparams/elf32bsmip.sh: Likewise.
446 * emulparams/elf32btsmip.sh: Likewise.
447 * emulparams/elf32ebmip.sh: Likewise.
448 * emulparams/elf32lmip.sh: Likewise.
449 * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
450 * emulparams/elf32lsmip.sh: Likewise.
451 * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
452 * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
453 * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
454 * emulparams/elf64btsmip.sh: Likewise.
455 * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
456 * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
457 * emulparams/elf32ppclinux.sh: Likewise.
458 * emulparams/elf32ppcsim.sh: Likewise.
459 * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
460 * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
461 * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
462 * emulparams/h8300self.sh: Likewise.
463 * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
464 * emulparams/sh.sh: Comment.
465 * emulparams/shl.sh: Source sh.sh, remove duplicates.
466 * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
467 * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
469 2001-11-21 David Heine <dlheine@tensilica.com>
470 Alan Modra <amodra@bigpond.net.au>
472 * ldlang.c (map_input_to_output_sections): Replace "break"
473 accidentally removed with 2001-08-03 change.
474 (lang_gc_sections_1): Likewise.
476 2001-11-21 Alan Modra <amodra@bigpond.net.au>
478 * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
480 2001-11-20 Angela Marie Thomas <angela@redhat.com>
482 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
483 of false when calling lang_size_sections.
484 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
486 2001-11-15 Alan Modra <amodra@bigpond.net.au>
488 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
489 function when LDEMUL_FINISH isn't set to the same name. Don't
490 call ${LDEMUL_FINISH}.
491 (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
492 * emultempl/armelf.em (arm_elf_finish): Call
493 gld${EMULATION_NAME}_finish.
494 * emultempl/hppaelf.em (hppaelf_finish): Rename to
495 gld${EMULATION_NAME}_finish. Call bfd_elf32_discard_info and
496 hppaelf_layout_sections_again if necessary.
497 (need_laying_out): New var.
498 (hppaelf_layaout_sections_again): Rename to
499 hppaelf_layout_sections_again. Clear need_laying_out.
500 (PARSE_AND_LIST_OPTIONS): Format text.
502 2001-11-14 H.J. Lu <hjl@gnu.org>
504 * emultempl/armelf.em (arm_elf_finish): Renamed from
505 gld${EMULATION_NAME}_finish.
506 (LDEMUL_FINISH): Set to arm_elf_finish.
508 2001-11-14 Daniel Jacobowitz <drow@mvista.com>
510 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
511 (struct ld_emulation_xfer_struct): Use it.
513 2001-11-13 Ross Alexander <ross.alexander@uk.neceur.com>
515 * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
516 additional symbols referenced by newer crt0.o files from HP.
518 2001-11-12 Anthony Green <green@redhat.com>
520 * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
522 2001-11-12 Alfred M. Szmidt <ams@kemisten.nu>
524 * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
525 * Makefile.in: Regenerate.
527 2001-11-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
529 * ld.texinfo: Use @command for commands, @option for options.
530 * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
532 * Makefile.in: Rebuild.
534 2001-11-04 Chris Demetriou <cgd@broadcom.com>
536 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
537 Add support for targets.
539 2001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
541 * configure.in (ALL_LINGUAS): Add "fr" and "sv"
542 * configure: Regernate.
543 * po/fr.po: New file.
544 * po/sv.po: New file.
546 2001-11-01 NIIBE Yutaka <gniibe@m17n.org>
548 * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
549 as little endian default and to support big endian.
551 2001-11-01 Chris Demetriou <cgd@broadcom.com>
553 * ld.texinfo (Options): Document new option, -nostdlib.
554 * lexsup.c (OPTION_NOSTDLIB): New definition.
555 (ld_options): Add entry for "nostdlib".
556 (parse_args): Handle OPTIONS_NOSTDLIB.
557 * ldfile.c (ldfile_add_library_path): Don't add directories
558 to the search path if they weren't specified on the command line
559 and -nostdlib was specified.
560 * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
562 2001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
564 * lexsup.c (parse_args): Prevent infinite parsing loop when
565 "-rpath.a" is specified on the command line.
566 Replace calls to fprintf with calls to einfo.
568 2001-10-31 John Marshall <jmarshall@acm.org>
570 * ld.texinfo: A historical requirement that MEMORY and SECTIONS
571 appear only once across all the linker scripts involved in a link
572 invocation no longer applies. Make the documentation reflect
575 2001-10-31 NIIBE Yutaka <gniibe@m17n.org>
577 * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
579 (sh-*-linux*): Added targ_extra_libpath.
581 2001-10-31 David Heine <dlheine@tensilica.com>
583 * ldlang.c (lang_size_sections): Keep a valid output_offset field
584 for padding statements.
586 2001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
588 * configure.tgt (mmix-*-*): New target.
589 * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
590 Add dependencies to match.
591 * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
592 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
593 scripttempl/mmo.sc: New files.
594 * gen-doc.texi: @set MMIX.
596 [MMIX] Add MMIX node.
597 * Makefile.in: Regenerate.
599 2001-10-29 Kazu Hirata <kazu@hxi.com>
601 * ldlang.c: Fix a comment typo.
603 2001-10-23 Alan Modra <amodra@bigpond.net.au>
605 * configure.host: Move alpha*-*-linux-gnu* entry to generic
606 entries, and match *-*-linux*.
608 2001-10-20 Alan Modra <amodra@bigpond.net.au>
610 * ldgram.y (mri_script_command): Surround processing of INCLUDE
611 with ldlex_script, ldlex_popstate.
612 (ifile_p1): Likewise.
613 * ldlex.l (EOF): Don't BEGIN(SCRIPT). Restore lineno from the
615 (lex_push_file): Save current lineno to lineno_stack. Set lineno
616 to 1. Don't BEGIN(SCRIPT).
617 (lex_redirect): Similarly.
618 * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
620 2001-10-20 Nick Clifton <nickc@cambridge.redhat.com>
622 * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
623 __EH_FRAME_END__ and accept eh frames into data section.
624 Add ctor and dtor sections.
626 2001-10-19 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
628 * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
629 (auto-export): Fix indentation.
631 2001-10-18 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
633 * pe-dll.c (autofilter_objectlist): Add startup objects
635 (auto-export): Constify char * p.
636 Extract file basename and use strcmp rather than ststr
639 2001-10-18 Chris Demetriou <cgd@broadcom.com>
641 * ldmain.c (get_emulation): Improve comment about the handling
644 2001-10-17 Alan Modra <amodra@bigpond.net.au>
646 * po/POTFILES.in: Regenerate.
648 2001-10-16 Vassili Karpov <malc@pulsesoft.com>
650 * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
651 -z nocopyreloc and -z nocombreloc usage strings.
653 2001-10-12 Vassili Karpov <malc@pulsesoft.com>
655 * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
658 2001-10-11 Aleksey Romanov <aromanov@ennovatenetworks.com>
660 * scripttempl/armaout.sc: Place .bss section after end of aligned
661 data section to match behaviour of aout code in constructrion of
664 2001-10-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
666 * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
667 startup files for mingw32 dlls to list.
669 2001-10-10 Chris Demetriou <cgd@broadcom.com>
671 * emultempl/elf32.em: Fix shell 'if' usage for portability.
673 2001-10-08 Aldy Hernandez <aldyh@redhat.com>
675 * configure.tgt (targ): Add arm9e-*-elf.
677 2001-10-05 H.J. Lu <hjl@gnu.org>
679 * genscripts.sh: Fix a typo in the last change.
681 2001-10-05 Jakub Jelinek <jakub@redhat.com>
683 * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
684 -z nocombreloc in usage.
686 2001-10-03 Jim Blandy <jimb@redhat.com>
688 * genscripts.sh: Include a comment at the top of each generated
689 script, explaining its purpose.
691 2001-10-03 Vassili Karpov <malc@pulsesoft.com>
693 * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
694 * NEWS: Mention -z nocopyreloc.
695 * ld.texinfo (Options): Describe nocopyreloc.
697 2001-10-03 Alan Modra <amodra@bigpond.net.au>
699 * configure: Regenerate.
701 2001-10-02 Alan Modra <amodra@bigpond.net.au>
703 * ldver.h (ld_program_version): Remove declaration.
704 * lexsup.c (parse_args): Move printing of copyright message..
705 * ldver.c (ldversion): .. to here.
706 Use BFD_VERSION_STRING in place of BFD_VERSION.
707 (ld_program_version): Remove.
708 * Makefile.am (Makefile): Depend on bfd/configure.in.
710 * Makefile.in: Regenerate.
712 2001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
714 * Makefile.am: Update dependencies with "make dep-am".
715 * Makefile.in: Regenerate.
717 2001-09-29 John Reiser <jreiser@BitWagon.com>
719 * ldlang.c (lang_common): Conditionally inhibit Common allocation.
720 * lexsup.c: Add --no-define-common commandline option.
721 * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
723 * ld.h: Add command_line.inhibit_common_definition.
724 * ldmain.c (main): Initialize.
725 * ld.texinfo: Document.
727 2001-09-26 Alan Modra <amodra@bigpond.net.au>
729 * ldmisc.c (USE_STDARG): Remove.
730 (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
735 * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
736 declarations. Update copyright.
738 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
740 * pe-dll.c: Remove obsoleted declaration of
741 pe_get_data_import_dll_name.
742 (pe_create_import_fixup): Fix thinko.
744 * ld.texinfo(enable-auto-import): Clarify the explanation.
746 2001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
748 * pe-dll.c (pe_create_import_fixup): Revert previous patch.
749 * emultemp/pe.em (pe_data_import_dll): Move definition outside of
750 DLL_SUPPORT controlled code.
752 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
754 * emultempl/pe.em(pe_data_import_dll): Make static.
755 (pe_get_data_import_dll_name): New accessor function.
756 * pe-dll.c(pe_create_import_fixup): call
757 pe_get_data_import_dll_name() from pe.em, instead of
758 directly accessing pe_data_import_dll variable from pe.em.
760 2001-09-18 Bruno Haible <haible@clisp.cons.org>
762 * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
763 (def_file_add_directive): Use ISSPACE instead of isspace.
764 (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
765 isdigit/isxdigit/isalpha/isalnum.
766 * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
767 (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
768 * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
769 (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
771 * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
772 (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
774 * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
775 (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
776 * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
777 (ctor_prio): Use ISDIGIT instead of isdigit.
778 * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
779 (ldfile_open_file_search): Use ISALPHA instead of isalpha.
780 (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
782 * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
783 (stricpy): Use TOLOWER instead of isupper/tolower.
784 (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
785 * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
786 (lex_warn_invalid): Use ISPRINT instead of isprint.
787 * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
788 (main): For gettext, also set the LC_CTYPE locate facet.
789 (add_keepsyms_file): Use ISSPACE instead of isspace.
790 * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
791 (is_num, parse_args): Use ISDIGIT instead of isdigit.
792 * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
793 (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
794 * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
795 (gldppcmacos_read_file): Use ISSPACE instead of isspace.
796 * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
797 (quoteput): Use ISSPACE instead of isspace.
798 (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
801 2001-09-18 Alan Modra <amodra@bigpond.net.au>
803 * deffilep.y (def_stash_module): Constify "name" param.
805 * pe-dll.c: Replace CONST with const throughout.
806 (quick_symbol): Constify "n1", "n2", "n3" params.
807 (make_singleton_name_thunk): Constify "import" param. Make
808 "buffer_len" a size_t.
809 (make_import_fixup_entry): Constify "name", "fixup_name",
810 "dll_symname" params.
811 (pe_get16): Cast args of bfd_seek. Replace bfd_read with bfd_bread.
812 (pe_get32): Likewise.
813 (pe_implied_import_dll): Likewise.
815 * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
816 (sort_by_section_name): Likewise.
818 * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
819 (make_import_fixup): Cast printf arg, rel->address to long rather
821 (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
823 2001-09-15 Alan Modra <amodra@bigpond.net.au>
825 * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
826 defines BufferSize. Increase buffer size by one.
828 2001-09-14 Ralf Habacker <Ralf.Habacker@freenet.de>
830 * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
832 2001-09-14 Kevin Lo <kevlo@openbsd.org>
834 * configure.tgt: Add arm-openbsd target.
836 2001-09-12 H.J. Lu <hjl@gnu.org>
838 * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
840 (ALL_64_EMULATIONS): Here.
841 * Makefile.in: Regenerated.
843 2001-09-12 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
845 * emultempl/pe.em(make_import_fixup): change signature to
846 take asection as well as arelec; we need this for proper
847 error reporting. Only call pe_create_import_fixup() if
848 there is no attempt to add a constant addend to the reloc;
849 otherwise, report error condition.
850 * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
851 since final argument is a pointer to make_import_fixup().
852 Change call to cb() to match make_import_fixup() signature.
853 (make_import_fixup_mark): make buffer_len unsigned.
854 * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
856 2001-09-12 Charles Wilson <cwilson@ece.gatech.edu>
858 * ld.texinfo: add verbose documentation for auto-import
859 direct-addressing workaround, to compliment the terse
862 2001-09-12 Andrew MacLeod <amacleod@redhat.com>
864 * scripttempl/v850.sc: Add gcc_except_table sections.
866 2001-09-11 Jeffrey A Law (law@cygnus.com)
868 * emulparams/h8300helf.sh: Move stack to a much higher memory address.
869 * emulparams/h8300self.sh: Similarly.
871 2001-09-05 Danny Smith <dannysmith@users.souceforge.net>
873 * ld.texinfo (Options, --stack): Correct default value for stack
876 2001-09-05 Tom Rix <trix@redhat.com>
878 * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
880 2001-09-03 Andreas Jaeger <aj@suse.de>
882 * emultempl/beos.em: Declare prototypes for comparions functions,
885 2001-09-02 Andreas Jaeger <aj@suse.de>
887 * emultempl/aix.em: Add missing prototype.
888 * emultempl/lnk960.em: Likewise.
889 * emultempl/vanilla.em: Likewise.
890 * emultempl/armcoff.em: Likewise.
891 * emultempl/armelf_oabi.em: Likewise.
892 * emultempl/beos.em: Likewise.
893 * emultempl/gld960c.em: Likewise.
894 * emultempl/gld960.em: Likewise.
896 * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
897 for prototype declaration.
899 2001-08-31 Eric Christopher <echristo@redhat.com>
900 Jason Eckhardt <jle@redhat.com>
902 * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
904 2001-08-31 Andreas Jaeger <aj@suse.de>
906 * emultempl/pe.em: Add missing prototypes.
907 (gld_${EMULATION_NAME}_after_open): Remove extra args to
908 pe_find_data_imports.
909 (pr_sym): Add unused attribute.
911 2001-08-29 Joel Sherrill <joel@OARcorp.com>
913 * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
914 default from coff to elf.
916 2001-08-29 Jeff Law <law@redhat.com>
918 * emulparams/h8300helf.sh: Resync with h8300elf.sh. Update
920 * emulparams/h8300self.sh: Similarly.
922 2001-08-28 J"orn Rennecke <amylaar@redhat.com>
924 * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
926 (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
927 * configure.tgt (h8300-*-elf*): New case.
928 * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
929 * emulparams/h8300self.sh: New file.
930 * Makefile.in: Regenerated.
932 2001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
934 * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
937 2001-08-27 Linus Nordberg <linus@swox.com>
938 Alan Modra <amodra@bigpond.net.au>
940 * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
941 (eelf64ppc.c, eelf64lppc.c): Add make targets.
943 * Makefile.in: Regenerate.
944 * configure.tgt: Add powerpc64 support. Move pdp11, pjl, pj
945 entries to correct alphabetical position.
946 * emulparams/elf64ppc.sh: New.
947 * emulparams/elf64lppc.sh: New.
949 2001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
951 * ldmain.c (main): Declare BSIZE as static.
953 2001-08-23 Jakub Jelinek <jakub@redhat.com>
955 * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
956 into .rel.dyn resp. .rela.dyn if combreloc.
957 (get_script): If .x linker script is equal to .xn, only put it
958 once into the binary.
959 Add .xc and .xsc scripts.
960 (parse_args): Handle -z combreloc and -z nocombreloc.
961 * scripttempl/elf.sc (.rela.sbss): Fix a typo.
962 For .xc and .xsc scripts put all .rel* or .rela* input sections
963 but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
964 * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
966 Strip trailing whitespace from script.
967 Generate .xc and .xsc scripts if requested.
968 * ldmain.c (main): Initialize link_info.combreloc and
969 link_info.spare_dynamic_tags.
970 * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
971 (ld_options): Add --spare-dynamic-tags option.
972 (parse_args): Likewise.
973 * ld.texinfo: Document -z combreloc and -z nocombreloc.
974 * ldint.texinfo: Document .xc and .xsc linker scripts.
975 * NEWS: Add notes about -z combreloc and SHF_MERGE.
977 2001-08-22 H.J. Lu <hjl@gnu.org>
979 * emulparams/elf32fr30.sh: Add a newline.
981 2001-08-21 Andreas Jaeger <aj@suse.de>
983 * deffilep.y: Add missing prototypes.
984 * pe-dll.c: Likewise.
986 2001-08-20 Alan Modra <amodra@bigpond.net.au>
988 * ldlang.c (insert_pad): Fix typos in last patch.
990 * ldlang.c: When traversing lang_statement_union_type lists,
991 consistently use "header.next" rather than "next".
992 * mpw-eppcmac.c: Likewise.
993 * emultempl/beos.em: Likewise.
994 * emultempl/hppaelf.em: Likewise.
995 * emultempl/pe.em: Likewise.
996 * ldlang.h (union lang_statement_union): Remove "next" field.
998 * ldlang.c (insert_pad): Use offsetof macro.
999 (lang_size_sections): Always neuter padding statements.
1000 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
1002 * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
1003 passed to lang_size_sections.
1004 (pe_exe_fill_sections): Likewise.
1005 * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
1006 (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
1008 2001-08-18 Alan Modra <amodra@bigpond.net.au>
1010 * emultempl/aix.em: Formatting fixes.
1012 2001-08-18 Alan Modra <amodra@bigpond.net.au>
1014 * ldlang.c (insert_pad): Make use of an existing pad statement if
1015 available. Move code calculating alignment, adjusting section
1016 alignment power, and adjusting dot to ..
1017 (size_input_section): .. here. Remove unused relax param.
1018 (lang_size_sections): Change boolean `relax' param to boolean *.
1019 Adjust call to size_input_section. Make use of insert_pad to
1020 place pad after the assignment statement. If relaxing, zap
1022 (reset_memory_regions): Reset output_bfd section sizes too.
1023 (relax_again): Move to..
1024 (lang_process): ..here. Adjust call to lang_size_sections, and
1025 remove duplicated code.
1026 * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
1028 2001-08-17 Alan Modra <amodra@bigpond.net.au>
1030 * ld.texinfo: Document that fill values now use the four least
1032 * emulparams/elf32fr30.sh (NOP): Update.
1033 * emulparams/elf32mcore.sh: Likewise.
1034 * emulparams/elf64_s390.sh: Likewise.
1035 * emulparams/elf_i386.sh: Likewise.
1036 * emulparams/elf_i386_be.sh: Likewise.
1037 * emulparams/elf_i386_chaos.sh: Likewise.
1038 * emulparams/elf_i386_ldso.sh: Likewise.
1039 * emulparams/elf_s390.sh: Likewise.
1040 * emulparams/elf_x86_64.sh: Likewise.
1041 * emulparams/i386moss.sh: Likewise.
1042 * emulparams/i386nw.sh: Likewise.
1043 * emulparams/m68kelf.sh: Likewise.
1044 * scripttempl/elf.sc: Update NOP comment.
1045 * scripttempl/elfi370.sc: Likewise.
1046 * scripttempl/elfm68hc11.sc: Likewise.
1047 * scripttempl/elfm68hc12.sc: Likewise.
1048 * scripttempl/nw.sc: Likewise.
1050 2001-08-15 Tom Rix <trix@redhat.com>
1052 * ldgram.y (saved_script_handle): Initialize to NULL.
1053 * ldmain.c (main): Change check on saved_script_handle.
1055 2001-08-14 Alan Modra <amodra@bigpond.net.au>
1057 * emultempl/elf32.em: Formatting fixes.
1058 (output_prev_sec_find): Test for bfd_ind_section too; do so by
1059 looking at sec->owner.
1060 (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
1061 (gld${EMULATION_NAME}_place_orphan): Add a few comments. Remove
1062 unused code, and reorganize orphan section placement code.
1064 * ldlang.c (wild_doit): Rename to lang_add_section.
1065 * ldlang.h: Here too.
1066 * mpw-elfmips.c: And here.
1067 * emultempl/beos.em: And here.
1068 * emultempl/elf32.em: And here.
1069 * emultempl/hppaelf.em: And here.
1070 * emultempl/pe.em: And here.
1072 2001-08-13 Richard Henderson <rth@redhat.com>
1074 * emultempl/needrelax.em: New file.
1075 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
1076 * Makefile.am (eelf64_ia64.c): Depend on it.
1077 * Makefile.in: Rebuild.
1079 2001-08-13 Alan Modra <amodra@bigpond.net.au>
1081 * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
1082 output_section is set non-NULL.
1084 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
1085 `true' for SEC_EXCLUDE sections so that the generic code doesn't
1086 needlessly create an output_section_statement. Treat a correctly
1087 named output_section_statement with NULL bfd_section as compatible.
1089 2001-08-13 Hans-Peter Nilsson <hp@bitrange.com>
1091 * emultempl/generic.em: Support EXTRA_EM_FILE.
1092 (ld_${EMULATION_NAME}_emulation): Support emulation parameters
1093 LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
1094 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
1095 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
1096 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
1097 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
1098 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
1099 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
1100 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
1101 LDEMUL_FIND_POTENTIAL_LIBRARIES.
1103 2001-08-12 Richard Henderson <rth@redhat.com>
1105 * scripttempl/elf.sc, scripttempl/elfd30v.sc,
1106 scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
1107 scripttempl/v850.sc: Keep .jcr data.
1109 2001-08-12 H.J. Lu <hjl@gnu.org>
1110 Andrew Haley <aph@cambridge.redhat.com>
1111 Nick Clifton <nickc@redhat.com>
1113 * ldgram.y (had_script): Change name to saved_script_handle.
1114 Change type to file handle.
1115 * ld.h (had_script): Rename and retype.
1116 * ldfile.c (ldfile_open_command_file): Save the file handle
1117 used in saved_script_handle.
1118 * lexsup.c (parse_args): Do not allow -c option to alter
1119 saved_script_handle.
1120 * ldmain.c (main): Print out the linker script used if
1121 --verbose is given. Check saved_script_handle to obtain the
1122 external linker script used, or if NULL, dump the builtin
1124 * ld.texinfo: Document that --verbose now dumps the linker
1125 script used, regardless of whether it was an internal or an
1128 2001-08-10 Andreas Jaeger <aj@suse.de>
1130 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
1132 * configure: Regenerate.
1134 2001-08-09 Alan Modra <amodra@bigpond.net.au>
1136 * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
1138 * scripttempl/elf.sc: Move non-text .dynamic section before
1139 .plt/.got/.sdata* group.
1140 (OTHER_GOT_SECTIONS): Move to immediately after .got.
1141 (OTHER_SDATA_SECTIONS): Add.
1142 * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
1144 * emulparams/crislinux.sh: Likewise.
1145 * emulparams/elf32b4300.sh: Likewise.
1146 * emulparams/elf32bmip.sh: Likewise.
1147 * emulparams/elf32bmipn32.sh: Likewise.
1148 * emulparams/elf32bsmip.sh: Likewise.
1149 * emulparams/elf32btsmip.sh: Likewise.
1150 * emulparams/elf32ebmip.sh: Likewise.
1151 * emulparams/elf32elmip.sh: Likewise.
1152 * emulparams/elf32l4300.sh: Likewise.
1153 * emulparams/elf32lmip.sh: Likewise.
1154 * emulparams/elf32lsmip.sh: Likewise.
1155 * emulparams/elf32ltsmip.sh: Likewise.
1156 * emulparams/elf64bmip.sh: Likewise.
1157 * emulparams/elf64btsmip.sh: Likewise.
1158 * emulparams/elf64ltsmip.sh: Likewise.
1160 2001-08-08 Alan Modra <amodra@bigpond.net.au>
1162 * genscripts.sh: Source the emulparams script before each output
1163 script is generated so that variables like `RELOCATING' may affect
1164 variables defined in the emulparams script.
1166 2001-08-04 Alan Modra <amodra@bigpond.net.au>
1168 * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
1171 * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
1172 ie. iterate over wild_statement.section_list.
1173 (gld${EMULATION_NAME}_place_orphan): Likewise.
1175 2001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1177 * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
1178 .fini[0-4] sections used by _exit
1179 (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
1180 (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
1181 * scripttempl/elfm68hc11.sc: Likewise.
1183 2001-08-03 H.J. Lu <hjl@gnu.org>
1185 * emultempl/beos.em (init): Add the missing initialization.
1187 2001-08-03 Alan Modra <amodra@bigpond.net.au>
1189 * ld.texinfo (Input Section Basics): Clarify ordering of output
1191 * ldlang.c (callback_t): Add wildcard_list param.
1192 (walk_wild_section): Remove "section" param. Rewrite for
1193 lang_wild_statement_type change. Remove unique_section_p test.
1194 (walk_wild_file): Remove "section" param.
1195 (walk_wild): Remove "section" and "file" params.
1196 (lang_gc_wild): Likewise.
1197 (wild): Likewise. Modify for lang_wild_statement_type change.
1198 (wild_sort): Likewise. Add "sec" param.
1199 (gc_section_callback): Likewise.
1200 (output_section_callback): Likewise. Do unique_section_p test.
1201 (map_input_to_output_sections): Modify call to wild.
1202 (lang_gc_sections_1): Likewise.
1203 (print_wild_statement): Modify for lang_wild_statement_type
1205 (lang_add_wild): Replace filename, filenames_sorted param with
1206 filespec. Replace section_name, sections_sorted,
1207 exclude_filename_list with section_list.
1208 * ldlang.h (lang_add_wild): Here too.
1209 (lang_wild_statement_type): Replace section_name, sections_sorted,
1210 and exclude_filename_list with section_list.
1211 * ldgram.y (current_file): Delete.
1212 (%union): Add wildcard_list.
1213 (file_NAME_list): Set type to wildcard_list. Build a linked list
1214 rather than calling lang_add_wild for each entry.
1215 (input_section_spec_no_keep): Call lang_add_wild here instead.
1216 * ld.h (struct wildcard_list): Declare.
1217 * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
1219 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
1221 * ldmain.c (main): initialize link_info.pei386_auto_import
1222 * pe-dll.c: new tables for auto-export filtering
1223 (auto_export): change API, pass abfd for contextual filtering.
1224 Loop thru tables of excluded symbols instead of comparing
1227 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
1229 * pe-dll.c: new variable pe_dll_enable_extra_debug. New
1230 static variable current_sec (static struct sec *). Add
1231 forward declaration for add_bfd_to_link.
1232 (process_def_file): Don't export undefined symbols. Do not
1233 export symbols starting with "_imp__". Call auto_export()
1235 (pe_walk_relocs_of_symbol): New function.
1236 (generate_reloc): add optional extra debugging
1237 (pe_dll_generate_def_file): eliminate extraneous initial blank
1239 (make_one): enlarge symtab to make room for __nm__ symbols
1240 (DATA auto-import support).
1241 (make_singleton_name_thunk): New function.
1242 (make_import_fixup_mark): New function.
1243 (make_import_fixup_entry): New function.
1244 (pe_create_import_fixup): New function.
1245 (add_bfd_to_link): Specify that 'name' argument is a CONST
1247 * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
1248 declare new functions pe_walk_relocs_of_symbol and
1249 pe_create_import_fixup.
1250 * emultempl/pe.em: add new options --enable-auto-import,
1251 --disable-auto-import, and --enable-extra-pe-debug.
1252 (make_import_fixup): New function.
1253 (pe_find_data_imports): New function.
1254 (pr_sym): New function.
1255 (gld_${EMULATION_NAME}_after_open): Add optional extra pe
1256 debugging. Call pe_find_data_imports. Mark .idata as DATA, not
1259 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
1261 * ld.texinfo: add additional documentation for
1262 --export-all-symbols. Document --out-implib,
1263 --enable-auto-image-base, --disable-auto-image-base,
1264 --dll-search-prefix, --enable-auto-import, and
1265 --disable-auto-import.
1266 * ldint.texinfo: Add detailed documentation on auto-import
1269 2001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
1271 * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
1274 2001-07-24 Alan Modra <amodra@bigpond.net.au>
1276 * Makefile.am: Update dependencies with "make dep-am".
1277 * Makefile.in: Regenerate
1279 2001-07-23 Alan Modra <amodra@bigpond.net.au>
1281 * ldcref.c (check_section_sym_xref): New function.
1282 (check_nocrossrefs): Call it.
1283 (check_nocrossref): Interate over h->refs here instead of..
1284 (check_refs): ..here. Pass in the symbol name, section, and bfd
1285 rather than hash_entry pointers.
1286 (struct check_refs_info): Keep symbol name rather than hash entry.
1288 (check_reloc_refs): Tweak for above changes in check_refs_info.
1289 Only report references to section syms when symname is NULL to
1290 prevent duplicate messages for the same reloc.
1292 2001-07-19 Nick Clifton <nickc@cambridge.redhat.com>
1294 * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
1295 available. Do not print NULL trees.
1296 (exp_print_token): Print unknown tokens with values > 126 as
1297 decimal values not ASCII characters.
1299 * ldlang.c (lang_leave_overlay): If a region is specified assign
1300 it to all sections inside the overlay unless they have been
1301 assigned to the own, non-default, memory region.
1303 * README: Add header for consistency with other README files.
1305 2001-07-14 H.J. Lu <hjl@gnu.org>
1307 * emultempl/elf32.em (output_prev_sec_find): Never return
1308 bfd_abs_section_ptr, bfd_com_section_ptr nor
1309 bfd_und_section_ptr.
1311 2001-07-14 Nick Clifton <nickc@cambridge.redhat.com>
1313 * Makefile.am (em32relf.c): Change dependency from generic.em to
1315 * Makefile.in: Regenerate.
1317 2001-07-14 matthew green <mrg@eterna.com.au>
1319 * configure.tgt (i386-*-netbsdelf*): New target.
1320 (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
1322 2001-07-13 Jakub Jelinek <jakub@redhat.com>
1324 * emultempl/elf32.em (output_prev_sec_find): New.
1325 (place_orphan): Use it.
1327 2001-07-11 H.J. Lu <hjl@gnu.org>
1329 * ldmain.c (main): Fix typos in the last change.
1331 2001-07-11 Jakub Jelinek <jakub@redhat.com>
1333 * ldmain.c (main): Disallow -F and -f without -shared.
1335 2001-07-11 Nick Clifton <nickc@cambridge.redhat.com>
1337 * emultempl/pe.em (after_open): Check for the output_bfd not
1338 having any coff_data structure allocated to it.
1340 2001-07-09 David O'Brien <obrien@FreeBSD.org>
1342 * emultempl/elf32.em: Do not assuming that contents of the buffer
1343 returned from basename function will remain unchanged accross other
1346 2001-07-03 H.J. Lu <hjl@gnu.org>
1348 * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
1349 2001-07-03. It creates dynamic entries even for static binaries.
1351 2001-07-03 Jakub Jelinek <jakub@redhat.com>
1353 * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
1354 (DYNAMIC): Use it to reserve few dynamic entries for
1357 2001-06-27 Alan Modra <amodra@bigpond.net.au>
1359 * emulparams/hppa64linux.sh: New file.
1360 * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
1361 * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
1362 (ehppa64linux.c): Add rule to make it.
1364 * Makefile.in: Regenerate.
1366 2001-06-21 Hans-Peter Nilsson <hp@axis.com>
1368 * ld.texinfo (Options, -r): Mention restrictions when using
1369 different object formats.
1371 2001-06-19 Hans-Peter Nilsson <hp@axis.com>
1373 * ldlang.c (lang_check): Emit fatal error if relocatable link
1374 between different object flavours with relocations in input.
1376 2001-06-19 H.J. Lu <hjl@gnu.org>
1378 * ld.texinfo (-E, --export-dynamic): Mention --version-script.
1379 (--version-script): Mention the language support.
1381 2001-06-19 H.J. Lu <hjl@gnu.org>
1383 * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
1385 2001-06-18 H.J. Lu <hjl@gnu.org>
1387 * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
1388 (diststuff): Add $(MANS).
1389 * Makefile.in: Regenerated.
1393 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
1395 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
1396 Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
1397 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
1398 * ld.h (args_type): Remove member export_dynamic. All users
1399 changed to use struct bfd_link_info member.
1401 * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
1402 $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
1403 * Makefile.in: Regenerate.
1405 2001-06-18 H.J. Lu <hjl@gnu.org>
1407 * ldlang.c (init_os): Add the newline to the einfo call.
1408 (lang_check): Likewise.
1409 (lang_do_version_exports_section): Likewise.
1411 2001-06-15 H.J. Lu <hjl@gnu.org>
1413 * lexsup.c (parse_args); Save optind to report unrecognized
1416 2001-06-15 Hans-Peter Nilsson <hp@axis.com>
1418 * ldlang.c (lang_check): Emit fatal error if relocatable link
1419 between different object flavours.
1421 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
1422 Set new link_info member export_dynamic.
1423 * ldmain.c (main): Initialize new link_info member export_dynamic.
1425 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
1427 * ldlang.c (walk_wild): Only call walk_wild_file if
1428 lookup_name returns something.
1429 (lookup_name): If load_symbols fails, return NULL.
1430 (load_symbols): Change to a boolean function.
1431 (open_input_bfds): If load_symbols fails then do not make the
1434 2001-06-08 Alan Modra <amodra@bigpond.net.au>
1436 * ldlang.c (record_bfd_errors): Remove.
1438 * emultempl/aix.em: Fix copyright dates.
1440 2001-06-07 Andreas Jaeger <aj@suse.de>
1442 * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
1443 (TEXT_START_ADDR): Likewise.
1445 2001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
1447 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
1449 2001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1451 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
1453 2001-05-31 H.J. Lu <hjl@gnu.org>
1455 * ldlang.c (open_input_bfds): Don't change the bfd error
1456 handler whilst loading symbols.
1458 2001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
1460 * configure.tgt: Remove i370-mvs architecture, it is not currently
1463 2001-05-25 H.J. Lu <hjl@gnu.org>
1465 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
1466 like emulparams/aixppc.sh.
1468 2001-05-25 H.J. Lu <hjl@gnu.org>
1470 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
1471 setting of output_filename after bfd_scan_arch.
1472 * emultempl/pe.em: Likewise.
1474 2001-05-25 H.J. Lu <hjl@gnu.org>
1476 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
1477 like emulparams/aixppc.sh.
1479 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
1480 instead of ${srcdir}/emultempl/stringify.sed.
1482 2001-05-25 Timothy Wall <twall@oculustech.com>
1484 * emulparams/elf64_aix.sh: Change settings to match IBM linker
1487 2001-05-25 Alan Modra <amodra@one.net.au>
1489 * configure.host: Replace linuxoldld with linux*oldld.
1490 * configure.tgt: Likewise.
1492 2001-05-24 H.J. Lu <hjl@gnu.org>
1494 * emultempl/stringify.sed: Removed again.
1496 2001-05-24 H.J. Lu <hjl@gnu.org>
1498 * emultempl/aix.em (OUTPUT_ARCH): Defined.
1499 (gld${EMULATION_NAME}_before_parse): Initialize
1500 ldfile_output_architecture, ldfile_output_machine and
1501 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
1502 * emultempl/beos.em: Likewise.
1503 * emultempl/elf32.em: Likewise.
1504 * emultempl/linux.em: Likewise.
1505 * emultempl/mipsecoff.em: Likewise.
1506 * emultempl/pe.em: Likewise.
1507 * emultempl/sunos.em: Likewise.
1509 2001-05-24 Tom Rix <trix@redhat.com>
1511 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
1512 udate import file format.
1513 (change_symbol_mode) New, same
1514 (is_syscall) New, same
1515 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
1516 * emulparams/aixppc64.sh : same
1517 * emulparams/aixrs6.sh : same
1518 * emulparams/ppcmacos.sh : same
1519 * emultempl/aix.em : use strtoull to parse options
1520 * Makefile.am : add eaixppc64 emulation for xcoff64
1521 * Makefile.in : same
1522 * configure.tgt : same
1524 * scripttempl/aix.sc : default text section offset to 0x10000000
1525 default data section offset to 0x20000000
1526 add .sv3264 and .sv64 pseudo sections
1527 loader and debug sections use the currect section offset.
1529 * emultempl/aix.em : Add xcoff64 support
1530 Add -binitfini support
1531 (gld${EMULATION_NAME}_before_parse) -binitfini
1532 (gld${EMULATION_NAME}_parse_args) same
1533 (gld${EMULATION_NAME}_before_allocation) format change for special
1536 * emulparams/aixppc64.sh : New file for xcoff64 support
1538 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
1540 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
1541 variable to avoid non-portable shell construct.
1543 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1545 * ldmain.c (get_emulation): Add -mips5 command line argument.
1547 2001-05-22 Alexandre Oliva <aoliva@redhat.com>
1549 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
1550 (ELF_INTERPRETER_NAME): Define it.
1551 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
1553 * configure.tgt (targ_emul, targ_extra_emuls)
1554 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
1555 as primary, elf_i386 as extra.
1556 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
1557 (eelf_i386_ldso.c): New rule.
1558 * Makefile.in: Rebuilt.
1560 2001-05-22 Nick Clifton <nickc@redhat.com>
1562 * lexsup.c (ld_options): Allow -I to be an alias for
1563 --dynamic-linker. This is for Solaris compatability.
1564 * ld.texinfo: Document that -I can be used.
1567 2001-05-16 Alan Modra <amodra@one.net.au>
1569 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
1570 whether an input section is the first one assigned to an output
1572 Assorted formatting fixes.
1574 2001-05-14 DJ Delorie <dj@delorie.com>
1576 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
1577 * Makefile.in: Ditto.
1579 2001-05-11 Jakub Jelinek <jakub@redhat.com>
1581 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
1582 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
1584 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
1586 2001-05-11 Jakub Jelinek <jakub@redhat.com>
1588 * ldlang.c (lang_process): Call bfd_merge_sections.
1590 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1592 * ldgram.y: Fix typo.
1594 2001-05-03 H.J. Lu <hjl@gnu.org>
1596 * emultempl/elf32.em: Include "libiberty.h".
1597 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
1598 basename of the bfd filename.
1599 (gld${EMULATION_NAME}_stat_needed): Likewise.
1600 (gld${EMULATION_NAME}_try_needed): Likewise.
1601 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
1603 2001-05-02 H.J. Lu <hjl@gnu.org>
1605 * emultempl/pe.em: Include <ctype.h>.
1607 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
1609 * emulparams/elf32openrisc.sh: New file.
1611 * Makefile.am: Add OpenRISC target.
1612 * Makefile.in: Regenerated.
1614 * configure.tgt: Add openrisc-*-* mapping.
1616 2001-05-02 Nick Clifton <nickc@redhat.com>
1618 * emultempl/aix.em: Replace buystring with xstrdup.
1619 * emultempl/beos.em: Replace buystring with xstrdup.
1621 2001-05-02 H.J. Lu <hjl@gnu.org>
1623 * ldfile.c: Include "libiberty.h".
1624 * ldlex.l: Likewise.
1626 * ldmisc.c (buystring): Removed.
1627 * ldmisc.h: Likewise.
1629 * ldfile.c: Replace buystring with xstrdup.
1630 * ldlang.c: Likewise.
1631 * ldlex.l: Likewise.
1632 * ldmain.c: Likewise.
1633 * ldmisc.c: Likewise.
1634 * lexsup.c: Likewise.
1635 * mpw-eppcmac.c: Likewise.
1637 2001-04-30 Andreas Jaeger <aj@suse.de>
1639 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
1641 2001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
1643 * ldlang.c (load_symbols): Give emulation a chance
1644 to process unrecognized file before fatal error is
1645 reported, not after.
1647 2001-04-27 Sean McNeil <sean@mcneil.com>
1649 * configure.tgt: Add arm-vxworks target.
1650 * scripttempl/armcoff.sc: Support .text or .data as a section name
1654 2001-04-13 J.T. Conklin <jtc@redback.com>
1656 * ld.texinfo: Document --fatal-warnings.
1659 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
1660 warnings have been turned into errors.
1661 * lexsup.c (OPTION_WARN_FATAL): Define.
1662 (ld_options): Entry for --fatal-warnings.
1663 (parse_args): Handle OPTION_WARN_FATAL.
1664 * ld.h (ld_config_type): Add fatal_warnings field.
1666 2001-04-13 Jakub Jelinek <jakub@redhat.com>
1668 * ldmain.c (main): Default to discard_sec_merge.
1669 * lexsup.c (OPTION_DISCARD_NONE): Define.
1670 (ld_options): Add --discard-none.
1671 (parse_args): Handle OPTION_DISCARD_NONE.
1672 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
1673 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
1674 all its input sections match.
1676 2001-04-05 Steven J. Hill <sjhill@cotw.com>
1678 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
1679 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
1680 (eelf32ltsmip.c): New target.
1681 (eelf64btsmip.c): Likewise.
1682 (eelf64ltsmip.c): Likewise.
1683 * Makefile.in: Regenerated.
1685 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
1687 (mips*-*-linux-gnu*): Likewise.
1689 * emulparams/elf32ltsmip.sh: New. Traditional little endian
1691 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
1693 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
1696 2001-04-05 Hans-Peter Nilsson <hp@axis.com>
1698 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
1699 correct value of __Stext here.
1700 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
1703 * emulparams/crislinux.sh: Remove FIXME.
1705 2001-04-02 Alan Modra <alan@linuxcare.com.au>
1707 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
1708 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
1710 2001-03-27 Hans-Peter Nilsson <hp@axis.com>
1712 * configure.tgt (cris-*-*): Change default emulation to criself.
1713 (cris-*-*aout*): New rule.
1715 2001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
1717 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
1718 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
1720 2001-03-26 Andreas Jaeger <aj@suse.de>
1722 * ld.texinfo (Overview): Fix syntax in texi code.
1724 2001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1726 * ld.texinfo: Put @c man indications to generate the ld man page.
1727 When generating man, define all the variables. Define SEEALSO
1728 and SYNOPSIS. Re-organize some lines to avoid the cross references.
1729 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
1730 (ld.1): Generate from ld.texinfo.
1731 * Makefile.in: Regenerate.
1733 2001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
1735 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
1736 and '-fdata-sections'. Set the VMA of STABS sections to zero.
1738 2001-03-17 Ulrich Drepper <drepper@redhat.com>
1740 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
1741 is an absolute path look only for this file and not along the path.
1743 2001-03-17 Ulrich Drepper <drepper@redhat.com>
1745 * emultempl/elf32.em (OPTION_GROUP): New macro.
1746 Add new option Bgroup to longopts.
1747 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
1748 (gld*_list_options): Add -Bgroup and -z defs.
1749 * ld.1: Document -Bgroup and -z defs.
1750 * ld.texinfo: Likewise.
1752 2001-03-07 Michael Meissner <meissner@redhat.com>
1754 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
1755 with sections created by -fdata-sections.
1756 (.dynbss,.bss): Ditto.
1758 2001-03-05 Alan Modra <alan@linuxcare.com.au>
1760 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
1761 after_allocation_default, not gld..._before_allocation.
1763 2001-02-27 Alan Modra <alan@linuxcare.com.au>
1765 * configure.in (BFD_VERSION): New.
1766 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
1767 * configure: Regenerate.
1768 * Makefile.am: Run "make dep-am"
1769 * Makefile.in: Regenerate.
1771 2001-02-26 Timothy Wall <twall@cygnus.com>
1773 * emulparams/elf64_aix.sh: Add additional read-only sections;
1774 uncomment lines which are now required.
1776 2001-02-26 H.J. Lu <hjl@gnu.org>
1778 * ldlang.c (open_input_bfds): Set the bfd error handler so
1779 that problems can be caught whilst loading symbols.
1780 (record_bfd_errors): New function: Report BFD errors and mark
1781 the executable output as being invalid.
1783 2001-02-22 Timothy Wall <twall@cygnus.com>
1785 * configure.host: Add configuration for ia64-*-aix*.
1786 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
1787 Add dependencies for eelf64_aix.c.
1788 * Makefile.in: Regenerate.
1789 * configure.tgt: Add ia64-*-aix* mapping.
1790 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
1791 * testsuite/ld-bootstrap/bootstrap.exp: Exclude ia64 flavor from
1794 2001-02-20 H.J. Lu <hjl@gnu.org>
1796 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
1797 false if we found the file.
1799 2001-02-18 David O'Brien <obrien@FreeBSD.org>
1801 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
1802 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
1804 2001-02-18 lars brinkhoff <lars@nocrew.org>
1806 * Makefile.am: Add PDP-11 target.
1807 * configure.tgt: Likewise.
1808 * emulparams/pdp11.sh: New file.
1810 2001-02-17 David O'Brien <obrien@FreeBSD.org>
1812 * configure.host: Add a generic FreeBSD configuration entry such that
1813 all [modern] FreeBSD systems on all platforms will look the same.
1815 2001-02-14 H.J. Lu <hjl@gnu.org>
1817 * configure.tgt: Remove mention of earmelf_linux26.
1819 2001-02-13 Richard Henderson <rth@redhat.com>
1821 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
1823 2001-02-13 H.J. Lu <hjl@gnu.org>
1825 * ldexp.h (node_type): Add etree_provided.
1826 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
1827 type to etree_provided if defined by PROVIDE. Allow updating
1829 (exp_print_tree): Handle etree_provided.
1830 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
1833 2001-02-09 David Mosberger <davidm@hpl.hp.com>
1835 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
1836 .IA_64.unwind.* pattern to unwind table section and
1837 .IA_64.unwind_info* pattern to unwind info section.
1839 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
1841 * Makefile.am: Add linux target for S/390.
1842 * Makefile.in: Likewise.
1843 * configure.host: Likewise.
1844 * configure.tgt: Likewise.
1845 * emulparams/elf64_s390.sh: New file.
1846 * emulparams/elf_s390.sh: New file.
1848 2001-02-09 Jakub Jelinek <jakub@redhat.com>
1850 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
1852 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
1854 2001-02-06 Philip Blundell <philb@gnu.org>
1856 * Makefile.am: Remove mention of earmelf_linux26.
1857 * Makefile.in: Regenerate.
1859 2001-02-04 Philip Blundell <philb@gnu.org>
1861 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
1862 * emulparams/armelf_linux26.sh: Delete.
1863 * configure.tgt: Remove mention of armelf_linux26 emulation.
1865 2001-02-01 Nick Clifton <nickc@redhat.com>
1867 * ld.1: Replace occurances of -oformat with --oformat.
1869 2001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
1871 * ldlang.c (lang_leave_overlay): Don't set lma_region when
1872 load_base is specified.
1874 2001-01-24 Hans-Peter Nilsson <hp@axis.com>
1876 * emultempl/elf32.em: Correct spelling in comments and listed
1879 2001-01-23 Alan Modra <alan@linuxcare.com.au>
1881 * ldlang.c (lang_leave_overlay): Only set lma_region from the
1882 default for the first section of a group of overlay sections.
1884 2001-01-22 Alan Modra <alan@linuxcare.com.au>
1886 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
1887 * Makefile.in: Regenerate.
1888 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
1889 Check for null tool_dir.
1891 2001-01-16 Jim Wilson <wilson@redhat.com>
1893 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
1894 and IA_64.unwind.info.
1896 2001-01-16 H.J. Lu <hjl@gnu.org>
1898 * ldlang.c (lang_check): Merge the private data only if the
1899 input file has contents.
1901 2001-01-14 Alan Modra <alan@linuxcare.com.au>
1903 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
1905 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
1906 enabling search for libmilli. On a relocatable link, make .text
1908 (LDEMUL_AFTER_PARSE): Define.
1909 (hppaelf_finish): Correct spelling of relocatable in comments.
1911 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
1912 rummage through the script for sections on the unique list.
1913 Correct length of strncmp for ".note".
1914 (gld${EMULATION_NAME}_check_needed): Rearrange function.
1916 * ldlang.c (unique_section_list): New var.
1917 (unique_section_p): New function.
1918 (walk_wild_section): Don't match sections on unique_section_list.
1919 (lang_add_unique): New function.
1920 Correct spelling of relocatable in comments.
1922 * ldlang.h (struct unique_sections): Declare.
1923 (unique_section_list): Declare.
1924 (unique_section_p): Declare.
1925 (lang_add_unique): Declare.
1927 * lexsup.c (ld_options): Allow --unique to take an optional arg.
1928 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
1930 * ld.texinfo (--unique): Update.
1932 2001-01-13 Nick Clifton <nickc@redhat.com>
1934 * lexsup.c (parse_args): Remove spurious white space.
1936 2001-01-12 Nick Clifton <nickc@redhat.com>
1938 * lexsup.c (parse_args): Update copyright date.
1940 2001-01-12 Philip Blundell <pb@futuretv.com>
1942 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
1944 2001-01-10 Kazu Hirata <kazu@hxi.com>
1946 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
1947 * scripttempl/h8300h.sc: Fix formatting.
1948 * scripttempl/h8300s.sc: Likewise.
1949 * scripttempl/h8500.sc: Likewise.
1950 * scripttempl/h8500b.sc: Likewise.
1951 * scripttempl/h8500c.sc: Likewise.
1952 * scripttempl/h8500m.sc: Likewise.
1953 * scripttempl/h8500s.sc: Likewise.
1955 2000-01-07 David O'Brien <obrien@BSDi.com>
1957 * emultempl/elf32.em: Only perform Linux ld hints processing when
1960 2001-01-07 Philip Blundell <philb@gnu.org>
1962 * ld.texinfo (Bug Reporting): Update email address for reports.
1964 2000-12-31 Nick Clifton <nickc@redhat.com>
1966 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
1967 options by checking for a return value of '?' not -1.
1969 2000-12-28 Nick Clifton <nickc@redhat.com>
1971 * lexsup.c (struct ld_option): Add new enum value:
1973 (ld_options[]): Change -omagic, -output and -oformat options
1974 to be EXACTLY_TWO_DASHES.
1975 (OUTPUT_COUNT): Use ARRAY_SIZE.
1976 (parse_args): Change parameter 'argc' to unsigned.
1977 Place EXACTLY_TWO_DASHES options into new really_longopts
1979 If getopt_long_only fails, try calling getopt_long using the
1980 really_longopts array.
1981 (help): Print a double dash for both EXACTLY_TWO_DASHES and
1984 * ldlex.h: Fix prototype of parse_args.
1986 * ld.texinfo: Document that long options starting with 'o'
1987 must be preceeded by two dashes. Change example of a single
1988 dashed long option from -oformat to -trace-symbol.
1990 2000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1992 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
1993 (longopts[]): New --no-default-excludes option.
1994 (gld_${EMULATION_NAME}_list_options): Document.
1995 (gld_${EMULATION_NAME}_parse_args): Handle.
1997 2000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1999 * ldlang.c (new_stat): Revert the last beautification with "innocent"
2000 whitespace, it breaks the K&R C preprocessor.
2002 2000-12-11 DJ Delorie <dj@redhat.com>
2004 * ld.texinfo: Add notes about --whole-archive and gcc.
2006 2000-11-18 Fred Fish <fnf@be.com>
2008 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
2009 (ld_options): Entry for --allow-shlib-undefined.
2010 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
2011 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
2013 * ld.texinfo: Document new command line switch.
2015 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
2017 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
2018 .fixup is actually read/write.
2019 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
2020 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
2021 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
2023 2000-12-11 Jan Hubicka <jh@suse.cz>
2025 * NEWS: Add note about x86_64 architecture.
2027 2000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
2029 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
2030 Set DWARF2 sections to a VMA of zero.
2032 2000-12-01 Joel Sherrill <joel@OARcorp.com>
2034 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
2036 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
2037 (sparc*-*-rtems*): Switched from a.out to ELF.
2039 2000-11-30 Jan Hubicka <jh@suse.cz>
2041 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
2042 (eelf_x86_64.c): New.
2043 * Makefile.in: Regenerate.
2044 * configure.tgt: Add support for x86_64-*-linux-gnu*.
2045 * emulparams/elf_x86_64.sh: New.
2047 2000-11-30 Hans-Peter Nilsson <hp@axis.com>
2049 * emulparams/crislinux.sh (ENTRY): Change back to _start.
2050 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
2052 * scripttempl/crisaout.sc: Change all RELOCATING not related to
2053 merging non-a.out sections into CONSTRUCTING.
2055 2000-11-28 Nick Clifton <nickc@redhat.com>
2057 * ld.1 (COPYING): Mention that the GNU Free Documentation
2058 License is present in the sources, but not the output, and
2059 also available from the GNU website.
2060 (GNU Free Documentation License): Comment out this section.
2062 2000-11-28 David O'Brien <obrien@dragon.nuxi.com>
2064 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
2067 2000-11-25 David O'Brien <obrien@FreeBSD.org>
2069 * ld.1: Remove old date so it does not give the impression the manpage
2072 2000-11-24 Nick Clifton <nickc@redhat.com>
2074 * configure.tgt (xscale-coff): Add target.
2075 (xscale-elf): Add target.
2077 2000-11-24 Fred Fish <fnf@be.com>
2079 * ldmain.c (main): Remove redundant init of config.make_executable
2082 2000-11-15 Richard Henderson <rth@redhat.com>
2084 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
2086 2000-11-14 Kazu Hirata <kazu@hxi.com>
2088 * scripttempl/h8300.sc: Fix formatting.
2089 * scripttempl/h8300h.sc: Likewise.
2090 * scripttempl/h8300s.sc: Likewise.
2092 2000-11-14 Denis Chertykov <denisc@overta.ru>
2094 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
2096 2000-11-09 Philip Blundell <pb@futuretv.com>
2098 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
2099 around orphan sections whose names can be represented in C.
2101 2000-11-07 Jim Wilson <wilson@redhat.com>
2103 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
2104 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
2106 2000-11-06 Nick Clifton <nickc@redhat.com>
2108 * ld.texinfo: Add GNU Free Documentation License.
2109 * ldint.texinfo: Add GNU Free Documentation License.
2110 * ld.1: Add GNU Free Documentation License.
2112 2000-11-05 Alan Modra <alan@linuxcare.com.au>
2114 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
2115 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
2117 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
2118 Move 2000-11-02 Makefile.in changes to this file.
2119 * Makefile.in: Regenerate.
2121 2000-11-03 Nick Clifton <nickc@redhat.com>
2123 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
2124 constructors and destructors.
2125 * scripttempl/h8300h.sc: Ditto.
2126 * scripttempl/h8300s.sc: Ditto.
2127 * scripttempl/h8500.sc: Ditto.
2128 * scripttempl/h8500b.sc: Ditto.
2129 * scripttempl/h8500c.sc: Ditto.
2130 * scripttempl/h8500m.sc: Ditto.
2131 * scripttempl/h8500s.sc: Ditto.
2132 * scripttempl/v850.sc: Ditto.
2133 * scripttempl/w65.sc: Ditto.
2134 * scripttempl/z8000.sc: Ditto.
2136 2000-11-02 Per Lundberg <plundis@chaosdev.org>
2138 * Makefile.in (e_i386_chaos.c): New rule.
2139 (ALL_EMULATIONS): Added e_i386_chaos.o.
2140 * emulparams/elf_i386_chaos.sh: New file.
2141 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
2143 2000-10-20 Jakub Jelinek <jakub@redhat.com>
2145 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
2146 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
2147 Fix sed invocation, so that it coped with '/' in Solaris 64bit
2148 library path suffix.
2149 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
2151 2000-10-18 Hans-Peter Nilsson <hp@axis.com>
2153 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
2154 for consecutive sections.
2156 2000-10-17 Chandrakala Chavva <cchavva@redhat.com>
2158 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
2160 * ld.texinfo: Added notes about this new option.
2162 2000-10-16 Nick Clifton <nickc@redhat.com>
2164 * emultempl/pe.em (_after_open): Add tests of return values from
2165 bfd functions. Emit appropriate error messages if necessary.
2167 2000-10-13 Nick Clifton <nickc@redhat.com>
2169 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
2170 local variables - they are not used, but leave in the call to
2171 bfd_canonicalize_symtab.
2172 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
2173 pe_dll_search_prefix.
2175 2000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
2177 * emultempl/pe.em (pe_dll_search_prefix): New variable,
2178 (longopts): New --dll-search-prefix option.
2179 (gld_${EMULATION_NAME}_list_options): Document.
2180 (gld_${EMULATION_NAME}_parse_args): Handle.
2181 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
2182 dynamically, search for a dll named '<prefix><basename>.dll'
2183 in preference to 'lib<basename>.dll' if --dll-search-prefix
2186 2000-10-12 Alan Modra <alan@linuxcare.com.au>
2188 * ldlang.c (section_already_linked): Set kept_section instead of
2191 2000-10-10 Kazu Hirata <kazu@hxi.com>
2193 * deffile.h: Fix formatting.
2194 * lexsup.c: Likewise.
2197 2000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2199 * pe-dll.c (make_one): Do not generate code thunk for DATA
2201 (process_def_file): deduce DATA flag for auto-export sumbols.
2203 2000-10-09 Kazu Hirata <kazu@hxi.com>
2205 * ld.h: Fix formatting.
2206 * ldcref.c: Likewise.
2207 * ldctor.h: Likewise.
2208 * ldemul.c: Likewise.
2209 * ldemul.h: Likewise.
2210 * ldexp.c: Likewise.
2211 * ldexp.h: Likewise.
2212 * ldfile.c: Likewise.
2213 * ldfile.h: Likewise.
2214 * ldlang.c: Likewise.
2215 * ldlang.h: Likewise.
2216 * ldmain.c: Likewise.
2217 * pe-dll.c: Likewise.
2219 * pe-dll.c: Revert some formatting fixes.
2221 2000-10-08 Kazu Hirata <kazu@hxi.com>
2223 * pe-dll.c: Fix formatting.
2225 2000-10-05 Kazu Hirata <kazu@hxi.com>
2227 * ldlang.c: Fix formatting.
2229 2000-10-03 DJ Delorie <dj@redhat.com>
2231 * pe-dll.c (fill_edata): initialize entire block
2232 (make_one): fill in correct section.
2234 2000-10-03 Kazu Hirata <kazu@hxi.com>
2236 * ldexp.c: Fix formatting.
2238 2000-10-02 DJ Delorie <dj@redhat.com>
2240 * emultempl/pe.em (gld_*_after_open): detect case where there two
2241 import libraries for same dll; rename one to ensure proper link
2244 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
2246 (generate_edata): fix typo
2248 2000-09-29 Hans-Peter Nilsson <hp@axis.com>
2250 * scripttempl/crisaout.sc (ENTRY): Now __start.
2251 (.text): Add default setting for __start.
2252 Remove CONSTRUCTORS handling.
2253 (/DISCARD/): Add .gnu.warning.*.
2254 * emulparams/crislinux.sh (ENTRY): Now __start.
2255 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
2256 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
2257 (ENTRY): Now __start.
2258 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
2259 (EXECUTABLE_SYMBOLS): Add default setting for __start.
2261 2000-09-29 Kazu Hirata <kazu@hxi.com>
2263 * deffile.h: Fix formatting.
2265 * ldcref.c: Likewise.
2266 * ldctor.c: Likewise.
2267 * ldctor.h: Likewise.
2268 * ldemul.c: Likewise.
2269 * ldemul.h: Likewise.
2270 * ldexp.c: Likewise.
2271 * ldexp.h: Likewise.
2272 * ldfile.c: Likewise.
2273 * ldfile.h: Likewise.
2274 * ldlang.c: Likewise.
2275 * ldlang.h: Likewise.
2276 * lexsup.c: Likewise.
2278 * pe-dll.c: Likewise.
2280 2000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2282 * pe-dll.c (process_def_file): Uninitialized data wasn't
2283 exported with --export-all-symbols switch.
2285 2000-09-28 DJ Delorie <dj@redhat.com>
2287 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
2288 noname work properly.
2290 2000-09-28 Alan Modra <alan@linuxcare.com.au>
2292 * ld.texinfo (HPPA ELF32): New section.
2294 * emultempl/hppaelf.em (group_size): New.
2295 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
2296 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
2297 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
2298 options to prevent abbreviations matching.
2299 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
2300 (PARSE_AND_LIST_ARGS_CASES): Handle it.
2302 2000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2304 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
2305 on the m68*-*-elf target. Make it support COFF input objects.
2307 2000-09-21 Kazu Hirata <kazu@hxi.com>
2309 * ldmain.c: Fix formatting.
2310 * ldmisc.c: Likewise.
2311 * ldver.c: Likewise.
2312 * ldwrite.c: Likewise.
2314 2000-09-21 Alan Modra <alan@linuxcare.com.au>
2316 * ldwrite.c (clone_section): Silence gcc warnings.
2318 2000-09-20 Alan Modra <alan@linuxcare.com.au>
2320 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
2321 out of memory failure.
2323 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
2324 (clone_section): Handle out of memory failures. Rename var to
2325 avoid c++ reserved word.
2327 2000-09-18 Alan Modra <alan@linuxcare.com.au>
2329 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
2330 stub_name param to stub_sec_name.
2331 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
2333 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2335 * emultempl/m68kelf.em: New file.
2336 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
2337 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
2338 * Makefile.in: Regenerate.
2340 2000-09-15 Alan Modra <alan@linuxcare.com.au>
2342 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
2345 2000-09-13 Nick Clifton <nickc@redhat.com>
2347 * ldmain.c (multiple_definition): Disable relaxation if
2348 multiple symbol definitions are encountered - otherwise the
2349 linker could abort with an assertion failure.
2351 2000-09-10 Nick Clifton <nickc@redhat.com>
2353 * mri.c: Fix formatting.
2355 2000-09-07 H.J. Lu <hjl@gnu.org>
2357 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
2358 * configure: Rebuild.
2360 2000-09-07 H.J. Lu <hjl@gnu.org>
2362 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
2363 * Makefile.in: Rebuild.
2365 2000-09-07 Alan Modra <alan@linuxcare.com.au>
2367 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
2368 broken list handling. Create __start_SECNAME and __stop_SECNAME
2369 when no place-holder. Add some comments. Test both SEC_CODE and
2370 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
2371 Handle case where no output section statement created.
2373 2000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
2375 * configure.tgt (sh-*-linux*): Added.
2376 * Makefile.am: Added eshelf_linux and eshlelf_linux.
2377 * Makefile.in: Rebuilt.
2378 * emulparams/shelf_linux.sh: New file.
2379 * emulparams/shlelf_linux.sh: New file.
2381 2000-09-06 Alan Modra <alan@linuxcare.com.au>
2383 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
2384 try shuffling sections when the orphan happens to be the place
2385 holder. Keep count of unique section names generated so we speed
2386 the search for a new name.
2388 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
2390 * configure: Rebuilt with new libtool.m4.
2392 2000-09-05 Nick Clifton <nickc@redhat.com>
2394 * Makefile.in: Regenerate.
2395 * aclocal.m4: Regenerate.
2396 * configure: Regenerate.
2397 * config.in: Regenerate.
2398 * po/ld.pot: Regenerate.
2400 * ldint.texinfo: Remove CVS revision marker - it foils local
2403 * emultempl/ticoff.em: Remove extraneous comma.
2405 2000-09-05 Alan Modra <alan@linuxcare.com.au>
2407 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
2408 to stub section flags.
2409 (hppa_for_each_input_file_wrapper): New.
2410 (hppa_lang_for_each_input_file): New.
2411 (lang_for_each_input_file): Define to call above.
2412 (multi_subspace): New.
2413 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
2414 (PARSE_AND_LIST_PROLOGUE): Define.
2415 (PARSE_AND_LIST_LONGOPTS): Define.
2416 (PARSE_AND_LIST_OPTIONS): Define.
2417 (PARSE_AND_LIST_ARGS_CASES): Define.
2418 (hppaelf_finish): Call elf32_hppa_set_gp.
2419 (hppaelf_set_output_arch): Remove.
2420 (LDEMUL_SET_OUTPUT_ARCH): Remove.
2422 * emulparams/hppalinux.sh (ELFSIZE): Define.
2424 (OTHER_READONLY_SECTIONS): Define.
2426 (GENERATE_SHLIB_SCRIPT): Define.
2428 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
2429 to const throughout. Change `void *' to `PTR' throughout.
2430 (lang_memory_default): Function is local to file, add `static'.
2432 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
2433 (ehppalinux.c): Likewise.
2434 (earmelf.c): Likewise.
2435 (earmelf_linux.c): Likewise.
2436 (earmelf_linux26.c): Likewise.
2437 * Makefile.in: Regenerate.
2439 * ld.h (ld_config_type): Add unique_orphan_sections.
2440 * lexsup.c (OPTION_UNIQUE): Define.
2441 (ld_options): Add "--unique".
2442 (parse_args): Handle it.
2443 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
2444 search for an existing output section if unique_orphan_sections is
2445 set. Make use of bfd_get_unique_section_name rather than
2446 duplicating code here.
2447 * ld.texinfo: Describe --unique.
2449 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
2450 optional arg to split-by-file.
2451 (parse_args): Handle them.
2452 * ld.texinfo: Update description of these options.
2453 * ldwrite.c (clone_section): Pass in the section name. Replace
2454 local code with bfd_get_unique_section_name.
2455 (split_sections): Tidy code and comments. Use a list traversal
2456 more appropriate to the list construction. Handle cooked section
2457 sizes. Split when split_by_reloc reached rather than exceeded.
2458 Track section size and split when split_by_file reached. Fix
2459 link_order_tail (even though it's not used).
2460 (ldwrite): Modify condition for calling split_sections to suit
2461 changed split_by_reloc and split_by_file.
2462 * ldmain.c (main): Init config.split_by_reloc and
2463 config.split_by_file to -1.
2464 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
2465 Change split_by_file to bfd_size_type.
2467 2000-09-02 Nick Clifton <nickc@redhat.com>
2469 * configure.in: Increase version number to 2.10.91.
2470 * NEWS: Mention new ability to support removal of duplicate DWARF2
2472 * configure: Regenerate.
2473 * aclocal.m4: Regenerate.
2474 * config.in: Regenerate.
2476 2000-09-02 Daniel Berlin <dberlin@redhat.com>
2478 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
2480 * scripttempl/elf32avr.sc: Ditto.
2481 * scripttempl/elfd10v.sc: Ditto.
2482 * scripttempl/elfd30v.sc: Ditto.
2483 * scripttempl/elfi370.sc: Ditto.
2484 * scripttempl/elfm68hc11.sc: Ditto.
2485 * scripttempl/elfm68hc12.sc: Ditto.
2486 * scripttempl/elfi386beos.sc: Ditto.
2487 * scripttempl/v850.sc: Ditto.
2489 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
2491 * acinclude.m4: Include libtool and gettext macros from the
2493 * aclocal.m4, configure: Rebuilt.
2495 2000-08-25 Nick Clifton <nickc@redhat.com>
2497 * ldlang.c (open_output): When choosing the target for a
2498 particular endianness, do nothing if the target is not
2501 2000-08-25 H.J. Lu <hjl@gnu.org>
2503 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
2504 check -rpath nor LD_RUN_PATH for cross link.
2505 * ld.texinfo: Document the change.
2507 2000-08-24 Hans-Peter Nilsson <hp@axis.com>
2509 * NEWS: Mention support for CRIS.
2511 2000-08-23 H.J. Lu <hjl@gnu.org>
2513 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
2514 the current runpath list from bfd_elf_get_runpath_list ()
2517 2000-08-22 H.J. Lu <hjl@gnu.org>
2519 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
2520 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
2521 LD_LIBRARY_PATH for native linker. Display the needed DSO if
2522 trace_file_tries is non-zero.
2523 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
2524 if trace_file_tries is non-zero.
2526 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
2529 2000-08-14 Jason Eckhardt <jle@cygnus.com>
2531 * NEWS: Mention i860 support.
2533 2000-08-14 Andreas Schwab <schwab@suse.de>
2535 * scripttempl/elf.sc: Fix last change to use correct comment
2538 2000-08-10 Geoff Keating <geoffk@cygnus.com>
2540 * scripttempl/elf.sc: Add a comment giving the correspondence
2541 between sections, per-datum sections, and linkonce sections. Make
2542 the comment true even for .bss, .sdata, .sdata2, .sbss, and
2545 2000-08-10 Jason Eckhardt <jle@cygnus.com>
2547 * emulparams/elf32_i860.sh: New file.
2548 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
2549 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
2550 (eelf32_i860.c): New rule.
2551 * Makefile.in: Regenerate.
2553 2000-08-10 Nick Clifton <nickc@cygnus.com>
2555 * emulparams/mipspe.sh (ENTRY): Add definition.
2557 2000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
2559 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
2562 2000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2564 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
2565 the final size of .bss section.
2566 * scripttempl/elfm68hc12.sc: Likewise.
2568 2000-08-04 Alan Modra <alan@linuxcare.com.au>
2570 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
2571 gld${EMULATION_NAME}_parse_args for consistency. Combine
2572 lastoptind and prevoptind vars, and keep track of last optind.
2573 (gld_${EMULATION_NAME}_list_options): Rename to
2574 gld${EMULATION_NAME}_list_options.
2576 2000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
2578 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
2579 (i586-sco-sysv5uw7.1.0).
2581 2000-07-27 H.J. Lu <hjl@gnu.org>
2583 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
2584 (PARSE_AND_LIST_PROLOGUE): New.
2585 (PARSE_AND_LIST_LONGOPTS): Likewise.
2586 (PARSE_AND_LIST_OPTIONS): Likewise.
2587 (PARSE_AND_LIST_ARGS_CASES): Likewise.
2588 (PARSE_AND_LIST_EPILOGUE): Likewise.
2590 2000-07-28 Alan Modra <alan@linuxcare.com.au>
2592 * emultempl/armelf.em: Elide functions common to elf32.em,
2593 ie. most of the file.
2594 (arm_elf_after_open): New. Do arm specific things then call
2595 gld${EMULATION_NAME}_after_open.
2596 (arm_elf_before_allocation): New. Call
2597 gld${EMULATION_NAME}_before_allocation then do arm specifics.
2598 (PARSE_AND_LIST_PROLOGUE): Define.
2599 (PARSE_AND_LIST_SHORTOPTS): Define.
2600 (PARSE_AND_LIST_LONGOPTS): Define.
2601 (PARSE_AND_LIST_OPTIONS): Define.
2602 (PARSE_AND_LIST_ARGS_CASES): Define.
2603 (LDEMUL_AFTER_OPEN): Define.
2604 (LDEMUL_BEFORE_ALLOCATION): Define.
2605 (LDEMUL_BEFORE_PARSE): Define.
2606 (LDEMUL_FINISH): Define.
2608 * emultempl/hppaelf.em: Similarly zap most of this file.
2609 (hppaelf_add_stub_section): Prototype.
2610 (hppaelf_layaout_sections_again): Prototype.
2611 (hook_in_stub): Prototype.
2612 (LDEMUL_SET_OUTPUT_ARCH): Define.
2613 (LDEMUL_FINISH): Define.
2614 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
2616 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
2617 (EXTRA_EM_FILE): New.
2618 * emulparams/armelf_linux.sh: Likewise.
2619 * emulparams/armelf_linux26.sh: Likewise.
2620 * emulparams/hppalinux.sh: Likewise.
2621 * emulparams/hppaelf.sh: Likewise.
2624 * emultempl/elf32.em: Fix formatting.
2625 (EXTRA_EM_FILE): Source it.
2626 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
2627 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
2628 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
2629 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
2630 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
2631 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
2632 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
2633 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
2634 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
2635 allow functions in this file to be overridden.
2636 (PARSE_AND_LIST_SHORTOPTS): Handle it.
2638 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
2640 * emultempl/elf32.em: Reorganize file.
2642 2000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
2644 * emulparams/elf64alpha.sh: Implement "-taso" emulation
2645 specific option to fit 64-bit executable in the lower
2646 31-bit address range. This is done by changing start
2647 address of .interp (the very first section of executable)
2648 and then setting EF_ALPHA_32BIT elf header flag.
2650 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2652 * emultempl/m68kcoff.em: New file.
2653 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
2654 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
2656 * Makefile.in: Regenerate.
2658 2000-07-20 H.J. Lu <hjl@gnu.org>
2660 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
2661 and "disable-new-dtags" to stop getopt from treating -d/-e as
2662 abbreviations for these options.
2664 2000-07-20 H.J. Lu <hjl@gnu.org>
2666 * ld.texinfo: Add documentation for --disable-new-dtags and
2669 * ldmain.c (main): Initialize link_info.new_dtags to false.
2671 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
2672 --disable-new-dtags and --enable-new-dtags.
2673 (gld_${EMULATION_NAME}_list_options): Likewise.
2675 2000-07-05 Kenneth Block <krblock@computer.org>
2677 * lexsup.c: Add optional style to demangle switch
2678 * ld.texinfo: Document optional style to demangle switch.
2680 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
2682 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
2684 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
2685 Regenerate dependencies.
2686 * Makefile.in: Rebuild.
2687 * configure.tgt (cris-*-*): New target.
2688 * emulparams/crisaout.sh, emulparams/criself.sh,
2689 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
2690 * po/POTFILES.in, po/ld.pot: Regenerate.
2692 2000-07-20 H.J. Lu <hjl@gnu.org>
2694 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
2695 Print out ignored -z options.
2697 2000-07-19 H.J. Lu <hjl@gnu.org>
2699 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
2700 (PARSE_AND_LIST_PROLOGUE): New.
2701 (PARSE_AND_LIST_LONGOPTS): Likewise.
2702 (PARSE_AND_LIST_OPTIONS): Likewise.
2703 (PARSE_AND_LIST_ARGS_CASES): Likewise.
2705 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
2707 * lexsup.c (ld_options): Comment out 'z'.
2708 (parse_args): Likewise.
2710 * emultempl/elf32.em: Include "elf/common.h".
2711 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
2713 (gld_${EMULATION_NAME}_list_options): Likewise.
2715 * ld.texinfo: Add documentation for the recognized -z options.
2717 2000-07-19 H.J. Lu <hjl@gnu.org>
2719 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
2720 bfd_elf_set_dt_needed_soname ().
2722 2000-07-18 DJ Delorie <dj@cygnus.com>
2724 * pe-dll.c (pe_dll_id_target): check object target name also
2726 2000-07-18 Hans-Peter Nilsson <hp@axis.com>
2728 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
2729 ${INIT_END} if relocating.
2730 (.fini): Likewise ${FINI_START} and ${FINI_END}.
2732 2000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
2734 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
2735 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
2736 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
2737 errors introduced by the old dynamic lib search order.
2739 2000-07-17 DJ Delorie <dj@cygnus.com>
2741 * pe-dll.c (process_def_file): auto-export data items also
2742 (pe_process_import_defs): also see if _imp_ form needed
2744 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
2746 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
2747 for dll import libraries
2749 2000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
2751 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
2752 gcc 2.95.2 and later.
2754 2000-07-11 Kazu Hirata <kazu@hxi.com>
2756 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
2759 2000-07-10 Alan Modra <alan@linuxcare.com.au>
2761 * ldemul.h (struct lang_input_statement_struct): Remove forward
2763 (struct search_dirs): Likewise.
2764 * ldfile.h (struct lang_input_statement_struct): Likewise.
2765 Protect file from multiple inclusion.
2766 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
2767 declaration from macro to file scope.
2769 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
2770 * ldgram.y: Likewise here.
2771 * ldlang.c: And here.
2772 * ldmain.c: And here.
2773 * mpw-elfmips.c: And here.
2774 * mpw-eppcmac.c: And here.
2775 * emultempl/aix.em: And here.
2776 * emultempl/armcoff.em: And here.
2777 * emultempl/armelf.em: And here.
2778 * emultempl/armelf_oabi.em: And here.
2779 * emultempl/beos.em: And here.
2780 * emultempl/elf32.em: And here.
2781 * emultempl/hppaelf.em: And here.
2782 * emultempl/linux.em: And here.
2783 * emultempl/lnk960.em: And here.
2784 * emultempl/pe.em: And here.
2785 * emultempl/sunos.em: And here.
2786 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
2787 * mpw-idtmips.c: Ditto.
2788 * emultempl/generic.em: Ditto.
2789 * emultempl/gld960.em: Ditto.
2790 * emultempl/gld960c.em: Ditto.
2791 * emultempl/mipsecoff.em: Ditto.
2792 * emultempl/ticoff.em: Ditto.
2793 * emultempl/vanilla.em: Ditto.
2795 * pe-dll.c: Include ldfile.h
2796 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
2798 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
2799 arguments to bfd_elf32_size_dynamic_sections call.
2800 (gldelf32ebmip_place_orphan): Add missing arguments to
2801 lang_leave_output_section_statement call.
2803 2000-07-10 H.J. Lu <hjl@gnu.org>
2805 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
2807 (strhash): Likewise.
2808 (compute_dll_image_base): Likewise.
2809 (pe_undef_found_sym): Likewise.
2810 (pe_undef_cdecl_match): Likewise.
2811 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
2812 argument "arch" with ATTRIBUTE_UNUSED.
2814 2000-07-10 Alan Modra <alan@linuxcare.com.au>
2816 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
2818 From Ryan Bradetich <rbradetich@uswest.net>
2819 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
2821 2000-07-09 Alan Modra <alan@linuxcare.com.au>
2823 Changes to create multiple linker stubs, positioned immediately
2824 before the section where they are required.
2825 * emultempl/hppaelf.em: Include elf32-hppa.h.
2826 (stub_sec, file_chain): Delete.
2827 (hppaelf_create_output_section_statements): Don't make a stub
2829 (hook_stub_info): New struct.
2830 (hook_in_stub): New function.
2831 (hppaelf_add_stub_section): New function.
2832 (hppaelf_finish): Do nothing for relocateable links. Modify the
2833 call to elf32_hppa_size_stubs. Move code for updating section
2835 (hppaelf_layaout_sections_again): ..to here, a new function.
2837 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
2838 broken list handling. Pass in a pointer to the list.
2839 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
2841 (hppaelf_before_parse): Prototype.
2842 (hppaelf_set_output_arch): Prototype.
2843 (hppaelf_create_output_section_statements): Prototype.
2844 (hppaelf_delete_padding_statements): Prototype.
2845 (hppaelf_finish): Prototype.
2848 * emultempl/hppaelf.em: Include ctype.h.
2849 (struct orphan_save): New.
2850 (gld${EMULATION_NAME}_place_orphan): New.
2851 (output_rel_find): New.
2852 (hppaelf_get_script): Update from elf32.em.
2853 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
2854 Change emulation_name field to "${EMULATION_NAME}". Add
2855 gld${EMULATION_NAME}_place_orphan.
2857 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
2858 ehppalinux.o, sort it. Regenerate dependencies.
2859 (ehppalinux.c): Depend on hppaelf.em
2860 * Makefile.in: Regenerate.
2862 * configure.tgt: targ_emul=hppalinux for hppa*linux
2864 * emulparams/hppalinux.sh: New.
2865 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
2867 2000-07-08 Alan Modra <alan@linuxcare.com.au>
2869 * lexsup.c (parse_args): Copy section name.
2871 2000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
2873 * emultempl/pe.em: institute the following search order for
2874 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
2875 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
2876 static lib (libfoo.a) if none of the above are found.
2878 2000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
2880 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
2881 (longopts): New --{enable,disable}-auto-image-base options.
2882 (gld_${EMULATION_NAME}_list_options): Document.
2883 (gld_${EMULATION_NAME}_parse): Handle.
2884 (strhash): New static function.
2885 (compute_dll_image_base): New static function.
2886 (gld_${EMULATION_NAME}_set_symbols): Use.
2888 2000-07-05 DJ Delorie <dj@redhat.com>
2892 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
2894 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
2895 * emulparams/elf32btsmip.sh: New file.
2896 * Makefile.am: Add traditional mips target.
2897 * Makefile.in: Rebuild.
2899 2000-07-01 H.J. Lu <hjl@gnu.org>
2901 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
2902 automake to use YLWRAP.
2903 * Makefile.in: Rebuild.
2905 2000-07-01 Alan Modra <alan@linuxcare.com.au>
2907 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
2908 (CLEANFILES): Add DEPA.
2909 * Makefile.in: Regenerate.
2911 2000-06-30 Timothy Wall <twall@ppc>
2913 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
2914 the page in the upper octet of the address.
2916 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
2918 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
2920 2000-06-24 Alan Modra <alan@linuxcare.com.au>
2922 * NEWS: arm-elf does --gc-sections too.
2924 2000-06-22 Alan Modra <alan@linuxcare.com.au>
2926 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
2928 * Makefile.in: Regenerate.
2930 2000-06-21 H.J. Lu <hjl@gnu.org>
2932 * Makefile.am: Rebuild dependency.
2933 * Makefile.in: Rebuild.
2935 2000-06-20 H.J. Lu <hjl@gnu.org>
2937 * Makefile.am: Rebuild dependency.
2938 * Makefile.in: Rebuild.
2940 2000-06-20 Timothy Wall <twall@cygnus.com>
2942 * scripttempl/tic54xcoff.sc: New.
2943 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
2944 * gen-doc.texi: Add flag for TI COFF.
2945 * ld.texinfo: Add documentation for TI COFF handling switches.
2946 * emultempl/ticoff.em: New. TI COFF handling.
2947 * configure.tgt: Add tic54x target.
2948 * Makefile.am: Add tic54x target.
2949 * Makefile.in: Ditto.
2951 2000-06-20 Alan Modra <alan@linuxcare.com.au>
2953 * ldmain.c (set_scripts_dir): Correct pointer comparison when
2954 checking for backslashes.
2956 2000-06-19 Alan Modra <alan@linuxcare.com.au>
2958 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
2960 2000-06-18 Alan Modra <alan@linuxcare.com.au>
2962 * NEWS: Update list of targets supporting --gc-sections.
2964 * scripttempl/elf.sc: KEEP .eh_frame contents.
2965 * scripttempl/elfd30v.sc: Same here.
2967 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
2969 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
2971 * Makefile.in: Rebuild.
2972 * configure.tgt: Recognize m68hc12 and m68hc11.
2973 * scripttempl/elfm68hc12.sc: New file.
2974 * emulparams/m68hc12elfb: New emulation.
2975 * emulparams/m68hc12elf: New emulation.
2976 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
2977 (includes a memory.x script to define the ROM and RAM banks).
2978 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
2979 New configuration files for support of Motorola 68hc11
2981 2000-06-15 Alan Modra <alan@linuxcare.com.au>
2983 * ldmain.c (main): Only change SEC_READONLY for final link.
2985 2000-06-13 H.J. Lu <hjl@gnu.org>
2987 * configure: Regenerate.
2989 2000-06-08 David O'Brien <obrien@FreeBSD.org>
2991 * configure.in (VERSION): Update to show this is the CVS mainline.
2993 2000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2995 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
2996 input objects to be ECOFF.
2997 (check_sections): einfo takes %B, not %P, to print a BFD name.
2999 2000-06-05 Michael Matz <matz@ifh.de>
3001 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
3004 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
3006 2000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
3008 * emulparams/avr1200.sh (STACK): Define as 0.
3009 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
3010 * emulparams/avr4433.sh (STACK): Likewise.
3011 * emulparams/avr44x4.sh (STACK): Likewise.
3012 * emulparams/avr85xx.sh (STACK): Likewise.
3013 * emulparams/avrmega103.sh (STACK): Likewise.
3014 * emulparams/avrmega161.sh (STACK): Likewise.
3015 * emulparams/avrmega603.sh (STACK): Likewise.
3016 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
3017 (__stack): Define from ${STACK} for main().
3019 2000-05-26 Alan Modra <alan@linuxcare.com.au>
3021 * Makefile.am: Update dependencies with "make dep-am"
3022 * Makefile.in: Regenerate.
3024 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
3026 * ldmain.c: Include filenames.h.
3027 (set_scripts_dir): Support backslashes in program name.
3029 2000-05-22 Igor Shevlyakov <igor@windriver.com>
3031 * ldmain.c (main): When deciding if ".text" section should be
3032 read-only, don't forget to reset SEC_READONLY because it
3033 could be already set.
3035 2000-05-22 Thomas de Lellis <tdel@windriver.com>
3037 * ld.1: Add documentation for new command line option:
3038 --section-start <sectionname>=<sectionorg>
3039 This is a generic version of -Ttext etc. which accepts
3040 any section name as a parameter instead of just text/data/
3042 * ld.texinfo: More docs.
3044 * lexsup.c: (parse_args): Recognize new command line option.
3045 (ld_options): Add new option.
3047 2000-05-18 H.J. Lu <hjl@gnu.org>
3049 * lexsup.c (parse_args): `i' == `r', not `q'.
3051 2000-05-18 Jeffrey A Law (law@cygnus.com)
3053 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
3055 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
3056 Rick Gorton <gorton@scrugs.lkg.dec.com>
3058 Add support for '-q' == '--emit-relocs' switch.
3059 * ldmain.c (main): Default to false.
3060 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
3061 * NEWS: Describe the emitrelocations switch.
3062 * ld.texinfo: Describe the emitrelocations switch.
3064 2000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
3066 * emultempl/pe.em (_open_dynamic_archive): New function: Search
3067 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
3068 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
3071 2000-05-15 David O'Brien <obrien@FreeBSD.org>
3073 * lexsup.c (parse_args): Update the year in the copyright notice.
3075 2000-05-13 Alan Modra <alan@linuxcare.com.au>
3077 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
3078 Replace defines with those from intl/libgettext.h to quieten gcc
3081 2000-05-10 H.J. Lu <hjl@gnu.org>
3083 * ldlang.c (open_input_bfds): Don't load the same file within
3084 a group again if the whole archive has been loaded already.
3086 2000-05-03 Alan Modra <alan@linuxcare.com.au>
3088 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
3089 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
3092 2000-05-01 Jim Wilson <wilson@cygnus.com>
3094 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
3096 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
3097 host "ia64-*-linux-gnu*".
3099 2000-04-29 Andreas Jaeger <aj@suse.de>
3101 * ld.h: Correctly check GCC version.
3103 2000-04-25 Jeffrey A Law (law@cygnus.com)
3105 * Makefile.am: Add PA64 support. Add missing dependencies for
3107 * Makefile.in: Rebuilt.
3108 * configure.tgt: Add PA64 support (currently disabled).
3110 2000-04-25 Alan Modra <alan@linuxcare.com.au>
3112 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
3113 (output_rel_find): New function.
3114 (hold_section, hold_use): Delete.
3115 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
3116 hold_interp): Make local to place_orphan.
3117 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
3118 rather than place_section to find possible previous use of orphan.
3119 Similarly find the place-holder output sections. Use returned
3120 value from lang_enter_output_section_statement rather than calling
3121 lang_output_section_statement_lookup.
3122 * emultempl/armelf.em: Same here.
3123 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
3125 * ldlang.c (lang_enter_output_section_statement): Return output
3127 * ldlang.h (lang_enter_output_section_statement): Change
3130 * ldlang.h (lang_output_section_statement): Export it.
3131 * ldlang.c (lang_output_section_statement): Ditto.
3133 2000-04-24 Nick Clifton <nickc@cygnus.com>
3135 * ld.texinfo (Output Section Data): Add note that section data
3136 commands cannot appear outside of section directives.
3138 2000-04-2 Matthew Green <mrg@cygnus.com>
3140 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
3142 2000-04-21 Richard Henderson <rth@cygnus.com>
3143 David Mosberger <davidm@hpl.hp.com>
3145 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
3146 (eelf64_ia64.c): New rule.
3147 * Makefile.in: Rebuild.
3148 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
3149 * emulparams/elf64_ia64.sh: New file.
3151 2000-04-21 Richard Henderson <rth@cygnus.com>
3153 * scripttempl/elfd30v.sc: Place .gcc_except_table.
3155 2000-04-19 Alan Modra <alan@linuxcare.com.au>
3157 * dep-in.sed: Match space at start of file name, not at end.
3159 2000-04-18 H.J. Lu <hjl@gnu.org>
3161 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
3162 lang_leave_output_section_statement () after calling
3163 lang_enter_output_section_statement ().
3164 * emultempl/armelf.em: Likewise.
3166 2000-04-18 Alan Modra <alan@linuxcare.com.au>
3168 * emultempl/elf32.em (struct orphan_save): Add section field.
3169 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
3170 better order, and place first orphan section as we did before the
3171 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
3172 Don't call make_bfd_section here, let wild_doit do the job for us.
3173 Don't build a statement list when we'll only throw it away.
3174 * emultempl/armelf.em: Ditto.
3175 * emultempl/pe.em: Similarly.
3177 2000-04-14 Geoff Keating <geoffk@cygnus.com>
3179 * scripttempl/elfppc.sc: Remove.
3180 * emulparams/elf32ppc.sh: Use elf.sc.
3181 * emulparams/elf32lppc.sh: Use elf.sc.
3182 * emulparams/elf32ppclinux.sh: Use elf.sc.
3183 * emulparams/elf32ppcsim.sh: New file.
3184 * emulparams/elf32lppcsim.sh: New file.
3185 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
3186 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
3187 * Makefile.in: Regenerate.
3188 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
3190 2000-04-14 Alan Modra <alan@linuxcare.com.au>
3192 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
3193 ~SEC_ALLOC sections too. Init start address of debug sections.
3194 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
3195 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
3196 Also set all relocateable section start addresses.
3198 2000-04-13 Geoff Keating <geoffk@cygnus.com>
3200 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
3201 Add new BSS_PLT variable for when .plt need not be contained in
3202 the file. Move _etext so that it is also after .fini, and provide
3203 both etext and _etext with a leading underscore. Mark the start
3206 2000-04-12 Alan Modra <alan@linuxcare.com.au>
3208 * emultempl/elf32.em (struct orphan_save): New.
3209 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
3210 hold_interp): Make them struct orphan_save.
3211 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
3212 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
3213 the end of the relevant section list. Also add associated section
3214 statements to the end of any previous orphan statements.
3215 * emultempl/armelf.em: Similarly.
3216 * emultempl/pe.em: Similarly.
3218 2000-04-11 Alan Modra <alan@linuxcare.com.au>
3220 * ld.texinfo (Simple Example): Remove extraneous paragraph.
3222 2000-04-07 Andrew Cagney <cagney@b1.cygnus.com>
3224 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
3225 --enable-build-warnings option.
3226 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
3227 * Makefile.in, configure: Re-generate.
3229 2000-04-04 Alan Modra <alan@linuxcare.com.au>
3231 * po/ld.pot: Regenerate.
3233 * lexsup.c (help): Restore translated part of bug string.
3235 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
3236 (DEP): Quote when passing vars to sub-make. Add warning message
3238 (DEP1): Rewrite for "gcc -MM".
3239 (CLEANFILES): Add DEP2.
3240 Update dependencies.
3241 * Makefile.in: Regenerate.
3243 2000-04-03 Alan Modra <alan@linuxcare.com.au>
3245 * ld.h: #include "bin-bugs.h"
3246 * lexsup.c (help): Use REPORT_BUGS_TO.
3248 2000-03-27 Denis Chertykov <denisc@overta.ru>
3250 * configure.tgt (avr-*-*): New target support.
3251 * Makefile.am: Likewise.
3252 * scripttempl/elf32avr.sc: New script file.
3253 * emulparams/avr1200.sh: New file.
3254 * emulparams/avr23xx.sh: New file.
3255 * emulparams/avr4433.sh New file.
3256 * emulparams/avr44x4.sh New file.
3257 * emulparams/avr85xx.sh New file.
3258 * emulparams/avrmega103.sh New file.
3259 * emulparams/avrmega161.sh New file.
3260 * emulparams/avrmega603.sh New file.
3261 * Makefile.in: Regenerate.
3263 2000-03-09 Andreas Jaeger <aj@suse.de>
3265 * Makefile.am (check-DEJAGNU): Also unset LANG.
3266 * Makefile.in: Rebuild.
3268 2000-03-06 Ian Lance Taylor <ian@zembu.com>
3270 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
3273 2000-03-02 H.J. Lu <hjl@gnu.org>
3275 * emulparams/elf32mcore.sh: Include "getopt.h".
3277 2000-03-01 Ian Lance Taylor <ian@zembu.com>
3279 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
3281 2000-03-01 H.J. Lu <hjl@gnu.org>
3283 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
3284 * emulparams/shpe.sh: Likewise.
3286 2000-03-01 Nick Clifton <nickc@cygnus.com>
3288 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
3289 to unused parameters.
3291 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
3292 functions only used by DLL code.
3293 (_place_orphan): Initialise 'dollar'.
3295 2000-03-01 H.J. Lu <hjl@gnu.org>
3297 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
3298 indicate if the undefined symbol is a fatal error or not.
3299 Don't delete the output file if "fatal" is false.
3301 2000-02-29 H.J. Lu <hjl@gnu.org>
3303 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
3304 Set LC_COLLATE and LC_ALL to null and export them. It is for
3305 sort which expects the C locale.
3306 Add $(LIBS) to all $(HOSTING_LIBS).
3307 * Makefile.in: Rebuild.
3309 2000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
3311 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
3312 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
3313 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
3314 (ld_emulation_xfer_struct): Add missing NULL initialiser for
3315 find_potential_libraries.
3317 2000-02-28 Jim Blandy <jimb@redhat.com>
3319 * ldgram.y (exclude_name_list): Don't require a comma to separate
3320 list entries; the lexer considers commas to be valid part of a
3321 filename, so in something like `foo, bar' the comma is considered
3322 part of the first filename, `foo,'.
3323 * ld.texinfo: Update section on EXCLUDE_FILE lists.
3325 2000-02-27 Loren J. Rittle <ljrittle@acm.org>
3327 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
3328 host "i[3456]86-*-freebsdelf*".
3330 2000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
3332 * scripttempl/i386go32.sc: Move misplaced semicolons.
3334 2000-02-25 Ian Lance Taylor <ian@zembu.com>
3336 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
3337 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
3338 (eelf64hppa.c, ehppaelf.c): Remove targets.
3339 * Makefile.in: Rebuild.
3341 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
3343 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
3344 GNU/Linux/sparc, but keep the default as 32.
3346 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
3347 it default if sparcv9 or sparc64.
3349 2000-02-24 Nick Clifton <nickc@cygnus.com>
3351 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
3352 * Makefile.in: Regenerate.
3353 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
3355 * ldemul.h (ld_emulation_xfer_struct): Add new field:
3356 find_potential_libraries.
3357 * ldemul.c (ldemul_find_potential_libraries): New function.
3359 * ldfile.c (ldfile_open_file_search): Allow function to be
3361 (ldfile_open_file): Call ldemul_find_potential_libraries.
3362 * ldfile.h: Add prototype for ldfile_open_file_search.
3364 * pe-dll.c: Add support for ARM, MIPS and SH targets.
3366 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
3367 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
3369 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
3370 (gld_X_find_potential_libraries): New function. Search for
3371 libraries called "*.lib".
3373 * scripttempl/pe.sc: Add .pdata section.
3375 2000-02-23 Richard Henderson <rth@cygnus.com>
3377 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
3378 Add and use memory regions.
3380 2000-02-23 Linas Vepstas (linas@linas.org)
3382 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
3384 * Makefile.am: Add support for Linux/IBM 370.
3385 * configure.tgt: Likewise.
3387 * Makefile.in: Regenerate.
3389 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
3391 * ldlang.c (print_input_section, print_data_statement,
3392 print_reloc_statement, print_padding_statement, insert_pad,
3393 size_input_section, lang_check_section_addresses,
3394 lang_size_sections, lang_do_assignments, lang_set_startof,
3395 lang_one_common): Change `opb' to unsigned.
3396 (lang_do_assignments): Also change `size' to unsigned.
3398 2000-02-16 Richard Henderson <rth@cygnus.com>
3400 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
3402 2000-02-16 Timothy Wall <twall@cygnus.com>
3404 * mri.c (mri_draw_tree): Add default LMA region argument to call
3405 to lang_leave_output_section_statement.
3406 * ldlang.h: Update prototypes with LMA region arguments.
3407 * ldlang.c (lang_size_sections): Encapsulate region bounds
3408 checking in os_check_region call.
3409 (os_check_region): New function.
3410 (lang_output_section_statement_lookup): Initialize lma_region.
3411 (lang_leave_output_section_statement): Add LMA region argument.
3412 (lang_leave_overlay): Ditto.
3413 * ldgram.y: Handle LMA region syntax.
3414 * ld.texinfo (Output Section Description): Describe LMA region usage.
3415 * emultempl/armelf.em (gld$place_orphan): Add default value for
3416 lma region in call to lang_leave_output_section_statement.
3417 * emultempl/elf32.em (gld$place_orphan): Add default value for
3418 lma region in call to lang_leave_output_section_statement.
3419 * emultempl/pe.em (gld$place_orphan): Add default value for
3420 lma region in call to lang_leave_output_section_statement.
3423 2000-02-04 Timothy Wall <twall@redhat.com>
3425 * ldlang.c (lang_check_section_addresses): Use bytes instead of
3426 octets when calculating section end addresses.
3428 2000-02-04 Timothy Wall <twall@redhat.com>
3430 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
3432 2000-02-03 Timothy Wall <twall@redhat.com>
3434 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
3436 * ldlang.c (print_input_section, print_data_statement,
3437 print_reloc_statement, print_padding_statement): Print target
3438 address values and section sizes as bytes, not octets.
3439 (insert_pad) Calculate padding size in octets, and adjust "dot"
3441 (size_input_section) Always adjust "dot" by bytes, not octets.
3442 (lang_check_section_addresses, lang_do_assignments) Adjust
3443 "dot" by bytes, not octets. Use the larger of the directive size
3444 or octets_per_byte for the number of octets actually allocated in
3446 (lang_set_startof) Make sure STARTOF returns a target address.
3447 (lang_one_common) Record size changes in octets.
3448 (lang_abs_symbol_at_end_of) Section end symbol's value is
3449 recorded in target bytes.
3450 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
3451 to be clear about behavior when an octet is smaller than one byte.
3453 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
3455 * ldcref.c (output_cref): Don't pass message strings to printf
3459 * ldmisc.c (vfinfo): Same here.
3462 2000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
3464 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
3465 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
3466 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
3467 Add missing NULL initialisers, and comments.
3469 * testsuite/ld-srec/sr3.cc (__rethrow): New.
3471 2000-01-21 Nick Clifton <nickc@cygnus.com>
3473 * ldlang.c (lang_size_sections): Fix typo in comment.
3475 2000-01-18 H.J. Lu <hjl@gnu.org>
3477 * ldlang.c (lang_size_sections): Also update the current
3478 address of a region if the SEC_NEVER_LOAD bit is not set.
3480 2000-01-10 Philip Blundell <pb@futuretv.com>
3482 * configure.tgt (arm*-*-conix*): New target.
3484 2000-01-07 Nick Clifton <nickc@cygnus.com>
3486 * ld.texinfo (Options): Remind users to preceed linker command
3487 line switches with -Wl, (or whatever is appropriate) if it is
3488 being invoked by a comnpiler driver program.
3489 Fix description of the behaviour of the -n command line switch.
3491 2000-01-05 Catherine Moore <clm@cygnus.com>
3493 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
3495 * ld.texinfo (EXCLUDE_FILE): Update documentation.
3496 * ldgram.y (wildcard_spec): Support a list of excluded_files.
3497 (exclude_name_list): New.
3498 ldlang.c (walk_wild_section): Support list of excluded files.
3499 (print_wild_statement): Likewise.
3500 (lang_add_wild): Likewise.
3501 * ldlang.h (lang_wild_statement_type): Likewise.
3502 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
3504 2000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
3506 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
3507 (process_def_file): Use.
3508 (pe_dll_compat_implib): New variable.
3511 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
3512 pe_dll_compat_implib.
3514 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
3515 compat-implib options.
3516 (gld_${EMULATION_NAME}_list_options): List new options.
3517 (gld_${EMULATION_NAME}_parse_args): Handle.
3519 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
3522 * deffilep.y (opt_name): Allow "." in name.
3524 For older changes see ChangeLog-9899
3530 version-control: never