1 2002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
3 * emultempl/mmo.em (mmo_after_open): Don't call
4 _bfd_mmix_check_all_relocs when producing ELF output.
6 2002-02-15 Richard Henderson <rth@redhat.com>
8 * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
9 definition. Emit a unop+nop pair.
11 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
13 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
14 for presence of .MMIX.reg_contents.linker_allocated before early
17 * NEWS: Mention support for MMIX.
19 2002-02-15 Alan Modra <amodra@bigpond.net.au>
21 Support arbitrary length fill patterns.
22 * ld.texinfo (Output Section Fill): Describe fill expressions.
23 (FILL): Refer to the above.
24 * ldexp.h (etree_value_type): Add "str" field.
25 (union etree_union): Add "str" to "value" struct.
26 (exp_bigintop): Declare.
27 (exp_get_fill): Declare.
28 * ldexp.c: Include "safe-ctype.h".
29 (exp_intop): Set value.str to NULL.
30 (exp_bigintop): New function.
31 (new_rel): Pass in "str", and set new.str from it.
32 (new_rel_from_section): Set new.str to NULL.
33 (fold_name): Adjust calls to new_rel.
34 (exp_fold_tree): Likewise.
35 (exp_get_fill): New function.
36 * ldgram.y (struct big_int bigint, fill_type *fill): New.
37 (INT): Returns a "bigint". Adjust all code handling INTs.
38 (fill_opt): Returns a "fill".
39 (fill_exp): Split out of fill_opt, use for FILL.
40 * ldlang.h (struct _fill_type): New.
41 (fill_type): Move typedef to ldexp.h.
42 (lang_output_section_statement_type): "fill" is now a pointer.
43 (lang_fill_statement_type): Likewise.
44 (lang_padding_statement_type): Likewise.
45 (lang_add_fill): Now takes a "fill_type *" param.
46 (lang_leave_output_section_statement): Likewise.
47 (lang_do_assignments): Likewise.
48 (lang_size_sections): Likewise.
49 (lang_leave_overlay_section): Likewise.
50 (lang_leave_overlay): Likewise.
51 * ldlang.c: Include ldgram.h after ldexp.h.
52 (lang_output_section_statement_lookup): Adjust for fill_type change.
53 (print_fill_statement): Likewise.
54 (print_padding_statement): Likewise.
55 (insert_pad): Now takes a "fill_type *" arg.
56 (size_input_section): Likewise.
57 (lang_size_sections_1): Likewise.
58 (lang_size_sections): Likewise.
59 (lang_do_assignments): Likewise.
60 (lang_add_fill): Likewise.
61 (lang_leave_output_section_statement): Likewise.
62 (lang_leave_overlay_section): Likewise.
63 (lang_leave_overlay): Likewise.
64 Adjust all callers of the above function.
65 * ldlex.l: Include ldgram.h after ldexp.h. Allow hex numbers
66 starting with "0X" as well as "0x". Return bigint.str for hex
67 numbers starting with "0x" or "0X", zero bigint.str otherwise.
68 Always use base 16 for numbers starting with "$".
69 * ldmain.c: Include ldgram.h after ldexp.h.
70 * ldwrite.c (build_link_order): Use bfd_data_link_order in place
71 of bfd_fill_link_order.
72 * pe-dll.c: Adjust lang_do_assignments calls.
73 * emultempl/elf32.em: Likewise.
74 * emultempl/hppaelf.em: Likewise.
75 * emultempl/ppc64elf.em: Likewise.
76 * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
77 lang_add_assignment call.
78 * emultempl/pe.em: Likewise.
80 2002-02-14 Phil Edwards <pme@gcc.gnu.org>
82 * ld.texinfo (VERSION scripts): Symbol names are globbing patterns.
83 * ldgram.y (lang_new_vers_regex): Rename to lang_new_vers_pattern;
84 the pattern in question is not a regexp.
87 * ldlex.l (V_IDENTIFIER): Allow '[', ']', '-', '!', and '^' also.
89 2002-02-12 Jakub Jelinek <jakub@redhat.com>
91 * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
92 * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
93 (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
94 * ldexp.c (exp_data_seg): New variable.
95 (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
96 (fold_binary): Handle DATA_SEGMENT_ALIGN.
97 (exp_fold_tree): Handle DATA_SEGMENT_END.
98 Pass allocation_done when recursing instead of hardcoding
99 lang_allocating_phase_enum.
100 * ldexp.h (exp_data_seg): New.
101 * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
102 (lang_size_sections): New.
103 * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
104 * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
105 if COMMONPAGESIZE is defined.
106 * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
107 * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
108 * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
109 * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
110 * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
113 2002-02-11 Alan Modra <amodra@bigpond.net.au>
115 * Makefile.in: Regenerate.
117 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
119 * lexsup.c: Remove strtoul declaration.
121 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
123 * ldmain.c: Add prototype for main ().
124 * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
125 * emultempl/lnk960.em (lnk960_choose_target): Function should
128 2002-02-10 Alan Modra <amodra@bigpond.net.au>
130 * ldlang.c (entry_section): New initialised variable.
131 (lang_finish): Use it.
132 * ldlang.h (entry_section): Declare.
133 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
134 entry_section to ".opd".
136 2002-02-09 Chris Demetriou <cgd@broadcom.com>
138 * ld.texinfo (Options): Add back in -nostdlib documentation,
139 which had been inadvertently removed.
141 2002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
143 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
144 register section vma to a sane value after emitting error. Make
145 fatal conditions cause program exit when emitting message.
147 2002-02-08 Ivan Guzvinec <ivang@opencores.org>
149 * configure.tgt: Add or32-*-rtems target.
151 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
154 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
155 * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
156 in OTHER_RELOCATABLE_SECTIONS.
157 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
158 * emulparams/shelf32.sh (STACK_ADDR): Define.
159 (OTHER_RELOCATABLE_SECTIONS): Renamed to...
160 (OTHER_SECTIONS): this. Removed stack settings.
161 * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
162 (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
163 2001-03-12 DJ Delorie <dj@redhat.com>
164 * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
165 relaxing if any shmedia or mixed sections are found.
166 2001-03-07 DJ Delorie <dj@redhat.com>
167 * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
168 einfo. Gracefully decline to output to non-elf formats.
169 2001-03-06 Hans-Peter Nilsson <hpn@redhat.com>
170 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
171 Default to _end aligned to next multiple of 0x40000, plus 0x40000.
172 * emulparams/shelf32.sh: Ditto.
173 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
174 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
176 2001-01-10 Ben Elliston <bje@redhat.com>
177 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
178 non-portable shell constructs. From Hans-Peter Nilsson.
179 2001-01-09 Hans-Peter Nilsson <hpn@cygnus.com>
180 * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
181 * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
182 dependencies to the shell script include chain.
183 * Makefile.in: Regenerate.
184 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
185 * emultempl/sh64elf.em: Update and tweak comments.
186 (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
187 make a .cranges section SEC_IN_MEMORY.
188 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
189 * emultempl/sh64elf.em
190 (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
191 .cranges section found to be necessary; continue and set stored
192 section contents flags for sections with non-mixed contents.
193 Use a struct sh64_section_data container and sh64_elf_section_data
194 to store contents-type flags.
195 Remove unused update of "isec".
196 (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
197 sections marked SHF_SH5_ISA32_MIXED. Use sh64_elf_section_data to
198 access contents-type flags. Assert that the associated container
199 is initialized. Use that container, not elf_gp_size, to hold size
200 of linker-generated cranges contents.
201 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
202 * emultempl/sh64elf.em
203 (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
204 there's already a .cranges section. When section flag difference
205 is found, don't NULL-check cranges a second time. Tweak comments.
206 (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
207 merging, not max size, as size of ld-generated .cranges contents.
208 Don't set ELF section flags in output section. When checking for
209 needed .cranges descriptors, don't use a variable; compare
210 incoming ELF section flags directly to SHF_SH5_ISA32_MIXED. Tweak
212 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
213 * emultempl/sh64elf.em: New file.
214 * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
215 * Makefile.in: Regenerate.
216 * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
217 (OTHER_RELOCATING_SECTIONS): Ditto.
218 (EXTRA_EM_FILE): New, set to sh64elf if not set.
219 * emulparams/shlelf32.sh: Stub out all settings except
220 OUTPUT_FORMAT. Source shelf32.sh.
221 * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
222 OTHER_RELOCATING_SECTIONS.
223 (OTHER_RELOCATING_SECTIONS): Remove .cranges.
224 * emulparams/shlelf64.sh: Stub out all settings except
225 OUTPUT_FORMAT. Source shelf64.sh.
226 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
227 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
229 (DATA_START_SYMBOLS): Define, provide ___data.
230 (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
231 for consecutive .data section.
232 (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
233 section after .data section.
234 * emulparams/shlelf64.sh: Ditto.
235 * emulparams/shelf32.sh: Ditto.
236 (ALIGNMENT): Define to 8.
237 * emulparams/shelf32.sh: Ditto.
238 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
239 * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
240 built-in linker scripts.
241 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
242 * emulparams/shlelf64.sh: New.
243 * emulparams/shelf64.sh: New.
244 * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
246 * Makefile.am: Add support for shlelf64 and shelf64.
247 * Makefile.in: Regenerate.
248 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
249 * configure.tgt (sh64-*-elf*): Add shelf as default.
250 Add shlelf to targ_extra_emuls.
251 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
252 * emulparams/shelf32.sh: New file.
253 * emulparams/shlelf32.sh: New file.
254 * Makefile.am: Add support for shlelf32 and shelf32.
255 * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
256 * Makefile.in: Regenerate.
258 2002-02-05 Hans-Peter Nilsson <hp@axis.com>
260 * ldlang.c (lang_reset_memory_regions): Rename from
261 reset_memory_regions. Change all callers. Make public.
262 * ldlang.h (lang_reset_memory_regions): Prototype.
263 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
264 lang_reset_memory_regions before lang_size_sections.
265 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
266 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
268 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
270 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
271 arithmetic when checking for too many global registers.
273 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
275 * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
276 (ehppanbsd.c): New rule.
277 * Makefile.in: Regenerate.
278 * configure.tgt (hppa*-*-netbsd*): New target.
279 * emulparams/hppalinux.sh: Add comment to check other files
280 that source this file it is modified, and list which
282 * emulparams/hppanbsd.sh: New file.
284 2002-02-01 Geoffrey Keating <geoffk@redhat.com>
286 * scripttempl/xstormy16.sc: Don't allocate extra space for the
289 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
291 Support on-demand global register allocation from
292 R_MMIX_BASE_PLUS_OFFSET relocs.
293 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
294 mmix_set_reg_section_vma. Call
295 _bfd_mmix_finalize_linker_allocated_gregs.
296 (mmix_before_allocation): New function.
297 (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
298 (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
299 * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
300 (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
301 before .MMIX.reg_contents.
302 * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
303 (mmo_after_open): New function.
304 (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
305 * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting. Add
306 .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
308 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
310 * emulparams/or32.sh: New file.
311 * emulparams/or32elf.sh: New file.
312 * scripttempl/or32.sc: New file.
313 * configure.tgt : Add support for or32.
314 * configure: Regenerate
315 * Makefile.am: Add support for or32.
316 * Makefile.in: Regenerate.
317 * NEWS: Mention support for or32.
318 * po/ld.pot: Regenerate.
320 2002-01-29 Chris Demetriou <cgd@broadcom.com>
321 Mitch Lichtenberg <mpl@broadcom.com>
323 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
324 * emultempl/mipself.em: New file to handle MIPS ELF embedded
325 reloc creation (ld --embedded-relocs).
327 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
329 * configure: Regenerated.
331 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
333 * Makefile.am (install): Depend on install-info.
334 * Makefile.in: Regenerate.
336 2002-01-26 Christian Rose <menthos@menthos.com>
338 * ldmain.c (main): Use full sentences to ease translation.
340 2002-01-26 Nick Clifton <nickc@cambridge.redhat.com>
342 * po/fr.po: Updated version.
344 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
346 * po/es.po: Updated version.
348 2002-01-25 Andreas Jaeger <aj@suse.de>
350 * ldlex.l (yy_input): Correct error check.
352 2002-01-25 Alan Modra <amodra@bigpond.net.au>
354 * ldmisc.c (demangle): Put back dots when string not demangled.
356 2002-01-22 Richard Henderson <rth@redhat.com>
358 * emulparams/elf64alpha.sh (NOP): Use unop.
360 2002-01-21 Andreas Jaeger <aj@suse.de>
362 * ldlex.l: Use fread instead of read.
364 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
366 * configure.tgt (ia64-*-netbsd*): New target.
368 2002-01-21 H.J. Lu <hjl@gnu.org>
370 * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
372 * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
374 2002-01-18 Andreas Jaeger <aj@suse.de>
376 * ldver.c (ldversion): Update year.
378 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
380 * po/ld.pot: Regenerate.
382 2002-01-16 Alan Modra <amodra@bigpond.net.au>
384 * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
385 * Makefile.in: Regenerate.
386 * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
387 * emultempl/ppc64elf.em: New file.
389 2002-01-15 DJ Delorie <dj@redhat.com>
391 * scripttempl/pe.sc: Add support for constructor priorities.
393 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
395 * emulparams/avr1200.sh (DATA_START): Define as 0x60.
396 * emulparams/avr23xx.sh: Likewise.
397 * emulparams/avr4433.sh: Likewise.
398 * emulparams/avr44x4.sh: Likewise.
399 * emulparams/avr85xx.sh: Likewise.
400 * emulparams/avrmega103.sh: Likewise.
401 * emulparams/avrmega161.sh: Likewise.
402 * emulparams/avrmega603.sh: Likewise.
403 * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
405 2002-01-08 Alexandre Oliva <aoliva@redhat.com>
407 * ldlang.c (walk_wild_section): Exclude object file if enclosing
410 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
412 * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
413 (eshelf_nbsd.c): New rule.
414 (eshlelf_nbsd.c): New rule.
415 * Makefile.in: Regenerate.
416 * configure.tgt (sh*le-*-netbsdelf*): New target.
417 (sh*-*-netbsdelf*): New target.
418 * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
419 * ld/emulparams/shelf_nbsd.sh: New emulation.
420 * ld/emulparams/shlelf_nbsd.sh: New emulation.
422 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
424 * po/es.po: New file: Spanish translation.
425 * configure.in (ALL_LINGUAS): Add es.
426 * configure: Regenerate.
428 2002-01-06 John Marshall <jmarshall@acm.org>
430 * ld.texinfo: Note that --emit-relocs is currently only
433 2002-01-05 Alan Modra <amodra@bigpond.net.au>
435 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
436 of bfd_section_list_remove and bfd_section_list_insert macros.
437 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
438 * emultempl/mmo.em (mmo_place_orphan): Likewise.
440 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
442 * configure.tgt (x86_64-*-netbsd*): New target.
444 2001-12-21 Tom Rix <trix@redhat.com>
446 (gld*_create_output_section_statements): New function.
447 For -binitfini support.
448 * emultempl/aix.em (gld*_before_parse): Fix comment.
449 * emultempl/aix.em (gld*_parse_args): Fix comment.
451 2001-12-20 Jason Thorpe <thorpej@wasabisystems.com>
453 * configure.tgt (mips*-dec-netbsd*): Delete alias for
455 (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
457 * configure.tgt (arm-*-netbsdelf*): Add target.
458 (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
459 * emulparams/armelf_nbsd.sh: Added.
460 * Makefile.am: Add rules for earmelf_nbsd.
461 * Makefile.in: Regenerate.
463 2001-12-19 Andreas Jaeger <aj@suse.de>,
464 Susanne Oberhauser <froh@suse.de>
466 * configure.host: Add rules for x86_64-*linux-gnu. Change
467 s390x-linux entry to use gcc to report configuration, replace gcc
468 with $CC in s390-linux
470 2001-12-19 Andreas Jaeger <aj@suse.de>
472 * ld.texinfo (VERSION): Fix markup.
474 2001-12-18 matthew green <mrg@eterna.com.au>
476 * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
477 (m68kelfnbsd.c): New rule.
478 * Makefile.in: Regenerate.
479 * configure.tgt (m68*-hp-netbsd*): Renamed to ..
480 (m68*-*-netbsd*4k*): .. this.
481 (m68*-*-netbsdelf*): New target.
482 (m68*-*-netbsd*): Also include ELF support.
483 (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
484 * emulparams/m68kelfnbsd.sh: New emulation.
486 2001-12-18 Jakub Jelinek <jakub@redhat.com>
488 * ldgram.y (vers_node): Support anonymous version tags.
489 * ldlang.c (lang_register_vers_node): Ensure anonymous version
490 tag is not defined together with non-anonymous versions.
491 * ld.texinfo: Document it.
493 2001-12-18 Nick Clifton <nickc@cambridge.redhat.com>
495 * po/tr.po: New file: Turkish translation.
496 * configure.in (ALL_LINGUAS): Add tr.
497 * configure: Regenerate.
499 2001-12-17 Jason Thorpe <thorpej@wasabisystems.com>
501 * Makefile.am: Add rules for eelf64alpha_nbsd.
502 * Makefile.in: Regenerate.
503 * configure.tgt (alpha*-*-netbsd*): Set
504 targ_emul to elf64alpha_nbsd.
505 * emulparams/elf64alpha_nbsd.sh: Added.
507 2001-12-17 Alan Modra <amodra@bigpond.net.au>
509 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
510 section_tail when fiddling with section list.
511 (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
512 broken into separate strings to make translation easier.
513 * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
514 fiddling with section list.
515 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
517 2001-12-16 Hans-Peter Nilsson <hp@bitrange.com>
519 * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
521 2001-12-15 Alan Modra <amodra@bigpond.net.au>
523 * ldmain.c (main): Initialise link_info.eh_frame_hdr.
525 2001-12-13 Jakub Jelinek <jakub@redhat.com>
527 * emultempl/elf32.em (finish): Supply output_bfd
528 to bfd_elf*_discard_info.
529 (OPTION_EH_FRAME_HDR): Define.
530 (longopts): Add --eh-frame-hdr.
531 (parse_args): Handle it.
532 (list_options): Add --eh-frame-hdr to help.
533 * emultempl/hppaelf.em (finish): Supply output_bfd
534 to bfd_elf*_discard_info.
535 * scripttempl/elf.sc (.eh_frame_hdr): Add.
537 2001-12-13 Alan Modra <amodra@bigpond.net.au>
539 * lexsup.c (parse_args): Don't pass shortopts to second call to
540 getopt functions. Restore optind rather than decrementing before
541 second call. Remove errind as it now duplicates last_optind.
543 2001-12-11 Christopher Faylor <cgf@redhat.com>
545 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
547 2001-12-07 Geoffrey Keating <geoffk@redhat.com>
548 Richard Henderson <rth@redhat.com>
550 * Makefile.am: Add support for xstormy16.
551 * configure.tgt: Add support for xstormy16.
552 * Makefile.in: Regenerate.
553 * emulparams/elf32xstormy16.sh: New file.
554 * scripttempl/xstormy16.sc: New file.
556 2001-10-01 Christopher Faylor <cgf@cygnus.com>
558 * Makefile.in (LIB_PATH): Make configurable.
559 (GENSCRIPTS): Set LIB_PATH in environment.
560 * configure.in: Substitute LIB_PATH.
561 * configure: Regenerate.
562 * configure.tgt (*cygwin): Set LIB_PATH for cross build.
563 * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
565 2001-12-07 Nick Clifton <nickc@cambridge.redhat.com>
567 * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
568 describing the -N option so that it is easier to translate into
571 2001-12-05 Nick Clifton <nickc@cambridge.redhat.com>
573 * emultempl/pe.em (..._list_options): Replace multiple fprintf
574 statements describing a single option with a single, newline
575 escaped fprintf. This allows better translation into other
578 * ldmain.c (add_archive_element): Combine multiple strings
579 into a single string to permit better translation into other
582 2001-12-05 Tom Rix <trix@redhat.com>
584 * Makefile.am: Remove eaixppc64.
585 * Makefile.in: Regenerate.
587 2001-12-04 Tom Rix <trix@redhat.com>
589 * emultempl/aix.em (choose_target): Change default target to
590 OUTPUT_FORMAT for ppcmacos. Add braces to remove compiler
592 (gld*_read_file): Fix typo.
593 (change_symbol_mode): Add prototype.
596 * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
597 * emulparams/aixrs6.sh : Same.
598 * emulparams/ppcmacos.sh : Same.
599 * emulparams/aixppc64.sh : Delete file.
600 * emultempl/aix.em : Formatting changes.
602 2001-12-04 Hans-Peter Nilsson <hp@axis.com>
604 * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
605 (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
607 (OTHER_END_SYMBOLS): Fix formatting.
608 * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
609 (OTHER_END_SYMBOLS): Fix formatting.
611 2001-12-04 Alan Modra <amodra@bigpond.net.au>
613 * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
615 2001-12-02 Tom Rix <trix@redhat.com>
617 * configure.tgt : Remove eaixppc64 emulations.
618 * Makefile.in : Remove eaixppc64.c
619 * ldemul.c (ldemul_choose_target): New parameters argc, argv.
620 (ldemul_default_target): Same.
621 * emultempl/gld960.em (gld960_choose_target): Same.
622 * emultempl/gld960c.em (gld960_choose_target): Same.
623 * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
624 * emultempl/aix.em (is_syscall): syscall_mask now a variable.
625 * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
626 * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
627 * emultempl/aix.em (choose_target): New function. Handle emulation of
630 2001-11-27 H.J. Lu <hjl@gnu.org>
632 * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
633 * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
634 * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
635 * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
636 * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
637 * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
638 * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
639 * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
641 * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
644 (REL_SDATA): Likewise.
645 (REL_SBSS): Likewise.
646 (REL_SDATA2): Likewise.
647 (REL_SBSS2): Likewise.
648 (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
651 2001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
653 * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
655 * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
657 2001-11-22 H.J. Lu <hjl@gnu.org>
659 * Makefile.in: Regenerated with automake based on automake
662 2001-11-22 Alan Modra <amodra@bigpond.net.au>
664 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
665 (config.status): Delete rule.
666 Add extra dependencies to cover sourced emulparams files.
667 * Makefile.in: Regenerate.
669 * scripttempl/elf.sc: Order <section>, <section>.* and
670 corresponding linkonce sections as seen in input files.
671 Formatting fixes. Zero vma of all sections if not relocating.
672 (STACK): Define and insert if STACK_ADDR defined.
673 (OTHER_RELOCATING_SECTIONS): Delete.
674 (OTHER_END_SYMBOLS): Define.
675 (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
676 (OTHER_READWRITE_SECTIONS): Likewise.
677 (OTHER_GOT_SECTIONS): Likewise.
678 (OTHER_SDATA_SECTIONS): Likewise.
679 (OTHER_BSS_SECTIONS): Likewise.
680 * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
681 (OTHER_READWRITE_SECTIONS): Likewise.
682 * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
683 (OTHER_READWRITE_SECTIONS): Likewise
685 * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
686 (STACK_ADDR): Define.
687 * emulparams/armelf_oabi.sh: As for armelf.sh.
688 * emulparams/elf32mcore.sh: As for armelf.sh.
689 * emulparams/h8300elf.sh: As for armelf.sh.
690 * emulparams/mn10200.sh: As for armelf.sh.
691 * emulparams/shelf.sh: As for armelf.sh.
693 * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
694 (OTHER_END_SYMBOLS): Define.
695 * emulparams/m32relf.sh: As for elf32fr30.sh.
696 * emulparams/h8300helf.sh: As for elf32fr30.sh.
697 * emulparams/h8300self.sh: As for elf32fr30.sh.
699 * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
700 defines with RELOCATING test.
701 (OTHER_SDATA_SECTIONS): Likewise.
702 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
703 (OTHER_END_SYMBOLS): ..this.
704 * emulparams/crislinux.sh: As for criself.sh.
706 * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
708 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
709 (OTHER_SECTIONS): ..this. Zero vma if not relocating. Order
710 normal and linkonce sections as seen in input files.
711 * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
712 (TEXT_DYNAMIC): Likewise.
713 (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
714 (OTHER_SDATA_SECTIONS): Likewise.
715 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
716 * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
717 * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
718 * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
719 * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
720 (OTHER_PLT_RELOC_SECTIONS): Likewise.
721 (OTHER_READONLY_SECTIONS): Likewise. Order normal and linkonce
722 sections as seen in input files.
723 * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
724 * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
726 (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
727 (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
728 * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
729 (OTHER_SECTIONS): Instead, use this..
730 (OTHER_END_SYMBOLS): ..and this.
732 * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
733 * emulparams/elf32bsmip.sh: Likewise.
734 * emulparams/elf32btsmip.sh: Likewise.
735 * emulparams/elf32ebmip.sh: Likewise.
736 * emulparams/elf32lmip.sh: Likewise.
737 * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
738 * emulparams/elf32lsmip.sh: Likewise.
739 * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
740 * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
741 * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
742 * emulparams/elf64btsmip.sh: Likewise.
743 * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
744 * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
745 * emulparams/elf32ppclinux.sh: Likewise.
746 * emulparams/elf32ppcsim.sh: Likewise.
747 * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
748 * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
749 * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
750 * emulparams/h8300self.sh: Likewise.
751 * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
752 * emulparams/sh.sh: Comment.
753 * emulparams/shl.sh: Source sh.sh, remove duplicates.
754 * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
755 * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
757 2001-11-21 David Heine <dlheine@tensilica.com>
758 Alan Modra <amodra@bigpond.net.au>
760 * ldlang.c (map_input_to_output_sections): Replace "break"
761 accidentally removed with 2001-08-03 change.
762 (lang_gc_sections_1): Likewise.
764 2001-11-21 Alan Modra <amodra@bigpond.net.au>
766 * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
768 2001-11-20 Angela Marie Thomas <angela@redhat.com>
770 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
771 of false when calling lang_size_sections.
772 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
774 2001-11-15 Alan Modra <amodra@bigpond.net.au>
776 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
777 function when LDEMUL_FINISH isn't set to the same name. Don't
778 call ${LDEMUL_FINISH}.
779 (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
780 * emultempl/armelf.em (arm_elf_finish): Call
781 gld${EMULATION_NAME}_finish.
782 * emultempl/hppaelf.em (hppaelf_finish): Rename to
783 gld${EMULATION_NAME}_finish. Call bfd_elf32_discard_info and
784 hppaelf_layout_sections_again if necessary.
785 (need_laying_out): New var.
786 (hppaelf_layaout_sections_again): Rename to
787 hppaelf_layout_sections_again. Clear need_laying_out.
788 (PARSE_AND_LIST_OPTIONS): Format text.
790 2001-11-14 H.J. Lu <hjl@gnu.org>
792 * emultempl/armelf.em (arm_elf_finish): Renamed from
793 gld${EMULATION_NAME}_finish.
794 (LDEMUL_FINISH): Set to arm_elf_finish.
796 2001-11-14 Daniel Jacobowitz <drow@mvista.com>
798 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
799 (struct ld_emulation_xfer_struct): Use it.
801 2001-11-13 Ross Alexander <ross.alexander@uk.neceur.com>
803 * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
804 additional symbols referenced by newer crt0.o files from HP.
806 2001-11-12 Anthony Green <green@redhat.com>
808 * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
810 2001-11-12 Alfred M. Szmidt <ams@kemisten.nu>
812 * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
813 * Makefile.in: Regenerate.
815 2001-11-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
817 * ld.texinfo: Use @command for commands, @option for options.
818 * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
820 * Makefile.in: Rebuild.
822 2001-11-04 Chris Demetriou <cgd@broadcom.com>
824 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
825 Add support for targets.
827 2001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
829 * configure.in (ALL_LINGUAS): Add "fr" and "sv"
830 * configure: Regernate.
831 * po/fr.po: New file.
832 * po/sv.po: New file.
834 2001-11-01 NIIBE Yutaka <gniibe@m17n.org>
836 * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
837 as little endian default and to support big endian.
839 2001-11-01 Chris Demetriou <cgd@broadcom.com>
841 * ld.texinfo (Options): Document new option, -nostdlib.
842 * lexsup.c (OPTION_NOSTDLIB): New definition.
843 (ld_options): Add entry for "nostdlib".
844 (parse_args): Handle OPTIONS_NOSTDLIB.
845 * ldfile.c (ldfile_add_library_path): Don't add directories
846 to the search path if they weren't specified on the command line
847 and -nostdlib was specified.
848 * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
850 2001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
852 * lexsup.c (parse_args): Prevent infinite parsing loop when
853 "-rpath.a" is specified on the command line.
854 Replace calls to fprintf with calls to einfo.
856 2001-10-31 John Marshall <jmarshall@acm.org>
858 * ld.texinfo: A historical requirement that MEMORY and SECTIONS
859 appear only once across all the linker scripts involved in a link
860 invocation no longer applies. Make the documentation reflect
863 2001-10-31 NIIBE Yutaka <gniibe@m17n.org>
865 * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
867 (sh-*-linux*): Added targ_extra_libpath.
869 2001-10-31 David Heine <dlheine@tensilica.com>
871 * ldlang.c (lang_size_sections): Keep a valid output_offset field
872 for padding statements.
874 2001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
876 * configure.tgt (mmix-*-*): New target.
877 * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
878 Add dependencies to match.
879 * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
880 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
881 scripttempl/mmo.sc: New files.
882 * gen-doc.texi: @set MMIX.
884 [MMIX] Add MMIX node.
885 * Makefile.in: Regenerate.
887 2001-10-29 Kazu Hirata <kazu@hxi.com>
889 * ldlang.c: Fix a comment typo.
891 2001-10-23 Alan Modra <amodra@bigpond.net.au>
893 * configure.host: Move alpha*-*-linux-gnu* entry to generic
894 entries, and match *-*-linux*.
896 2001-10-20 Alan Modra <amodra@bigpond.net.au>
898 * ldgram.y (mri_script_command): Surround processing of INCLUDE
899 with ldlex_script, ldlex_popstate.
900 (ifile_p1): Likewise.
901 * ldlex.l (EOF): Don't BEGIN(SCRIPT). Restore lineno from the
903 (lex_push_file): Save current lineno to lineno_stack. Set lineno
904 to 1. Don't BEGIN(SCRIPT).
905 (lex_redirect): Similarly.
906 * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
908 2001-10-20 Nick Clifton <nickc@cambridge.redhat.com>
910 * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
911 __EH_FRAME_END__ and accept eh frames into data section.
912 Add ctor and dtor sections.
914 2001-10-19 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
916 * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
917 (auto-export): Fix indentation.
919 2001-10-18 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
921 * pe-dll.c (autofilter_objectlist): Add startup objects
923 (auto-export): Constify char * p.
924 Extract file basename and use strcmp rather than ststr
927 2001-10-18 Chris Demetriou <cgd@broadcom.com>
929 * ldmain.c (get_emulation): Improve comment about the handling
932 2001-10-17 Alan Modra <amodra@bigpond.net.au>
934 * po/POTFILES.in: Regenerate.
936 2001-10-16 Vassili Karpov <malc@pulsesoft.com>
938 * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
939 -z nocopyreloc and -z nocombreloc usage strings.
941 2001-10-12 Vassili Karpov <malc@pulsesoft.com>
943 * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
946 2001-10-11 Aleksey Romanov <aromanov@ennovatenetworks.com>
948 * scripttempl/armaout.sc: Place .bss section after end of aligned
949 data section to match behaviour of aout code in constructrion of
952 2001-10-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
954 * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
955 startup files for mingw32 dlls to list.
957 2001-10-10 Chris Demetriou <cgd@broadcom.com>
959 * emultempl/elf32.em: Fix shell 'if' usage for portability.
961 2001-10-08 Aldy Hernandez <aldyh@redhat.com>
963 * configure.tgt (targ): Add arm9e-*-elf.
965 2001-10-05 H.J. Lu <hjl@gnu.org>
967 * genscripts.sh: Fix a typo in the last change.
969 2001-10-05 Jakub Jelinek <jakub@redhat.com>
971 * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
972 -z nocombreloc in usage.
974 2001-10-03 Jim Blandy <jimb@redhat.com>
976 * genscripts.sh: Include a comment at the top of each generated
977 script, explaining its purpose.
979 2001-10-03 Vassili Karpov <malc@pulsesoft.com>
981 * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
982 * NEWS: Mention -z nocopyreloc.
983 * ld.texinfo (Options): Describe nocopyreloc.
985 2001-10-03 Alan Modra <amodra@bigpond.net.au>
987 * configure: Regenerate.
989 2001-10-02 Alan Modra <amodra@bigpond.net.au>
991 * ldver.h (ld_program_version): Remove declaration.
992 * lexsup.c (parse_args): Move printing of copyright message..
993 * ldver.c (ldversion): .. to here.
994 Use BFD_VERSION_STRING in place of BFD_VERSION.
995 (ld_program_version): Remove.
996 * Makefile.am (Makefile): Depend on bfd/configure.in.
998 * Makefile.in: Regenerate.
1000 2001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
1002 * Makefile.am: Update dependencies with "make dep-am".
1003 * Makefile.in: Regenerate.
1005 2001-09-29 John Reiser <jreiser@BitWagon.com>
1007 * ldlang.c (lang_common): Conditionally inhibit Common allocation.
1008 * lexsup.c: Add --no-define-common commandline option.
1009 * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
1010 * ldlex.l: Likewise.
1011 * ld.h: Add command_line.inhibit_common_definition.
1012 * ldmain.c (main): Initialize.
1013 * ld.texinfo: Document.
1015 2001-09-26 Alan Modra <amodra@bigpond.net.au>
1017 * ldmisc.c (USE_STDARG): Remove.
1018 (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
1023 * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
1024 declarations. Update copyright.
1026 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
1028 * pe-dll.c: Remove obsoleted declaration of
1029 pe_get_data_import_dll_name.
1030 (pe_create_import_fixup): Fix thinko.
1032 * ld.texinfo(enable-auto-import): Clarify the explanation.
1034 2001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
1036 * pe-dll.c (pe_create_import_fixup): Revert previous patch.
1037 * emultemp/pe.em (pe_data_import_dll): Move definition outside of
1038 DLL_SUPPORT controlled code.
1040 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
1042 * emultempl/pe.em(pe_data_import_dll): Make static.
1043 (pe_get_data_import_dll_name): New accessor function.
1044 * pe-dll.c(pe_create_import_fixup): call
1045 pe_get_data_import_dll_name() from pe.em, instead of
1046 directly accessing pe_data_import_dll variable from pe.em.
1048 2001-09-18 Bruno Haible <haible@clisp.cons.org>
1050 * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
1051 (def_file_add_directive): Use ISSPACE instead of isspace.
1052 (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
1053 isdigit/isxdigit/isalpha/isalnum.
1054 * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
1055 (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
1056 * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
1057 (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
1059 * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
1060 (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
1062 * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
1063 (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
1064 * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
1065 (ctor_prio): Use ISDIGIT instead of isdigit.
1066 * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
1067 (ldfile_open_file_search): Use ISALPHA instead of isalpha.
1068 (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
1070 * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
1071 (stricpy): Use TOLOWER instead of isupper/tolower.
1072 (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
1073 * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
1074 (lex_warn_invalid): Use ISPRINT instead of isprint.
1075 * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
1076 (main): For gettext, also set the LC_CTYPE locate facet.
1077 (add_keepsyms_file): Use ISSPACE instead of isspace.
1078 * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
1079 (is_num, parse_args): Use ISDIGIT instead of isdigit.
1080 * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
1081 (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
1082 * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
1083 (gldppcmacos_read_file): Use ISSPACE instead of isspace.
1084 * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
1085 (quoteput): Use ISSPACE instead of isspace.
1086 (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
1089 2001-09-18 Alan Modra <amodra@bigpond.net.au>
1091 * deffilep.y (def_stash_module): Constify "name" param.
1093 * pe-dll.c: Replace CONST with const throughout.
1094 (quick_symbol): Constify "n1", "n2", "n3" params.
1095 (make_singleton_name_thunk): Constify "import" param. Make
1096 "buffer_len" a size_t.
1097 (make_import_fixup_entry): Constify "name", "fixup_name",
1098 "dll_symname" params.
1099 (pe_get16): Cast args of bfd_seek. Replace bfd_read with bfd_bread.
1100 (pe_get32): Likewise.
1101 (pe_implied_import_dll): Likewise.
1103 * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
1104 (sort_by_section_name): Likewise.
1106 * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
1107 (make_import_fixup): Cast printf arg, rel->address to long rather
1109 (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
1111 2001-09-15 Alan Modra <amodra@bigpond.net.au>
1113 * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
1114 defines BufferSize. Increase buffer size by one.
1116 2001-09-14 Ralf Habacker <Ralf.Habacker@freenet.de>
1118 * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
1120 2001-09-14 Kevin Lo <kevlo@openbsd.org>
1122 * configure.tgt: Add arm-openbsd target.
1124 2001-09-12 H.J. Lu <hjl@gnu.org>
1126 * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
1128 (ALL_64_EMULATIONS): Here.
1129 * Makefile.in: Regenerated.
1131 2001-09-12 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
1133 * emultempl/pe.em(make_import_fixup): change signature to
1134 take asection as well as arelec; we need this for proper
1135 error reporting. Only call pe_create_import_fixup() if
1136 there is no attempt to add a constant addend to the reloc;
1137 otherwise, report error condition.
1138 * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
1139 since final argument is a pointer to make_import_fixup().
1140 Change call to cb() to match make_import_fixup() signature.
1141 (make_import_fixup_mark): make buffer_len unsigned.
1142 * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
1144 2001-09-12 Charles Wilson <cwilson@ece.gatech.edu>
1146 * ld.texinfo: add verbose documentation for auto-import
1147 direct-addressing workaround, to compliment the terse
1150 2001-09-12 Andrew MacLeod <amacleod@redhat.com>
1152 * scripttempl/v850.sc: Add gcc_except_table sections.
1154 2001-09-11 Jeffrey A Law (law@cygnus.com)
1156 * emulparams/h8300helf.sh: Move stack to a much higher memory address.
1157 * emulparams/h8300self.sh: Similarly.
1159 2001-09-05 Danny Smith <dannysmith@users.souceforge.net>
1161 * ld.texinfo (Options, --stack): Correct default value for stack
1164 2001-09-05 Tom Rix <trix@redhat.com>
1166 * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
1168 2001-09-03 Andreas Jaeger <aj@suse.de>
1170 * emultempl/beos.em: Declare prototypes for comparions functions,
1173 2001-09-02 Andreas Jaeger <aj@suse.de>
1175 * emultempl/aix.em: Add missing prototype.
1176 * emultempl/lnk960.em: Likewise.
1177 * emultempl/vanilla.em: Likewise.
1178 * emultempl/armcoff.em: Likewise.
1179 * emultempl/armelf_oabi.em: Likewise.
1180 * emultempl/beos.em: Likewise.
1181 * emultempl/gld960c.em: Likewise.
1182 * emultempl/gld960.em: Likewise.
1184 * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
1185 for prototype declaration.
1187 2001-08-31 Eric Christopher <echristo@redhat.com>
1188 Jason Eckhardt <jle@redhat.com>
1190 * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
1192 2001-08-31 Andreas Jaeger <aj@suse.de>
1194 * emultempl/pe.em: Add missing prototypes.
1195 (gld_${EMULATION_NAME}_after_open): Remove extra args to
1196 pe_find_data_imports.
1197 (pr_sym): Add unused attribute.
1199 2001-08-29 Joel Sherrill <joel@OARcorp.com>
1201 * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
1202 default from coff to elf.
1204 2001-08-29 Jeff Law <law@redhat.com>
1206 * emulparams/h8300helf.sh: Resync with h8300elf.sh. Update
1208 * emulparams/h8300self.sh: Similarly.
1210 2001-08-28 J"orn Rennecke <amylaar@redhat.com>
1212 * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
1214 (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
1215 * configure.tgt (h8300-*-elf*): New case.
1216 * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
1217 * emulparams/h8300self.sh: New file.
1218 * Makefile.in: Regenerated.
1220 2001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
1222 * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
1225 2001-08-27 Linus Nordberg <linus@swox.com>
1226 Alan Modra <amodra@bigpond.net.au>
1228 * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
1229 (eelf64ppc.c, eelf64lppc.c): Add make targets.
1231 * Makefile.in: Regenerate.
1232 * configure.tgt: Add powerpc64 support. Move pdp11, pjl, pj
1233 entries to correct alphabetical position.
1234 * emulparams/elf64ppc.sh: New.
1235 * emulparams/elf64lppc.sh: New.
1237 2001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
1239 * ldmain.c (main): Declare BSIZE as static.
1241 2001-08-23 Jakub Jelinek <jakub@redhat.com>
1243 * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
1244 into .rel.dyn resp. .rela.dyn if combreloc.
1245 (get_script): If .x linker script is equal to .xn, only put it
1246 once into the binary.
1247 Add .xc and .xsc scripts.
1248 (parse_args): Handle -z combreloc and -z nocombreloc.
1249 * scripttempl/elf.sc (.rela.sbss): Fix a typo.
1250 For .xc and .xsc scripts put all .rel* or .rela* input sections
1251 but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
1252 * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
1254 Strip trailing whitespace from script.
1255 Generate .xc and .xsc scripts if requested.
1256 * ldmain.c (main): Initialize link_info.combreloc and
1257 link_info.spare_dynamic_tags.
1258 * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
1259 (ld_options): Add --spare-dynamic-tags option.
1260 (parse_args): Likewise.
1261 * ld.texinfo: Document -z combreloc and -z nocombreloc.
1262 * ldint.texinfo: Document .xc and .xsc linker scripts.
1263 * NEWS: Add notes about -z combreloc and SHF_MERGE.
1265 2001-08-22 H.J. Lu <hjl@gnu.org>
1267 * emulparams/elf32fr30.sh: Add a newline.
1269 2001-08-21 Andreas Jaeger <aj@suse.de>
1271 * deffilep.y: Add missing prototypes.
1272 * pe-dll.c: Likewise.
1274 2001-08-20 Alan Modra <amodra@bigpond.net.au>
1276 * ldlang.c (insert_pad): Fix typos in last patch.
1278 * ldlang.c: When traversing lang_statement_union_type lists,
1279 consistently use "header.next" rather than "next".
1280 * mpw-eppcmac.c: Likewise.
1281 * emultempl/beos.em: Likewise.
1282 * emultempl/hppaelf.em: Likewise.
1283 * emultempl/pe.em: Likewise.
1284 * ldlang.h (union lang_statement_union): Remove "next" field.
1286 * ldlang.c (insert_pad): Use offsetof macro.
1287 (lang_size_sections): Always neuter padding statements.
1288 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
1290 * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
1291 passed to lang_size_sections.
1292 (pe_exe_fill_sections): Likewise.
1293 * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
1294 (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
1296 2001-08-18 Alan Modra <amodra@bigpond.net.au>
1298 * emultempl/aix.em: Formatting fixes.
1300 2001-08-18 Alan Modra <amodra@bigpond.net.au>
1302 * ldlang.c (insert_pad): Make use of an existing pad statement if
1303 available. Move code calculating alignment, adjusting section
1304 alignment power, and adjusting dot to ..
1305 (size_input_section): .. here. Remove unused relax param.
1306 (lang_size_sections): Change boolean `relax' param to boolean *.
1307 Adjust call to size_input_section. Make use of insert_pad to
1308 place pad after the assignment statement. If relaxing, zap
1310 (reset_memory_regions): Reset output_bfd section sizes too.
1311 (relax_again): Move to..
1312 (lang_process): ..here. Adjust call to lang_size_sections, and
1313 remove duplicated code.
1314 * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
1316 2001-08-17 Alan Modra <amodra@bigpond.net.au>
1318 * ld.texinfo: Document that fill values now use the four least
1320 * emulparams/elf32fr30.sh (NOP): Update.
1321 * emulparams/elf32mcore.sh: Likewise.
1322 * emulparams/elf64_s390.sh: Likewise.
1323 * emulparams/elf_i386.sh: Likewise.
1324 * emulparams/elf_i386_be.sh: Likewise.
1325 * emulparams/elf_i386_chaos.sh: Likewise.
1326 * emulparams/elf_i386_ldso.sh: Likewise.
1327 * emulparams/elf_s390.sh: Likewise.
1328 * emulparams/elf_x86_64.sh: Likewise.
1329 * emulparams/i386moss.sh: Likewise.
1330 * emulparams/i386nw.sh: Likewise.
1331 * emulparams/m68kelf.sh: Likewise.
1332 * scripttempl/elf.sc: Update NOP comment.
1333 * scripttempl/elfi370.sc: Likewise.
1334 * scripttempl/elfm68hc11.sc: Likewise.
1335 * scripttempl/elfm68hc12.sc: Likewise.
1336 * scripttempl/nw.sc: Likewise.
1338 2001-08-15 Tom Rix <trix@redhat.com>
1340 * ldgram.y (saved_script_handle): Initialize to NULL.
1341 * ldmain.c (main): Change check on saved_script_handle.
1343 2001-08-14 Alan Modra <amodra@bigpond.net.au>
1345 * emultempl/elf32.em: Formatting fixes.
1346 (output_prev_sec_find): Test for bfd_ind_section too; do so by
1347 looking at sec->owner.
1348 (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
1349 (gld${EMULATION_NAME}_place_orphan): Add a few comments. Remove
1350 unused code, and reorganize orphan section placement code.
1352 * ldlang.c (wild_doit): Rename to lang_add_section.
1353 * ldlang.h: Here too.
1354 * mpw-elfmips.c: And here.
1355 * emultempl/beos.em: And here.
1356 * emultempl/elf32.em: And here.
1357 * emultempl/hppaelf.em: And here.
1358 * emultempl/pe.em: And here.
1360 2001-08-13 Richard Henderson <rth@redhat.com>
1362 * emultempl/needrelax.em: New file.
1363 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
1364 * Makefile.am (eelf64_ia64.c): Depend on it.
1365 * Makefile.in: Rebuild.
1367 2001-08-13 Alan Modra <amodra@bigpond.net.au>
1369 * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
1370 output_section is set non-NULL.
1372 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
1373 `true' for SEC_EXCLUDE sections so that the generic code doesn't
1374 needlessly create an output_section_statement. Treat a correctly
1375 named output_section_statement with NULL bfd_section as compatible.
1377 2001-08-13 Hans-Peter Nilsson <hp@bitrange.com>
1379 * emultempl/generic.em: Support EXTRA_EM_FILE.
1380 (ld_${EMULATION_NAME}_emulation): Support emulation parameters
1381 LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
1382 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
1383 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
1384 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
1385 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
1386 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
1387 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
1388 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
1389 LDEMUL_FIND_POTENTIAL_LIBRARIES.
1391 2001-08-12 Richard Henderson <rth@redhat.com>
1393 * scripttempl/elf.sc, scripttempl/elfd30v.sc,
1394 scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
1395 scripttempl/v850.sc: Keep .jcr data.
1397 2001-08-12 H.J. Lu <hjl@gnu.org>
1398 Andrew Haley <aph@cambridge.redhat.com>
1399 Nick Clifton <nickc@redhat.com>
1401 * ldgram.y (had_script): Change name to saved_script_handle.
1402 Change type to file handle.
1403 * ld.h (had_script): Rename and retype.
1404 * ldfile.c (ldfile_open_command_file): Save the file handle
1405 used in saved_script_handle.
1406 * lexsup.c (parse_args): Do not allow -c option to alter
1407 saved_script_handle.
1408 * ldmain.c (main): Print out the linker script used if
1409 --verbose is given. Check saved_script_handle to obtain the
1410 external linker script used, or if NULL, dump the builtin
1412 * ld.texinfo: Document that --verbose now dumps the linker
1413 script used, regardless of whether it was an internal or an
1416 2001-08-10 Andreas Jaeger <aj@suse.de>
1418 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
1420 * configure: Regenerate.
1422 2001-08-09 Alan Modra <amodra@bigpond.net.au>
1424 * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
1426 * scripttempl/elf.sc: Move non-text .dynamic section before
1427 .plt/.got/.sdata* group.
1428 (OTHER_GOT_SECTIONS): Move to immediately after .got.
1429 (OTHER_SDATA_SECTIONS): Add.
1430 * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
1432 * emulparams/crislinux.sh: Likewise.
1433 * emulparams/elf32b4300.sh: Likewise.
1434 * emulparams/elf32bmip.sh: Likewise.
1435 * emulparams/elf32bmipn32.sh: Likewise.
1436 * emulparams/elf32bsmip.sh: Likewise.
1437 * emulparams/elf32btsmip.sh: Likewise.
1438 * emulparams/elf32ebmip.sh: Likewise.
1439 * emulparams/elf32elmip.sh: Likewise.
1440 * emulparams/elf32l4300.sh: Likewise.
1441 * emulparams/elf32lmip.sh: Likewise.
1442 * emulparams/elf32lsmip.sh: Likewise.
1443 * emulparams/elf32ltsmip.sh: Likewise.
1444 * emulparams/elf64bmip.sh: Likewise.
1445 * emulparams/elf64btsmip.sh: Likewise.
1446 * emulparams/elf64ltsmip.sh: Likewise.
1448 2001-08-08 Alan Modra <amodra@bigpond.net.au>
1450 * genscripts.sh: Source the emulparams script before each output
1451 script is generated so that variables like `RELOCATING' may affect
1452 variables defined in the emulparams script.
1454 2001-08-04 Alan Modra <amodra@bigpond.net.au>
1456 * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
1459 * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
1460 ie. iterate over wild_statement.section_list.
1461 (gld${EMULATION_NAME}_place_orphan): Likewise.
1463 2001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1465 * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
1466 .fini[0-4] sections used by _exit
1467 (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
1468 (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
1469 * scripttempl/elfm68hc11.sc: Likewise.
1471 2001-08-03 H.J. Lu <hjl@gnu.org>
1473 * emultempl/beos.em (init): Add the missing initialization.
1475 2001-08-03 Alan Modra <amodra@bigpond.net.au>
1477 * ld.texinfo (Input Section Basics): Clarify ordering of output
1479 * ldlang.c (callback_t): Add wildcard_list param.
1480 (walk_wild_section): Remove "section" param. Rewrite for
1481 lang_wild_statement_type change. Remove unique_section_p test.
1482 (walk_wild_file): Remove "section" param.
1483 (walk_wild): Remove "section" and "file" params.
1484 (lang_gc_wild): Likewise.
1485 (wild): Likewise. Modify for lang_wild_statement_type change.
1486 (wild_sort): Likewise. Add "sec" param.
1487 (gc_section_callback): Likewise.
1488 (output_section_callback): Likewise. Do unique_section_p test.
1489 (map_input_to_output_sections): Modify call to wild.
1490 (lang_gc_sections_1): Likewise.
1491 (print_wild_statement): Modify for lang_wild_statement_type
1493 (lang_add_wild): Replace filename, filenames_sorted param with
1494 filespec. Replace section_name, sections_sorted,
1495 exclude_filename_list with section_list.
1496 * ldlang.h (lang_add_wild): Here too.
1497 (lang_wild_statement_type): Replace section_name, sections_sorted,
1498 and exclude_filename_list with section_list.
1499 * ldgram.y (current_file): Delete.
1500 (%union): Add wildcard_list.
1501 (file_NAME_list): Set type to wildcard_list. Build a linked list
1502 rather than calling lang_add_wild for each entry.
1503 (input_section_spec_no_keep): Call lang_add_wild here instead.
1504 * ld.h (struct wildcard_list): Declare.
1505 * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
1507 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
1509 * ldmain.c (main): initialize link_info.pei386_auto_import
1510 * pe-dll.c: new tables for auto-export filtering
1511 (auto_export): change API, pass abfd for contextual filtering.
1512 Loop thru tables of excluded symbols instead of comparing
1515 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
1517 * pe-dll.c: new variable pe_dll_enable_extra_debug. New
1518 static variable current_sec (static struct sec *). Add
1519 forward declaration for add_bfd_to_link.
1520 (process_def_file): Don't export undefined symbols. Do not
1521 export symbols starting with "_imp__". Call auto_export()
1523 (pe_walk_relocs_of_symbol): New function.
1524 (generate_reloc): add optional extra debugging
1525 (pe_dll_generate_def_file): eliminate extraneous initial blank
1527 (make_one): enlarge symtab to make room for __nm__ symbols
1528 (DATA auto-import support).
1529 (make_singleton_name_thunk): New function.
1530 (make_import_fixup_mark): New function.
1531 (make_import_fixup_entry): New function.
1532 (pe_create_import_fixup): New function.
1533 (add_bfd_to_link): Specify that 'name' argument is a CONST
1535 * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
1536 declare new functions pe_walk_relocs_of_symbol and
1537 pe_create_import_fixup.
1538 * emultempl/pe.em: add new options --enable-auto-import,
1539 --disable-auto-import, and --enable-extra-pe-debug.
1540 (make_import_fixup): New function.
1541 (pe_find_data_imports): New function.
1542 (pr_sym): New function.
1543 (gld_${EMULATION_NAME}_after_open): Add optional extra pe
1544 debugging. Call pe_find_data_imports. Mark .idata as DATA, not
1547 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
1549 * ld.texinfo: add additional documentation for
1550 --export-all-symbols. Document --out-implib,
1551 --enable-auto-image-base, --disable-auto-image-base,
1552 --dll-search-prefix, --enable-auto-import, and
1553 --disable-auto-import.
1554 * ldint.texinfo: Add detailed documentation on auto-import
1557 2001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
1559 * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
1562 2001-07-24 Alan Modra <amodra@bigpond.net.au>
1564 * Makefile.am: Update dependencies with "make dep-am".
1565 * Makefile.in: Regenerate
1567 2001-07-23 Alan Modra <amodra@bigpond.net.au>
1569 * ldcref.c (check_section_sym_xref): New function.
1570 (check_nocrossrefs): Call it.
1571 (check_nocrossref): Interate over h->refs here instead of..
1572 (check_refs): ..here. Pass in the symbol name, section, and bfd
1573 rather than hash_entry pointers.
1574 (struct check_refs_info): Keep symbol name rather than hash entry.
1576 (check_reloc_refs): Tweak for above changes in check_refs_info.
1577 Only report references to section syms when symname is NULL to
1578 prevent duplicate messages for the same reloc.
1580 2001-07-19 Nick Clifton <nickc@cambridge.redhat.com>
1582 * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
1583 available. Do not print NULL trees.
1584 (exp_print_token): Print unknown tokens with values > 126 as
1585 decimal values not ASCII characters.
1587 * ldlang.c (lang_leave_overlay): If a region is specified assign
1588 it to all sections inside the overlay unless they have been
1589 assigned to the own, non-default, memory region.
1591 * README: Add header for consistency with other README files.
1593 2001-07-14 H.J. Lu <hjl@gnu.org>
1595 * emultempl/elf32.em (output_prev_sec_find): Never return
1596 bfd_abs_section_ptr, bfd_com_section_ptr nor
1597 bfd_und_section_ptr.
1599 2001-07-14 Nick Clifton <nickc@cambridge.redhat.com>
1601 * Makefile.am (em32relf.c): Change dependency from generic.em to
1603 * Makefile.in: Regenerate.
1605 2001-07-14 matthew green <mrg@eterna.com.au>
1607 * configure.tgt (i386-*-netbsdelf*): New target.
1608 (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
1610 2001-07-13 Jakub Jelinek <jakub@redhat.com>
1612 * emultempl/elf32.em (output_prev_sec_find): New.
1613 (place_orphan): Use it.
1615 2001-07-11 H.J. Lu <hjl@gnu.org>
1617 * ldmain.c (main): Fix typos in the last change.
1619 2001-07-11 Jakub Jelinek <jakub@redhat.com>
1621 * ldmain.c (main): Disallow -F and -f without -shared.
1623 2001-07-11 Nick Clifton <nickc@cambridge.redhat.com>
1625 * emultempl/pe.em (after_open): Check for the output_bfd not
1626 having any coff_data structure allocated to it.
1628 2001-07-09 David O'Brien <obrien@FreeBSD.org>
1630 * emultempl/elf32.em: Do not assuming that contents of the buffer
1631 returned from basename function will remain unchanged accross other
1634 2001-07-03 H.J. Lu <hjl@gnu.org>
1636 * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
1637 2001-07-03. It creates dynamic entries even for static binaries.
1639 2001-07-03 Jakub Jelinek <jakub@redhat.com>
1641 * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
1642 (DYNAMIC): Use it to reserve few dynamic entries for
1645 2001-06-27 Alan Modra <amodra@bigpond.net.au>
1647 * emulparams/hppa64linux.sh: New file.
1648 * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
1649 * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
1650 (ehppa64linux.c): Add rule to make it.
1652 * Makefile.in: Regenerate.
1654 2001-06-21 Hans-Peter Nilsson <hp@axis.com>
1656 * ld.texinfo (Options, -r): Mention restrictions when using
1657 different object formats.
1659 2001-06-19 Hans-Peter Nilsson <hp@axis.com>
1661 * ldlang.c (lang_check): Emit fatal error if relocatable link
1662 between different object flavours with relocations in input.
1664 2001-06-19 H.J. Lu <hjl@gnu.org>
1666 * ld.texinfo (-E, --export-dynamic): Mention --version-script.
1667 (--version-script): Mention the language support.
1669 2001-06-19 H.J. Lu <hjl@gnu.org>
1671 * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
1673 2001-06-18 H.J. Lu <hjl@gnu.org>
1675 * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
1676 (diststuff): Add $(MANS).
1677 * Makefile.in: Regenerated.
1681 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
1683 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
1684 Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
1685 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
1686 * ld.h (args_type): Remove member export_dynamic. All users
1687 changed to use struct bfd_link_info member.
1689 * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
1690 $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
1691 * Makefile.in: Regenerate.
1693 2001-06-18 H.J. Lu <hjl@gnu.org>
1695 * ldlang.c (init_os): Add the newline to the einfo call.
1696 (lang_check): Likewise.
1697 (lang_do_version_exports_section): Likewise.
1699 2001-06-15 H.J. Lu <hjl@gnu.org>
1701 * lexsup.c (parse_args); Save optind to report unrecognized
1704 2001-06-15 Hans-Peter Nilsson <hp@axis.com>
1706 * ldlang.c (lang_check): Emit fatal error if relocatable link
1707 between different object flavours.
1709 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
1710 Set new link_info member export_dynamic.
1711 * ldmain.c (main): Initialize new link_info member export_dynamic.
1713 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
1715 * ldlang.c (walk_wild): Only call walk_wild_file if
1716 lookup_name returns something.
1717 (lookup_name): If load_symbols fails, return NULL.
1718 (load_symbols): Change to a boolean function.
1719 (open_input_bfds): If load_symbols fails then do not make the
1722 2001-06-08 Alan Modra <amodra@bigpond.net.au>
1724 * ldlang.c (record_bfd_errors): Remove.
1726 * emultempl/aix.em: Fix copyright dates.
1728 2001-06-07 Andreas Jaeger <aj@suse.de>
1730 * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
1731 (TEXT_START_ADDR): Likewise.
1733 2001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
1735 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
1737 2001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1739 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
1741 2001-05-31 H.J. Lu <hjl@gnu.org>
1743 * ldlang.c (open_input_bfds): Don't change the bfd error
1744 handler whilst loading symbols.
1746 2001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
1748 * configure.tgt: Remove i370-mvs architecture, it is not currently
1751 2001-05-25 H.J. Lu <hjl@gnu.org>
1753 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
1754 like emulparams/aixppc.sh.
1756 2001-05-25 H.J. Lu <hjl@gnu.org>
1758 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
1759 setting of output_filename after bfd_scan_arch.
1760 * emultempl/pe.em: Likewise.
1762 2001-05-25 H.J. Lu <hjl@gnu.org>
1764 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
1765 like emulparams/aixppc.sh.
1767 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
1768 instead of ${srcdir}/emultempl/stringify.sed.
1770 2001-05-25 Timothy Wall <twall@oculustech.com>
1772 * emulparams/elf64_aix.sh: Change settings to match IBM linker
1775 2001-05-25 Alan Modra <amodra@one.net.au>
1777 * configure.host: Replace linuxoldld with linux*oldld.
1778 * configure.tgt: Likewise.
1780 2001-05-24 H.J. Lu <hjl@gnu.org>
1782 * emultempl/stringify.sed: Removed again.
1784 2001-05-24 H.J. Lu <hjl@gnu.org>
1786 * emultempl/aix.em (OUTPUT_ARCH): Defined.
1787 (gld${EMULATION_NAME}_before_parse): Initialize
1788 ldfile_output_architecture, ldfile_output_machine and
1789 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
1790 * emultempl/beos.em: Likewise.
1791 * emultempl/elf32.em: Likewise.
1792 * emultempl/linux.em: Likewise.
1793 * emultempl/mipsecoff.em: Likewise.
1794 * emultempl/pe.em: Likewise.
1795 * emultempl/sunos.em: Likewise.
1797 2001-05-24 Tom Rix <trix@redhat.com>
1799 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
1800 udate import file format.
1801 (change_symbol_mode) New, same
1802 (is_syscall) New, same
1803 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
1804 * emulparams/aixppc64.sh : same
1805 * emulparams/aixrs6.sh : same
1806 * emulparams/ppcmacos.sh : same
1807 * emultempl/aix.em : use strtoull to parse options
1808 * Makefile.am : add eaixppc64 emulation for xcoff64
1809 * Makefile.in : same
1810 * configure.tgt : same
1812 * scripttempl/aix.sc : default text section offset to 0x10000000
1813 default data section offset to 0x20000000
1814 add .sv3264 and .sv64 pseudo sections
1815 loader and debug sections use the currect section offset.
1817 * emultempl/aix.em : Add xcoff64 support
1818 Add -binitfini support
1819 (gld${EMULATION_NAME}_before_parse) -binitfini
1820 (gld${EMULATION_NAME}_parse_args) same
1821 (gld${EMULATION_NAME}_before_allocation) format change for special
1824 * emulparams/aixppc64.sh : New file for xcoff64 support
1826 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
1828 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
1829 variable to avoid non-portable shell construct.
1831 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1833 * ldmain.c (get_emulation): Add -mips5 command line argument.
1835 2001-05-22 Alexandre Oliva <aoliva@redhat.com>
1837 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
1838 (ELF_INTERPRETER_NAME): Define it.
1839 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
1841 * configure.tgt (targ_emul, targ_extra_emuls)
1842 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
1843 as primary, elf_i386 as extra.
1844 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
1845 (eelf_i386_ldso.c): New rule.
1846 * Makefile.in: Rebuilt.
1848 2001-05-22 Nick Clifton <nickc@redhat.com>
1850 * lexsup.c (ld_options): Allow -I to be an alias for
1851 --dynamic-linker. This is for Solaris compatability.
1852 * ld.texinfo: Document that -I can be used.
1855 2001-05-16 Alan Modra <amodra@one.net.au>
1857 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
1858 whether an input section is the first one assigned to an output
1860 Assorted formatting fixes.
1862 2001-05-14 DJ Delorie <dj@delorie.com>
1864 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
1865 * Makefile.in: Ditto.
1867 2001-05-11 Jakub Jelinek <jakub@redhat.com>
1869 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
1870 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
1872 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
1874 2001-05-11 Jakub Jelinek <jakub@redhat.com>
1876 * ldlang.c (lang_process): Call bfd_merge_sections.
1878 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1880 * ldgram.y: Fix typo.
1882 2001-05-03 H.J. Lu <hjl@gnu.org>
1884 * emultempl/elf32.em: Include "libiberty.h".
1885 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
1886 basename of the bfd filename.
1887 (gld${EMULATION_NAME}_stat_needed): Likewise.
1888 (gld${EMULATION_NAME}_try_needed): Likewise.
1889 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
1891 2001-05-02 H.J. Lu <hjl@gnu.org>
1893 * emultempl/pe.em: Include <ctype.h>.
1895 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
1897 * emulparams/elf32openrisc.sh: New file.
1899 * Makefile.am: Add OpenRISC target.
1900 * Makefile.in: Regenerated.
1902 * configure.tgt: Add openrisc-*-* mapping.
1904 2001-05-02 Nick Clifton <nickc@redhat.com>
1906 * emultempl/aix.em: Replace buystring with xstrdup.
1907 * emultempl/beos.em: Replace buystring with xstrdup.
1909 2001-05-02 H.J. Lu <hjl@gnu.org>
1911 * ldfile.c: Include "libiberty.h".
1912 * ldlex.l: Likewise.
1914 * ldmisc.c (buystring): Removed.
1915 * ldmisc.h: Likewise.
1917 * ldfile.c: Replace buystring with xstrdup.
1918 * ldlang.c: Likewise.
1919 * ldlex.l: Likewise.
1920 * ldmain.c: Likewise.
1921 * ldmisc.c: Likewise.
1922 * lexsup.c: Likewise.
1923 * mpw-eppcmac.c: Likewise.
1925 2001-04-30 Andreas Jaeger <aj@suse.de>
1927 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
1929 2001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
1931 * ldlang.c (load_symbols): Give emulation a chance
1932 to process unrecognized file before fatal error is
1933 reported, not after.
1935 2001-04-27 Sean McNeil <sean@mcneil.com>
1937 * configure.tgt: Add arm-vxworks target.
1938 * scripttempl/armcoff.sc: Support .text or .data as a section name
1942 2001-04-13 J.T. Conklin <jtc@redback.com>
1944 * ld.texinfo: Document --fatal-warnings.
1947 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
1948 warnings have been turned into errors.
1949 * lexsup.c (OPTION_WARN_FATAL): Define.
1950 (ld_options): Entry for --fatal-warnings.
1951 (parse_args): Handle OPTION_WARN_FATAL.
1952 * ld.h (ld_config_type): Add fatal_warnings field.
1954 2001-04-13 Jakub Jelinek <jakub@redhat.com>
1956 * ldmain.c (main): Default to discard_sec_merge.
1957 * lexsup.c (OPTION_DISCARD_NONE): Define.
1958 (ld_options): Add --discard-none.
1959 (parse_args): Handle OPTION_DISCARD_NONE.
1960 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
1961 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
1962 all its input sections match.
1964 2001-04-05 Steven J. Hill <sjhill@cotw.com>
1966 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
1967 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
1968 (eelf32ltsmip.c): New target.
1969 (eelf64btsmip.c): Likewise.
1970 (eelf64ltsmip.c): Likewise.
1971 * Makefile.in: Regenerated.
1973 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
1975 (mips*-*-linux-gnu*): Likewise.
1977 * emulparams/elf32ltsmip.sh: New. Traditional little endian
1979 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
1981 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
1984 2001-04-05 Hans-Peter Nilsson <hp@axis.com>
1986 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
1987 correct value of __Stext here.
1988 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
1991 * emulparams/crislinux.sh: Remove FIXME.
1993 2001-04-02 Alan Modra <alan@linuxcare.com.au>
1995 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
1996 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
1998 2001-03-27 Hans-Peter Nilsson <hp@axis.com>
2000 * configure.tgt (cris-*-*): Change default emulation to criself.
2001 (cris-*-*aout*): New rule.
2003 2001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
2005 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
2006 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
2008 2001-03-26 Andreas Jaeger <aj@suse.de>
2010 * ld.texinfo (Overview): Fix syntax in texi code.
2012 2001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2014 * ld.texinfo: Put @c man indications to generate the ld man page.
2015 When generating man, define all the variables. Define SEEALSO
2016 and SYNOPSIS. Re-organize some lines to avoid the cross references.
2017 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
2018 (ld.1): Generate from ld.texinfo.
2019 * Makefile.in: Regenerate.
2021 2001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
2023 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
2024 and '-fdata-sections'. Set the VMA of STABS sections to zero.
2026 2001-03-17 Ulrich Drepper <drepper@redhat.com>
2028 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
2029 is an absolute path look only for this file and not along the path.
2031 2001-03-17 Ulrich Drepper <drepper@redhat.com>
2033 * emultempl/elf32.em (OPTION_GROUP): New macro.
2034 Add new option Bgroup to longopts.
2035 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
2036 (gld*_list_options): Add -Bgroup and -z defs.
2037 * ld.1: Document -Bgroup and -z defs.
2038 * ld.texinfo: Likewise.
2040 2001-03-07 Michael Meissner <meissner@redhat.com>
2042 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
2043 with sections created by -fdata-sections.
2044 (.dynbss,.bss): Ditto.
2046 2001-03-05 Alan Modra <alan@linuxcare.com.au>
2048 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
2049 after_allocation_default, not gld..._before_allocation.
2051 2001-02-27 Alan Modra <alan@linuxcare.com.au>
2053 * configure.in (BFD_VERSION): New.
2054 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
2055 * configure: Regenerate.
2056 * Makefile.am: Run "make dep-am"
2057 * Makefile.in: Regenerate.
2059 2001-02-26 Timothy Wall <twall@cygnus.com>
2061 * emulparams/elf64_aix.sh: Add additional read-only sections;
2062 uncomment lines which are now required.
2064 2001-02-26 H.J. Lu <hjl@gnu.org>
2066 * ldlang.c (open_input_bfds): Set the bfd error handler so
2067 that problems can be caught whilst loading symbols.
2068 (record_bfd_errors): New function: Report BFD errors and mark
2069 the executable output as being invalid.
2071 2001-02-22 Timothy Wall <twall@cygnus.com>
2073 * configure.host: Add configuration for ia64-*-aix*.
2074 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
2075 Add dependencies for eelf64_aix.c.
2076 * Makefile.in: Regenerate.
2077 * configure.tgt: Add ia64-*-aix* mapping.
2078 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
2079 * testsuite/ld-bootstrap/bootstrap.exp: Exclude ia64 flavor from
2082 2001-02-20 H.J. Lu <hjl@gnu.org>
2084 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
2085 false if we found the file.
2087 2001-02-18 David O'Brien <obrien@FreeBSD.org>
2089 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
2090 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
2092 2001-02-18 lars brinkhoff <lars@nocrew.org>
2094 * Makefile.am: Add PDP-11 target.
2095 * configure.tgt: Likewise.
2096 * emulparams/pdp11.sh: New file.
2098 2001-02-17 David O'Brien <obrien@FreeBSD.org>
2100 * configure.host: Add a generic FreeBSD configuration entry such that
2101 all [modern] FreeBSD systems on all platforms will look the same.
2103 2001-02-14 H.J. Lu <hjl@gnu.org>
2105 * configure.tgt: Remove mention of earmelf_linux26.
2107 2001-02-13 Richard Henderson <rth@redhat.com>
2109 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
2111 2001-02-13 H.J. Lu <hjl@gnu.org>
2113 * ldexp.h (node_type): Add etree_provided.
2114 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
2115 type to etree_provided if defined by PROVIDE. Allow updating
2117 (exp_print_tree): Handle etree_provided.
2118 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
2121 2001-02-09 David Mosberger <davidm@hpl.hp.com>
2123 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
2124 .IA_64.unwind.* pattern to unwind table section and
2125 .IA_64.unwind_info* pattern to unwind info section.
2127 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
2129 * Makefile.am: Add linux target for S/390.
2130 * Makefile.in: Likewise.
2131 * configure.host: Likewise.
2132 * configure.tgt: Likewise.
2133 * emulparams/elf64_s390.sh: New file.
2134 * emulparams/elf_s390.sh: New file.
2136 2001-02-09 Jakub Jelinek <jakub@redhat.com>
2138 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
2140 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
2142 2001-02-06 Philip Blundell <philb@gnu.org>
2144 * Makefile.am: Remove mention of earmelf_linux26.
2145 * Makefile.in: Regenerate.
2147 2001-02-04 Philip Blundell <philb@gnu.org>
2149 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
2150 * emulparams/armelf_linux26.sh: Delete.
2151 * configure.tgt: Remove mention of armelf_linux26 emulation.
2153 2001-02-01 Nick Clifton <nickc@redhat.com>
2155 * ld.1: Replace occurances of -oformat with --oformat.
2157 2001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
2159 * ldlang.c (lang_leave_overlay): Don't set lma_region when
2160 load_base is specified.
2162 2001-01-24 Hans-Peter Nilsson <hp@axis.com>
2164 * emultempl/elf32.em: Correct spelling in comments and listed
2167 2001-01-23 Alan Modra <alan@linuxcare.com.au>
2169 * ldlang.c (lang_leave_overlay): Only set lma_region from the
2170 default for the first section of a group of overlay sections.
2172 2001-01-22 Alan Modra <alan@linuxcare.com.au>
2174 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
2175 * Makefile.in: Regenerate.
2176 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
2177 Check for null tool_dir.
2179 2001-01-16 Jim Wilson <wilson@redhat.com>
2181 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
2182 and IA_64.unwind.info.
2184 2001-01-16 H.J. Lu <hjl@gnu.org>
2186 * ldlang.c (lang_check): Merge the private data only if the
2187 input file has contents.
2189 2001-01-14 Alan Modra <alan@linuxcare.com.au>
2191 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
2193 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
2194 enabling search for libmilli. On a relocatable link, make .text
2196 (LDEMUL_AFTER_PARSE): Define.
2197 (hppaelf_finish): Correct spelling of relocatable in comments.
2199 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
2200 rummage through the script for sections on the unique list.
2201 Correct length of strncmp for ".note".
2202 (gld${EMULATION_NAME}_check_needed): Rearrange function.
2204 * ldlang.c (unique_section_list): New var.
2205 (unique_section_p): New function.
2206 (walk_wild_section): Don't match sections on unique_section_list.
2207 (lang_add_unique): New function.
2208 Correct spelling of relocatable in comments.
2210 * ldlang.h (struct unique_sections): Declare.
2211 (unique_section_list): Declare.
2212 (unique_section_p): Declare.
2213 (lang_add_unique): Declare.
2215 * lexsup.c (ld_options): Allow --unique to take an optional arg.
2216 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
2218 * ld.texinfo (--unique): Update.
2220 2001-01-13 Nick Clifton <nickc@redhat.com>
2222 * lexsup.c (parse_args): Remove spurious white space.
2224 2001-01-12 Nick Clifton <nickc@redhat.com>
2226 * lexsup.c (parse_args): Update copyright date.
2228 2001-01-12 Philip Blundell <pb@futuretv.com>
2230 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
2232 2001-01-10 Kazu Hirata <kazu@hxi.com>
2234 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
2235 * scripttempl/h8300h.sc: Fix formatting.
2236 * scripttempl/h8300s.sc: Likewise.
2237 * scripttempl/h8500.sc: Likewise.
2238 * scripttempl/h8500b.sc: Likewise.
2239 * scripttempl/h8500c.sc: Likewise.
2240 * scripttempl/h8500m.sc: Likewise.
2241 * scripttempl/h8500s.sc: Likewise.
2243 2000-01-07 David O'Brien <obrien@BSDi.com>
2245 * emultempl/elf32.em: Only perform Linux ld hints processing when
2248 2001-01-07 Philip Blundell <philb@gnu.org>
2250 * ld.texinfo (Bug Reporting): Update email address for reports.
2252 2000-12-31 Nick Clifton <nickc@redhat.com>
2254 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
2255 options by checking for a return value of '?' not -1.
2257 2000-12-28 Nick Clifton <nickc@redhat.com>
2259 * lexsup.c (struct ld_option): Add new enum value:
2261 (ld_options[]): Change -omagic, -output and -oformat options
2262 to be EXACTLY_TWO_DASHES.
2263 (OUTPUT_COUNT): Use ARRAY_SIZE.
2264 (parse_args): Change parameter 'argc' to unsigned.
2265 Place EXACTLY_TWO_DASHES options into new really_longopts
2267 If getopt_long_only fails, try calling getopt_long using the
2268 really_longopts array.
2269 (help): Print a double dash for both EXACTLY_TWO_DASHES and
2272 * ldlex.h: Fix prototype of parse_args.
2274 * ld.texinfo: Document that long options starting with 'o'
2275 must be preceeded by two dashes. Change example of a single
2276 dashed long option from -oformat to -trace-symbol.
2278 2000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2280 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
2281 (longopts[]): New --no-default-excludes option.
2282 (gld_${EMULATION_NAME}_list_options): Document.
2283 (gld_${EMULATION_NAME}_parse_args): Handle.
2285 2000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2287 * ldlang.c (new_stat): Revert the last beautification with "innocent"
2288 whitespace, it breaks the K&R C preprocessor.
2290 2000-12-11 DJ Delorie <dj@redhat.com>
2292 * ld.texinfo: Add notes about --whole-archive and gcc.
2294 2000-11-18 Fred Fish <fnf@be.com>
2296 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
2297 (ld_options): Entry for --allow-shlib-undefined.
2298 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
2299 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
2301 * ld.texinfo: Document new command line switch.
2303 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
2305 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
2306 .fixup is actually read/write.
2307 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
2308 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
2309 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
2311 2000-12-11 Jan Hubicka <jh@suse.cz>
2313 * NEWS: Add note about x86_64 architecture.
2315 2000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
2317 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
2318 Set DWARF2 sections to a VMA of zero.
2320 2000-12-01 Joel Sherrill <joel@OARcorp.com>
2322 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
2324 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
2325 (sparc*-*-rtems*): Switched from a.out to ELF.
2327 2000-11-30 Jan Hubicka <jh@suse.cz>
2329 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
2330 (eelf_x86_64.c): New.
2331 * Makefile.in: Regenerate.
2332 * configure.tgt: Add support for x86_64-*-linux-gnu*.
2333 * emulparams/elf_x86_64.sh: New.
2335 2000-11-30 Hans-Peter Nilsson <hp@axis.com>
2337 * emulparams/crislinux.sh (ENTRY): Change back to _start.
2338 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
2340 * scripttempl/crisaout.sc: Change all RELOCATING not related to
2341 merging non-a.out sections into CONSTRUCTING.
2343 2000-11-28 Nick Clifton <nickc@redhat.com>
2345 * ld.1 (COPYING): Mention that the GNU Free Documentation
2346 License is present in the sources, but not the output, and
2347 also available from the GNU website.
2348 (GNU Free Documentation License): Comment out this section.
2350 2000-11-28 David O'Brien <obrien@dragon.nuxi.com>
2352 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
2355 2000-11-25 David O'Brien <obrien@FreeBSD.org>
2357 * ld.1: Remove old date so it does not give the impression the manpage
2360 2000-11-24 Nick Clifton <nickc@redhat.com>
2362 * configure.tgt (xscale-coff): Add target.
2363 (xscale-elf): Add target.
2365 2000-11-24 Fred Fish <fnf@be.com>
2367 * ldmain.c (main): Remove redundant init of config.make_executable
2370 2000-11-15 Richard Henderson <rth@redhat.com>
2372 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
2374 2000-11-14 Kazu Hirata <kazu@hxi.com>
2376 * scripttempl/h8300.sc: Fix formatting.
2377 * scripttempl/h8300h.sc: Likewise.
2378 * scripttempl/h8300s.sc: Likewise.
2380 2000-11-14 Denis Chertykov <denisc@overta.ru>
2382 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
2384 2000-11-09 Philip Blundell <pb@futuretv.com>
2386 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
2387 around orphan sections whose names can be represented in C.
2389 2000-11-07 Jim Wilson <wilson@redhat.com>
2391 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
2392 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
2394 2000-11-06 Nick Clifton <nickc@redhat.com>
2396 * ld.texinfo: Add GNU Free Documentation License.
2397 * ldint.texinfo: Add GNU Free Documentation License.
2398 * ld.1: Add GNU Free Documentation License.
2400 2000-11-05 Alan Modra <alan@linuxcare.com.au>
2402 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
2403 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
2405 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
2406 Move 2000-11-02 Makefile.in changes to this file.
2407 * Makefile.in: Regenerate.
2409 2000-11-03 Nick Clifton <nickc@redhat.com>
2411 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
2412 constructors and destructors.
2413 * scripttempl/h8300h.sc: Ditto.
2414 * scripttempl/h8300s.sc: Ditto.
2415 * scripttempl/h8500.sc: Ditto.
2416 * scripttempl/h8500b.sc: Ditto.
2417 * scripttempl/h8500c.sc: Ditto.
2418 * scripttempl/h8500m.sc: Ditto.
2419 * scripttempl/h8500s.sc: Ditto.
2420 * scripttempl/v850.sc: Ditto.
2421 * scripttempl/w65.sc: Ditto.
2422 * scripttempl/z8000.sc: Ditto.
2424 2000-11-02 Per Lundberg <plundis@chaosdev.org>
2426 * Makefile.in (e_i386_chaos.c): New rule.
2427 (ALL_EMULATIONS): Added e_i386_chaos.o.
2428 * emulparams/elf_i386_chaos.sh: New file.
2429 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
2431 2000-10-20 Jakub Jelinek <jakub@redhat.com>
2433 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
2434 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
2435 Fix sed invocation, so that it coped with '/' in Solaris 64bit
2436 library path suffix.
2437 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
2439 2000-10-18 Hans-Peter Nilsson <hp@axis.com>
2441 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
2442 for consecutive sections.
2444 2000-10-17 Chandrakala Chavva <cchavva@redhat.com>
2446 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
2448 * ld.texinfo: Added notes about this new option.
2450 2000-10-16 Nick Clifton <nickc@redhat.com>
2452 * emultempl/pe.em (_after_open): Add tests of return values from
2453 bfd functions. Emit appropriate error messages if necessary.
2455 2000-10-13 Nick Clifton <nickc@redhat.com>
2457 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
2458 local variables - they are not used, but leave in the call to
2459 bfd_canonicalize_symtab.
2460 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
2461 pe_dll_search_prefix.
2463 2000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
2465 * emultempl/pe.em (pe_dll_search_prefix): New variable,
2466 (longopts): New --dll-search-prefix option.
2467 (gld_${EMULATION_NAME}_list_options): Document.
2468 (gld_${EMULATION_NAME}_parse_args): Handle.
2469 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
2470 dynamically, search for a dll named '<prefix><basename>.dll'
2471 in preference to 'lib<basename>.dll' if --dll-search-prefix
2474 2000-10-12 Alan Modra <alan@linuxcare.com.au>
2476 * ldlang.c (section_already_linked): Set kept_section instead of
2479 2000-10-10 Kazu Hirata <kazu@hxi.com>
2481 * deffile.h: Fix formatting.
2482 * lexsup.c: Likewise.
2485 2000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2487 * pe-dll.c (make_one): Do not generate code thunk for DATA
2489 (process_def_file): deduce DATA flag for auto-export sumbols.
2491 2000-10-09 Kazu Hirata <kazu@hxi.com>
2493 * ld.h: Fix formatting.
2494 * ldcref.c: Likewise.
2495 * ldctor.h: Likewise.
2496 * ldemul.c: Likewise.
2497 * ldemul.h: Likewise.
2498 * ldexp.c: Likewise.
2499 * ldexp.h: Likewise.
2500 * ldfile.c: Likewise.
2501 * ldfile.h: Likewise.
2502 * ldlang.c: Likewise.
2503 * ldlang.h: Likewise.
2504 * ldmain.c: Likewise.
2505 * pe-dll.c: Likewise.
2507 * pe-dll.c: Revert some formatting fixes.
2509 2000-10-08 Kazu Hirata <kazu@hxi.com>
2511 * pe-dll.c: Fix formatting.
2513 2000-10-05 Kazu Hirata <kazu@hxi.com>
2515 * ldlang.c: Fix formatting.
2517 2000-10-03 DJ Delorie <dj@redhat.com>
2519 * pe-dll.c (fill_edata): initialize entire block
2520 (make_one): fill in correct section.
2522 2000-10-03 Kazu Hirata <kazu@hxi.com>
2524 * ldexp.c: Fix formatting.
2526 2000-10-02 DJ Delorie <dj@redhat.com>
2528 * emultempl/pe.em (gld_*_after_open): detect case where there two
2529 import libraries for same dll; rename one to ensure proper link
2532 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
2534 (generate_edata): fix typo
2536 2000-09-29 Hans-Peter Nilsson <hp@axis.com>
2538 * scripttempl/crisaout.sc (ENTRY): Now __start.
2539 (.text): Add default setting for __start.
2540 Remove CONSTRUCTORS handling.
2541 (/DISCARD/): Add .gnu.warning.*.
2542 * emulparams/crislinux.sh (ENTRY): Now __start.
2543 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
2544 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
2545 (ENTRY): Now __start.
2546 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
2547 (EXECUTABLE_SYMBOLS): Add default setting for __start.
2549 2000-09-29 Kazu Hirata <kazu@hxi.com>
2551 * deffile.h: Fix formatting.
2553 * ldcref.c: Likewise.
2554 * ldctor.c: Likewise.
2555 * ldctor.h: Likewise.
2556 * ldemul.c: Likewise.
2557 * ldemul.h: Likewise.
2558 * ldexp.c: Likewise.
2559 * ldexp.h: Likewise.
2560 * ldfile.c: Likewise.
2561 * ldfile.h: Likewise.
2562 * ldlang.c: Likewise.
2563 * ldlang.h: Likewise.
2564 * lexsup.c: Likewise.
2566 * pe-dll.c: Likewise.
2568 2000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2570 * pe-dll.c (process_def_file): Uninitialized data wasn't
2571 exported with --export-all-symbols switch.
2573 2000-09-28 DJ Delorie <dj@redhat.com>
2575 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
2576 noname work properly.
2578 2000-09-28 Alan Modra <alan@linuxcare.com.au>
2580 * ld.texinfo (HPPA ELF32): New section.
2582 * emultempl/hppaelf.em (group_size): New.
2583 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
2584 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
2585 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
2586 options to prevent abbreviations matching.
2587 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
2588 (PARSE_AND_LIST_ARGS_CASES): Handle it.
2590 2000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2592 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
2593 on the m68*-*-elf target. Make it support COFF input objects.
2595 2000-09-21 Kazu Hirata <kazu@hxi.com>
2597 * ldmain.c: Fix formatting.
2598 * ldmisc.c: Likewise.
2599 * ldver.c: Likewise.
2600 * ldwrite.c: Likewise.
2602 2000-09-21 Alan Modra <alan@linuxcare.com.au>
2604 * ldwrite.c (clone_section): Silence gcc warnings.
2606 2000-09-20 Alan Modra <alan@linuxcare.com.au>
2608 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
2609 out of memory failure.
2611 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
2612 (clone_section): Handle out of memory failures. Rename var to
2613 avoid c++ reserved word.
2615 2000-09-18 Alan Modra <alan@linuxcare.com.au>
2617 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
2618 stub_name param to stub_sec_name.
2619 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
2621 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2623 * emultempl/m68kelf.em: New file.
2624 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
2625 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
2626 * Makefile.in: Regenerate.
2628 2000-09-15 Alan Modra <alan@linuxcare.com.au>
2630 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
2633 2000-09-13 Nick Clifton <nickc@redhat.com>
2635 * ldmain.c (multiple_definition): Disable relaxation if
2636 multiple symbol definitions are encountered - otherwise the
2637 linker could abort with an assertion failure.
2639 2000-09-10 Nick Clifton <nickc@redhat.com>
2641 * mri.c: Fix formatting.
2643 2000-09-07 H.J. Lu <hjl@gnu.org>
2645 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
2646 * configure: Rebuild.
2648 2000-09-07 H.J. Lu <hjl@gnu.org>
2650 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
2651 * Makefile.in: Rebuild.
2653 2000-09-07 Alan Modra <alan@linuxcare.com.au>
2655 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
2656 broken list handling. Create __start_SECNAME and __stop_SECNAME
2657 when no place-holder. Add some comments. Test both SEC_CODE and
2658 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
2659 Handle case where no output section statement created.
2661 2000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
2663 * configure.tgt (sh-*-linux*): Added.
2664 * Makefile.am: Added eshelf_linux and eshlelf_linux.
2665 * Makefile.in: Rebuilt.
2666 * emulparams/shelf_linux.sh: New file.
2667 * emulparams/shlelf_linux.sh: New file.
2669 2000-09-06 Alan Modra <alan@linuxcare.com.au>
2671 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
2672 try shuffling sections when the orphan happens to be the place
2673 holder. Keep count of unique section names generated so we speed
2674 the search for a new name.
2676 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
2678 * configure: Rebuilt with new libtool.m4.
2680 2000-09-05 Nick Clifton <nickc@redhat.com>
2682 * Makefile.in: Regenerate.
2683 * aclocal.m4: Regenerate.
2684 * configure: Regenerate.
2685 * config.in: Regenerate.
2686 * po/ld.pot: Regenerate.
2688 * ldint.texinfo: Remove CVS revision marker - it foils local
2691 * emultempl/ticoff.em: Remove extraneous comma.
2693 2000-09-05 Alan Modra <alan@linuxcare.com.au>
2695 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
2696 to stub section flags.
2697 (hppa_for_each_input_file_wrapper): New.
2698 (hppa_lang_for_each_input_file): New.
2699 (lang_for_each_input_file): Define to call above.
2700 (multi_subspace): New.
2701 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
2702 (PARSE_AND_LIST_PROLOGUE): Define.
2703 (PARSE_AND_LIST_LONGOPTS): Define.
2704 (PARSE_AND_LIST_OPTIONS): Define.
2705 (PARSE_AND_LIST_ARGS_CASES): Define.
2706 (hppaelf_finish): Call elf32_hppa_set_gp.
2707 (hppaelf_set_output_arch): Remove.
2708 (LDEMUL_SET_OUTPUT_ARCH): Remove.
2710 * emulparams/hppalinux.sh (ELFSIZE): Define.
2712 (OTHER_READONLY_SECTIONS): Define.
2714 (GENERATE_SHLIB_SCRIPT): Define.
2716 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
2717 to const throughout. Change `void *' to `PTR' throughout.
2718 (lang_memory_default): Function is local to file, add `static'.
2720 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
2721 (ehppalinux.c): Likewise.
2722 (earmelf.c): Likewise.
2723 (earmelf_linux.c): Likewise.
2724 (earmelf_linux26.c): Likewise.
2725 * Makefile.in: Regenerate.
2727 * ld.h (ld_config_type): Add unique_orphan_sections.
2728 * lexsup.c (OPTION_UNIQUE): Define.
2729 (ld_options): Add "--unique".
2730 (parse_args): Handle it.
2731 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
2732 search for an existing output section if unique_orphan_sections is
2733 set. Make use of bfd_get_unique_section_name rather than
2734 duplicating code here.
2735 * ld.texinfo: Describe --unique.
2737 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
2738 optional arg to split-by-file.
2739 (parse_args): Handle them.
2740 * ld.texinfo: Update description of these options.
2741 * ldwrite.c (clone_section): Pass in the section name. Replace
2742 local code with bfd_get_unique_section_name.
2743 (split_sections): Tidy code and comments. Use a list traversal
2744 more appropriate to the list construction. Handle cooked section
2745 sizes. Split when split_by_reloc reached rather than exceeded.
2746 Track section size and split when split_by_file reached. Fix
2747 link_order_tail (even though it's not used).
2748 (ldwrite): Modify condition for calling split_sections to suit
2749 changed split_by_reloc and split_by_file.
2750 * ldmain.c (main): Init config.split_by_reloc and
2751 config.split_by_file to -1.
2752 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
2753 Change split_by_file to bfd_size_type.
2755 2000-09-02 Nick Clifton <nickc@redhat.com>
2757 * configure.in: Increase version number to 2.10.91.
2758 * NEWS: Mention new ability to support removal of duplicate DWARF2
2760 * configure: Regenerate.
2761 * aclocal.m4: Regenerate.
2762 * config.in: Regenerate.
2764 2000-09-02 Daniel Berlin <dberlin@redhat.com>
2766 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
2768 * scripttempl/elf32avr.sc: Ditto.
2769 * scripttempl/elfd10v.sc: Ditto.
2770 * scripttempl/elfd30v.sc: Ditto.
2771 * scripttempl/elfi370.sc: Ditto.
2772 * scripttempl/elfm68hc11.sc: Ditto.
2773 * scripttempl/elfm68hc12.sc: Ditto.
2774 * scripttempl/elfi386beos.sc: Ditto.
2775 * scripttempl/v850.sc: Ditto.
2777 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
2779 * acinclude.m4: Include libtool and gettext macros from the
2781 * aclocal.m4, configure: Rebuilt.
2783 2000-08-25 Nick Clifton <nickc@redhat.com>
2785 * ldlang.c (open_output): When choosing the target for a
2786 particular endianness, do nothing if the target is not
2789 2000-08-25 H.J. Lu <hjl@gnu.org>
2791 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
2792 check -rpath nor LD_RUN_PATH for cross link.
2793 * ld.texinfo: Document the change.
2795 2000-08-24 Hans-Peter Nilsson <hp@axis.com>
2797 * NEWS: Mention support for CRIS.
2799 2000-08-23 H.J. Lu <hjl@gnu.org>
2801 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
2802 the current runpath list from bfd_elf_get_runpath_list ()
2805 2000-08-22 H.J. Lu <hjl@gnu.org>
2807 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
2808 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
2809 LD_LIBRARY_PATH for native linker. Display the needed DSO if
2810 trace_file_tries is non-zero.
2811 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
2812 if trace_file_tries is non-zero.
2814 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
2817 2000-08-14 Jason Eckhardt <jle@cygnus.com>
2819 * NEWS: Mention i860 support.
2821 2000-08-14 Andreas Schwab <schwab@suse.de>
2823 * scripttempl/elf.sc: Fix last change to use correct comment
2826 2000-08-10 Geoff Keating <geoffk@cygnus.com>
2828 * scripttempl/elf.sc: Add a comment giving the correspondence
2829 between sections, per-datum sections, and linkonce sections. Make
2830 the comment true even for .bss, .sdata, .sdata2, .sbss, and
2833 2000-08-10 Jason Eckhardt <jle@cygnus.com>
2835 * emulparams/elf32_i860.sh: New file.
2836 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
2837 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
2838 (eelf32_i860.c): New rule.
2839 * Makefile.in: Regenerate.
2841 2000-08-10 Nick Clifton <nickc@cygnus.com>
2843 * emulparams/mipspe.sh (ENTRY): Add definition.
2845 2000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
2847 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
2850 2000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2852 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
2853 the final size of .bss section.
2854 * scripttempl/elfm68hc12.sc: Likewise.
2856 2000-08-04 Alan Modra <alan@linuxcare.com.au>
2858 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
2859 gld${EMULATION_NAME}_parse_args for consistency. Combine
2860 lastoptind and prevoptind vars, and keep track of last optind.
2861 (gld_${EMULATION_NAME}_list_options): Rename to
2862 gld${EMULATION_NAME}_list_options.
2864 2000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
2866 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
2867 (i586-sco-sysv5uw7.1.0).
2869 2000-07-27 H.J. Lu <hjl@gnu.org>
2871 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
2872 (PARSE_AND_LIST_PROLOGUE): New.
2873 (PARSE_AND_LIST_LONGOPTS): Likewise.
2874 (PARSE_AND_LIST_OPTIONS): Likewise.
2875 (PARSE_AND_LIST_ARGS_CASES): Likewise.
2876 (PARSE_AND_LIST_EPILOGUE): Likewise.
2878 2000-07-28 Alan Modra <alan@linuxcare.com.au>
2880 * emultempl/armelf.em: Elide functions common to elf32.em,
2881 ie. most of the file.
2882 (arm_elf_after_open): New. Do arm specific things then call
2883 gld${EMULATION_NAME}_after_open.
2884 (arm_elf_before_allocation): New. Call
2885 gld${EMULATION_NAME}_before_allocation then do arm specifics.
2886 (PARSE_AND_LIST_PROLOGUE): Define.
2887 (PARSE_AND_LIST_SHORTOPTS): Define.
2888 (PARSE_AND_LIST_LONGOPTS): Define.
2889 (PARSE_AND_LIST_OPTIONS): Define.
2890 (PARSE_AND_LIST_ARGS_CASES): Define.
2891 (LDEMUL_AFTER_OPEN): Define.
2892 (LDEMUL_BEFORE_ALLOCATION): Define.
2893 (LDEMUL_BEFORE_PARSE): Define.
2894 (LDEMUL_FINISH): Define.
2896 * emultempl/hppaelf.em: Similarly zap most of this file.
2897 (hppaelf_add_stub_section): Prototype.
2898 (hppaelf_layaout_sections_again): Prototype.
2899 (hook_in_stub): Prototype.
2900 (LDEMUL_SET_OUTPUT_ARCH): Define.
2901 (LDEMUL_FINISH): Define.
2902 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
2904 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
2905 (EXTRA_EM_FILE): New.
2906 * emulparams/armelf_linux.sh: Likewise.
2907 * emulparams/armelf_linux26.sh: Likewise.
2908 * emulparams/hppalinux.sh: Likewise.
2909 * emulparams/hppaelf.sh: Likewise.
2912 * emultempl/elf32.em: Fix formatting.
2913 (EXTRA_EM_FILE): Source it.
2914 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
2915 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
2916 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
2917 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
2918 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
2919 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
2920 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
2921 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
2922 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
2923 allow functions in this file to be overridden.
2924 (PARSE_AND_LIST_SHORTOPTS): Handle it.
2926 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
2928 * emultempl/elf32.em: Reorganize file.
2930 2000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
2932 * emulparams/elf64alpha.sh: Implement "-taso" emulation
2933 specific option to fit 64-bit executable in the lower
2934 31-bit address range. This is done by changing start
2935 address of .interp (the very first section of executable)
2936 and then setting EF_ALPHA_32BIT elf header flag.
2938 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2940 * emultempl/m68kcoff.em: New file.
2941 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
2942 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
2944 * Makefile.in: Regenerate.
2946 2000-07-20 H.J. Lu <hjl@gnu.org>
2948 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
2949 and "disable-new-dtags" to stop getopt from treating -d/-e as
2950 abbreviations for these options.
2952 2000-07-20 H.J. Lu <hjl@gnu.org>
2954 * ld.texinfo: Add documentation for --disable-new-dtags and
2957 * ldmain.c (main): Initialize link_info.new_dtags to false.
2959 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
2960 --disable-new-dtags and --enable-new-dtags.
2961 (gld_${EMULATION_NAME}_list_options): Likewise.
2963 2000-07-05 Kenneth Block <krblock@computer.org>
2965 * lexsup.c: Add optional style to demangle switch
2966 * ld.texinfo: Document optional style to demangle switch.
2968 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
2970 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
2972 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
2973 Regenerate dependencies.
2974 * Makefile.in: Rebuild.
2975 * configure.tgt (cris-*-*): New target.
2976 * emulparams/crisaout.sh, emulparams/criself.sh,
2977 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
2978 * po/POTFILES.in, po/ld.pot: Regenerate.
2980 2000-07-20 H.J. Lu <hjl@gnu.org>
2982 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
2983 Print out ignored -z options.
2985 2000-07-19 H.J. Lu <hjl@gnu.org>
2987 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
2988 (PARSE_AND_LIST_PROLOGUE): New.
2989 (PARSE_AND_LIST_LONGOPTS): Likewise.
2990 (PARSE_AND_LIST_OPTIONS): Likewise.
2991 (PARSE_AND_LIST_ARGS_CASES): Likewise.
2993 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
2995 * lexsup.c (ld_options): Comment out 'z'.
2996 (parse_args): Likewise.
2998 * emultempl/elf32.em: Include "elf/common.h".
2999 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
3001 (gld_${EMULATION_NAME}_list_options): Likewise.
3003 * ld.texinfo: Add documentation for the recognized -z options.
3005 2000-07-19 H.J. Lu <hjl@gnu.org>
3007 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
3008 bfd_elf_set_dt_needed_soname ().
3010 2000-07-18 DJ Delorie <dj@cygnus.com>
3012 * pe-dll.c (pe_dll_id_target): check object target name also
3014 2000-07-18 Hans-Peter Nilsson <hp@axis.com>
3016 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
3017 ${INIT_END} if relocating.
3018 (.fini): Likewise ${FINI_START} and ${FINI_END}.
3020 2000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
3022 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
3023 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
3024 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
3025 errors introduced by the old dynamic lib search order.
3027 2000-07-17 DJ Delorie <dj@cygnus.com>
3029 * pe-dll.c (process_def_file): auto-export data items also
3030 (pe_process_import_defs): also see if _imp_ form needed
3032 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
3034 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
3035 for dll import libraries
3037 2000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
3039 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
3040 gcc 2.95.2 and later.
3042 2000-07-11 Kazu Hirata <kazu@hxi.com>
3044 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
3047 2000-07-10 Alan Modra <alan@linuxcare.com.au>
3049 * ldemul.h (struct lang_input_statement_struct): Remove forward
3051 (struct search_dirs): Likewise.
3052 * ldfile.h (struct lang_input_statement_struct): Likewise.
3053 Protect file from multiple inclusion.
3054 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
3055 declaration from macro to file scope.
3057 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
3058 * ldgram.y: Likewise here.
3059 * ldlang.c: And here.
3060 * ldmain.c: And here.
3061 * mpw-elfmips.c: And here.
3062 * mpw-eppcmac.c: And here.
3063 * emultempl/aix.em: And here.
3064 * emultempl/armcoff.em: And here.
3065 * emultempl/armelf.em: And here.
3066 * emultempl/armelf_oabi.em: And here.
3067 * emultempl/beos.em: And here.
3068 * emultempl/elf32.em: And here.
3069 * emultempl/hppaelf.em: And here.
3070 * emultempl/linux.em: And here.
3071 * emultempl/lnk960.em: And here.
3072 * emultempl/pe.em: And here.
3073 * emultempl/sunos.em: And here.
3074 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
3075 * mpw-idtmips.c: Ditto.
3076 * emultempl/generic.em: Ditto.
3077 * emultempl/gld960.em: Ditto.
3078 * emultempl/gld960c.em: Ditto.
3079 * emultempl/mipsecoff.em: Ditto.
3080 * emultempl/ticoff.em: Ditto.
3081 * emultempl/vanilla.em: Ditto.
3083 * pe-dll.c: Include ldfile.h
3084 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
3086 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
3087 arguments to bfd_elf32_size_dynamic_sections call.
3088 (gldelf32ebmip_place_orphan): Add missing arguments to
3089 lang_leave_output_section_statement call.
3091 2000-07-10 H.J. Lu <hjl@gnu.org>
3093 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
3095 (strhash): Likewise.
3096 (compute_dll_image_base): Likewise.
3097 (pe_undef_found_sym): Likewise.
3098 (pe_undef_cdecl_match): Likewise.
3099 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
3100 argument "arch" with ATTRIBUTE_UNUSED.
3102 2000-07-10 Alan Modra <alan@linuxcare.com.au>
3104 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
3106 From Ryan Bradetich <rbradetich@uswest.net>
3107 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
3109 2000-07-09 Alan Modra <alan@linuxcare.com.au>
3111 Changes to create multiple linker stubs, positioned immediately
3112 before the section where they are required.
3113 * emultempl/hppaelf.em: Include elf32-hppa.h.
3114 (stub_sec, file_chain): Delete.
3115 (hppaelf_create_output_section_statements): Don't make a stub
3117 (hook_stub_info): New struct.
3118 (hook_in_stub): New function.
3119 (hppaelf_add_stub_section): New function.
3120 (hppaelf_finish): Do nothing for relocateable links. Modify the
3121 call to elf32_hppa_size_stubs. Move code for updating section
3123 (hppaelf_layaout_sections_again): ..to here, a new function.
3125 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
3126 broken list handling. Pass in a pointer to the list.
3127 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
3129 (hppaelf_before_parse): Prototype.
3130 (hppaelf_set_output_arch): Prototype.
3131 (hppaelf_create_output_section_statements): Prototype.
3132 (hppaelf_delete_padding_statements): Prototype.
3133 (hppaelf_finish): Prototype.
3136 * emultempl/hppaelf.em: Include ctype.h.
3137 (struct orphan_save): New.
3138 (gld${EMULATION_NAME}_place_orphan): New.
3139 (output_rel_find): New.
3140 (hppaelf_get_script): Update from elf32.em.
3141 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
3142 Change emulation_name field to "${EMULATION_NAME}". Add
3143 gld${EMULATION_NAME}_place_orphan.
3145 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
3146 ehppalinux.o, sort it. Regenerate dependencies.
3147 (ehppalinux.c): Depend on hppaelf.em
3148 * Makefile.in: Regenerate.
3150 * configure.tgt: targ_emul=hppalinux for hppa*linux
3152 * emulparams/hppalinux.sh: New.
3153 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
3155 2000-07-08 Alan Modra <alan@linuxcare.com.au>
3157 * lexsup.c (parse_args): Copy section name.
3159 2000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
3161 * emultempl/pe.em: institute the following search order for
3162 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
3163 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
3164 static lib (libfoo.a) if none of the above are found.
3166 2000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
3168 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
3169 (longopts): New --{enable,disable}-auto-image-base options.
3170 (gld_${EMULATION_NAME}_list_options): Document.
3171 (gld_${EMULATION_NAME}_parse): Handle.
3172 (strhash): New static function.
3173 (compute_dll_image_base): New static function.
3174 (gld_${EMULATION_NAME}_set_symbols): Use.
3176 2000-07-05 DJ Delorie <dj@redhat.com>
3180 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
3182 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
3183 * emulparams/elf32btsmip.sh: New file.
3184 * Makefile.am: Add traditional mips target.
3185 * Makefile.in: Rebuild.
3187 2000-07-01 H.J. Lu <hjl@gnu.org>
3189 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
3190 automake to use YLWRAP.
3191 * Makefile.in: Rebuild.
3193 2000-07-01 Alan Modra <alan@linuxcare.com.au>
3195 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
3196 (CLEANFILES): Add DEPA.
3197 * Makefile.in: Regenerate.
3199 2000-06-30 Timothy Wall <twall@ppc>
3201 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
3202 the page in the upper octet of the address.
3204 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
3206 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
3208 2000-06-24 Alan Modra <alan@linuxcare.com.au>
3210 * NEWS: arm-elf does --gc-sections too.
3212 2000-06-22 Alan Modra <alan@linuxcare.com.au>
3214 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
3216 * Makefile.in: Regenerate.
3218 2000-06-21 H.J. Lu <hjl@gnu.org>
3220 * Makefile.am: Rebuild dependency.
3221 * Makefile.in: Rebuild.
3223 2000-06-20 H.J. Lu <hjl@gnu.org>
3225 * Makefile.am: Rebuild dependency.
3226 * Makefile.in: Rebuild.
3228 2000-06-20 Timothy Wall <twall@cygnus.com>
3230 * scripttempl/tic54xcoff.sc: New.
3231 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
3232 * gen-doc.texi: Add flag for TI COFF.
3233 * ld.texinfo: Add documentation for TI COFF handling switches.
3234 * emultempl/ticoff.em: New. TI COFF handling.
3235 * configure.tgt: Add tic54x target.
3236 * Makefile.am: Add tic54x target.
3237 * Makefile.in: Ditto.
3239 2000-06-20 Alan Modra <alan@linuxcare.com.au>
3241 * ldmain.c (set_scripts_dir): Correct pointer comparison when
3242 checking for backslashes.
3244 2000-06-19 Alan Modra <alan@linuxcare.com.au>
3246 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
3248 2000-06-18 Alan Modra <alan@linuxcare.com.au>
3250 * NEWS: Update list of targets supporting --gc-sections.
3252 * scripttempl/elf.sc: KEEP .eh_frame contents.
3253 * scripttempl/elfd30v.sc: Same here.
3255 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
3257 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
3259 * Makefile.in: Rebuild.
3260 * configure.tgt: Recognize m68hc12 and m68hc11.
3261 * scripttempl/elfm68hc12.sc: New file.
3262 * emulparams/m68hc12elfb: New emulation.
3263 * emulparams/m68hc12elf: New emulation.
3264 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
3265 (includes a memory.x script to define the ROM and RAM banks).
3266 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
3267 New configuration files for support of Motorola 68hc11
3269 2000-06-15 Alan Modra <alan@linuxcare.com.au>
3271 * ldmain.c (main): Only change SEC_READONLY for final link.
3273 2000-06-13 H.J. Lu <hjl@gnu.org>
3275 * configure: Regenerate.
3277 2000-06-08 David O'Brien <obrien@FreeBSD.org>
3279 * configure.in (VERSION): Update to show this is the CVS mainline.
3281 2000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3283 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
3284 input objects to be ECOFF.
3285 (check_sections): einfo takes %B, not %P, to print a BFD name.
3287 2000-06-05 Michael Matz <matz@ifh.de>
3289 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
3292 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
3294 2000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
3296 * emulparams/avr1200.sh (STACK): Define as 0.
3297 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
3298 * emulparams/avr4433.sh (STACK): Likewise.
3299 * emulparams/avr44x4.sh (STACK): Likewise.
3300 * emulparams/avr85xx.sh (STACK): Likewise.
3301 * emulparams/avrmega103.sh (STACK): Likewise.
3302 * emulparams/avrmega161.sh (STACK): Likewise.
3303 * emulparams/avrmega603.sh (STACK): Likewise.
3304 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
3305 (__stack): Define from ${STACK} for main().
3307 2000-05-26 Alan Modra <alan@linuxcare.com.au>
3309 * Makefile.am: Update dependencies with "make dep-am"
3310 * Makefile.in: Regenerate.
3312 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
3314 * ldmain.c: Include filenames.h.
3315 (set_scripts_dir): Support backslashes in program name.
3317 2000-05-22 Igor Shevlyakov <igor@windriver.com>
3319 * ldmain.c (main): When deciding if ".text" section should be
3320 read-only, don't forget to reset SEC_READONLY because it
3321 could be already set.
3323 2000-05-22 Thomas de Lellis <tdel@windriver.com>
3325 * ld.1: Add documentation for new command line option:
3326 --section-start <sectionname>=<sectionorg>
3327 This is a generic version of -Ttext etc. which accepts
3328 any section name as a parameter instead of just text/data/
3330 * ld.texinfo: More docs.
3332 * lexsup.c: (parse_args): Recognize new command line option.
3333 (ld_options): Add new option.
3335 2000-05-18 H.J. Lu <hjl@gnu.org>
3337 * lexsup.c (parse_args): `i' == `r', not `q'.
3339 2000-05-18 Jeffrey A Law (law@cygnus.com)
3341 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
3343 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
3344 Rick Gorton <gorton@scrugs.lkg.dec.com>
3346 Add support for '-q' == '--emit-relocs' switch.
3347 * ldmain.c (main): Default to false.
3348 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
3349 * NEWS: Describe the emitrelocations switch.
3350 * ld.texinfo: Describe the emitrelocations switch.
3352 2000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
3354 * emultempl/pe.em (_open_dynamic_archive): New function: Search
3355 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
3356 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
3359 2000-05-15 David O'Brien <obrien@FreeBSD.org>
3361 * lexsup.c (parse_args): Update the year in the copyright notice.
3363 2000-05-13 Alan Modra <alan@linuxcare.com.au>
3365 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
3366 Replace defines with those from intl/libgettext.h to quieten gcc
3369 2000-05-10 H.J. Lu <hjl@gnu.org>
3371 * ldlang.c (open_input_bfds): Don't load the same file within
3372 a group again if the whole archive has been loaded already.
3374 2000-05-03 Alan Modra <alan@linuxcare.com.au>
3376 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
3377 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
3380 2000-05-01 Jim Wilson <wilson@cygnus.com>
3382 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
3384 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
3385 host "ia64-*-linux-gnu*".
3387 2000-04-29 Andreas Jaeger <aj@suse.de>
3389 * ld.h: Correctly check GCC version.
3391 2000-04-25 Jeffrey A Law (law@cygnus.com)
3393 * Makefile.am: Add PA64 support. Add missing dependencies for
3395 * Makefile.in: Rebuilt.
3396 * configure.tgt: Add PA64 support (currently disabled).
3398 2000-04-25 Alan Modra <alan@linuxcare.com.au>
3400 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
3401 (output_rel_find): New function.
3402 (hold_section, hold_use): Delete.
3403 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
3404 hold_interp): Make local to place_orphan.
3405 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
3406 rather than place_section to find possible previous use of orphan.
3407 Similarly find the place-holder output sections. Use returned
3408 value from lang_enter_output_section_statement rather than calling
3409 lang_output_section_statement_lookup.
3410 * emultempl/armelf.em: Same here.
3411 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
3413 * ldlang.c (lang_enter_output_section_statement): Return output
3415 * ldlang.h (lang_enter_output_section_statement): Change
3418 * ldlang.h (lang_output_section_statement): Export it.
3419 * ldlang.c (lang_output_section_statement): Ditto.
3421 2000-04-24 Nick Clifton <nickc@cygnus.com>
3423 * ld.texinfo (Output Section Data): Add note that section data
3424 commands cannot appear outside of section directives.
3426 2000-04-2 Matthew Green <mrg@cygnus.com>
3428 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
3430 2000-04-21 Richard Henderson <rth@cygnus.com>
3431 David Mosberger <davidm@hpl.hp.com>
3433 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
3434 (eelf64_ia64.c): New rule.
3435 * Makefile.in: Rebuild.
3436 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
3437 * emulparams/elf64_ia64.sh: New file.
3439 2000-04-21 Richard Henderson <rth@cygnus.com>
3441 * scripttempl/elfd30v.sc: Place .gcc_except_table.
3443 2000-04-19 Alan Modra <alan@linuxcare.com.au>
3445 * dep-in.sed: Match space at start of file name, not at end.
3447 2000-04-18 H.J. Lu <hjl@gnu.org>
3449 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
3450 lang_leave_output_section_statement () after calling
3451 lang_enter_output_section_statement ().
3452 * emultempl/armelf.em: Likewise.
3454 2000-04-18 Alan Modra <alan@linuxcare.com.au>
3456 * emultempl/elf32.em (struct orphan_save): Add section field.
3457 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
3458 better order, and place first orphan section as we did before the
3459 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
3460 Don't call make_bfd_section here, let wild_doit do the job for us.
3461 Don't build a statement list when we'll only throw it away.
3462 * emultempl/armelf.em: Ditto.
3463 * emultempl/pe.em: Similarly.
3465 2000-04-14 Geoff Keating <geoffk@cygnus.com>
3467 * scripttempl/elfppc.sc: Remove.
3468 * emulparams/elf32ppc.sh: Use elf.sc.
3469 * emulparams/elf32lppc.sh: Use elf.sc.
3470 * emulparams/elf32ppclinux.sh: Use elf.sc.
3471 * emulparams/elf32ppcsim.sh: New file.
3472 * emulparams/elf32lppcsim.sh: New file.
3473 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
3474 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
3475 * Makefile.in: Regenerate.
3476 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
3478 2000-04-14 Alan Modra <alan@linuxcare.com.au>
3480 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
3481 ~SEC_ALLOC sections too. Init start address of debug sections.
3482 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
3483 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
3484 Also set all relocateable section start addresses.
3486 2000-04-13 Geoff Keating <geoffk@cygnus.com>
3488 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
3489 Add new BSS_PLT variable for when .plt need not be contained in
3490 the file. Move _etext so that it is also after .fini, and provide
3491 both etext and _etext with a leading underscore. Mark the start
3494 2000-04-12 Alan Modra <alan@linuxcare.com.au>
3496 * emultempl/elf32.em (struct orphan_save): New.
3497 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
3498 hold_interp): Make them struct orphan_save.
3499 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
3500 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
3501 the end of the relevant section list. Also add associated section
3502 statements to the end of any previous orphan statements.
3503 * emultempl/armelf.em: Similarly.
3504 * emultempl/pe.em: Similarly.
3506 2000-04-11 Alan Modra <alan@linuxcare.com.au>
3508 * ld.texinfo (Simple Example): Remove extraneous paragraph.
3510 2000-04-07 Andrew Cagney <cagney@b1.cygnus.com>
3512 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
3513 --enable-build-warnings option.
3514 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
3515 * Makefile.in, configure: Re-generate.
3517 2000-04-04 Alan Modra <alan@linuxcare.com.au>
3519 * po/ld.pot: Regenerate.
3521 * lexsup.c (help): Restore translated part of bug string.
3523 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
3524 (DEP): Quote when passing vars to sub-make. Add warning message
3526 (DEP1): Rewrite for "gcc -MM".
3527 (CLEANFILES): Add DEP2.
3528 Update dependencies.
3529 * Makefile.in: Regenerate.
3531 2000-04-03 Alan Modra <alan@linuxcare.com.au>
3533 * ld.h: #include "bin-bugs.h"
3534 * lexsup.c (help): Use REPORT_BUGS_TO.
3536 2000-03-27 Denis Chertykov <denisc@overta.ru>
3538 * configure.tgt (avr-*-*): New target support.
3539 * Makefile.am: Likewise.
3540 * scripttempl/elf32avr.sc: New script file.
3541 * emulparams/avr1200.sh: New file.
3542 * emulparams/avr23xx.sh: New file.
3543 * emulparams/avr4433.sh New file.
3544 * emulparams/avr44x4.sh New file.
3545 * emulparams/avr85xx.sh New file.
3546 * emulparams/avrmega103.sh New file.
3547 * emulparams/avrmega161.sh New file.
3548 * emulparams/avrmega603.sh New file.
3549 * Makefile.in: Regenerate.
3551 2000-03-09 Andreas Jaeger <aj@suse.de>
3553 * Makefile.am (check-DEJAGNU): Also unset LANG.
3554 * Makefile.in: Rebuild.
3556 2000-03-06 Ian Lance Taylor <ian@zembu.com>
3558 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
3561 2000-03-02 H.J. Lu <hjl@gnu.org>
3563 * emulparams/elf32mcore.sh: Include "getopt.h".
3565 2000-03-01 Ian Lance Taylor <ian@zembu.com>
3567 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
3569 2000-03-01 H.J. Lu <hjl@gnu.org>
3571 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
3572 * emulparams/shpe.sh: Likewise.
3574 2000-03-01 Nick Clifton <nickc@cygnus.com>
3576 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
3577 to unused parameters.
3579 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
3580 functions only used by DLL code.
3581 (_place_orphan): Initialise 'dollar'.
3583 2000-03-01 H.J. Lu <hjl@gnu.org>
3585 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
3586 indicate if the undefined symbol is a fatal error or not.
3587 Don't delete the output file if "fatal" is false.
3589 2000-02-29 H.J. Lu <hjl@gnu.org>
3591 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
3592 Set LC_COLLATE and LC_ALL to null and export them. It is for
3593 sort which expects the C locale.
3594 Add $(LIBS) to all $(HOSTING_LIBS).
3595 * Makefile.in: Rebuild.
3597 2000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
3599 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
3600 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
3601 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
3602 (ld_emulation_xfer_struct): Add missing NULL initialiser for
3603 find_potential_libraries.
3605 2000-02-28 Jim Blandy <jimb@redhat.com>
3607 * ldgram.y (exclude_name_list): Don't require a comma to separate
3608 list entries; the lexer considers commas to be valid part of a
3609 filename, so in something like `foo, bar' the comma is considered
3610 part of the first filename, `foo,'.
3611 * ld.texinfo: Update section on EXCLUDE_FILE lists.
3613 2000-02-27 Loren J. Rittle <ljrittle@acm.org>
3615 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
3616 host "i[3456]86-*-freebsdelf*".
3618 2000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
3620 * scripttempl/i386go32.sc: Move misplaced semicolons.
3622 2000-02-25 Ian Lance Taylor <ian@zembu.com>
3624 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
3625 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
3626 (eelf64hppa.c, ehppaelf.c): Remove targets.
3627 * Makefile.in: Rebuild.
3629 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
3631 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
3632 GNU/Linux/sparc, but keep the default as 32.
3634 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
3635 it default if sparcv9 or sparc64.
3637 2000-02-24 Nick Clifton <nickc@cygnus.com>
3639 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
3640 * Makefile.in: Regenerate.
3641 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
3643 * ldemul.h (ld_emulation_xfer_struct): Add new field:
3644 find_potential_libraries.
3645 * ldemul.c (ldemul_find_potential_libraries): New function.
3647 * ldfile.c (ldfile_open_file_search): Allow function to be
3649 (ldfile_open_file): Call ldemul_find_potential_libraries.
3650 * ldfile.h: Add prototype for ldfile_open_file_search.
3652 * pe-dll.c: Add support for ARM, MIPS and SH targets.
3654 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
3655 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
3657 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
3658 (gld_X_find_potential_libraries): New function. Search for
3659 libraries called "*.lib".
3661 * scripttempl/pe.sc: Add .pdata section.
3663 2000-02-23 Richard Henderson <rth@cygnus.com>
3665 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
3666 Add and use memory regions.
3668 2000-02-23 Linas Vepstas (linas@linas.org)
3670 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
3672 * Makefile.am: Add support for Linux/IBM 370.
3673 * configure.tgt: Likewise.
3675 * Makefile.in: Regenerate.
3677 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
3679 * ldlang.c (print_input_section, print_data_statement,
3680 print_reloc_statement, print_padding_statement, insert_pad,
3681 size_input_section, lang_check_section_addresses,
3682 lang_size_sections, lang_do_assignments, lang_set_startof,
3683 lang_one_common): Change `opb' to unsigned.
3684 (lang_do_assignments): Also change `size' to unsigned.
3686 2000-02-16 Richard Henderson <rth@cygnus.com>
3688 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
3690 2000-02-16 Timothy Wall <twall@cygnus.com>
3692 * mri.c (mri_draw_tree): Add default LMA region argument to call
3693 to lang_leave_output_section_statement.
3694 * ldlang.h: Update prototypes with LMA region arguments.
3695 * ldlang.c (lang_size_sections): Encapsulate region bounds
3696 checking in os_check_region call.
3697 (os_check_region): New function.
3698 (lang_output_section_statement_lookup): Initialize lma_region.
3699 (lang_leave_output_section_statement): Add LMA region argument.
3700 (lang_leave_overlay): Ditto.
3701 * ldgram.y: Handle LMA region syntax.
3702 * ld.texinfo (Output Section Description): Describe LMA region usage.
3703 * emultempl/armelf.em (gld$place_orphan): Add default value for
3704 lma region in call to lang_leave_output_section_statement.
3705 * emultempl/elf32.em (gld$place_orphan): Add default value for
3706 lma region in call to lang_leave_output_section_statement.
3707 * emultempl/pe.em (gld$place_orphan): Add default value for
3708 lma region in call to lang_leave_output_section_statement.
3711 2000-02-04 Timothy Wall <twall@redhat.com>
3713 * ldlang.c (lang_check_section_addresses): Use bytes instead of
3714 octets when calculating section end addresses.
3716 2000-02-04 Timothy Wall <twall@redhat.com>
3718 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
3720 2000-02-03 Timothy Wall <twall@redhat.com>
3722 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
3724 * ldlang.c (print_input_section, print_data_statement,
3725 print_reloc_statement, print_padding_statement): Print target
3726 address values and section sizes as bytes, not octets.
3727 (insert_pad) Calculate padding size in octets, and adjust "dot"
3729 (size_input_section) Always adjust "dot" by bytes, not octets.
3730 (lang_check_section_addresses, lang_do_assignments) Adjust
3731 "dot" by bytes, not octets. Use the larger of the directive size
3732 or octets_per_byte for the number of octets actually allocated in
3734 (lang_set_startof) Make sure STARTOF returns a target address.
3735 (lang_one_common) Record size changes in octets.
3736 (lang_abs_symbol_at_end_of) Section end symbol's value is
3737 recorded in target bytes.
3738 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
3739 to be clear about behavior when an octet is smaller than one byte.
3741 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
3743 * ldcref.c (output_cref): Don't pass message strings to printf
3747 * ldmisc.c (vfinfo): Same here.
3750 2000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
3752 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
3753 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
3754 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
3755 Add missing NULL initialisers, and comments.
3757 * testsuite/ld-srec/sr3.cc (__rethrow): New.
3759 2000-01-21 Nick Clifton <nickc@cygnus.com>
3761 * ldlang.c (lang_size_sections): Fix typo in comment.
3763 2000-01-18 H.J. Lu <hjl@gnu.org>
3765 * ldlang.c (lang_size_sections): Also update the current
3766 address of a region if the SEC_NEVER_LOAD bit is not set.
3768 2000-01-10 Philip Blundell <pb@futuretv.com>
3770 * configure.tgt (arm*-*-conix*): New target.
3772 2000-01-07 Nick Clifton <nickc@cygnus.com>
3774 * ld.texinfo (Options): Remind users to preceed linker command
3775 line switches with -Wl, (or whatever is appropriate) if it is
3776 being invoked by a comnpiler driver program.
3777 Fix description of the behaviour of the -n command line switch.
3779 2000-01-05 Catherine Moore <clm@cygnus.com>
3781 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
3783 * ld.texinfo (EXCLUDE_FILE): Update documentation.
3784 * ldgram.y (wildcard_spec): Support a list of excluded_files.
3785 (exclude_name_list): New.
3786 ldlang.c (walk_wild_section): Support list of excluded files.
3787 (print_wild_statement): Likewise.
3788 (lang_add_wild): Likewise.
3789 * ldlang.h (lang_wild_statement_type): Likewise.
3790 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
3792 2000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
3794 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
3795 (process_def_file): Use.
3796 (pe_dll_compat_implib): New variable.
3799 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
3800 pe_dll_compat_implib.
3802 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
3803 compat-implib options.
3804 (gld_${EMULATION_NAME}_list_options): List new options.
3805 (gld_${EMULATION_NAME}_parse_args): Handle.
3807 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
3810 * deffilep.y (opt_name): Allow "." in name.
3812 For older changes see ChangeLog-9899
3818 version-control: never