1 2002-02-01 Geoffrey Keating <geoffk@redhat.com>
3 * scripttempl/xstormy16.sc: Don't allocate extra space for the
6 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
8 Support on-demand global register allocation from
9 R_MMIX_BASE_PLUS_OFFSET relocs.
10 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
11 mmix_set_reg_section_vma. Call
12 _bfd_mmix_finalize_linker_allocated_gregs.
13 (mmix_before_allocation): New function.
14 (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
15 (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
16 * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
17 (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
18 before .MMIX.reg_contents.
19 * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
20 (mmo_after_open): New function.
21 (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
22 * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting. Add
23 .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
25 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
27 * emulparams/or32.sh: New file.
28 * emulparams/or32elf.sh: New file.
29 * scripttempl/or32.sc: New file.
30 * configure.tgt : Add support for or32.
31 * configure: Regenerate
32 * Makefile.am: Add support for or32.
33 * Makefile.in: Regenerate.
34 * NEWS: Mention support for or32.
35 * po/ld.pot: Regenerate.
37 2002-01-29 Chris Demetriou <cgd@broadcom.com>
38 Mitch Lichtenberg <mpl@broadcom.com>
40 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
41 * emultempl/mipself.em: New file to handle MIPS ELF embedded
42 reloc creation (ld --embedded-relocs).
44 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
46 * configure: Regenerated.
48 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
50 * Makefile.am (install): Depend on install-info.
51 * Makefile.in: Regenerate.
53 2002-01-26 Christian Rose <menthos@menthos.com>
55 * ldmain.c (main): Use full sentences to ease translation.
57 2002-01-26 Nick Clifton <nickc@cambridge.redhat.com>
59 * po/fr.po: Updated version.
61 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
63 * po/es.po: Updated version.
65 2002-01-25 Andreas Jaeger <aj@suse.de>
67 * ldlex.l (yy_input): Correct error check.
69 2002-01-25 Alan Modra <amodra@bigpond.net.au>
71 * ldmisc.c (demangle): Put back dots when string not demangled.
73 2002-01-22 Richard Henderson <rth@redhat.com>
75 * emulparams/elf64alpha.sh (NOP): Use unop.
77 2002-01-21 Andreas Jaeger <aj@suse.de>
79 * ldlex.l: Use fread instead of read.
81 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
83 * configure.tgt (ia64-*-netbsd*): New target.
85 2002-01-21 H.J. Lu <hjl@gnu.org>
87 * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
89 * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
91 2002-01-18 Andreas Jaeger <aj@suse.de>
93 * ldver.c (ldversion): Update year.
95 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
97 * po/ld.pot: Regenerate.
99 2002-01-16 Alan Modra <amodra@bigpond.net.au>
101 * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
102 * Makefile.in: Regenerate.
103 * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
104 * emultempl/ppc64elf.em: New file.
106 2002-01-15 DJ Delorie <dj@redhat.com>
108 * scripttempl/pe.sc: Add support for constructor priorities.
110 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
112 * emulparams/avr1200.sh (DATA_START): Define as 0x60.
113 * emulparams/avr23xx.sh: Likewise.
114 * emulparams/avr4433.sh: Likewise.
115 * emulparams/avr44x4.sh: Likewise.
116 * emulparams/avr85xx.sh: Likewise.
117 * emulparams/avrmega103.sh: Likewise.
118 * emulparams/avrmega161.sh: Likewise.
119 * emulparams/avrmega603.sh: Likewise.
120 * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
122 2002-01-08 Alexandre Oliva <aoliva@redhat.com>
124 * ldlang.c (walk_wild_section): Exclude object file if enclosing
127 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
129 * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
130 (eshelf_nbsd.c): New rule.
131 (eshlelf_nbsd.c): New rule.
132 * Makefile.in: Regenerate.
133 * configure.tgt (sh*le-*-netbsdelf*): New target.
134 (sh*-*-netbsdelf*): New target.
135 * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
136 * ld/emulparams/shelf_nbsd.sh: New emulation.
137 * ld/emulparams/shlelf_nbsd.sh: New emulation.
139 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
141 * po/es.po: New file: Spanish translation.
142 * configure.in (ALL_LINGUAS): Add es.
143 * configure: Regenerate.
145 2002-01-06 John Marshall <jmarshall@acm.org>
147 * ld.texinfo: Note that --emit-relocs is currently only
150 2002-01-05 Alan Modra <amodra@bigpond.net.au>
152 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
153 of bfd_section_list_remove and bfd_section_list_insert macros.
154 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
155 * emultempl/mmo.em (mmo_place_orphan): Likewise.
157 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
159 * configure.tgt (x86_64-*-netbsd*): New target.
161 2001-12-21 Tom Rix <trix@redhat.com>
163 (gld*_create_output_section_statements): New function.
164 For -binitfini support.
165 * emultempl/aix.em (gld*_before_parse): Fix comment.
166 * emultempl/aix.em (gld*_parse_args): Fix comment.
168 2001-12-20 Jason Thorpe <thorpej@wasabisystems.com>
170 * configure.tgt (mips*-dec-netbsd*): Delete alias for
172 (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
174 * configure.tgt (arm-*-netbsdelf*): Add target.
175 (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
176 * emulparams/armelf_nbsd.sh: Added.
177 * Makefile.am: Add rules for earmelf_nbsd.
178 * Makefile.in: Regenerate.
180 2001-12-19 Andreas Jaeger <aj@suse.de>,
181 Susanne Oberhauser <froh@suse.de>
183 * configure.host: Add rules for x86_64-*linux-gnu. Change
184 s390x-linux entry to use gcc to report configuration, replace gcc
185 with $CC in s390-linux
187 2001-12-19 Andreas Jaeger <aj@suse.de>
189 * ld.texinfo (VERSION): Fix markup.
191 2001-12-18 matthew green <mrg@eterna.com.au>
193 * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
194 (m68kelfnbsd.c): New rule.
195 * Makefile.in: Regenerate.
196 * configure.tgt (m68*-hp-netbsd*): Renamed to ..
197 (m68*-*-netbsd*4k*): .. this.
198 (m68*-*-netbsdelf*): New target.
199 (m68*-*-netbsd*): Also include ELF support.
200 (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
201 * emulparams/m68kelfnbsd.sh: New emulation.
203 2001-12-18 Jakub Jelinek <jakub@redhat.com>
205 * ldgram.y (vers_node): Support anonymous version tags.
206 * ldlang.c (lang_register_vers_node): Ensure anonymous version
207 tag is not defined together with non-anonymous versions.
208 * ld.texinfo: Document it.
210 2001-12-18 Nick Clifton <nickc@cambridge.redhat.com>
212 * po/tr.po: New file: Turkish translation.
213 * configure.in (ALL_LINGUAS): Add tr.
214 * configure: Regenerate.
216 2001-12-17 Jason Thorpe <thorpej@wasabisystems.com>
218 * Makefile.am: Add rules for eelf64alpha_nbsd.
219 * Makefile.in: Regenerate.
220 * configure.tgt (alpha*-*-netbsd*): Set
221 targ_emul to elf64alpha_nbsd.
222 * emulparams/elf64alpha_nbsd.sh: Added.
224 2001-12-17 Alan Modra <amodra@bigpond.net.au>
226 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
227 section_tail when fiddling with section list.
228 (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
229 broken into separate strings to make translation easier.
230 * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
231 fiddling with section list.
232 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
234 2001-12-16 Hans-Peter Nilsson <hp@bitrange.com>
236 * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
238 2001-12-15 Alan Modra <amodra@bigpond.net.au>
240 * ldmain.c (main): Initialise link_info.eh_frame_hdr.
242 2001-12-13 Jakub Jelinek <jakub@redhat.com>
244 * emultempl/elf32.em (finish): Supply output_bfd
245 to bfd_elf*_discard_info.
246 (OPTION_EH_FRAME_HDR): Define.
247 (longopts): Add --eh-frame-hdr.
248 (parse_args): Handle it.
249 (list_options): Add --eh-frame-hdr to help.
250 * emultempl/hppaelf.em (finish): Supply output_bfd
251 to bfd_elf*_discard_info.
252 * scripttempl/elf.sc (.eh_frame_hdr): Add.
254 2001-12-13 Alan Modra <amodra@bigpond.net.au>
256 * lexsup.c (parse_args): Don't pass shortopts to second call to
257 getopt functions. Restore optind rather than decrementing before
258 second call. Remove errind as it now duplicates last_optind.
260 2001-12-11 Christopher Faylor <cgf@redhat.com>
262 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
264 2001-12-07 Geoffrey Keating <geoffk@redhat.com>
265 Richard Henderson <rth@redhat.com>
267 * Makefile.am: Add support for xstormy16.
268 * configure.tgt: Add support for xstormy16.
269 * Makefile.in: Regenerate.
270 * emulparams/elf32xstormy16.sh: New file.
271 * scripttempl/xstormy16.sc: New file.
273 2001-10-01 Christopher Faylor <cgf@cygnus.com>
275 * Makefile.in (LIB_PATH): Make configurable.
276 (GENSCRIPTS): Set LIB_PATH in environment.
277 * configure.in: Substitute LIB_PATH.
278 * configure: Regenerate.
279 * configure.tgt (*cygwin): Set LIB_PATH for cross build.
280 * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
282 2001-12-07 Nick Clifton <nickc@cambridge.redhat.com>
284 * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
285 describing the -N option so that it is easier to translate into
288 2001-12-05 Nick Clifton <nickc@cambridge.redhat.com>
290 * emultempl/pe.em (..._list_options): Replace multiple fprintf
291 statements describing a single option with a single, newline
292 escaped fprintf. This allows better translation into other
295 * ldmain.c (add_archive_element): Combine multiple strings
296 into a single string to permit better translation into other
299 2001-12-05 Tom Rix <trix@redhat.com>
301 * Makefile.am: Remove eaixppc64.
302 * Makefile.in: Regenerate.
304 2001-12-04 Tom Rix <trix@redhat.com>
306 * emultempl/aix.em (choose_target): Change default target to
307 OUTPUT_FORMAT for ppcmacos. Add braces to remove compiler
309 (gld*_read_file): Fix typo.
310 (change_symbol_mode): Add prototype.
313 * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
314 * emulparams/aixrs6.sh : Same.
315 * emulparams/ppcmacos.sh : Same.
316 * emulparams/aixppc64.sh : Delete file.
317 * emultempl/aix.em : Formatting changes.
319 2001-12-04 Hans-Peter Nilsson <hp@axis.com>
321 * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
322 (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
324 (OTHER_END_SYMBOLS): Fix formatting.
325 * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
326 (OTHER_END_SYMBOLS): Fix formatting.
328 2001-12-04 Alan Modra <amodra@bigpond.net.au>
330 * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
332 2001-12-02 Tom Rix <trix@redhat.com>
334 * configure.tgt : Remove eaixppc64 emulations.
335 * Makefile.in : Remove eaixppc64.c
336 * ldemul.c (ldemul_choose_target): New parameters argc, argv.
337 (ldemul_default_target): Same.
338 * emultempl/gld960.em (gld960_choose_target): Same.
339 * emultempl/gld960c.em (gld960_choose_target): Same.
340 * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
341 * emultempl/aix.em (is_syscall): syscall_mask now a variable.
342 * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
343 * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
344 * emultempl/aix.em (choose_target): New function. Handle emulation of
347 2001-11-27 H.J. Lu <hjl@gnu.org>
349 * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
350 * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
351 * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
352 * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
353 * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
354 * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
355 * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
356 * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
358 * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
361 (REL_SDATA): Likewise.
362 (REL_SBSS): Likewise.
363 (REL_SDATA2): Likewise.
364 (REL_SBSS2): Likewise.
365 (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
368 2001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
370 * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
372 * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
374 2001-11-22 H.J. Lu <hjl@gnu.org>
376 * Makefile.in: Regenerated with automake based on automake
379 2001-11-22 Alan Modra <amodra@bigpond.net.au>
381 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
382 (config.status): Delete rule.
383 Add extra dependencies to cover sourced emulparams files.
384 * Makefile.in: Regenerate.
386 * scripttempl/elf.sc: Order <section>, <section>.* and
387 corresponding linkonce sections as seen in input files.
388 Formatting fixes. Zero vma of all sections if not relocating.
389 (STACK): Define and insert if STACK_ADDR defined.
390 (OTHER_RELOCATING_SECTIONS): Delete.
391 (OTHER_END_SYMBOLS): Define.
392 (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
393 (OTHER_READWRITE_SECTIONS): Likewise.
394 (OTHER_GOT_SECTIONS): Likewise.
395 (OTHER_SDATA_SECTIONS): Likewise.
396 (OTHER_BSS_SECTIONS): Likewise.
397 * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
398 (OTHER_READWRITE_SECTIONS): Likewise.
399 * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
400 (OTHER_READWRITE_SECTIONS): Likewise
402 * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
403 (STACK_ADDR): Define.
404 * emulparams/armelf_oabi.sh: As for armelf.sh.
405 * emulparams/elf32mcore.sh: As for armelf.sh.
406 * emulparams/h8300elf.sh: As for armelf.sh.
407 * emulparams/mn10200.sh: As for armelf.sh.
408 * emulparams/shelf.sh: As for armelf.sh.
410 * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
411 (OTHER_END_SYMBOLS): Define.
412 * emulparams/m32relf.sh: As for elf32fr30.sh.
413 * emulparams/h8300helf.sh: As for elf32fr30.sh.
414 * emulparams/h8300self.sh: As for elf32fr30.sh.
416 * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
417 defines with RELOCATING test.
418 (OTHER_SDATA_SECTIONS): Likewise.
419 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
420 (OTHER_END_SYMBOLS): ..this.
421 * emulparams/crislinux.sh: As for criself.sh.
423 * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
425 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
426 (OTHER_SECTIONS): ..this. Zero vma if not relocating. Order
427 normal and linkonce sections as seen in input files.
428 * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
429 (TEXT_DYNAMIC): Likewise.
430 (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
431 (OTHER_SDATA_SECTIONS): Likewise.
432 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
433 * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
434 * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
435 * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
436 * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
437 (OTHER_PLT_RELOC_SECTIONS): Likewise.
438 (OTHER_READONLY_SECTIONS): Likewise. Order normal and linkonce
439 sections as seen in input files.
440 * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
441 * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
443 (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
444 (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
445 * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
446 (OTHER_SECTIONS): Instead, use this..
447 (OTHER_END_SYMBOLS): ..and this.
449 * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
450 * emulparams/elf32bsmip.sh: Likewise.
451 * emulparams/elf32btsmip.sh: Likewise.
452 * emulparams/elf32ebmip.sh: Likewise.
453 * emulparams/elf32lmip.sh: Likewise.
454 * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
455 * emulparams/elf32lsmip.sh: Likewise.
456 * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
457 * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
458 * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
459 * emulparams/elf64btsmip.sh: Likewise.
460 * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
461 * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
462 * emulparams/elf32ppclinux.sh: Likewise.
463 * emulparams/elf32ppcsim.sh: Likewise.
464 * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
465 * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
466 * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
467 * emulparams/h8300self.sh: Likewise.
468 * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
469 * emulparams/sh.sh: Comment.
470 * emulparams/shl.sh: Source sh.sh, remove duplicates.
471 * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
472 * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
474 2001-11-21 David Heine <dlheine@tensilica.com>
475 Alan Modra <amodra@bigpond.net.au>
477 * ldlang.c (map_input_to_output_sections): Replace "break"
478 accidentally removed with 2001-08-03 change.
479 (lang_gc_sections_1): Likewise.
481 2001-11-21 Alan Modra <amodra@bigpond.net.au>
483 * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
485 2001-11-20 Angela Marie Thomas <angela@redhat.com>
487 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
488 of false when calling lang_size_sections.
489 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
491 2001-11-15 Alan Modra <amodra@bigpond.net.au>
493 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
494 function when LDEMUL_FINISH isn't set to the same name. Don't
495 call ${LDEMUL_FINISH}.
496 (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
497 * emultempl/armelf.em (arm_elf_finish): Call
498 gld${EMULATION_NAME}_finish.
499 * emultempl/hppaelf.em (hppaelf_finish): Rename to
500 gld${EMULATION_NAME}_finish. Call bfd_elf32_discard_info and
501 hppaelf_layout_sections_again if necessary.
502 (need_laying_out): New var.
503 (hppaelf_layaout_sections_again): Rename to
504 hppaelf_layout_sections_again. Clear need_laying_out.
505 (PARSE_AND_LIST_OPTIONS): Format text.
507 2001-11-14 H.J. Lu <hjl@gnu.org>
509 * emultempl/armelf.em (arm_elf_finish): Renamed from
510 gld${EMULATION_NAME}_finish.
511 (LDEMUL_FINISH): Set to arm_elf_finish.
513 2001-11-14 Daniel Jacobowitz <drow@mvista.com>
515 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
516 (struct ld_emulation_xfer_struct): Use it.
518 2001-11-13 Ross Alexander <ross.alexander@uk.neceur.com>
520 * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
521 additional symbols referenced by newer crt0.o files from HP.
523 2001-11-12 Anthony Green <green@redhat.com>
525 * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
527 2001-11-12 Alfred M. Szmidt <ams@kemisten.nu>
529 * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
530 * Makefile.in: Regenerate.
532 2001-11-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
534 * ld.texinfo: Use @command for commands, @option for options.
535 * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
537 * Makefile.in: Rebuild.
539 2001-11-04 Chris Demetriou <cgd@broadcom.com>
541 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
542 Add support for targets.
544 2001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
546 * configure.in (ALL_LINGUAS): Add "fr" and "sv"
547 * configure: Regernate.
548 * po/fr.po: New file.
549 * po/sv.po: New file.
551 2001-11-01 NIIBE Yutaka <gniibe@m17n.org>
553 * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
554 as little endian default and to support big endian.
556 2001-11-01 Chris Demetriou <cgd@broadcom.com>
558 * ld.texinfo (Options): Document new option, -nostdlib.
559 * lexsup.c (OPTION_NOSTDLIB): New definition.
560 (ld_options): Add entry for "nostdlib".
561 (parse_args): Handle OPTIONS_NOSTDLIB.
562 * ldfile.c (ldfile_add_library_path): Don't add directories
563 to the search path if they weren't specified on the command line
564 and -nostdlib was specified.
565 * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
567 2001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
569 * lexsup.c (parse_args): Prevent infinite parsing loop when
570 "-rpath.a" is specified on the command line.
571 Replace calls to fprintf with calls to einfo.
573 2001-10-31 John Marshall <jmarshall@acm.org>
575 * ld.texinfo: A historical requirement that MEMORY and SECTIONS
576 appear only once across all the linker scripts involved in a link
577 invocation no longer applies. Make the documentation reflect
580 2001-10-31 NIIBE Yutaka <gniibe@m17n.org>
582 * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
584 (sh-*-linux*): Added targ_extra_libpath.
586 2001-10-31 David Heine <dlheine@tensilica.com>
588 * ldlang.c (lang_size_sections): Keep a valid output_offset field
589 for padding statements.
591 2001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
593 * configure.tgt (mmix-*-*): New target.
594 * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
595 Add dependencies to match.
596 * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
597 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
598 scripttempl/mmo.sc: New files.
599 * gen-doc.texi: @set MMIX.
601 [MMIX] Add MMIX node.
602 * Makefile.in: Regenerate.
604 2001-10-29 Kazu Hirata <kazu@hxi.com>
606 * ldlang.c: Fix a comment typo.
608 2001-10-23 Alan Modra <amodra@bigpond.net.au>
610 * configure.host: Move alpha*-*-linux-gnu* entry to generic
611 entries, and match *-*-linux*.
613 2001-10-20 Alan Modra <amodra@bigpond.net.au>
615 * ldgram.y (mri_script_command): Surround processing of INCLUDE
616 with ldlex_script, ldlex_popstate.
617 (ifile_p1): Likewise.
618 * ldlex.l (EOF): Don't BEGIN(SCRIPT). Restore lineno from the
620 (lex_push_file): Save current lineno to lineno_stack. Set lineno
621 to 1. Don't BEGIN(SCRIPT).
622 (lex_redirect): Similarly.
623 * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
625 2001-10-20 Nick Clifton <nickc@cambridge.redhat.com>
627 * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
628 __EH_FRAME_END__ and accept eh frames into data section.
629 Add ctor and dtor sections.
631 2001-10-19 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
633 * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
634 (auto-export): Fix indentation.
636 2001-10-18 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
638 * pe-dll.c (autofilter_objectlist): Add startup objects
640 (auto-export): Constify char * p.
641 Extract file basename and use strcmp rather than ststr
644 2001-10-18 Chris Demetriou <cgd@broadcom.com>
646 * ldmain.c (get_emulation): Improve comment about the handling
649 2001-10-17 Alan Modra <amodra@bigpond.net.au>
651 * po/POTFILES.in: Regenerate.
653 2001-10-16 Vassili Karpov <malc@pulsesoft.com>
655 * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
656 -z nocopyreloc and -z nocombreloc usage strings.
658 2001-10-12 Vassili Karpov <malc@pulsesoft.com>
660 * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
663 2001-10-11 Aleksey Romanov <aromanov@ennovatenetworks.com>
665 * scripttempl/armaout.sc: Place .bss section after end of aligned
666 data section to match behaviour of aout code in constructrion of
669 2001-10-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
671 * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
672 startup files for mingw32 dlls to list.
674 2001-10-10 Chris Demetriou <cgd@broadcom.com>
676 * emultempl/elf32.em: Fix shell 'if' usage for portability.
678 2001-10-08 Aldy Hernandez <aldyh@redhat.com>
680 * configure.tgt (targ): Add arm9e-*-elf.
682 2001-10-05 H.J. Lu <hjl@gnu.org>
684 * genscripts.sh: Fix a typo in the last change.
686 2001-10-05 Jakub Jelinek <jakub@redhat.com>
688 * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
689 -z nocombreloc in usage.
691 2001-10-03 Jim Blandy <jimb@redhat.com>
693 * genscripts.sh: Include a comment at the top of each generated
694 script, explaining its purpose.
696 2001-10-03 Vassili Karpov <malc@pulsesoft.com>
698 * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
699 * NEWS: Mention -z nocopyreloc.
700 * ld.texinfo (Options): Describe nocopyreloc.
702 2001-10-03 Alan Modra <amodra@bigpond.net.au>
704 * configure: Regenerate.
706 2001-10-02 Alan Modra <amodra@bigpond.net.au>
708 * ldver.h (ld_program_version): Remove declaration.
709 * lexsup.c (parse_args): Move printing of copyright message..
710 * ldver.c (ldversion): .. to here.
711 Use BFD_VERSION_STRING in place of BFD_VERSION.
712 (ld_program_version): Remove.
713 * Makefile.am (Makefile): Depend on bfd/configure.in.
715 * Makefile.in: Regenerate.
717 2001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
719 * Makefile.am: Update dependencies with "make dep-am".
720 * Makefile.in: Regenerate.
722 2001-09-29 John Reiser <jreiser@BitWagon.com>
724 * ldlang.c (lang_common): Conditionally inhibit Common allocation.
725 * lexsup.c: Add --no-define-common commandline option.
726 * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
728 * ld.h: Add command_line.inhibit_common_definition.
729 * ldmain.c (main): Initialize.
730 * ld.texinfo: Document.
732 2001-09-26 Alan Modra <amodra@bigpond.net.au>
734 * ldmisc.c (USE_STDARG): Remove.
735 (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
740 * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
741 declarations. Update copyright.
743 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
745 * pe-dll.c: Remove obsoleted declaration of
746 pe_get_data_import_dll_name.
747 (pe_create_import_fixup): Fix thinko.
749 * ld.texinfo(enable-auto-import): Clarify the explanation.
751 2001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
753 * pe-dll.c (pe_create_import_fixup): Revert previous patch.
754 * emultemp/pe.em (pe_data_import_dll): Move definition outside of
755 DLL_SUPPORT controlled code.
757 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
759 * emultempl/pe.em(pe_data_import_dll): Make static.
760 (pe_get_data_import_dll_name): New accessor function.
761 * pe-dll.c(pe_create_import_fixup): call
762 pe_get_data_import_dll_name() from pe.em, instead of
763 directly accessing pe_data_import_dll variable from pe.em.
765 2001-09-18 Bruno Haible <haible@clisp.cons.org>
767 * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
768 (def_file_add_directive): Use ISSPACE instead of isspace.
769 (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
770 isdigit/isxdigit/isalpha/isalnum.
771 * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
772 (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
773 * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
774 (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
776 * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
777 (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
779 * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
780 (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
781 * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
782 (ctor_prio): Use ISDIGIT instead of isdigit.
783 * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
784 (ldfile_open_file_search): Use ISALPHA instead of isalpha.
785 (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
787 * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
788 (stricpy): Use TOLOWER instead of isupper/tolower.
789 (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
790 * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
791 (lex_warn_invalid): Use ISPRINT instead of isprint.
792 * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
793 (main): For gettext, also set the LC_CTYPE locate facet.
794 (add_keepsyms_file): Use ISSPACE instead of isspace.
795 * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
796 (is_num, parse_args): Use ISDIGIT instead of isdigit.
797 * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
798 (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
799 * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
800 (gldppcmacos_read_file): Use ISSPACE instead of isspace.
801 * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
802 (quoteput): Use ISSPACE instead of isspace.
803 (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
806 2001-09-18 Alan Modra <amodra@bigpond.net.au>
808 * deffilep.y (def_stash_module): Constify "name" param.
810 * pe-dll.c: Replace CONST with const throughout.
811 (quick_symbol): Constify "n1", "n2", "n3" params.
812 (make_singleton_name_thunk): Constify "import" param. Make
813 "buffer_len" a size_t.
814 (make_import_fixup_entry): Constify "name", "fixup_name",
815 "dll_symname" params.
816 (pe_get16): Cast args of bfd_seek. Replace bfd_read with bfd_bread.
817 (pe_get32): Likewise.
818 (pe_implied_import_dll): Likewise.
820 * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
821 (sort_by_section_name): Likewise.
823 * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
824 (make_import_fixup): Cast printf arg, rel->address to long rather
826 (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
828 2001-09-15 Alan Modra <amodra@bigpond.net.au>
830 * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
831 defines BufferSize. Increase buffer size by one.
833 2001-09-14 Ralf Habacker <Ralf.Habacker@freenet.de>
835 * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
837 2001-09-14 Kevin Lo <kevlo@openbsd.org>
839 * configure.tgt: Add arm-openbsd target.
841 2001-09-12 H.J. Lu <hjl@gnu.org>
843 * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
845 (ALL_64_EMULATIONS): Here.
846 * Makefile.in: Regenerated.
848 2001-09-12 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
850 * emultempl/pe.em(make_import_fixup): change signature to
851 take asection as well as arelec; we need this for proper
852 error reporting. Only call pe_create_import_fixup() if
853 there is no attempt to add a constant addend to the reloc;
854 otherwise, report error condition.
855 * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
856 since final argument is a pointer to make_import_fixup().
857 Change call to cb() to match make_import_fixup() signature.
858 (make_import_fixup_mark): make buffer_len unsigned.
859 * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
861 2001-09-12 Charles Wilson <cwilson@ece.gatech.edu>
863 * ld.texinfo: add verbose documentation for auto-import
864 direct-addressing workaround, to compliment the terse
867 2001-09-12 Andrew MacLeod <amacleod@redhat.com>
869 * scripttempl/v850.sc: Add gcc_except_table sections.
871 2001-09-11 Jeffrey A Law (law@cygnus.com)
873 * emulparams/h8300helf.sh: Move stack to a much higher memory address.
874 * emulparams/h8300self.sh: Similarly.
876 2001-09-05 Danny Smith <dannysmith@users.souceforge.net>
878 * ld.texinfo (Options, --stack): Correct default value for stack
881 2001-09-05 Tom Rix <trix@redhat.com>
883 * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
885 2001-09-03 Andreas Jaeger <aj@suse.de>
887 * emultempl/beos.em: Declare prototypes for comparions functions,
890 2001-09-02 Andreas Jaeger <aj@suse.de>
892 * emultempl/aix.em: Add missing prototype.
893 * emultempl/lnk960.em: Likewise.
894 * emultempl/vanilla.em: Likewise.
895 * emultempl/armcoff.em: Likewise.
896 * emultempl/armelf_oabi.em: Likewise.
897 * emultempl/beos.em: Likewise.
898 * emultempl/gld960c.em: Likewise.
899 * emultempl/gld960.em: Likewise.
901 * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
902 for prototype declaration.
904 2001-08-31 Eric Christopher <echristo@redhat.com>
905 Jason Eckhardt <jle@redhat.com>
907 * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
909 2001-08-31 Andreas Jaeger <aj@suse.de>
911 * emultempl/pe.em: Add missing prototypes.
912 (gld_${EMULATION_NAME}_after_open): Remove extra args to
913 pe_find_data_imports.
914 (pr_sym): Add unused attribute.
916 2001-08-29 Joel Sherrill <joel@OARcorp.com>
918 * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
919 default from coff to elf.
921 2001-08-29 Jeff Law <law@redhat.com>
923 * emulparams/h8300helf.sh: Resync with h8300elf.sh. Update
925 * emulparams/h8300self.sh: Similarly.
927 2001-08-28 J"orn Rennecke <amylaar@redhat.com>
929 * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
931 (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
932 * configure.tgt (h8300-*-elf*): New case.
933 * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
934 * emulparams/h8300self.sh: New file.
935 * Makefile.in: Regenerated.
937 2001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
939 * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
942 2001-08-27 Linus Nordberg <linus@swox.com>
943 Alan Modra <amodra@bigpond.net.au>
945 * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
946 (eelf64ppc.c, eelf64lppc.c): Add make targets.
948 * Makefile.in: Regenerate.
949 * configure.tgt: Add powerpc64 support. Move pdp11, pjl, pj
950 entries to correct alphabetical position.
951 * emulparams/elf64ppc.sh: New.
952 * emulparams/elf64lppc.sh: New.
954 2001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
956 * ldmain.c (main): Declare BSIZE as static.
958 2001-08-23 Jakub Jelinek <jakub@redhat.com>
960 * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
961 into .rel.dyn resp. .rela.dyn if combreloc.
962 (get_script): If .x linker script is equal to .xn, only put it
963 once into the binary.
964 Add .xc and .xsc scripts.
965 (parse_args): Handle -z combreloc and -z nocombreloc.
966 * scripttempl/elf.sc (.rela.sbss): Fix a typo.
967 For .xc and .xsc scripts put all .rel* or .rela* input sections
968 but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
969 * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
971 Strip trailing whitespace from script.
972 Generate .xc and .xsc scripts if requested.
973 * ldmain.c (main): Initialize link_info.combreloc and
974 link_info.spare_dynamic_tags.
975 * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
976 (ld_options): Add --spare-dynamic-tags option.
977 (parse_args): Likewise.
978 * ld.texinfo: Document -z combreloc and -z nocombreloc.
979 * ldint.texinfo: Document .xc and .xsc linker scripts.
980 * NEWS: Add notes about -z combreloc and SHF_MERGE.
982 2001-08-22 H.J. Lu <hjl@gnu.org>
984 * emulparams/elf32fr30.sh: Add a newline.
986 2001-08-21 Andreas Jaeger <aj@suse.de>
988 * deffilep.y: Add missing prototypes.
989 * pe-dll.c: Likewise.
991 2001-08-20 Alan Modra <amodra@bigpond.net.au>
993 * ldlang.c (insert_pad): Fix typos in last patch.
995 * ldlang.c: When traversing lang_statement_union_type lists,
996 consistently use "header.next" rather than "next".
997 * mpw-eppcmac.c: Likewise.
998 * emultempl/beos.em: Likewise.
999 * emultempl/hppaelf.em: Likewise.
1000 * emultempl/pe.em: Likewise.
1001 * ldlang.h (union lang_statement_union): Remove "next" field.
1003 * ldlang.c (insert_pad): Use offsetof macro.
1004 (lang_size_sections): Always neuter padding statements.
1005 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
1007 * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
1008 passed to lang_size_sections.
1009 (pe_exe_fill_sections): Likewise.
1010 * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
1011 (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
1013 2001-08-18 Alan Modra <amodra@bigpond.net.au>
1015 * emultempl/aix.em: Formatting fixes.
1017 2001-08-18 Alan Modra <amodra@bigpond.net.au>
1019 * ldlang.c (insert_pad): Make use of an existing pad statement if
1020 available. Move code calculating alignment, adjusting section
1021 alignment power, and adjusting dot to ..
1022 (size_input_section): .. here. Remove unused relax param.
1023 (lang_size_sections): Change boolean `relax' param to boolean *.
1024 Adjust call to size_input_section. Make use of insert_pad to
1025 place pad after the assignment statement. If relaxing, zap
1027 (reset_memory_regions): Reset output_bfd section sizes too.
1028 (relax_again): Move to..
1029 (lang_process): ..here. Adjust call to lang_size_sections, and
1030 remove duplicated code.
1031 * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
1033 2001-08-17 Alan Modra <amodra@bigpond.net.au>
1035 * ld.texinfo: Document that fill values now use the four least
1037 * emulparams/elf32fr30.sh (NOP): Update.
1038 * emulparams/elf32mcore.sh: Likewise.
1039 * emulparams/elf64_s390.sh: Likewise.
1040 * emulparams/elf_i386.sh: Likewise.
1041 * emulparams/elf_i386_be.sh: Likewise.
1042 * emulparams/elf_i386_chaos.sh: Likewise.
1043 * emulparams/elf_i386_ldso.sh: Likewise.
1044 * emulparams/elf_s390.sh: Likewise.
1045 * emulparams/elf_x86_64.sh: Likewise.
1046 * emulparams/i386moss.sh: Likewise.
1047 * emulparams/i386nw.sh: Likewise.
1048 * emulparams/m68kelf.sh: Likewise.
1049 * scripttempl/elf.sc: Update NOP comment.
1050 * scripttempl/elfi370.sc: Likewise.
1051 * scripttempl/elfm68hc11.sc: Likewise.
1052 * scripttempl/elfm68hc12.sc: Likewise.
1053 * scripttempl/nw.sc: Likewise.
1055 2001-08-15 Tom Rix <trix@redhat.com>
1057 * ldgram.y (saved_script_handle): Initialize to NULL.
1058 * ldmain.c (main): Change check on saved_script_handle.
1060 2001-08-14 Alan Modra <amodra@bigpond.net.au>
1062 * emultempl/elf32.em: Formatting fixes.
1063 (output_prev_sec_find): Test for bfd_ind_section too; do so by
1064 looking at sec->owner.
1065 (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
1066 (gld${EMULATION_NAME}_place_orphan): Add a few comments. Remove
1067 unused code, and reorganize orphan section placement code.
1069 * ldlang.c (wild_doit): Rename to lang_add_section.
1070 * ldlang.h: Here too.
1071 * mpw-elfmips.c: And here.
1072 * emultempl/beos.em: And here.
1073 * emultempl/elf32.em: And here.
1074 * emultempl/hppaelf.em: And here.
1075 * emultempl/pe.em: And here.
1077 2001-08-13 Richard Henderson <rth@redhat.com>
1079 * emultempl/needrelax.em: New file.
1080 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
1081 * Makefile.am (eelf64_ia64.c): Depend on it.
1082 * Makefile.in: Rebuild.
1084 2001-08-13 Alan Modra <amodra@bigpond.net.au>
1086 * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
1087 output_section is set non-NULL.
1089 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
1090 `true' for SEC_EXCLUDE sections so that the generic code doesn't
1091 needlessly create an output_section_statement. Treat a correctly
1092 named output_section_statement with NULL bfd_section as compatible.
1094 2001-08-13 Hans-Peter Nilsson <hp@bitrange.com>
1096 * emultempl/generic.em: Support EXTRA_EM_FILE.
1097 (ld_${EMULATION_NAME}_emulation): Support emulation parameters
1098 LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
1099 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
1100 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
1101 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
1102 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
1103 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
1104 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
1105 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
1106 LDEMUL_FIND_POTENTIAL_LIBRARIES.
1108 2001-08-12 Richard Henderson <rth@redhat.com>
1110 * scripttempl/elf.sc, scripttempl/elfd30v.sc,
1111 scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
1112 scripttempl/v850.sc: Keep .jcr data.
1114 2001-08-12 H.J. Lu <hjl@gnu.org>
1115 Andrew Haley <aph@cambridge.redhat.com>
1116 Nick Clifton <nickc@redhat.com>
1118 * ldgram.y (had_script): Change name to saved_script_handle.
1119 Change type to file handle.
1120 * ld.h (had_script): Rename and retype.
1121 * ldfile.c (ldfile_open_command_file): Save the file handle
1122 used in saved_script_handle.
1123 * lexsup.c (parse_args): Do not allow -c option to alter
1124 saved_script_handle.
1125 * ldmain.c (main): Print out the linker script used if
1126 --verbose is given. Check saved_script_handle to obtain the
1127 external linker script used, or if NULL, dump the builtin
1129 * ld.texinfo: Document that --verbose now dumps the linker
1130 script used, regardless of whether it was an internal or an
1133 2001-08-10 Andreas Jaeger <aj@suse.de>
1135 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
1137 * configure: Regenerate.
1139 2001-08-09 Alan Modra <amodra@bigpond.net.au>
1141 * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
1143 * scripttempl/elf.sc: Move non-text .dynamic section before
1144 .plt/.got/.sdata* group.
1145 (OTHER_GOT_SECTIONS): Move to immediately after .got.
1146 (OTHER_SDATA_SECTIONS): Add.
1147 * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
1149 * emulparams/crislinux.sh: Likewise.
1150 * emulparams/elf32b4300.sh: Likewise.
1151 * emulparams/elf32bmip.sh: Likewise.
1152 * emulparams/elf32bmipn32.sh: Likewise.
1153 * emulparams/elf32bsmip.sh: Likewise.
1154 * emulparams/elf32btsmip.sh: Likewise.
1155 * emulparams/elf32ebmip.sh: Likewise.
1156 * emulparams/elf32elmip.sh: Likewise.
1157 * emulparams/elf32l4300.sh: Likewise.
1158 * emulparams/elf32lmip.sh: Likewise.
1159 * emulparams/elf32lsmip.sh: Likewise.
1160 * emulparams/elf32ltsmip.sh: Likewise.
1161 * emulparams/elf64bmip.sh: Likewise.
1162 * emulparams/elf64btsmip.sh: Likewise.
1163 * emulparams/elf64ltsmip.sh: Likewise.
1165 2001-08-08 Alan Modra <amodra@bigpond.net.au>
1167 * genscripts.sh: Source the emulparams script before each output
1168 script is generated so that variables like `RELOCATING' may affect
1169 variables defined in the emulparams script.
1171 2001-08-04 Alan Modra <amodra@bigpond.net.au>
1173 * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
1176 * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
1177 ie. iterate over wild_statement.section_list.
1178 (gld${EMULATION_NAME}_place_orphan): Likewise.
1180 2001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1182 * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
1183 .fini[0-4] sections used by _exit
1184 (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
1185 (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
1186 * scripttempl/elfm68hc11.sc: Likewise.
1188 2001-08-03 H.J. Lu <hjl@gnu.org>
1190 * emultempl/beos.em (init): Add the missing initialization.
1192 2001-08-03 Alan Modra <amodra@bigpond.net.au>
1194 * ld.texinfo (Input Section Basics): Clarify ordering of output
1196 * ldlang.c (callback_t): Add wildcard_list param.
1197 (walk_wild_section): Remove "section" param. Rewrite for
1198 lang_wild_statement_type change. Remove unique_section_p test.
1199 (walk_wild_file): Remove "section" param.
1200 (walk_wild): Remove "section" and "file" params.
1201 (lang_gc_wild): Likewise.
1202 (wild): Likewise. Modify for lang_wild_statement_type change.
1203 (wild_sort): Likewise. Add "sec" param.
1204 (gc_section_callback): Likewise.
1205 (output_section_callback): Likewise. Do unique_section_p test.
1206 (map_input_to_output_sections): Modify call to wild.
1207 (lang_gc_sections_1): Likewise.
1208 (print_wild_statement): Modify for lang_wild_statement_type
1210 (lang_add_wild): Replace filename, filenames_sorted param with
1211 filespec. Replace section_name, sections_sorted,
1212 exclude_filename_list with section_list.
1213 * ldlang.h (lang_add_wild): Here too.
1214 (lang_wild_statement_type): Replace section_name, sections_sorted,
1215 and exclude_filename_list with section_list.
1216 * ldgram.y (current_file): Delete.
1217 (%union): Add wildcard_list.
1218 (file_NAME_list): Set type to wildcard_list. Build a linked list
1219 rather than calling lang_add_wild for each entry.
1220 (input_section_spec_no_keep): Call lang_add_wild here instead.
1221 * ld.h (struct wildcard_list): Declare.
1222 * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
1224 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
1226 * ldmain.c (main): initialize link_info.pei386_auto_import
1227 * pe-dll.c: new tables for auto-export filtering
1228 (auto_export): change API, pass abfd for contextual filtering.
1229 Loop thru tables of excluded symbols instead of comparing
1232 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
1234 * pe-dll.c: new variable pe_dll_enable_extra_debug. New
1235 static variable current_sec (static struct sec *). Add
1236 forward declaration for add_bfd_to_link.
1237 (process_def_file): Don't export undefined symbols. Do not
1238 export symbols starting with "_imp__". Call auto_export()
1240 (pe_walk_relocs_of_symbol): New function.
1241 (generate_reloc): add optional extra debugging
1242 (pe_dll_generate_def_file): eliminate extraneous initial blank
1244 (make_one): enlarge symtab to make room for __nm__ symbols
1245 (DATA auto-import support).
1246 (make_singleton_name_thunk): New function.
1247 (make_import_fixup_mark): New function.
1248 (make_import_fixup_entry): New function.
1249 (pe_create_import_fixup): New function.
1250 (add_bfd_to_link): Specify that 'name' argument is a CONST
1252 * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
1253 declare new functions pe_walk_relocs_of_symbol and
1254 pe_create_import_fixup.
1255 * emultempl/pe.em: add new options --enable-auto-import,
1256 --disable-auto-import, and --enable-extra-pe-debug.
1257 (make_import_fixup): New function.
1258 (pe_find_data_imports): New function.
1259 (pr_sym): New function.
1260 (gld_${EMULATION_NAME}_after_open): Add optional extra pe
1261 debugging. Call pe_find_data_imports. Mark .idata as DATA, not
1264 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
1266 * ld.texinfo: add additional documentation for
1267 --export-all-symbols. Document --out-implib,
1268 --enable-auto-image-base, --disable-auto-image-base,
1269 --dll-search-prefix, --enable-auto-import, and
1270 --disable-auto-import.
1271 * ldint.texinfo: Add detailed documentation on auto-import
1274 2001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
1276 * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
1279 2001-07-24 Alan Modra <amodra@bigpond.net.au>
1281 * Makefile.am: Update dependencies with "make dep-am".
1282 * Makefile.in: Regenerate
1284 2001-07-23 Alan Modra <amodra@bigpond.net.au>
1286 * ldcref.c (check_section_sym_xref): New function.
1287 (check_nocrossrefs): Call it.
1288 (check_nocrossref): Interate over h->refs here instead of..
1289 (check_refs): ..here. Pass in the symbol name, section, and bfd
1290 rather than hash_entry pointers.
1291 (struct check_refs_info): Keep symbol name rather than hash entry.
1293 (check_reloc_refs): Tweak for above changes in check_refs_info.
1294 Only report references to section syms when symname is NULL to
1295 prevent duplicate messages for the same reloc.
1297 2001-07-19 Nick Clifton <nickc@cambridge.redhat.com>
1299 * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
1300 available. Do not print NULL trees.
1301 (exp_print_token): Print unknown tokens with values > 126 as
1302 decimal values not ASCII characters.
1304 * ldlang.c (lang_leave_overlay): If a region is specified assign
1305 it to all sections inside the overlay unless they have been
1306 assigned to the own, non-default, memory region.
1308 * README: Add header for consistency with other README files.
1310 2001-07-14 H.J. Lu <hjl@gnu.org>
1312 * emultempl/elf32.em (output_prev_sec_find): Never return
1313 bfd_abs_section_ptr, bfd_com_section_ptr nor
1314 bfd_und_section_ptr.
1316 2001-07-14 Nick Clifton <nickc@cambridge.redhat.com>
1318 * Makefile.am (em32relf.c): Change dependency from generic.em to
1320 * Makefile.in: Regenerate.
1322 2001-07-14 matthew green <mrg@eterna.com.au>
1324 * configure.tgt (i386-*-netbsdelf*): New target.
1325 (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
1327 2001-07-13 Jakub Jelinek <jakub@redhat.com>
1329 * emultempl/elf32.em (output_prev_sec_find): New.
1330 (place_orphan): Use it.
1332 2001-07-11 H.J. Lu <hjl@gnu.org>
1334 * ldmain.c (main): Fix typos in the last change.
1336 2001-07-11 Jakub Jelinek <jakub@redhat.com>
1338 * ldmain.c (main): Disallow -F and -f without -shared.
1340 2001-07-11 Nick Clifton <nickc@cambridge.redhat.com>
1342 * emultempl/pe.em (after_open): Check for the output_bfd not
1343 having any coff_data structure allocated to it.
1345 2001-07-09 David O'Brien <obrien@FreeBSD.org>
1347 * emultempl/elf32.em: Do not assuming that contents of the buffer
1348 returned from basename function will remain unchanged accross other
1351 2001-07-03 H.J. Lu <hjl@gnu.org>
1353 * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
1354 2001-07-03. It creates dynamic entries even for static binaries.
1356 2001-07-03 Jakub Jelinek <jakub@redhat.com>
1358 * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
1359 (DYNAMIC): Use it to reserve few dynamic entries for
1362 2001-06-27 Alan Modra <amodra@bigpond.net.au>
1364 * emulparams/hppa64linux.sh: New file.
1365 * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
1366 * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
1367 (ehppa64linux.c): Add rule to make it.
1369 * Makefile.in: Regenerate.
1371 2001-06-21 Hans-Peter Nilsson <hp@axis.com>
1373 * ld.texinfo (Options, -r): Mention restrictions when using
1374 different object formats.
1376 2001-06-19 Hans-Peter Nilsson <hp@axis.com>
1378 * ldlang.c (lang_check): Emit fatal error if relocatable link
1379 between different object flavours with relocations in input.
1381 2001-06-19 H.J. Lu <hjl@gnu.org>
1383 * ld.texinfo (-E, --export-dynamic): Mention --version-script.
1384 (--version-script): Mention the language support.
1386 2001-06-19 H.J. Lu <hjl@gnu.org>
1388 * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
1390 2001-06-18 H.J. Lu <hjl@gnu.org>
1392 * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
1393 (diststuff): Add $(MANS).
1394 * Makefile.in: Regenerated.
1398 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
1400 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
1401 Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
1402 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
1403 * ld.h (args_type): Remove member export_dynamic. All users
1404 changed to use struct bfd_link_info member.
1406 * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
1407 $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
1408 * Makefile.in: Regenerate.
1410 2001-06-18 H.J. Lu <hjl@gnu.org>
1412 * ldlang.c (init_os): Add the newline to the einfo call.
1413 (lang_check): Likewise.
1414 (lang_do_version_exports_section): Likewise.
1416 2001-06-15 H.J. Lu <hjl@gnu.org>
1418 * lexsup.c (parse_args); Save optind to report unrecognized
1421 2001-06-15 Hans-Peter Nilsson <hp@axis.com>
1423 * ldlang.c (lang_check): Emit fatal error if relocatable link
1424 between different object flavours.
1426 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
1427 Set new link_info member export_dynamic.
1428 * ldmain.c (main): Initialize new link_info member export_dynamic.
1430 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
1432 * ldlang.c (walk_wild): Only call walk_wild_file if
1433 lookup_name returns something.
1434 (lookup_name): If load_symbols fails, return NULL.
1435 (load_symbols): Change to a boolean function.
1436 (open_input_bfds): If load_symbols fails then do not make the
1439 2001-06-08 Alan Modra <amodra@bigpond.net.au>
1441 * ldlang.c (record_bfd_errors): Remove.
1443 * emultempl/aix.em: Fix copyright dates.
1445 2001-06-07 Andreas Jaeger <aj@suse.de>
1447 * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
1448 (TEXT_START_ADDR): Likewise.
1450 2001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
1452 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
1454 2001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1456 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
1458 2001-05-31 H.J. Lu <hjl@gnu.org>
1460 * ldlang.c (open_input_bfds): Don't change the bfd error
1461 handler whilst loading symbols.
1463 2001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
1465 * configure.tgt: Remove i370-mvs architecture, it is not currently
1468 2001-05-25 H.J. Lu <hjl@gnu.org>
1470 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
1471 like emulparams/aixppc.sh.
1473 2001-05-25 H.J. Lu <hjl@gnu.org>
1475 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
1476 setting of output_filename after bfd_scan_arch.
1477 * emultempl/pe.em: Likewise.
1479 2001-05-25 H.J. Lu <hjl@gnu.org>
1481 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
1482 like emulparams/aixppc.sh.
1484 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
1485 instead of ${srcdir}/emultempl/stringify.sed.
1487 2001-05-25 Timothy Wall <twall@oculustech.com>
1489 * emulparams/elf64_aix.sh: Change settings to match IBM linker
1492 2001-05-25 Alan Modra <amodra@one.net.au>
1494 * configure.host: Replace linuxoldld with linux*oldld.
1495 * configure.tgt: Likewise.
1497 2001-05-24 H.J. Lu <hjl@gnu.org>
1499 * emultempl/stringify.sed: Removed again.
1501 2001-05-24 H.J. Lu <hjl@gnu.org>
1503 * emultempl/aix.em (OUTPUT_ARCH): Defined.
1504 (gld${EMULATION_NAME}_before_parse): Initialize
1505 ldfile_output_architecture, ldfile_output_machine and
1506 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
1507 * emultempl/beos.em: Likewise.
1508 * emultempl/elf32.em: Likewise.
1509 * emultempl/linux.em: Likewise.
1510 * emultempl/mipsecoff.em: Likewise.
1511 * emultempl/pe.em: Likewise.
1512 * emultempl/sunos.em: Likewise.
1514 2001-05-24 Tom Rix <trix@redhat.com>
1516 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
1517 udate import file format.
1518 (change_symbol_mode) New, same
1519 (is_syscall) New, same
1520 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
1521 * emulparams/aixppc64.sh : same
1522 * emulparams/aixrs6.sh : same
1523 * emulparams/ppcmacos.sh : same
1524 * emultempl/aix.em : use strtoull to parse options
1525 * Makefile.am : add eaixppc64 emulation for xcoff64
1526 * Makefile.in : same
1527 * configure.tgt : same
1529 * scripttempl/aix.sc : default text section offset to 0x10000000
1530 default data section offset to 0x20000000
1531 add .sv3264 and .sv64 pseudo sections
1532 loader and debug sections use the currect section offset.
1534 * emultempl/aix.em : Add xcoff64 support
1535 Add -binitfini support
1536 (gld${EMULATION_NAME}_before_parse) -binitfini
1537 (gld${EMULATION_NAME}_parse_args) same
1538 (gld${EMULATION_NAME}_before_allocation) format change for special
1541 * emulparams/aixppc64.sh : New file for xcoff64 support
1543 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
1545 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
1546 variable to avoid non-portable shell construct.
1548 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1550 * ldmain.c (get_emulation): Add -mips5 command line argument.
1552 2001-05-22 Alexandre Oliva <aoliva@redhat.com>
1554 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
1555 (ELF_INTERPRETER_NAME): Define it.
1556 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
1558 * configure.tgt (targ_emul, targ_extra_emuls)
1559 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
1560 as primary, elf_i386 as extra.
1561 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
1562 (eelf_i386_ldso.c): New rule.
1563 * Makefile.in: Rebuilt.
1565 2001-05-22 Nick Clifton <nickc@redhat.com>
1567 * lexsup.c (ld_options): Allow -I to be an alias for
1568 --dynamic-linker. This is for Solaris compatability.
1569 * ld.texinfo: Document that -I can be used.
1572 2001-05-16 Alan Modra <amodra@one.net.au>
1574 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
1575 whether an input section is the first one assigned to an output
1577 Assorted formatting fixes.
1579 2001-05-14 DJ Delorie <dj@delorie.com>
1581 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
1582 * Makefile.in: Ditto.
1584 2001-05-11 Jakub Jelinek <jakub@redhat.com>
1586 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
1587 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
1589 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
1591 2001-05-11 Jakub Jelinek <jakub@redhat.com>
1593 * ldlang.c (lang_process): Call bfd_merge_sections.
1595 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1597 * ldgram.y: Fix typo.
1599 2001-05-03 H.J. Lu <hjl@gnu.org>
1601 * emultempl/elf32.em: Include "libiberty.h".
1602 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
1603 basename of the bfd filename.
1604 (gld${EMULATION_NAME}_stat_needed): Likewise.
1605 (gld${EMULATION_NAME}_try_needed): Likewise.
1606 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
1608 2001-05-02 H.J. Lu <hjl@gnu.org>
1610 * emultempl/pe.em: Include <ctype.h>.
1612 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
1614 * emulparams/elf32openrisc.sh: New file.
1616 * Makefile.am: Add OpenRISC target.
1617 * Makefile.in: Regenerated.
1619 * configure.tgt: Add openrisc-*-* mapping.
1621 2001-05-02 Nick Clifton <nickc@redhat.com>
1623 * emultempl/aix.em: Replace buystring with xstrdup.
1624 * emultempl/beos.em: Replace buystring with xstrdup.
1626 2001-05-02 H.J. Lu <hjl@gnu.org>
1628 * ldfile.c: Include "libiberty.h".
1629 * ldlex.l: Likewise.
1631 * ldmisc.c (buystring): Removed.
1632 * ldmisc.h: Likewise.
1634 * ldfile.c: Replace buystring with xstrdup.
1635 * ldlang.c: Likewise.
1636 * ldlex.l: Likewise.
1637 * ldmain.c: Likewise.
1638 * ldmisc.c: Likewise.
1639 * lexsup.c: Likewise.
1640 * mpw-eppcmac.c: Likewise.
1642 2001-04-30 Andreas Jaeger <aj@suse.de>
1644 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
1646 2001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
1648 * ldlang.c (load_symbols): Give emulation a chance
1649 to process unrecognized file before fatal error is
1650 reported, not after.
1652 2001-04-27 Sean McNeil <sean@mcneil.com>
1654 * configure.tgt: Add arm-vxworks target.
1655 * scripttempl/armcoff.sc: Support .text or .data as a section name
1659 2001-04-13 J.T. Conklin <jtc@redback.com>
1661 * ld.texinfo: Document --fatal-warnings.
1664 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
1665 warnings have been turned into errors.
1666 * lexsup.c (OPTION_WARN_FATAL): Define.
1667 (ld_options): Entry for --fatal-warnings.
1668 (parse_args): Handle OPTION_WARN_FATAL.
1669 * ld.h (ld_config_type): Add fatal_warnings field.
1671 2001-04-13 Jakub Jelinek <jakub@redhat.com>
1673 * ldmain.c (main): Default to discard_sec_merge.
1674 * lexsup.c (OPTION_DISCARD_NONE): Define.
1675 (ld_options): Add --discard-none.
1676 (parse_args): Handle OPTION_DISCARD_NONE.
1677 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
1678 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
1679 all its input sections match.
1681 2001-04-05 Steven J. Hill <sjhill@cotw.com>
1683 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
1684 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
1685 (eelf32ltsmip.c): New target.
1686 (eelf64btsmip.c): Likewise.
1687 (eelf64ltsmip.c): Likewise.
1688 * Makefile.in: Regenerated.
1690 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
1692 (mips*-*-linux-gnu*): Likewise.
1694 * emulparams/elf32ltsmip.sh: New. Traditional little endian
1696 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
1698 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
1701 2001-04-05 Hans-Peter Nilsson <hp@axis.com>
1703 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
1704 correct value of __Stext here.
1705 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
1708 * emulparams/crislinux.sh: Remove FIXME.
1710 2001-04-02 Alan Modra <alan@linuxcare.com.au>
1712 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
1713 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
1715 2001-03-27 Hans-Peter Nilsson <hp@axis.com>
1717 * configure.tgt (cris-*-*): Change default emulation to criself.
1718 (cris-*-*aout*): New rule.
1720 2001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
1722 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
1723 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
1725 2001-03-26 Andreas Jaeger <aj@suse.de>
1727 * ld.texinfo (Overview): Fix syntax in texi code.
1729 2001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1731 * ld.texinfo: Put @c man indications to generate the ld man page.
1732 When generating man, define all the variables. Define SEEALSO
1733 and SYNOPSIS. Re-organize some lines to avoid the cross references.
1734 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
1735 (ld.1): Generate from ld.texinfo.
1736 * Makefile.in: Regenerate.
1738 2001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
1740 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
1741 and '-fdata-sections'. Set the VMA of STABS sections to zero.
1743 2001-03-17 Ulrich Drepper <drepper@redhat.com>
1745 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
1746 is an absolute path look only for this file and not along the path.
1748 2001-03-17 Ulrich Drepper <drepper@redhat.com>
1750 * emultempl/elf32.em (OPTION_GROUP): New macro.
1751 Add new option Bgroup to longopts.
1752 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
1753 (gld*_list_options): Add -Bgroup and -z defs.
1754 * ld.1: Document -Bgroup and -z defs.
1755 * ld.texinfo: Likewise.
1757 2001-03-07 Michael Meissner <meissner@redhat.com>
1759 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
1760 with sections created by -fdata-sections.
1761 (.dynbss,.bss): Ditto.
1763 2001-03-05 Alan Modra <alan@linuxcare.com.au>
1765 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
1766 after_allocation_default, not gld..._before_allocation.
1768 2001-02-27 Alan Modra <alan@linuxcare.com.au>
1770 * configure.in (BFD_VERSION): New.
1771 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
1772 * configure: Regenerate.
1773 * Makefile.am: Run "make dep-am"
1774 * Makefile.in: Regenerate.
1776 2001-02-26 Timothy Wall <twall@cygnus.com>
1778 * emulparams/elf64_aix.sh: Add additional read-only sections;
1779 uncomment lines which are now required.
1781 2001-02-26 H.J. Lu <hjl@gnu.org>
1783 * ldlang.c (open_input_bfds): Set the bfd error handler so
1784 that problems can be caught whilst loading symbols.
1785 (record_bfd_errors): New function: Report BFD errors and mark
1786 the executable output as being invalid.
1788 2001-02-22 Timothy Wall <twall@cygnus.com>
1790 * configure.host: Add configuration for ia64-*-aix*.
1791 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
1792 Add dependencies for eelf64_aix.c.
1793 * Makefile.in: Regenerate.
1794 * configure.tgt: Add ia64-*-aix* mapping.
1795 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
1796 * testsuite/ld-bootstrap/bootstrap.exp: Exclude ia64 flavor from
1799 2001-02-20 H.J. Lu <hjl@gnu.org>
1801 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
1802 false if we found the file.
1804 2001-02-18 David O'Brien <obrien@FreeBSD.org>
1806 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
1807 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
1809 2001-02-18 lars brinkhoff <lars@nocrew.org>
1811 * Makefile.am: Add PDP-11 target.
1812 * configure.tgt: Likewise.
1813 * emulparams/pdp11.sh: New file.
1815 2001-02-17 David O'Brien <obrien@FreeBSD.org>
1817 * configure.host: Add a generic FreeBSD configuration entry such that
1818 all [modern] FreeBSD systems on all platforms will look the same.
1820 2001-02-14 H.J. Lu <hjl@gnu.org>
1822 * configure.tgt: Remove mention of earmelf_linux26.
1824 2001-02-13 Richard Henderson <rth@redhat.com>
1826 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
1828 2001-02-13 H.J. Lu <hjl@gnu.org>
1830 * ldexp.h (node_type): Add etree_provided.
1831 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
1832 type to etree_provided if defined by PROVIDE. Allow updating
1834 (exp_print_tree): Handle etree_provided.
1835 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
1838 2001-02-09 David Mosberger <davidm@hpl.hp.com>
1840 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
1841 .IA_64.unwind.* pattern to unwind table section and
1842 .IA_64.unwind_info* pattern to unwind info section.
1844 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
1846 * Makefile.am: Add linux target for S/390.
1847 * Makefile.in: Likewise.
1848 * configure.host: Likewise.
1849 * configure.tgt: Likewise.
1850 * emulparams/elf64_s390.sh: New file.
1851 * emulparams/elf_s390.sh: New file.
1853 2001-02-09 Jakub Jelinek <jakub@redhat.com>
1855 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
1857 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
1859 2001-02-06 Philip Blundell <philb@gnu.org>
1861 * Makefile.am: Remove mention of earmelf_linux26.
1862 * Makefile.in: Regenerate.
1864 2001-02-04 Philip Blundell <philb@gnu.org>
1866 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
1867 * emulparams/armelf_linux26.sh: Delete.
1868 * configure.tgt: Remove mention of armelf_linux26 emulation.
1870 2001-02-01 Nick Clifton <nickc@redhat.com>
1872 * ld.1: Replace occurances of -oformat with --oformat.
1874 2001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
1876 * ldlang.c (lang_leave_overlay): Don't set lma_region when
1877 load_base is specified.
1879 2001-01-24 Hans-Peter Nilsson <hp@axis.com>
1881 * emultempl/elf32.em: Correct spelling in comments and listed
1884 2001-01-23 Alan Modra <alan@linuxcare.com.au>
1886 * ldlang.c (lang_leave_overlay): Only set lma_region from the
1887 default for the first section of a group of overlay sections.
1889 2001-01-22 Alan Modra <alan@linuxcare.com.au>
1891 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
1892 * Makefile.in: Regenerate.
1893 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
1894 Check for null tool_dir.
1896 2001-01-16 Jim Wilson <wilson@redhat.com>
1898 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
1899 and IA_64.unwind.info.
1901 2001-01-16 H.J. Lu <hjl@gnu.org>
1903 * ldlang.c (lang_check): Merge the private data only if the
1904 input file has contents.
1906 2001-01-14 Alan Modra <alan@linuxcare.com.au>
1908 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
1910 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
1911 enabling search for libmilli. On a relocatable link, make .text
1913 (LDEMUL_AFTER_PARSE): Define.
1914 (hppaelf_finish): Correct spelling of relocatable in comments.
1916 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
1917 rummage through the script for sections on the unique list.
1918 Correct length of strncmp for ".note".
1919 (gld${EMULATION_NAME}_check_needed): Rearrange function.
1921 * ldlang.c (unique_section_list): New var.
1922 (unique_section_p): New function.
1923 (walk_wild_section): Don't match sections on unique_section_list.
1924 (lang_add_unique): New function.
1925 Correct spelling of relocatable in comments.
1927 * ldlang.h (struct unique_sections): Declare.
1928 (unique_section_list): Declare.
1929 (unique_section_p): Declare.
1930 (lang_add_unique): Declare.
1932 * lexsup.c (ld_options): Allow --unique to take an optional arg.
1933 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
1935 * ld.texinfo (--unique): Update.
1937 2001-01-13 Nick Clifton <nickc@redhat.com>
1939 * lexsup.c (parse_args): Remove spurious white space.
1941 2001-01-12 Nick Clifton <nickc@redhat.com>
1943 * lexsup.c (parse_args): Update copyright date.
1945 2001-01-12 Philip Blundell <pb@futuretv.com>
1947 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
1949 2001-01-10 Kazu Hirata <kazu@hxi.com>
1951 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
1952 * scripttempl/h8300h.sc: Fix formatting.
1953 * scripttempl/h8300s.sc: Likewise.
1954 * scripttempl/h8500.sc: Likewise.
1955 * scripttempl/h8500b.sc: Likewise.
1956 * scripttempl/h8500c.sc: Likewise.
1957 * scripttempl/h8500m.sc: Likewise.
1958 * scripttempl/h8500s.sc: Likewise.
1960 2000-01-07 David O'Brien <obrien@BSDi.com>
1962 * emultempl/elf32.em: Only perform Linux ld hints processing when
1965 2001-01-07 Philip Blundell <philb@gnu.org>
1967 * ld.texinfo (Bug Reporting): Update email address for reports.
1969 2000-12-31 Nick Clifton <nickc@redhat.com>
1971 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
1972 options by checking for a return value of '?' not -1.
1974 2000-12-28 Nick Clifton <nickc@redhat.com>
1976 * lexsup.c (struct ld_option): Add new enum value:
1978 (ld_options[]): Change -omagic, -output and -oformat options
1979 to be EXACTLY_TWO_DASHES.
1980 (OUTPUT_COUNT): Use ARRAY_SIZE.
1981 (parse_args): Change parameter 'argc' to unsigned.
1982 Place EXACTLY_TWO_DASHES options into new really_longopts
1984 If getopt_long_only fails, try calling getopt_long using the
1985 really_longopts array.
1986 (help): Print a double dash for both EXACTLY_TWO_DASHES and
1989 * ldlex.h: Fix prototype of parse_args.
1991 * ld.texinfo: Document that long options starting with 'o'
1992 must be preceeded by two dashes. Change example of a single
1993 dashed long option from -oformat to -trace-symbol.
1995 2000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1997 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
1998 (longopts[]): New --no-default-excludes option.
1999 (gld_${EMULATION_NAME}_list_options): Document.
2000 (gld_${EMULATION_NAME}_parse_args): Handle.
2002 2000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2004 * ldlang.c (new_stat): Revert the last beautification with "innocent"
2005 whitespace, it breaks the K&R C preprocessor.
2007 2000-12-11 DJ Delorie <dj@redhat.com>
2009 * ld.texinfo: Add notes about --whole-archive and gcc.
2011 2000-11-18 Fred Fish <fnf@be.com>
2013 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
2014 (ld_options): Entry for --allow-shlib-undefined.
2015 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
2016 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
2018 * ld.texinfo: Document new command line switch.
2020 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
2022 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
2023 .fixup is actually read/write.
2024 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
2025 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
2026 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
2028 2000-12-11 Jan Hubicka <jh@suse.cz>
2030 * NEWS: Add note about x86_64 architecture.
2032 2000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
2034 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
2035 Set DWARF2 sections to a VMA of zero.
2037 2000-12-01 Joel Sherrill <joel@OARcorp.com>
2039 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
2041 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
2042 (sparc*-*-rtems*): Switched from a.out to ELF.
2044 2000-11-30 Jan Hubicka <jh@suse.cz>
2046 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
2047 (eelf_x86_64.c): New.
2048 * Makefile.in: Regenerate.
2049 * configure.tgt: Add support for x86_64-*-linux-gnu*.
2050 * emulparams/elf_x86_64.sh: New.
2052 2000-11-30 Hans-Peter Nilsson <hp@axis.com>
2054 * emulparams/crislinux.sh (ENTRY): Change back to _start.
2055 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
2057 * scripttempl/crisaout.sc: Change all RELOCATING not related to
2058 merging non-a.out sections into CONSTRUCTING.
2060 2000-11-28 Nick Clifton <nickc@redhat.com>
2062 * ld.1 (COPYING): Mention that the GNU Free Documentation
2063 License is present in the sources, but not the output, and
2064 also available from the GNU website.
2065 (GNU Free Documentation License): Comment out this section.
2067 2000-11-28 David O'Brien <obrien@dragon.nuxi.com>
2069 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
2072 2000-11-25 David O'Brien <obrien@FreeBSD.org>
2074 * ld.1: Remove old date so it does not give the impression the manpage
2077 2000-11-24 Nick Clifton <nickc@redhat.com>
2079 * configure.tgt (xscale-coff): Add target.
2080 (xscale-elf): Add target.
2082 2000-11-24 Fred Fish <fnf@be.com>
2084 * ldmain.c (main): Remove redundant init of config.make_executable
2087 2000-11-15 Richard Henderson <rth@redhat.com>
2089 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
2091 2000-11-14 Kazu Hirata <kazu@hxi.com>
2093 * scripttempl/h8300.sc: Fix formatting.
2094 * scripttempl/h8300h.sc: Likewise.
2095 * scripttempl/h8300s.sc: Likewise.
2097 2000-11-14 Denis Chertykov <denisc@overta.ru>
2099 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
2101 2000-11-09 Philip Blundell <pb@futuretv.com>
2103 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
2104 around orphan sections whose names can be represented in C.
2106 2000-11-07 Jim Wilson <wilson@redhat.com>
2108 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
2109 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
2111 2000-11-06 Nick Clifton <nickc@redhat.com>
2113 * ld.texinfo: Add GNU Free Documentation License.
2114 * ldint.texinfo: Add GNU Free Documentation License.
2115 * ld.1: Add GNU Free Documentation License.
2117 2000-11-05 Alan Modra <alan@linuxcare.com.au>
2119 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
2120 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
2122 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
2123 Move 2000-11-02 Makefile.in changes to this file.
2124 * Makefile.in: Regenerate.
2126 2000-11-03 Nick Clifton <nickc@redhat.com>
2128 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
2129 constructors and destructors.
2130 * scripttempl/h8300h.sc: Ditto.
2131 * scripttempl/h8300s.sc: Ditto.
2132 * scripttempl/h8500.sc: Ditto.
2133 * scripttempl/h8500b.sc: Ditto.
2134 * scripttempl/h8500c.sc: Ditto.
2135 * scripttempl/h8500m.sc: Ditto.
2136 * scripttempl/h8500s.sc: Ditto.
2137 * scripttempl/v850.sc: Ditto.
2138 * scripttempl/w65.sc: Ditto.
2139 * scripttempl/z8000.sc: Ditto.
2141 2000-11-02 Per Lundberg <plundis@chaosdev.org>
2143 * Makefile.in (e_i386_chaos.c): New rule.
2144 (ALL_EMULATIONS): Added e_i386_chaos.o.
2145 * emulparams/elf_i386_chaos.sh: New file.
2146 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
2148 2000-10-20 Jakub Jelinek <jakub@redhat.com>
2150 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
2151 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
2152 Fix sed invocation, so that it coped with '/' in Solaris 64bit
2153 library path suffix.
2154 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
2156 2000-10-18 Hans-Peter Nilsson <hp@axis.com>
2158 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
2159 for consecutive sections.
2161 2000-10-17 Chandrakala Chavva <cchavva@redhat.com>
2163 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
2165 * ld.texinfo: Added notes about this new option.
2167 2000-10-16 Nick Clifton <nickc@redhat.com>
2169 * emultempl/pe.em (_after_open): Add tests of return values from
2170 bfd functions. Emit appropriate error messages if necessary.
2172 2000-10-13 Nick Clifton <nickc@redhat.com>
2174 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
2175 local variables - they are not used, but leave in the call to
2176 bfd_canonicalize_symtab.
2177 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
2178 pe_dll_search_prefix.
2180 2000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
2182 * emultempl/pe.em (pe_dll_search_prefix): New variable,
2183 (longopts): New --dll-search-prefix option.
2184 (gld_${EMULATION_NAME}_list_options): Document.
2185 (gld_${EMULATION_NAME}_parse_args): Handle.
2186 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
2187 dynamically, search for a dll named '<prefix><basename>.dll'
2188 in preference to 'lib<basename>.dll' if --dll-search-prefix
2191 2000-10-12 Alan Modra <alan@linuxcare.com.au>
2193 * ldlang.c (section_already_linked): Set kept_section instead of
2196 2000-10-10 Kazu Hirata <kazu@hxi.com>
2198 * deffile.h: Fix formatting.
2199 * lexsup.c: Likewise.
2202 2000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2204 * pe-dll.c (make_one): Do not generate code thunk for DATA
2206 (process_def_file): deduce DATA flag for auto-export sumbols.
2208 2000-10-09 Kazu Hirata <kazu@hxi.com>
2210 * ld.h: Fix formatting.
2211 * ldcref.c: Likewise.
2212 * ldctor.h: Likewise.
2213 * ldemul.c: Likewise.
2214 * ldemul.h: Likewise.
2215 * ldexp.c: Likewise.
2216 * ldexp.h: Likewise.
2217 * ldfile.c: Likewise.
2218 * ldfile.h: Likewise.
2219 * ldlang.c: Likewise.
2220 * ldlang.h: Likewise.
2221 * ldmain.c: Likewise.
2222 * pe-dll.c: Likewise.
2224 * pe-dll.c: Revert some formatting fixes.
2226 2000-10-08 Kazu Hirata <kazu@hxi.com>
2228 * pe-dll.c: Fix formatting.
2230 2000-10-05 Kazu Hirata <kazu@hxi.com>
2232 * ldlang.c: Fix formatting.
2234 2000-10-03 DJ Delorie <dj@redhat.com>
2236 * pe-dll.c (fill_edata): initialize entire block
2237 (make_one): fill in correct section.
2239 2000-10-03 Kazu Hirata <kazu@hxi.com>
2241 * ldexp.c: Fix formatting.
2243 2000-10-02 DJ Delorie <dj@redhat.com>
2245 * emultempl/pe.em (gld_*_after_open): detect case where there two
2246 import libraries for same dll; rename one to ensure proper link
2249 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
2251 (generate_edata): fix typo
2253 2000-09-29 Hans-Peter Nilsson <hp@axis.com>
2255 * scripttempl/crisaout.sc (ENTRY): Now __start.
2256 (.text): Add default setting for __start.
2257 Remove CONSTRUCTORS handling.
2258 (/DISCARD/): Add .gnu.warning.*.
2259 * emulparams/crislinux.sh (ENTRY): Now __start.
2260 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
2261 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
2262 (ENTRY): Now __start.
2263 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
2264 (EXECUTABLE_SYMBOLS): Add default setting for __start.
2266 2000-09-29 Kazu Hirata <kazu@hxi.com>
2268 * deffile.h: Fix formatting.
2270 * ldcref.c: Likewise.
2271 * ldctor.c: Likewise.
2272 * ldctor.h: Likewise.
2273 * ldemul.c: Likewise.
2274 * ldemul.h: Likewise.
2275 * ldexp.c: Likewise.
2276 * ldexp.h: Likewise.
2277 * ldfile.c: Likewise.
2278 * ldfile.h: Likewise.
2279 * ldlang.c: Likewise.
2280 * ldlang.h: Likewise.
2281 * lexsup.c: Likewise.
2283 * pe-dll.c: Likewise.
2285 2000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2287 * pe-dll.c (process_def_file): Uninitialized data wasn't
2288 exported with --export-all-symbols switch.
2290 2000-09-28 DJ Delorie <dj@redhat.com>
2292 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
2293 noname work properly.
2295 2000-09-28 Alan Modra <alan@linuxcare.com.au>
2297 * ld.texinfo (HPPA ELF32): New section.
2299 * emultempl/hppaelf.em (group_size): New.
2300 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
2301 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
2302 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
2303 options to prevent abbreviations matching.
2304 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
2305 (PARSE_AND_LIST_ARGS_CASES): Handle it.
2307 2000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2309 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
2310 on the m68*-*-elf target. Make it support COFF input objects.
2312 2000-09-21 Kazu Hirata <kazu@hxi.com>
2314 * ldmain.c: Fix formatting.
2315 * ldmisc.c: Likewise.
2316 * ldver.c: Likewise.
2317 * ldwrite.c: Likewise.
2319 2000-09-21 Alan Modra <alan@linuxcare.com.au>
2321 * ldwrite.c (clone_section): Silence gcc warnings.
2323 2000-09-20 Alan Modra <alan@linuxcare.com.au>
2325 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
2326 out of memory failure.
2328 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
2329 (clone_section): Handle out of memory failures. Rename var to
2330 avoid c++ reserved word.
2332 2000-09-18 Alan Modra <alan@linuxcare.com.au>
2334 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
2335 stub_name param to stub_sec_name.
2336 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
2338 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2340 * emultempl/m68kelf.em: New file.
2341 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
2342 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
2343 * Makefile.in: Regenerate.
2345 2000-09-15 Alan Modra <alan@linuxcare.com.au>
2347 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
2350 2000-09-13 Nick Clifton <nickc@redhat.com>
2352 * ldmain.c (multiple_definition): Disable relaxation if
2353 multiple symbol definitions are encountered - otherwise the
2354 linker could abort with an assertion failure.
2356 2000-09-10 Nick Clifton <nickc@redhat.com>
2358 * mri.c: Fix formatting.
2360 2000-09-07 H.J. Lu <hjl@gnu.org>
2362 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
2363 * configure: Rebuild.
2365 2000-09-07 H.J. Lu <hjl@gnu.org>
2367 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
2368 * Makefile.in: Rebuild.
2370 2000-09-07 Alan Modra <alan@linuxcare.com.au>
2372 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
2373 broken list handling. Create __start_SECNAME and __stop_SECNAME
2374 when no place-holder. Add some comments. Test both SEC_CODE and
2375 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
2376 Handle case where no output section statement created.
2378 2000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
2380 * configure.tgt (sh-*-linux*): Added.
2381 * Makefile.am: Added eshelf_linux and eshlelf_linux.
2382 * Makefile.in: Rebuilt.
2383 * emulparams/shelf_linux.sh: New file.
2384 * emulparams/shlelf_linux.sh: New file.
2386 2000-09-06 Alan Modra <alan@linuxcare.com.au>
2388 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
2389 try shuffling sections when the orphan happens to be the place
2390 holder. Keep count of unique section names generated so we speed
2391 the search for a new name.
2393 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
2395 * configure: Rebuilt with new libtool.m4.
2397 2000-09-05 Nick Clifton <nickc@redhat.com>
2399 * Makefile.in: Regenerate.
2400 * aclocal.m4: Regenerate.
2401 * configure: Regenerate.
2402 * config.in: Regenerate.
2403 * po/ld.pot: Regenerate.
2405 * ldint.texinfo: Remove CVS revision marker - it foils local
2408 * emultempl/ticoff.em: Remove extraneous comma.
2410 2000-09-05 Alan Modra <alan@linuxcare.com.au>
2412 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
2413 to stub section flags.
2414 (hppa_for_each_input_file_wrapper): New.
2415 (hppa_lang_for_each_input_file): New.
2416 (lang_for_each_input_file): Define to call above.
2417 (multi_subspace): New.
2418 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
2419 (PARSE_AND_LIST_PROLOGUE): Define.
2420 (PARSE_AND_LIST_LONGOPTS): Define.
2421 (PARSE_AND_LIST_OPTIONS): Define.
2422 (PARSE_AND_LIST_ARGS_CASES): Define.
2423 (hppaelf_finish): Call elf32_hppa_set_gp.
2424 (hppaelf_set_output_arch): Remove.
2425 (LDEMUL_SET_OUTPUT_ARCH): Remove.
2427 * emulparams/hppalinux.sh (ELFSIZE): Define.
2429 (OTHER_READONLY_SECTIONS): Define.
2431 (GENERATE_SHLIB_SCRIPT): Define.
2433 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
2434 to const throughout. Change `void *' to `PTR' throughout.
2435 (lang_memory_default): Function is local to file, add `static'.
2437 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
2438 (ehppalinux.c): Likewise.
2439 (earmelf.c): Likewise.
2440 (earmelf_linux.c): Likewise.
2441 (earmelf_linux26.c): Likewise.
2442 * Makefile.in: Regenerate.
2444 * ld.h (ld_config_type): Add unique_orphan_sections.
2445 * lexsup.c (OPTION_UNIQUE): Define.
2446 (ld_options): Add "--unique".
2447 (parse_args): Handle it.
2448 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
2449 search for an existing output section if unique_orphan_sections is
2450 set. Make use of bfd_get_unique_section_name rather than
2451 duplicating code here.
2452 * ld.texinfo: Describe --unique.
2454 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
2455 optional arg to split-by-file.
2456 (parse_args): Handle them.
2457 * ld.texinfo: Update description of these options.
2458 * ldwrite.c (clone_section): Pass in the section name. Replace
2459 local code with bfd_get_unique_section_name.
2460 (split_sections): Tidy code and comments. Use a list traversal
2461 more appropriate to the list construction. Handle cooked section
2462 sizes. Split when split_by_reloc reached rather than exceeded.
2463 Track section size and split when split_by_file reached. Fix
2464 link_order_tail (even though it's not used).
2465 (ldwrite): Modify condition for calling split_sections to suit
2466 changed split_by_reloc and split_by_file.
2467 * ldmain.c (main): Init config.split_by_reloc and
2468 config.split_by_file to -1.
2469 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
2470 Change split_by_file to bfd_size_type.
2472 2000-09-02 Nick Clifton <nickc@redhat.com>
2474 * configure.in: Increase version number to 2.10.91.
2475 * NEWS: Mention new ability to support removal of duplicate DWARF2
2477 * configure: Regenerate.
2478 * aclocal.m4: Regenerate.
2479 * config.in: Regenerate.
2481 2000-09-02 Daniel Berlin <dberlin@redhat.com>
2483 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
2485 * scripttempl/elf32avr.sc: Ditto.
2486 * scripttempl/elfd10v.sc: Ditto.
2487 * scripttempl/elfd30v.sc: Ditto.
2488 * scripttempl/elfi370.sc: Ditto.
2489 * scripttempl/elfm68hc11.sc: Ditto.
2490 * scripttempl/elfm68hc12.sc: Ditto.
2491 * scripttempl/elfi386beos.sc: Ditto.
2492 * scripttempl/v850.sc: Ditto.
2494 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
2496 * acinclude.m4: Include libtool and gettext macros from the
2498 * aclocal.m4, configure: Rebuilt.
2500 2000-08-25 Nick Clifton <nickc@redhat.com>
2502 * ldlang.c (open_output): When choosing the target for a
2503 particular endianness, do nothing if the target is not
2506 2000-08-25 H.J. Lu <hjl@gnu.org>
2508 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
2509 check -rpath nor LD_RUN_PATH for cross link.
2510 * ld.texinfo: Document the change.
2512 2000-08-24 Hans-Peter Nilsson <hp@axis.com>
2514 * NEWS: Mention support for CRIS.
2516 2000-08-23 H.J. Lu <hjl@gnu.org>
2518 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
2519 the current runpath list from bfd_elf_get_runpath_list ()
2522 2000-08-22 H.J. Lu <hjl@gnu.org>
2524 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
2525 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
2526 LD_LIBRARY_PATH for native linker. Display the needed DSO if
2527 trace_file_tries is non-zero.
2528 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
2529 if trace_file_tries is non-zero.
2531 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
2534 2000-08-14 Jason Eckhardt <jle@cygnus.com>
2536 * NEWS: Mention i860 support.
2538 2000-08-14 Andreas Schwab <schwab@suse.de>
2540 * scripttempl/elf.sc: Fix last change to use correct comment
2543 2000-08-10 Geoff Keating <geoffk@cygnus.com>
2545 * scripttempl/elf.sc: Add a comment giving the correspondence
2546 between sections, per-datum sections, and linkonce sections. Make
2547 the comment true even for .bss, .sdata, .sdata2, .sbss, and
2550 2000-08-10 Jason Eckhardt <jle@cygnus.com>
2552 * emulparams/elf32_i860.sh: New file.
2553 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
2554 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
2555 (eelf32_i860.c): New rule.
2556 * Makefile.in: Regenerate.
2558 2000-08-10 Nick Clifton <nickc@cygnus.com>
2560 * emulparams/mipspe.sh (ENTRY): Add definition.
2562 2000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
2564 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
2567 2000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2569 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
2570 the final size of .bss section.
2571 * scripttempl/elfm68hc12.sc: Likewise.
2573 2000-08-04 Alan Modra <alan@linuxcare.com.au>
2575 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
2576 gld${EMULATION_NAME}_parse_args for consistency. Combine
2577 lastoptind and prevoptind vars, and keep track of last optind.
2578 (gld_${EMULATION_NAME}_list_options): Rename to
2579 gld${EMULATION_NAME}_list_options.
2581 2000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
2583 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
2584 (i586-sco-sysv5uw7.1.0).
2586 2000-07-27 H.J. Lu <hjl@gnu.org>
2588 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
2589 (PARSE_AND_LIST_PROLOGUE): New.
2590 (PARSE_AND_LIST_LONGOPTS): Likewise.
2591 (PARSE_AND_LIST_OPTIONS): Likewise.
2592 (PARSE_AND_LIST_ARGS_CASES): Likewise.
2593 (PARSE_AND_LIST_EPILOGUE): Likewise.
2595 2000-07-28 Alan Modra <alan@linuxcare.com.au>
2597 * emultempl/armelf.em: Elide functions common to elf32.em,
2598 ie. most of the file.
2599 (arm_elf_after_open): New. Do arm specific things then call
2600 gld${EMULATION_NAME}_after_open.
2601 (arm_elf_before_allocation): New. Call
2602 gld${EMULATION_NAME}_before_allocation then do arm specifics.
2603 (PARSE_AND_LIST_PROLOGUE): Define.
2604 (PARSE_AND_LIST_SHORTOPTS): Define.
2605 (PARSE_AND_LIST_LONGOPTS): Define.
2606 (PARSE_AND_LIST_OPTIONS): Define.
2607 (PARSE_AND_LIST_ARGS_CASES): Define.
2608 (LDEMUL_AFTER_OPEN): Define.
2609 (LDEMUL_BEFORE_ALLOCATION): Define.
2610 (LDEMUL_BEFORE_PARSE): Define.
2611 (LDEMUL_FINISH): Define.
2613 * emultempl/hppaelf.em: Similarly zap most of this file.
2614 (hppaelf_add_stub_section): Prototype.
2615 (hppaelf_layaout_sections_again): Prototype.
2616 (hook_in_stub): Prototype.
2617 (LDEMUL_SET_OUTPUT_ARCH): Define.
2618 (LDEMUL_FINISH): Define.
2619 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
2621 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
2622 (EXTRA_EM_FILE): New.
2623 * emulparams/armelf_linux.sh: Likewise.
2624 * emulparams/armelf_linux26.sh: Likewise.
2625 * emulparams/hppalinux.sh: Likewise.
2626 * emulparams/hppaelf.sh: Likewise.
2629 * emultempl/elf32.em: Fix formatting.
2630 (EXTRA_EM_FILE): Source it.
2631 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
2632 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
2633 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
2634 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
2635 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
2636 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
2637 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
2638 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
2639 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
2640 allow functions in this file to be overridden.
2641 (PARSE_AND_LIST_SHORTOPTS): Handle it.
2643 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
2645 * emultempl/elf32.em: Reorganize file.
2647 2000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
2649 * emulparams/elf64alpha.sh: Implement "-taso" emulation
2650 specific option to fit 64-bit executable in the lower
2651 31-bit address range. This is done by changing start
2652 address of .interp (the very first section of executable)
2653 and then setting EF_ALPHA_32BIT elf header flag.
2655 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2657 * emultempl/m68kcoff.em: New file.
2658 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
2659 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
2661 * Makefile.in: Regenerate.
2663 2000-07-20 H.J. Lu <hjl@gnu.org>
2665 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
2666 and "disable-new-dtags" to stop getopt from treating -d/-e as
2667 abbreviations for these options.
2669 2000-07-20 H.J. Lu <hjl@gnu.org>
2671 * ld.texinfo: Add documentation for --disable-new-dtags and
2674 * ldmain.c (main): Initialize link_info.new_dtags to false.
2676 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
2677 --disable-new-dtags and --enable-new-dtags.
2678 (gld_${EMULATION_NAME}_list_options): Likewise.
2680 2000-07-05 Kenneth Block <krblock@computer.org>
2682 * lexsup.c: Add optional style to demangle switch
2683 * ld.texinfo: Document optional style to demangle switch.
2685 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
2687 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
2689 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
2690 Regenerate dependencies.
2691 * Makefile.in: Rebuild.
2692 * configure.tgt (cris-*-*): New target.
2693 * emulparams/crisaout.sh, emulparams/criself.sh,
2694 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
2695 * po/POTFILES.in, po/ld.pot: Regenerate.
2697 2000-07-20 H.J. Lu <hjl@gnu.org>
2699 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
2700 Print out ignored -z options.
2702 2000-07-19 H.J. Lu <hjl@gnu.org>
2704 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
2705 (PARSE_AND_LIST_PROLOGUE): New.
2706 (PARSE_AND_LIST_LONGOPTS): Likewise.
2707 (PARSE_AND_LIST_OPTIONS): Likewise.
2708 (PARSE_AND_LIST_ARGS_CASES): Likewise.
2710 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
2712 * lexsup.c (ld_options): Comment out 'z'.
2713 (parse_args): Likewise.
2715 * emultempl/elf32.em: Include "elf/common.h".
2716 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
2718 (gld_${EMULATION_NAME}_list_options): Likewise.
2720 * ld.texinfo: Add documentation for the recognized -z options.
2722 2000-07-19 H.J. Lu <hjl@gnu.org>
2724 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
2725 bfd_elf_set_dt_needed_soname ().
2727 2000-07-18 DJ Delorie <dj@cygnus.com>
2729 * pe-dll.c (pe_dll_id_target): check object target name also
2731 2000-07-18 Hans-Peter Nilsson <hp@axis.com>
2733 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
2734 ${INIT_END} if relocating.
2735 (.fini): Likewise ${FINI_START} and ${FINI_END}.
2737 2000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
2739 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
2740 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
2741 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
2742 errors introduced by the old dynamic lib search order.
2744 2000-07-17 DJ Delorie <dj@cygnus.com>
2746 * pe-dll.c (process_def_file): auto-export data items also
2747 (pe_process_import_defs): also see if _imp_ form needed
2749 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
2751 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
2752 for dll import libraries
2754 2000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
2756 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
2757 gcc 2.95.2 and later.
2759 2000-07-11 Kazu Hirata <kazu@hxi.com>
2761 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
2764 2000-07-10 Alan Modra <alan@linuxcare.com.au>
2766 * ldemul.h (struct lang_input_statement_struct): Remove forward
2768 (struct search_dirs): Likewise.
2769 * ldfile.h (struct lang_input_statement_struct): Likewise.
2770 Protect file from multiple inclusion.
2771 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
2772 declaration from macro to file scope.
2774 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
2775 * ldgram.y: Likewise here.
2776 * ldlang.c: And here.
2777 * ldmain.c: And here.
2778 * mpw-elfmips.c: And here.
2779 * mpw-eppcmac.c: And here.
2780 * emultempl/aix.em: And here.
2781 * emultempl/armcoff.em: And here.
2782 * emultempl/armelf.em: And here.
2783 * emultempl/armelf_oabi.em: And here.
2784 * emultempl/beos.em: And here.
2785 * emultempl/elf32.em: And here.
2786 * emultempl/hppaelf.em: And here.
2787 * emultempl/linux.em: And here.
2788 * emultempl/lnk960.em: And here.
2789 * emultempl/pe.em: And here.
2790 * emultempl/sunos.em: And here.
2791 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
2792 * mpw-idtmips.c: Ditto.
2793 * emultempl/generic.em: Ditto.
2794 * emultempl/gld960.em: Ditto.
2795 * emultempl/gld960c.em: Ditto.
2796 * emultempl/mipsecoff.em: Ditto.
2797 * emultempl/ticoff.em: Ditto.
2798 * emultempl/vanilla.em: Ditto.
2800 * pe-dll.c: Include ldfile.h
2801 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
2803 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
2804 arguments to bfd_elf32_size_dynamic_sections call.
2805 (gldelf32ebmip_place_orphan): Add missing arguments to
2806 lang_leave_output_section_statement call.
2808 2000-07-10 H.J. Lu <hjl@gnu.org>
2810 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
2812 (strhash): Likewise.
2813 (compute_dll_image_base): Likewise.
2814 (pe_undef_found_sym): Likewise.
2815 (pe_undef_cdecl_match): Likewise.
2816 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
2817 argument "arch" with ATTRIBUTE_UNUSED.
2819 2000-07-10 Alan Modra <alan@linuxcare.com.au>
2821 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
2823 From Ryan Bradetich <rbradetich@uswest.net>
2824 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
2826 2000-07-09 Alan Modra <alan@linuxcare.com.au>
2828 Changes to create multiple linker stubs, positioned immediately
2829 before the section where they are required.
2830 * emultempl/hppaelf.em: Include elf32-hppa.h.
2831 (stub_sec, file_chain): Delete.
2832 (hppaelf_create_output_section_statements): Don't make a stub
2834 (hook_stub_info): New struct.
2835 (hook_in_stub): New function.
2836 (hppaelf_add_stub_section): New function.
2837 (hppaelf_finish): Do nothing for relocateable links. Modify the
2838 call to elf32_hppa_size_stubs. Move code for updating section
2840 (hppaelf_layaout_sections_again): ..to here, a new function.
2842 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
2843 broken list handling. Pass in a pointer to the list.
2844 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
2846 (hppaelf_before_parse): Prototype.
2847 (hppaelf_set_output_arch): Prototype.
2848 (hppaelf_create_output_section_statements): Prototype.
2849 (hppaelf_delete_padding_statements): Prototype.
2850 (hppaelf_finish): Prototype.
2853 * emultempl/hppaelf.em: Include ctype.h.
2854 (struct orphan_save): New.
2855 (gld${EMULATION_NAME}_place_orphan): New.
2856 (output_rel_find): New.
2857 (hppaelf_get_script): Update from elf32.em.
2858 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
2859 Change emulation_name field to "${EMULATION_NAME}". Add
2860 gld${EMULATION_NAME}_place_orphan.
2862 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
2863 ehppalinux.o, sort it. Regenerate dependencies.
2864 (ehppalinux.c): Depend on hppaelf.em
2865 * Makefile.in: Regenerate.
2867 * configure.tgt: targ_emul=hppalinux for hppa*linux
2869 * emulparams/hppalinux.sh: New.
2870 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
2872 2000-07-08 Alan Modra <alan@linuxcare.com.au>
2874 * lexsup.c (parse_args): Copy section name.
2876 2000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
2878 * emultempl/pe.em: institute the following search order for
2879 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
2880 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
2881 static lib (libfoo.a) if none of the above are found.
2883 2000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
2885 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
2886 (longopts): New --{enable,disable}-auto-image-base options.
2887 (gld_${EMULATION_NAME}_list_options): Document.
2888 (gld_${EMULATION_NAME}_parse): Handle.
2889 (strhash): New static function.
2890 (compute_dll_image_base): New static function.
2891 (gld_${EMULATION_NAME}_set_symbols): Use.
2893 2000-07-05 DJ Delorie <dj@redhat.com>
2897 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
2899 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
2900 * emulparams/elf32btsmip.sh: New file.
2901 * Makefile.am: Add traditional mips target.
2902 * Makefile.in: Rebuild.
2904 2000-07-01 H.J. Lu <hjl@gnu.org>
2906 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
2907 automake to use YLWRAP.
2908 * Makefile.in: Rebuild.
2910 2000-07-01 Alan Modra <alan@linuxcare.com.au>
2912 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
2913 (CLEANFILES): Add DEPA.
2914 * Makefile.in: Regenerate.
2916 2000-06-30 Timothy Wall <twall@ppc>
2918 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
2919 the page in the upper octet of the address.
2921 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
2923 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
2925 2000-06-24 Alan Modra <alan@linuxcare.com.au>
2927 * NEWS: arm-elf does --gc-sections too.
2929 2000-06-22 Alan Modra <alan@linuxcare.com.au>
2931 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
2933 * Makefile.in: Regenerate.
2935 2000-06-21 H.J. Lu <hjl@gnu.org>
2937 * Makefile.am: Rebuild dependency.
2938 * Makefile.in: Rebuild.
2940 2000-06-20 H.J. Lu <hjl@gnu.org>
2942 * Makefile.am: Rebuild dependency.
2943 * Makefile.in: Rebuild.
2945 2000-06-20 Timothy Wall <twall@cygnus.com>
2947 * scripttempl/tic54xcoff.sc: New.
2948 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
2949 * gen-doc.texi: Add flag for TI COFF.
2950 * ld.texinfo: Add documentation for TI COFF handling switches.
2951 * emultempl/ticoff.em: New. TI COFF handling.
2952 * configure.tgt: Add tic54x target.
2953 * Makefile.am: Add tic54x target.
2954 * Makefile.in: Ditto.
2956 2000-06-20 Alan Modra <alan@linuxcare.com.au>
2958 * ldmain.c (set_scripts_dir): Correct pointer comparison when
2959 checking for backslashes.
2961 2000-06-19 Alan Modra <alan@linuxcare.com.au>
2963 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
2965 2000-06-18 Alan Modra <alan@linuxcare.com.au>
2967 * NEWS: Update list of targets supporting --gc-sections.
2969 * scripttempl/elf.sc: KEEP .eh_frame contents.
2970 * scripttempl/elfd30v.sc: Same here.
2972 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
2974 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
2976 * Makefile.in: Rebuild.
2977 * configure.tgt: Recognize m68hc12 and m68hc11.
2978 * scripttempl/elfm68hc12.sc: New file.
2979 * emulparams/m68hc12elfb: New emulation.
2980 * emulparams/m68hc12elf: New emulation.
2981 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
2982 (includes a memory.x script to define the ROM and RAM banks).
2983 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
2984 New configuration files for support of Motorola 68hc11
2986 2000-06-15 Alan Modra <alan@linuxcare.com.au>
2988 * ldmain.c (main): Only change SEC_READONLY for final link.
2990 2000-06-13 H.J. Lu <hjl@gnu.org>
2992 * configure: Regenerate.
2994 2000-06-08 David O'Brien <obrien@FreeBSD.org>
2996 * configure.in (VERSION): Update to show this is the CVS mainline.
2998 2000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3000 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
3001 input objects to be ECOFF.
3002 (check_sections): einfo takes %B, not %P, to print a BFD name.
3004 2000-06-05 Michael Matz <matz@ifh.de>
3006 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
3009 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
3011 2000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
3013 * emulparams/avr1200.sh (STACK): Define as 0.
3014 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
3015 * emulparams/avr4433.sh (STACK): Likewise.
3016 * emulparams/avr44x4.sh (STACK): Likewise.
3017 * emulparams/avr85xx.sh (STACK): Likewise.
3018 * emulparams/avrmega103.sh (STACK): Likewise.
3019 * emulparams/avrmega161.sh (STACK): Likewise.
3020 * emulparams/avrmega603.sh (STACK): Likewise.
3021 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
3022 (__stack): Define from ${STACK} for main().
3024 2000-05-26 Alan Modra <alan@linuxcare.com.au>
3026 * Makefile.am: Update dependencies with "make dep-am"
3027 * Makefile.in: Regenerate.
3029 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
3031 * ldmain.c: Include filenames.h.
3032 (set_scripts_dir): Support backslashes in program name.
3034 2000-05-22 Igor Shevlyakov <igor@windriver.com>
3036 * ldmain.c (main): When deciding if ".text" section should be
3037 read-only, don't forget to reset SEC_READONLY because it
3038 could be already set.
3040 2000-05-22 Thomas de Lellis <tdel@windriver.com>
3042 * ld.1: Add documentation for new command line option:
3043 --section-start <sectionname>=<sectionorg>
3044 This is a generic version of -Ttext etc. which accepts
3045 any section name as a parameter instead of just text/data/
3047 * ld.texinfo: More docs.
3049 * lexsup.c: (parse_args): Recognize new command line option.
3050 (ld_options): Add new option.
3052 2000-05-18 H.J. Lu <hjl@gnu.org>
3054 * lexsup.c (parse_args): `i' == `r', not `q'.
3056 2000-05-18 Jeffrey A Law (law@cygnus.com)
3058 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
3060 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
3061 Rick Gorton <gorton@scrugs.lkg.dec.com>
3063 Add support for '-q' == '--emit-relocs' switch.
3064 * ldmain.c (main): Default to false.
3065 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
3066 * NEWS: Describe the emitrelocations switch.
3067 * ld.texinfo: Describe the emitrelocations switch.
3069 2000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
3071 * emultempl/pe.em (_open_dynamic_archive): New function: Search
3072 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
3073 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
3076 2000-05-15 David O'Brien <obrien@FreeBSD.org>
3078 * lexsup.c (parse_args): Update the year in the copyright notice.
3080 2000-05-13 Alan Modra <alan@linuxcare.com.au>
3082 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
3083 Replace defines with those from intl/libgettext.h to quieten gcc
3086 2000-05-10 H.J. Lu <hjl@gnu.org>
3088 * ldlang.c (open_input_bfds): Don't load the same file within
3089 a group again if the whole archive has been loaded already.
3091 2000-05-03 Alan Modra <alan@linuxcare.com.au>
3093 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
3094 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
3097 2000-05-01 Jim Wilson <wilson@cygnus.com>
3099 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
3101 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
3102 host "ia64-*-linux-gnu*".
3104 2000-04-29 Andreas Jaeger <aj@suse.de>
3106 * ld.h: Correctly check GCC version.
3108 2000-04-25 Jeffrey A Law (law@cygnus.com)
3110 * Makefile.am: Add PA64 support. Add missing dependencies for
3112 * Makefile.in: Rebuilt.
3113 * configure.tgt: Add PA64 support (currently disabled).
3115 2000-04-25 Alan Modra <alan@linuxcare.com.au>
3117 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
3118 (output_rel_find): New function.
3119 (hold_section, hold_use): Delete.
3120 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
3121 hold_interp): Make local to place_orphan.
3122 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
3123 rather than place_section to find possible previous use of orphan.
3124 Similarly find the place-holder output sections. Use returned
3125 value from lang_enter_output_section_statement rather than calling
3126 lang_output_section_statement_lookup.
3127 * emultempl/armelf.em: Same here.
3128 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
3130 * ldlang.c (lang_enter_output_section_statement): Return output
3132 * ldlang.h (lang_enter_output_section_statement): Change
3135 * ldlang.h (lang_output_section_statement): Export it.
3136 * ldlang.c (lang_output_section_statement): Ditto.
3138 2000-04-24 Nick Clifton <nickc@cygnus.com>
3140 * ld.texinfo (Output Section Data): Add note that section data
3141 commands cannot appear outside of section directives.
3143 2000-04-2 Matthew Green <mrg@cygnus.com>
3145 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
3147 2000-04-21 Richard Henderson <rth@cygnus.com>
3148 David Mosberger <davidm@hpl.hp.com>
3150 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
3151 (eelf64_ia64.c): New rule.
3152 * Makefile.in: Rebuild.
3153 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
3154 * emulparams/elf64_ia64.sh: New file.
3156 2000-04-21 Richard Henderson <rth@cygnus.com>
3158 * scripttempl/elfd30v.sc: Place .gcc_except_table.
3160 2000-04-19 Alan Modra <alan@linuxcare.com.au>
3162 * dep-in.sed: Match space at start of file name, not at end.
3164 2000-04-18 H.J. Lu <hjl@gnu.org>
3166 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
3167 lang_leave_output_section_statement () after calling
3168 lang_enter_output_section_statement ().
3169 * emultempl/armelf.em: Likewise.
3171 2000-04-18 Alan Modra <alan@linuxcare.com.au>
3173 * emultempl/elf32.em (struct orphan_save): Add section field.
3174 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
3175 better order, and place first orphan section as we did before the
3176 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
3177 Don't call make_bfd_section here, let wild_doit do the job for us.
3178 Don't build a statement list when we'll only throw it away.
3179 * emultempl/armelf.em: Ditto.
3180 * emultempl/pe.em: Similarly.
3182 2000-04-14 Geoff Keating <geoffk@cygnus.com>
3184 * scripttempl/elfppc.sc: Remove.
3185 * emulparams/elf32ppc.sh: Use elf.sc.
3186 * emulparams/elf32lppc.sh: Use elf.sc.
3187 * emulparams/elf32ppclinux.sh: Use elf.sc.
3188 * emulparams/elf32ppcsim.sh: New file.
3189 * emulparams/elf32lppcsim.sh: New file.
3190 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
3191 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
3192 * Makefile.in: Regenerate.
3193 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
3195 2000-04-14 Alan Modra <alan@linuxcare.com.au>
3197 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
3198 ~SEC_ALLOC sections too. Init start address of debug sections.
3199 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
3200 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
3201 Also set all relocateable section start addresses.
3203 2000-04-13 Geoff Keating <geoffk@cygnus.com>
3205 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
3206 Add new BSS_PLT variable for when .plt need not be contained in
3207 the file. Move _etext so that it is also after .fini, and provide
3208 both etext and _etext with a leading underscore. Mark the start
3211 2000-04-12 Alan Modra <alan@linuxcare.com.au>
3213 * emultempl/elf32.em (struct orphan_save): New.
3214 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
3215 hold_interp): Make them struct orphan_save.
3216 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
3217 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
3218 the end of the relevant section list. Also add associated section
3219 statements to the end of any previous orphan statements.
3220 * emultempl/armelf.em: Similarly.
3221 * emultempl/pe.em: Similarly.
3223 2000-04-11 Alan Modra <alan@linuxcare.com.au>
3225 * ld.texinfo (Simple Example): Remove extraneous paragraph.
3227 2000-04-07 Andrew Cagney <cagney@b1.cygnus.com>
3229 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
3230 --enable-build-warnings option.
3231 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
3232 * Makefile.in, configure: Re-generate.
3234 2000-04-04 Alan Modra <alan@linuxcare.com.au>
3236 * po/ld.pot: Regenerate.
3238 * lexsup.c (help): Restore translated part of bug string.
3240 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
3241 (DEP): Quote when passing vars to sub-make. Add warning message
3243 (DEP1): Rewrite for "gcc -MM".
3244 (CLEANFILES): Add DEP2.
3245 Update dependencies.
3246 * Makefile.in: Regenerate.
3248 2000-04-03 Alan Modra <alan@linuxcare.com.au>
3250 * ld.h: #include "bin-bugs.h"
3251 * lexsup.c (help): Use REPORT_BUGS_TO.
3253 2000-03-27 Denis Chertykov <denisc@overta.ru>
3255 * configure.tgt (avr-*-*): New target support.
3256 * Makefile.am: Likewise.
3257 * scripttempl/elf32avr.sc: New script file.
3258 * emulparams/avr1200.sh: New file.
3259 * emulparams/avr23xx.sh: New file.
3260 * emulparams/avr4433.sh New file.
3261 * emulparams/avr44x4.sh New file.
3262 * emulparams/avr85xx.sh New file.
3263 * emulparams/avrmega103.sh New file.
3264 * emulparams/avrmega161.sh New file.
3265 * emulparams/avrmega603.sh New file.
3266 * Makefile.in: Regenerate.
3268 2000-03-09 Andreas Jaeger <aj@suse.de>
3270 * Makefile.am (check-DEJAGNU): Also unset LANG.
3271 * Makefile.in: Rebuild.
3273 2000-03-06 Ian Lance Taylor <ian@zembu.com>
3275 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
3278 2000-03-02 H.J. Lu <hjl@gnu.org>
3280 * emulparams/elf32mcore.sh: Include "getopt.h".
3282 2000-03-01 Ian Lance Taylor <ian@zembu.com>
3284 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
3286 2000-03-01 H.J. Lu <hjl@gnu.org>
3288 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
3289 * emulparams/shpe.sh: Likewise.
3291 2000-03-01 Nick Clifton <nickc@cygnus.com>
3293 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
3294 to unused parameters.
3296 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
3297 functions only used by DLL code.
3298 (_place_orphan): Initialise 'dollar'.
3300 2000-03-01 H.J. Lu <hjl@gnu.org>
3302 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
3303 indicate if the undefined symbol is a fatal error or not.
3304 Don't delete the output file if "fatal" is false.
3306 2000-02-29 H.J. Lu <hjl@gnu.org>
3308 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
3309 Set LC_COLLATE and LC_ALL to null and export them. It is for
3310 sort which expects the C locale.
3311 Add $(LIBS) to all $(HOSTING_LIBS).
3312 * Makefile.in: Rebuild.
3314 2000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
3316 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
3317 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
3318 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
3319 (ld_emulation_xfer_struct): Add missing NULL initialiser for
3320 find_potential_libraries.
3322 2000-02-28 Jim Blandy <jimb@redhat.com>
3324 * ldgram.y (exclude_name_list): Don't require a comma to separate
3325 list entries; the lexer considers commas to be valid part of a
3326 filename, so in something like `foo, bar' the comma is considered
3327 part of the first filename, `foo,'.
3328 * ld.texinfo: Update section on EXCLUDE_FILE lists.
3330 2000-02-27 Loren J. Rittle <ljrittle@acm.org>
3332 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
3333 host "i[3456]86-*-freebsdelf*".
3335 2000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
3337 * scripttempl/i386go32.sc: Move misplaced semicolons.
3339 2000-02-25 Ian Lance Taylor <ian@zembu.com>
3341 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
3342 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
3343 (eelf64hppa.c, ehppaelf.c): Remove targets.
3344 * Makefile.in: Rebuild.
3346 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
3348 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
3349 GNU/Linux/sparc, but keep the default as 32.
3351 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
3352 it default if sparcv9 or sparc64.
3354 2000-02-24 Nick Clifton <nickc@cygnus.com>
3356 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
3357 * Makefile.in: Regenerate.
3358 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
3360 * ldemul.h (ld_emulation_xfer_struct): Add new field:
3361 find_potential_libraries.
3362 * ldemul.c (ldemul_find_potential_libraries): New function.
3364 * ldfile.c (ldfile_open_file_search): Allow function to be
3366 (ldfile_open_file): Call ldemul_find_potential_libraries.
3367 * ldfile.h: Add prototype for ldfile_open_file_search.
3369 * pe-dll.c: Add support for ARM, MIPS and SH targets.
3371 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
3372 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
3374 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
3375 (gld_X_find_potential_libraries): New function. Search for
3376 libraries called "*.lib".
3378 * scripttempl/pe.sc: Add .pdata section.
3380 2000-02-23 Richard Henderson <rth@cygnus.com>
3382 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
3383 Add and use memory regions.
3385 2000-02-23 Linas Vepstas (linas@linas.org)
3387 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
3389 * Makefile.am: Add support for Linux/IBM 370.
3390 * configure.tgt: Likewise.
3392 * Makefile.in: Regenerate.
3394 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
3396 * ldlang.c (print_input_section, print_data_statement,
3397 print_reloc_statement, print_padding_statement, insert_pad,
3398 size_input_section, lang_check_section_addresses,
3399 lang_size_sections, lang_do_assignments, lang_set_startof,
3400 lang_one_common): Change `opb' to unsigned.
3401 (lang_do_assignments): Also change `size' to unsigned.
3403 2000-02-16 Richard Henderson <rth@cygnus.com>
3405 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
3407 2000-02-16 Timothy Wall <twall@cygnus.com>
3409 * mri.c (mri_draw_tree): Add default LMA region argument to call
3410 to lang_leave_output_section_statement.
3411 * ldlang.h: Update prototypes with LMA region arguments.
3412 * ldlang.c (lang_size_sections): Encapsulate region bounds
3413 checking in os_check_region call.
3414 (os_check_region): New function.
3415 (lang_output_section_statement_lookup): Initialize lma_region.
3416 (lang_leave_output_section_statement): Add LMA region argument.
3417 (lang_leave_overlay): Ditto.
3418 * ldgram.y: Handle LMA region syntax.
3419 * ld.texinfo (Output Section Description): Describe LMA region usage.
3420 * emultempl/armelf.em (gld$place_orphan): Add default value for
3421 lma region in call to lang_leave_output_section_statement.
3422 * emultempl/elf32.em (gld$place_orphan): Add default value for
3423 lma region in call to lang_leave_output_section_statement.
3424 * emultempl/pe.em (gld$place_orphan): Add default value for
3425 lma region in call to lang_leave_output_section_statement.
3428 2000-02-04 Timothy Wall <twall@redhat.com>
3430 * ldlang.c (lang_check_section_addresses): Use bytes instead of
3431 octets when calculating section end addresses.
3433 2000-02-04 Timothy Wall <twall@redhat.com>
3435 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
3437 2000-02-03 Timothy Wall <twall@redhat.com>
3439 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
3441 * ldlang.c (print_input_section, print_data_statement,
3442 print_reloc_statement, print_padding_statement): Print target
3443 address values and section sizes as bytes, not octets.
3444 (insert_pad) Calculate padding size in octets, and adjust "dot"
3446 (size_input_section) Always adjust "dot" by bytes, not octets.
3447 (lang_check_section_addresses, lang_do_assignments) Adjust
3448 "dot" by bytes, not octets. Use the larger of the directive size
3449 or octets_per_byte for the number of octets actually allocated in
3451 (lang_set_startof) Make sure STARTOF returns a target address.
3452 (lang_one_common) Record size changes in octets.
3453 (lang_abs_symbol_at_end_of) Section end symbol's value is
3454 recorded in target bytes.
3455 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
3456 to be clear about behavior when an octet is smaller than one byte.
3458 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
3460 * ldcref.c (output_cref): Don't pass message strings to printf
3464 * ldmisc.c (vfinfo): Same here.
3467 2000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
3469 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
3470 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
3471 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
3472 Add missing NULL initialisers, and comments.
3474 * testsuite/ld-srec/sr3.cc (__rethrow): New.
3476 2000-01-21 Nick Clifton <nickc@cygnus.com>
3478 * ldlang.c (lang_size_sections): Fix typo in comment.
3480 2000-01-18 H.J. Lu <hjl@gnu.org>
3482 * ldlang.c (lang_size_sections): Also update the current
3483 address of a region if the SEC_NEVER_LOAD bit is not set.
3485 2000-01-10 Philip Blundell <pb@futuretv.com>
3487 * configure.tgt (arm*-*-conix*): New target.
3489 2000-01-07 Nick Clifton <nickc@cygnus.com>
3491 * ld.texinfo (Options): Remind users to preceed linker command
3492 line switches with -Wl, (or whatever is appropriate) if it is
3493 being invoked by a comnpiler driver program.
3494 Fix description of the behaviour of the -n command line switch.
3496 2000-01-05 Catherine Moore <clm@cygnus.com>
3498 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
3500 * ld.texinfo (EXCLUDE_FILE): Update documentation.
3501 * ldgram.y (wildcard_spec): Support a list of excluded_files.
3502 (exclude_name_list): New.
3503 ldlang.c (walk_wild_section): Support list of excluded files.
3504 (print_wild_statement): Likewise.
3505 (lang_add_wild): Likewise.
3506 * ldlang.h (lang_wild_statement_type): Likewise.
3507 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
3509 2000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
3511 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
3512 (process_def_file): Use.
3513 (pe_dll_compat_implib): New variable.
3516 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
3517 pe_dll_compat_implib.
3519 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
3520 compat-implib options.
3521 (gld_${EMULATION_NAME}_list_options): List new options.
3522 (gld_${EMULATION_NAME}_parse_args): Handle.
3524 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
3527 * deffilep.y (opt_name): Allow "." in name.
3529 For older changes see ChangeLog-9899
3535 version-control: never