1 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
3 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
4 for presence of .MMIX.reg_contents.linker_allocated before early
7 * NEWS: Mention support for MMIX.
9 2002-02-15 Alan Modra <amodra@bigpond.net.au>
11 Support arbitrary length fill patterns.
12 * ld.texinfo (Output Section Fill): Describe fill expressions.
13 (FILL): Refer to the above.
14 * ldexp.h (etree_value_type): Add "str" field.
15 (union etree_union): Add "str" to "value" struct.
16 (exp_bigintop): Declare.
17 (exp_get_fill): Declare.
18 * ldexp.c: Include "safe-ctype.h".
19 (exp_intop): Set value.str to NULL.
20 (exp_bigintop): New function.
21 (new_rel): Pass in "str", and set new.str from it.
22 (new_rel_from_section): Set new.str to NULL.
23 (fold_name): Adjust calls to new_rel.
24 (exp_fold_tree): Likewise.
25 (exp_get_fill): New function.
26 * ldgram.y (struct big_int bigint, fill_type *fill): New.
27 (INT): Returns a "bigint". Adjust all code handling INTs.
28 (fill_opt): Returns a "fill".
29 (fill_exp): Split out of fill_opt, use for FILL.
30 * ldlang.h (struct _fill_type): New.
31 (fill_type): Move typedef to ldexp.h.
32 (lang_output_section_statement_type): "fill" is now a pointer.
33 (lang_fill_statement_type): Likewise.
34 (lang_padding_statement_type): Likewise.
35 (lang_add_fill): Now takes a "fill_type *" param.
36 (lang_leave_output_section_statement): Likewise.
37 (lang_do_assignments): Likewise.
38 (lang_size_sections): Likewise.
39 (lang_leave_overlay_section): Likewise.
40 (lang_leave_overlay): Likewise.
41 * ldlang.c: Include ldgram.h after ldexp.h.
42 (lang_output_section_statement_lookup): Adjust for fill_type change.
43 (print_fill_statement): Likewise.
44 (print_padding_statement): Likewise.
45 (insert_pad): Now takes a "fill_type *" arg.
46 (size_input_section): Likewise.
47 (lang_size_sections_1): Likewise.
48 (lang_size_sections): Likewise.
49 (lang_do_assignments): Likewise.
50 (lang_add_fill): Likewise.
51 (lang_leave_output_section_statement): Likewise.
52 (lang_leave_overlay_section): Likewise.
53 (lang_leave_overlay): Likewise.
54 Adjust all callers of the above function.
55 * ldlex.l: Include ldgram.h after ldexp.h. Allow hex numbers
56 starting with "0X" as well as "0x". Return bigint.str for hex
57 numbers starting with "0x" or "0X", zero bigint.str otherwise.
58 Always use base 16 for numbers starting with "$".
59 * ldmain.c: Include ldgram.h after ldexp.h.
60 * ldwrite.c (build_link_order): Use bfd_data_link_order in place
61 of bfd_fill_link_order.
62 * pe-dll.c: Adjust lang_do_assignments calls.
63 * emultempl/elf32.em: Likewise.
64 * emultempl/hppaelf.em: Likewise.
65 * emultempl/ppc64elf.em: Likewise.
66 * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
67 lang_add_assignment call.
68 * emultempl/pe.em: Likewise.
70 2002-02-14 Phil Edwards <pme@gcc.gnu.org>
72 * ld.texinfo (VERSION scripts): Symbol names are globbing patterns.
73 * ldgram.y (lang_new_vers_regex): Rename to lang_new_vers_pattern;
74 the pattern in question is not a regexp.
77 * ldlex.l (V_IDENTIFIER): Allow '[', ']', '-', '!', and '^' also.
79 2002-02-12 Jakub Jelinek <jakub@redhat.com>
81 * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
82 * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
83 (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
84 * ldexp.c (exp_data_seg): New variable.
85 (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
86 (fold_binary): Handle DATA_SEGMENT_ALIGN.
87 (exp_fold_tree): Handle DATA_SEGMENT_END.
88 Pass allocation_done when recursing instead of hardcoding
89 lang_allocating_phase_enum.
90 * ldexp.h (exp_data_seg): New.
91 * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
92 (lang_size_sections): New.
93 * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
94 * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
95 if COMMONPAGESIZE is defined.
96 * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
97 * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
98 * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
99 * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
100 * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
103 2002-02-11 Alan Modra <amodra@bigpond.net.au>
105 * Makefile.in: Regenerate.
107 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
109 * lexsup.c: Remove strtoul declaration.
111 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
113 * ldmain.c: Add prototype for main ().
114 * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
115 * emultempl/lnk960.em (lnk960_choose_target): Function should
118 2002-02-10 Alan Modra <amodra@bigpond.net.au>
120 * ldlang.c (entry_section): New initialised variable.
121 (lang_finish): Use it.
122 * ldlang.h (entry_section): Declare.
123 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
124 entry_section to ".opd".
126 2002-02-09 Chris Demetriou <cgd@broadcom.com>
128 * ld.texinfo (Options): Add back in -nostdlib documentation,
129 which had been inadvertently removed.
131 2002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
133 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
134 register section vma to a sane value after emitting error. Make
135 fatal conditions cause program exit when emitting message.
137 2002-02-08 Ivan Guzvinec <ivang@opencores.org>
139 * configure.tgt: Add or32-*-rtems target.
141 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
144 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
145 * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
146 in OTHER_RELOCATABLE_SECTIONS.
147 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
148 * emulparams/shelf32.sh (STACK_ADDR): Define.
149 (OTHER_RELOCATABLE_SECTIONS): Renamed to...
150 (OTHER_SECTIONS): this. Removed stack settings.
151 * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
152 (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
153 2001-03-12 DJ Delorie <dj@redhat.com>
154 * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
155 relaxing if any shmedia or mixed sections are found.
156 2001-03-07 DJ Delorie <dj@redhat.com>
157 * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
158 einfo. Gracefully decline to output to non-elf formats.
159 2001-03-06 Hans-Peter Nilsson <hpn@redhat.com>
160 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
161 Default to _end aligned to next multiple of 0x40000, plus 0x40000.
162 * emulparams/shelf32.sh: Ditto.
163 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
164 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
166 2001-01-10 Ben Elliston <bje@redhat.com>
167 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
168 non-portable shell constructs. From Hans-Peter Nilsson.
169 2001-01-09 Hans-Peter Nilsson <hpn@cygnus.com>
170 * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
171 * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
172 dependencies to the shell script include chain.
173 * Makefile.in: Regenerate.
174 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
175 * emultempl/sh64elf.em: Update and tweak comments.
176 (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
177 make a .cranges section SEC_IN_MEMORY.
178 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
179 * emultempl/sh64elf.em
180 (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
181 .cranges section found to be necessary; continue and set stored
182 section contents flags for sections with non-mixed contents.
183 Use a struct sh64_section_data container and sh64_elf_section_data
184 to store contents-type flags.
185 Remove unused update of "isec".
186 (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
187 sections marked SHF_SH5_ISA32_MIXED. Use sh64_elf_section_data to
188 access contents-type flags. Assert that the associated container
189 is initialized. Use that container, not elf_gp_size, to hold size
190 of linker-generated cranges contents.
191 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
192 * emultempl/sh64elf.em
193 (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
194 there's already a .cranges section. When section flag difference
195 is found, don't NULL-check cranges a second time. Tweak comments.
196 (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
197 merging, not max size, as size of ld-generated .cranges contents.
198 Don't set ELF section flags in output section. When checking for
199 needed .cranges descriptors, don't use a variable; compare
200 incoming ELF section flags directly to SHF_SH5_ISA32_MIXED. Tweak
202 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
203 * emultempl/sh64elf.em: New file.
204 * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
205 * Makefile.in: Regenerate.
206 * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
207 (OTHER_RELOCATING_SECTIONS): Ditto.
208 (EXTRA_EM_FILE): New, set to sh64elf if not set.
209 * emulparams/shlelf32.sh: Stub out all settings except
210 OUTPUT_FORMAT. Source shelf32.sh.
211 * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
212 OTHER_RELOCATING_SECTIONS.
213 (OTHER_RELOCATING_SECTIONS): Remove .cranges.
214 * emulparams/shlelf64.sh: Stub out all settings except
215 OUTPUT_FORMAT. Source shelf64.sh.
216 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
217 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
219 (DATA_START_SYMBOLS): Define, provide ___data.
220 (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
221 for consecutive .data section.
222 (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
223 section after .data section.
224 * emulparams/shlelf64.sh: Ditto.
225 * emulparams/shelf32.sh: Ditto.
226 (ALIGNMENT): Define to 8.
227 * emulparams/shelf32.sh: Ditto.
228 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
229 * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
230 built-in linker scripts.
231 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
232 * emulparams/shlelf64.sh: New.
233 * emulparams/shelf64.sh: New.
234 * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
236 * Makefile.am: Add support for shlelf64 and shelf64.
237 * Makefile.in: Regenerate.
238 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
239 * configure.tgt (sh64-*-elf*): Add shelf as default.
240 Add shlelf to targ_extra_emuls.
241 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
242 * emulparams/shelf32.sh: New file.
243 * emulparams/shlelf32.sh: New file.
244 * Makefile.am: Add support for shlelf32 and shelf32.
245 * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
246 * Makefile.in: Regenerate.
248 2002-02-05 Hans-Peter Nilsson <hp@axis.com>
250 * ldlang.c (lang_reset_memory_regions): Rename from
251 reset_memory_regions. Change all callers. Make public.
252 * ldlang.h (lang_reset_memory_regions): Prototype.
253 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
254 lang_reset_memory_regions before lang_size_sections.
255 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
256 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
258 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
260 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
261 arithmetic when checking for too many global registers.
263 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
265 * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
266 (ehppanbsd.c): New rule.
267 * Makefile.in: Regenerate.
268 * configure.tgt (hppa*-*-netbsd*): New target.
269 * emulparams/hppalinux.sh: Add comment to check other files
270 that source this file it is modified, and list which
272 * emulparams/hppanbsd.sh: New file.
274 2002-02-01 Geoffrey Keating <geoffk@redhat.com>
276 * scripttempl/xstormy16.sc: Don't allocate extra space for the
279 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
281 Support on-demand global register allocation from
282 R_MMIX_BASE_PLUS_OFFSET relocs.
283 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
284 mmix_set_reg_section_vma. Call
285 _bfd_mmix_finalize_linker_allocated_gregs.
286 (mmix_before_allocation): New function.
287 (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
288 (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
289 * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
290 (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
291 before .MMIX.reg_contents.
292 * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
293 (mmo_after_open): New function.
294 (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
295 * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting. Add
296 .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
298 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
300 * emulparams/or32.sh: New file.
301 * emulparams/or32elf.sh: New file.
302 * scripttempl/or32.sc: New file.
303 * configure.tgt : Add support for or32.
304 * configure: Regenerate
305 * Makefile.am: Add support for or32.
306 * Makefile.in: Regenerate.
307 * NEWS: Mention support for or32.
308 * po/ld.pot: Regenerate.
310 2002-01-29 Chris Demetriou <cgd@broadcom.com>
311 Mitch Lichtenberg <mpl@broadcom.com>
313 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
314 * emultempl/mipself.em: New file to handle MIPS ELF embedded
315 reloc creation (ld --embedded-relocs).
317 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
319 * configure: Regenerated.
321 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
323 * Makefile.am (install): Depend on install-info.
324 * Makefile.in: Regenerate.
326 2002-01-26 Christian Rose <menthos@menthos.com>
328 * ldmain.c (main): Use full sentences to ease translation.
330 2002-01-26 Nick Clifton <nickc@cambridge.redhat.com>
332 * po/fr.po: Updated version.
334 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
336 * po/es.po: Updated version.
338 2002-01-25 Andreas Jaeger <aj@suse.de>
340 * ldlex.l (yy_input): Correct error check.
342 2002-01-25 Alan Modra <amodra@bigpond.net.au>
344 * ldmisc.c (demangle): Put back dots when string not demangled.
346 2002-01-22 Richard Henderson <rth@redhat.com>
348 * emulparams/elf64alpha.sh (NOP): Use unop.
350 2002-01-21 Andreas Jaeger <aj@suse.de>
352 * ldlex.l: Use fread instead of read.
354 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
356 * configure.tgt (ia64-*-netbsd*): New target.
358 2002-01-21 H.J. Lu <hjl@gnu.org>
360 * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
362 * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
364 2002-01-18 Andreas Jaeger <aj@suse.de>
366 * ldver.c (ldversion): Update year.
368 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
370 * po/ld.pot: Regenerate.
372 2002-01-16 Alan Modra <amodra@bigpond.net.au>
374 * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
375 * Makefile.in: Regenerate.
376 * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
377 * emultempl/ppc64elf.em: New file.
379 2002-01-15 DJ Delorie <dj@redhat.com>
381 * scripttempl/pe.sc: Add support for constructor priorities.
383 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
385 * emulparams/avr1200.sh (DATA_START): Define as 0x60.
386 * emulparams/avr23xx.sh: Likewise.
387 * emulparams/avr4433.sh: Likewise.
388 * emulparams/avr44x4.sh: Likewise.
389 * emulparams/avr85xx.sh: Likewise.
390 * emulparams/avrmega103.sh: Likewise.
391 * emulparams/avrmega161.sh: Likewise.
392 * emulparams/avrmega603.sh: Likewise.
393 * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
395 2002-01-08 Alexandre Oliva <aoliva@redhat.com>
397 * ldlang.c (walk_wild_section): Exclude object file if enclosing
400 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
402 * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
403 (eshelf_nbsd.c): New rule.
404 (eshlelf_nbsd.c): New rule.
405 * Makefile.in: Regenerate.
406 * configure.tgt (sh*le-*-netbsdelf*): New target.
407 (sh*-*-netbsdelf*): New target.
408 * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
409 * ld/emulparams/shelf_nbsd.sh: New emulation.
410 * ld/emulparams/shlelf_nbsd.sh: New emulation.
412 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
414 * po/es.po: New file: Spanish translation.
415 * configure.in (ALL_LINGUAS): Add es.
416 * configure: Regenerate.
418 2002-01-06 John Marshall <jmarshall@acm.org>
420 * ld.texinfo: Note that --emit-relocs is currently only
423 2002-01-05 Alan Modra <amodra@bigpond.net.au>
425 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
426 of bfd_section_list_remove and bfd_section_list_insert macros.
427 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
428 * emultempl/mmo.em (mmo_place_orphan): Likewise.
430 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
432 * configure.tgt (x86_64-*-netbsd*): New target.
434 2001-12-21 Tom Rix <trix@redhat.com>
436 (gld*_create_output_section_statements): New function.
437 For -binitfini support.
438 * emultempl/aix.em (gld*_before_parse): Fix comment.
439 * emultempl/aix.em (gld*_parse_args): Fix comment.
441 2001-12-20 Jason Thorpe <thorpej@wasabisystems.com>
443 * configure.tgt (mips*-dec-netbsd*): Delete alias for
445 (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
447 * configure.tgt (arm-*-netbsdelf*): Add target.
448 (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
449 * emulparams/armelf_nbsd.sh: Added.
450 * Makefile.am: Add rules for earmelf_nbsd.
451 * Makefile.in: Regenerate.
453 2001-12-19 Andreas Jaeger <aj@suse.de>,
454 Susanne Oberhauser <froh@suse.de>
456 * configure.host: Add rules for x86_64-*linux-gnu. Change
457 s390x-linux entry to use gcc to report configuration, replace gcc
458 with $CC in s390-linux
460 2001-12-19 Andreas Jaeger <aj@suse.de>
462 * ld.texinfo (VERSION): Fix markup.
464 2001-12-18 matthew green <mrg@eterna.com.au>
466 * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
467 (m68kelfnbsd.c): New rule.
468 * Makefile.in: Regenerate.
469 * configure.tgt (m68*-hp-netbsd*): Renamed to ..
470 (m68*-*-netbsd*4k*): .. this.
471 (m68*-*-netbsdelf*): New target.
472 (m68*-*-netbsd*): Also include ELF support.
473 (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
474 * emulparams/m68kelfnbsd.sh: New emulation.
476 2001-12-18 Jakub Jelinek <jakub@redhat.com>
478 * ldgram.y (vers_node): Support anonymous version tags.
479 * ldlang.c (lang_register_vers_node): Ensure anonymous version
480 tag is not defined together with non-anonymous versions.
481 * ld.texinfo: Document it.
483 2001-12-18 Nick Clifton <nickc@cambridge.redhat.com>
485 * po/tr.po: New file: Turkish translation.
486 * configure.in (ALL_LINGUAS): Add tr.
487 * configure: Regenerate.
489 2001-12-17 Jason Thorpe <thorpej@wasabisystems.com>
491 * Makefile.am: Add rules for eelf64alpha_nbsd.
492 * Makefile.in: Regenerate.
493 * configure.tgt (alpha*-*-netbsd*): Set
494 targ_emul to elf64alpha_nbsd.
495 * emulparams/elf64alpha_nbsd.sh: Added.
497 2001-12-17 Alan Modra <amodra@bigpond.net.au>
499 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
500 section_tail when fiddling with section list.
501 (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
502 broken into separate strings to make translation easier.
503 * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
504 fiddling with section list.
505 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
507 2001-12-16 Hans-Peter Nilsson <hp@bitrange.com>
509 * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
511 2001-12-15 Alan Modra <amodra@bigpond.net.au>
513 * ldmain.c (main): Initialise link_info.eh_frame_hdr.
515 2001-12-13 Jakub Jelinek <jakub@redhat.com>
517 * emultempl/elf32.em (finish): Supply output_bfd
518 to bfd_elf*_discard_info.
519 (OPTION_EH_FRAME_HDR): Define.
520 (longopts): Add --eh-frame-hdr.
521 (parse_args): Handle it.
522 (list_options): Add --eh-frame-hdr to help.
523 * emultempl/hppaelf.em (finish): Supply output_bfd
524 to bfd_elf*_discard_info.
525 * scripttempl/elf.sc (.eh_frame_hdr): Add.
527 2001-12-13 Alan Modra <amodra@bigpond.net.au>
529 * lexsup.c (parse_args): Don't pass shortopts to second call to
530 getopt functions. Restore optind rather than decrementing before
531 second call. Remove errind as it now duplicates last_optind.
533 2001-12-11 Christopher Faylor <cgf@redhat.com>
535 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
537 2001-12-07 Geoffrey Keating <geoffk@redhat.com>
538 Richard Henderson <rth@redhat.com>
540 * Makefile.am: Add support for xstormy16.
541 * configure.tgt: Add support for xstormy16.
542 * Makefile.in: Regenerate.
543 * emulparams/elf32xstormy16.sh: New file.
544 * scripttempl/xstormy16.sc: New file.
546 2001-10-01 Christopher Faylor <cgf@cygnus.com>
548 * Makefile.in (LIB_PATH): Make configurable.
549 (GENSCRIPTS): Set LIB_PATH in environment.
550 * configure.in: Substitute LIB_PATH.
551 * configure: Regenerate.
552 * configure.tgt (*cygwin): Set LIB_PATH for cross build.
553 * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
555 2001-12-07 Nick Clifton <nickc@cambridge.redhat.com>
557 * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
558 describing the -N option so that it is easier to translate into
561 2001-12-05 Nick Clifton <nickc@cambridge.redhat.com>
563 * emultempl/pe.em (..._list_options): Replace multiple fprintf
564 statements describing a single option with a single, newline
565 escaped fprintf. This allows better translation into other
568 * ldmain.c (add_archive_element): Combine multiple strings
569 into a single string to permit better translation into other
572 2001-12-05 Tom Rix <trix@redhat.com>
574 * Makefile.am: Remove eaixppc64.
575 * Makefile.in: Regenerate.
577 2001-12-04 Tom Rix <trix@redhat.com>
579 * emultempl/aix.em (choose_target): Change default target to
580 OUTPUT_FORMAT for ppcmacos. Add braces to remove compiler
582 (gld*_read_file): Fix typo.
583 (change_symbol_mode): Add prototype.
586 * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
587 * emulparams/aixrs6.sh : Same.
588 * emulparams/ppcmacos.sh : Same.
589 * emulparams/aixppc64.sh : Delete file.
590 * emultempl/aix.em : Formatting changes.
592 2001-12-04 Hans-Peter Nilsson <hp@axis.com>
594 * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
595 (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
597 (OTHER_END_SYMBOLS): Fix formatting.
598 * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
599 (OTHER_END_SYMBOLS): Fix formatting.
601 2001-12-04 Alan Modra <amodra@bigpond.net.au>
603 * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
605 2001-12-02 Tom Rix <trix@redhat.com>
607 * configure.tgt : Remove eaixppc64 emulations.
608 * Makefile.in : Remove eaixppc64.c
609 * ldemul.c (ldemul_choose_target): New parameters argc, argv.
610 (ldemul_default_target): Same.
611 * emultempl/gld960.em (gld960_choose_target): Same.
612 * emultempl/gld960c.em (gld960_choose_target): Same.
613 * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
614 * emultempl/aix.em (is_syscall): syscall_mask now a variable.
615 * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
616 * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
617 * emultempl/aix.em (choose_target): New function. Handle emulation of
620 2001-11-27 H.J. Lu <hjl@gnu.org>
622 * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
623 * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
624 * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
625 * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
626 * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
627 * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
628 * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
629 * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
631 * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
634 (REL_SDATA): Likewise.
635 (REL_SBSS): Likewise.
636 (REL_SDATA2): Likewise.
637 (REL_SBSS2): Likewise.
638 (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
641 2001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
643 * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
645 * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
647 2001-11-22 H.J. Lu <hjl@gnu.org>
649 * Makefile.in: Regenerated with automake based on automake
652 2001-11-22 Alan Modra <amodra@bigpond.net.au>
654 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
655 (config.status): Delete rule.
656 Add extra dependencies to cover sourced emulparams files.
657 * Makefile.in: Regenerate.
659 * scripttempl/elf.sc: Order <section>, <section>.* and
660 corresponding linkonce sections as seen in input files.
661 Formatting fixes. Zero vma of all sections if not relocating.
662 (STACK): Define and insert if STACK_ADDR defined.
663 (OTHER_RELOCATING_SECTIONS): Delete.
664 (OTHER_END_SYMBOLS): Define.
665 (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
666 (OTHER_READWRITE_SECTIONS): Likewise.
667 (OTHER_GOT_SECTIONS): Likewise.
668 (OTHER_SDATA_SECTIONS): Likewise.
669 (OTHER_BSS_SECTIONS): Likewise.
670 * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
671 (OTHER_READWRITE_SECTIONS): Likewise.
672 * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
673 (OTHER_READWRITE_SECTIONS): Likewise
675 * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
676 (STACK_ADDR): Define.
677 * emulparams/armelf_oabi.sh: As for armelf.sh.
678 * emulparams/elf32mcore.sh: As for armelf.sh.
679 * emulparams/h8300elf.sh: As for armelf.sh.
680 * emulparams/mn10200.sh: As for armelf.sh.
681 * emulparams/shelf.sh: As for armelf.sh.
683 * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
684 (OTHER_END_SYMBOLS): Define.
685 * emulparams/m32relf.sh: As for elf32fr30.sh.
686 * emulparams/h8300helf.sh: As for elf32fr30.sh.
687 * emulparams/h8300self.sh: As for elf32fr30.sh.
689 * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
690 defines with RELOCATING test.
691 (OTHER_SDATA_SECTIONS): Likewise.
692 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
693 (OTHER_END_SYMBOLS): ..this.
694 * emulparams/crislinux.sh: As for criself.sh.
696 * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
698 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
699 (OTHER_SECTIONS): ..this. Zero vma if not relocating. Order
700 normal and linkonce sections as seen in input files.
701 * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
702 (TEXT_DYNAMIC): Likewise.
703 (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
704 (OTHER_SDATA_SECTIONS): Likewise.
705 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
706 * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
707 * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
708 * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
709 * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
710 (OTHER_PLT_RELOC_SECTIONS): Likewise.
711 (OTHER_READONLY_SECTIONS): Likewise. Order normal and linkonce
712 sections as seen in input files.
713 * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
714 * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
716 (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
717 (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
718 * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
719 (OTHER_SECTIONS): Instead, use this..
720 (OTHER_END_SYMBOLS): ..and this.
722 * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
723 * emulparams/elf32bsmip.sh: Likewise.
724 * emulparams/elf32btsmip.sh: Likewise.
725 * emulparams/elf32ebmip.sh: Likewise.
726 * emulparams/elf32lmip.sh: Likewise.
727 * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
728 * emulparams/elf32lsmip.sh: Likewise.
729 * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
730 * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
731 * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
732 * emulparams/elf64btsmip.sh: Likewise.
733 * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
734 * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
735 * emulparams/elf32ppclinux.sh: Likewise.
736 * emulparams/elf32ppcsim.sh: Likewise.
737 * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
738 * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
739 * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
740 * emulparams/h8300self.sh: Likewise.
741 * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
742 * emulparams/sh.sh: Comment.
743 * emulparams/shl.sh: Source sh.sh, remove duplicates.
744 * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
745 * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
747 2001-11-21 David Heine <dlheine@tensilica.com>
748 Alan Modra <amodra@bigpond.net.au>
750 * ldlang.c (map_input_to_output_sections): Replace "break"
751 accidentally removed with 2001-08-03 change.
752 (lang_gc_sections_1): Likewise.
754 2001-11-21 Alan Modra <amodra@bigpond.net.au>
756 * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
758 2001-11-20 Angela Marie Thomas <angela@redhat.com>
760 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
761 of false when calling lang_size_sections.
762 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
764 2001-11-15 Alan Modra <amodra@bigpond.net.au>
766 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
767 function when LDEMUL_FINISH isn't set to the same name. Don't
768 call ${LDEMUL_FINISH}.
769 (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
770 * emultempl/armelf.em (arm_elf_finish): Call
771 gld${EMULATION_NAME}_finish.
772 * emultempl/hppaelf.em (hppaelf_finish): Rename to
773 gld${EMULATION_NAME}_finish. Call bfd_elf32_discard_info and
774 hppaelf_layout_sections_again if necessary.
775 (need_laying_out): New var.
776 (hppaelf_layaout_sections_again): Rename to
777 hppaelf_layout_sections_again. Clear need_laying_out.
778 (PARSE_AND_LIST_OPTIONS): Format text.
780 2001-11-14 H.J. Lu <hjl@gnu.org>
782 * emultempl/armelf.em (arm_elf_finish): Renamed from
783 gld${EMULATION_NAME}_finish.
784 (LDEMUL_FINISH): Set to arm_elf_finish.
786 2001-11-14 Daniel Jacobowitz <drow@mvista.com>
788 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
789 (struct ld_emulation_xfer_struct): Use it.
791 2001-11-13 Ross Alexander <ross.alexander@uk.neceur.com>
793 * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
794 additional symbols referenced by newer crt0.o files from HP.
796 2001-11-12 Anthony Green <green@redhat.com>
798 * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
800 2001-11-12 Alfred M. Szmidt <ams@kemisten.nu>
802 * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
803 * Makefile.in: Regenerate.
805 2001-11-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
807 * ld.texinfo: Use @command for commands, @option for options.
808 * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
810 * Makefile.in: Rebuild.
812 2001-11-04 Chris Demetriou <cgd@broadcom.com>
814 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
815 Add support for targets.
817 2001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
819 * configure.in (ALL_LINGUAS): Add "fr" and "sv"
820 * configure: Regernate.
821 * po/fr.po: New file.
822 * po/sv.po: New file.
824 2001-11-01 NIIBE Yutaka <gniibe@m17n.org>
826 * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
827 as little endian default and to support big endian.
829 2001-11-01 Chris Demetriou <cgd@broadcom.com>
831 * ld.texinfo (Options): Document new option, -nostdlib.
832 * lexsup.c (OPTION_NOSTDLIB): New definition.
833 (ld_options): Add entry for "nostdlib".
834 (parse_args): Handle OPTIONS_NOSTDLIB.
835 * ldfile.c (ldfile_add_library_path): Don't add directories
836 to the search path if they weren't specified on the command line
837 and -nostdlib was specified.
838 * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
840 2001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
842 * lexsup.c (parse_args): Prevent infinite parsing loop when
843 "-rpath.a" is specified on the command line.
844 Replace calls to fprintf with calls to einfo.
846 2001-10-31 John Marshall <jmarshall@acm.org>
848 * ld.texinfo: A historical requirement that MEMORY and SECTIONS
849 appear only once across all the linker scripts involved in a link
850 invocation no longer applies. Make the documentation reflect
853 2001-10-31 NIIBE Yutaka <gniibe@m17n.org>
855 * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
857 (sh-*-linux*): Added targ_extra_libpath.
859 2001-10-31 David Heine <dlheine@tensilica.com>
861 * ldlang.c (lang_size_sections): Keep a valid output_offset field
862 for padding statements.
864 2001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
866 * configure.tgt (mmix-*-*): New target.
867 * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
868 Add dependencies to match.
869 * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
870 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
871 scripttempl/mmo.sc: New files.
872 * gen-doc.texi: @set MMIX.
874 [MMIX] Add MMIX node.
875 * Makefile.in: Regenerate.
877 2001-10-29 Kazu Hirata <kazu@hxi.com>
879 * ldlang.c: Fix a comment typo.
881 2001-10-23 Alan Modra <amodra@bigpond.net.au>
883 * configure.host: Move alpha*-*-linux-gnu* entry to generic
884 entries, and match *-*-linux*.
886 2001-10-20 Alan Modra <amodra@bigpond.net.au>
888 * ldgram.y (mri_script_command): Surround processing of INCLUDE
889 with ldlex_script, ldlex_popstate.
890 (ifile_p1): Likewise.
891 * ldlex.l (EOF): Don't BEGIN(SCRIPT). Restore lineno from the
893 (lex_push_file): Save current lineno to lineno_stack. Set lineno
894 to 1. Don't BEGIN(SCRIPT).
895 (lex_redirect): Similarly.
896 * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
898 2001-10-20 Nick Clifton <nickc@cambridge.redhat.com>
900 * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
901 __EH_FRAME_END__ and accept eh frames into data section.
902 Add ctor and dtor sections.
904 2001-10-19 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
906 * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
907 (auto-export): Fix indentation.
909 2001-10-18 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
911 * pe-dll.c (autofilter_objectlist): Add startup objects
913 (auto-export): Constify char * p.
914 Extract file basename and use strcmp rather than ststr
917 2001-10-18 Chris Demetriou <cgd@broadcom.com>
919 * ldmain.c (get_emulation): Improve comment about the handling
922 2001-10-17 Alan Modra <amodra@bigpond.net.au>
924 * po/POTFILES.in: Regenerate.
926 2001-10-16 Vassili Karpov <malc@pulsesoft.com>
928 * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
929 -z nocopyreloc and -z nocombreloc usage strings.
931 2001-10-12 Vassili Karpov <malc@pulsesoft.com>
933 * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
936 2001-10-11 Aleksey Romanov <aromanov@ennovatenetworks.com>
938 * scripttempl/armaout.sc: Place .bss section after end of aligned
939 data section to match behaviour of aout code in constructrion of
942 2001-10-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
944 * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
945 startup files for mingw32 dlls to list.
947 2001-10-10 Chris Demetriou <cgd@broadcom.com>
949 * emultempl/elf32.em: Fix shell 'if' usage for portability.
951 2001-10-08 Aldy Hernandez <aldyh@redhat.com>
953 * configure.tgt (targ): Add arm9e-*-elf.
955 2001-10-05 H.J. Lu <hjl@gnu.org>
957 * genscripts.sh: Fix a typo in the last change.
959 2001-10-05 Jakub Jelinek <jakub@redhat.com>
961 * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
962 -z nocombreloc in usage.
964 2001-10-03 Jim Blandy <jimb@redhat.com>
966 * genscripts.sh: Include a comment at the top of each generated
967 script, explaining its purpose.
969 2001-10-03 Vassili Karpov <malc@pulsesoft.com>
971 * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
972 * NEWS: Mention -z nocopyreloc.
973 * ld.texinfo (Options): Describe nocopyreloc.
975 2001-10-03 Alan Modra <amodra@bigpond.net.au>
977 * configure: Regenerate.
979 2001-10-02 Alan Modra <amodra@bigpond.net.au>
981 * ldver.h (ld_program_version): Remove declaration.
982 * lexsup.c (parse_args): Move printing of copyright message..
983 * ldver.c (ldversion): .. to here.
984 Use BFD_VERSION_STRING in place of BFD_VERSION.
985 (ld_program_version): Remove.
986 * Makefile.am (Makefile): Depend on bfd/configure.in.
988 * Makefile.in: Regenerate.
990 2001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
992 * Makefile.am: Update dependencies with "make dep-am".
993 * Makefile.in: Regenerate.
995 2001-09-29 John Reiser <jreiser@BitWagon.com>
997 * ldlang.c (lang_common): Conditionally inhibit Common allocation.
998 * lexsup.c: Add --no-define-common commandline option.
999 * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
1000 * ldlex.l: Likewise.
1001 * ld.h: Add command_line.inhibit_common_definition.
1002 * ldmain.c (main): Initialize.
1003 * ld.texinfo: Document.
1005 2001-09-26 Alan Modra <amodra@bigpond.net.au>
1007 * ldmisc.c (USE_STDARG): Remove.
1008 (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
1013 * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
1014 declarations. Update copyright.
1016 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
1018 * pe-dll.c: Remove obsoleted declaration of
1019 pe_get_data_import_dll_name.
1020 (pe_create_import_fixup): Fix thinko.
1022 * ld.texinfo(enable-auto-import): Clarify the explanation.
1024 2001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
1026 * pe-dll.c (pe_create_import_fixup): Revert previous patch.
1027 * emultemp/pe.em (pe_data_import_dll): Move definition outside of
1028 DLL_SUPPORT controlled code.
1030 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
1032 * emultempl/pe.em(pe_data_import_dll): Make static.
1033 (pe_get_data_import_dll_name): New accessor function.
1034 * pe-dll.c(pe_create_import_fixup): call
1035 pe_get_data_import_dll_name() from pe.em, instead of
1036 directly accessing pe_data_import_dll variable from pe.em.
1038 2001-09-18 Bruno Haible <haible@clisp.cons.org>
1040 * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
1041 (def_file_add_directive): Use ISSPACE instead of isspace.
1042 (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
1043 isdigit/isxdigit/isalpha/isalnum.
1044 * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
1045 (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
1046 * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
1047 (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
1049 * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
1050 (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
1052 * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
1053 (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
1054 * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
1055 (ctor_prio): Use ISDIGIT instead of isdigit.
1056 * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
1057 (ldfile_open_file_search): Use ISALPHA instead of isalpha.
1058 (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
1060 * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
1061 (stricpy): Use TOLOWER instead of isupper/tolower.
1062 (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
1063 * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
1064 (lex_warn_invalid): Use ISPRINT instead of isprint.
1065 * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
1066 (main): For gettext, also set the LC_CTYPE locate facet.
1067 (add_keepsyms_file): Use ISSPACE instead of isspace.
1068 * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
1069 (is_num, parse_args): Use ISDIGIT instead of isdigit.
1070 * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
1071 (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
1072 * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
1073 (gldppcmacos_read_file): Use ISSPACE instead of isspace.
1074 * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
1075 (quoteput): Use ISSPACE instead of isspace.
1076 (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
1079 2001-09-18 Alan Modra <amodra@bigpond.net.au>
1081 * deffilep.y (def_stash_module): Constify "name" param.
1083 * pe-dll.c: Replace CONST with const throughout.
1084 (quick_symbol): Constify "n1", "n2", "n3" params.
1085 (make_singleton_name_thunk): Constify "import" param. Make
1086 "buffer_len" a size_t.
1087 (make_import_fixup_entry): Constify "name", "fixup_name",
1088 "dll_symname" params.
1089 (pe_get16): Cast args of bfd_seek. Replace bfd_read with bfd_bread.
1090 (pe_get32): Likewise.
1091 (pe_implied_import_dll): Likewise.
1093 * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
1094 (sort_by_section_name): Likewise.
1096 * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
1097 (make_import_fixup): Cast printf arg, rel->address to long rather
1099 (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
1101 2001-09-15 Alan Modra <amodra@bigpond.net.au>
1103 * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
1104 defines BufferSize. Increase buffer size by one.
1106 2001-09-14 Ralf Habacker <Ralf.Habacker@freenet.de>
1108 * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
1110 2001-09-14 Kevin Lo <kevlo@openbsd.org>
1112 * configure.tgt: Add arm-openbsd target.
1114 2001-09-12 H.J. Lu <hjl@gnu.org>
1116 * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
1118 (ALL_64_EMULATIONS): Here.
1119 * Makefile.in: Regenerated.
1121 2001-09-12 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
1123 * emultempl/pe.em(make_import_fixup): change signature to
1124 take asection as well as arelec; we need this for proper
1125 error reporting. Only call pe_create_import_fixup() if
1126 there is no attempt to add a constant addend to the reloc;
1127 otherwise, report error condition.
1128 * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
1129 since final argument is a pointer to make_import_fixup().
1130 Change call to cb() to match make_import_fixup() signature.
1131 (make_import_fixup_mark): make buffer_len unsigned.
1132 * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
1134 2001-09-12 Charles Wilson <cwilson@ece.gatech.edu>
1136 * ld.texinfo: add verbose documentation for auto-import
1137 direct-addressing workaround, to compliment the terse
1140 2001-09-12 Andrew MacLeod <amacleod@redhat.com>
1142 * scripttempl/v850.sc: Add gcc_except_table sections.
1144 2001-09-11 Jeffrey A Law (law@cygnus.com)
1146 * emulparams/h8300helf.sh: Move stack to a much higher memory address.
1147 * emulparams/h8300self.sh: Similarly.
1149 2001-09-05 Danny Smith <dannysmith@users.souceforge.net>
1151 * ld.texinfo (Options, --stack): Correct default value for stack
1154 2001-09-05 Tom Rix <trix@redhat.com>
1156 * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
1158 2001-09-03 Andreas Jaeger <aj@suse.de>
1160 * emultempl/beos.em: Declare prototypes for comparions functions,
1163 2001-09-02 Andreas Jaeger <aj@suse.de>
1165 * emultempl/aix.em: Add missing prototype.
1166 * emultempl/lnk960.em: Likewise.
1167 * emultempl/vanilla.em: Likewise.
1168 * emultempl/armcoff.em: Likewise.
1169 * emultempl/armelf_oabi.em: Likewise.
1170 * emultempl/beos.em: Likewise.
1171 * emultempl/gld960c.em: Likewise.
1172 * emultempl/gld960.em: Likewise.
1174 * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
1175 for prototype declaration.
1177 2001-08-31 Eric Christopher <echristo@redhat.com>
1178 Jason Eckhardt <jle@redhat.com>
1180 * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
1182 2001-08-31 Andreas Jaeger <aj@suse.de>
1184 * emultempl/pe.em: Add missing prototypes.
1185 (gld_${EMULATION_NAME}_after_open): Remove extra args to
1186 pe_find_data_imports.
1187 (pr_sym): Add unused attribute.
1189 2001-08-29 Joel Sherrill <joel@OARcorp.com>
1191 * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
1192 default from coff to elf.
1194 2001-08-29 Jeff Law <law@redhat.com>
1196 * emulparams/h8300helf.sh: Resync with h8300elf.sh. Update
1198 * emulparams/h8300self.sh: Similarly.
1200 2001-08-28 J"orn Rennecke <amylaar@redhat.com>
1202 * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
1204 (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
1205 * configure.tgt (h8300-*-elf*): New case.
1206 * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
1207 * emulparams/h8300self.sh: New file.
1208 * Makefile.in: Regenerated.
1210 2001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
1212 * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
1215 2001-08-27 Linus Nordberg <linus@swox.com>
1216 Alan Modra <amodra@bigpond.net.au>
1218 * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
1219 (eelf64ppc.c, eelf64lppc.c): Add make targets.
1221 * Makefile.in: Regenerate.
1222 * configure.tgt: Add powerpc64 support. Move pdp11, pjl, pj
1223 entries to correct alphabetical position.
1224 * emulparams/elf64ppc.sh: New.
1225 * emulparams/elf64lppc.sh: New.
1227 2001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
1229 * ldmain.c (main): Declare BSIZE as static.
1231 2001-08-23 Jakub Jelinek <jakub@redhat.com>
1233 * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
1234 into .rel.dyn resp. .rela.dyn if combreloc.
1235 (get_script): If .x linker script is equal to .xn, only put it
1236 once into the binary.
1237 Add .xc and .xsc scripts.
1238 (parse_args): Handle -z combreloc and -z nocombreloc.
1239 * scripttempl/elf.sc (.rela.sbss): Fix a typo.
1240 For .xc and .xsc scripts put all .rel* or .rela* input sections
1241 but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
1242 * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
1244 Strip trailing whitespace from script.
1245 Generate .xc and .xsc scripts if requested.
1246 * ldmain.c (main): Initialize link_info.combreloc and
1247 link_info.spare_dynamic_tags.
1248 * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
1249 (ld_options): Add --spare-dynamic-tags option.
1250 (parse_args): Likewise.
1251 * ld.texinfo: Document -z combreloc and -z nocombreloc.
1252 * ldint.texinfo: Document .xc and .xsc linker scripts.
1253 * NEWS: Add notes about -z combreloc and SHF_MERGE.
1255 2001-08-22 H.J. Lu <hjl@gnu.org>
1257 * emulparams/elf32fr30.sh: Add a newline.
1259 2001-08-21 Andreas Jaeger <aj@suse.de>
1261 * deffilep.y: Add missing prototypes.
1262 * pe-dll.c: Likewise.
1264 2001-08-20 Alan Modra <amodra@bigpond.net.au>
1266 * ldlang.c (insert_pad): Fix typos in last patch.
1268 * ldlang.c: When traversing lang_statement_union_type lists,
1269 consistently use "header.next" rather than "next".
1270 * mpw-eppcmac.c: Likewise.
1271 * emultempl/beos.em: Likewise.
1272 * emultempl/hppaelf.em: Likewise.
1273 * emultempl/pe.em: Likewise.
1274 * ldlang.h (union lang_statement_union): Remove "next" field.
1276 * ldlang.c (insert_pad): Use offsetof macro.
1277 (lang_size_sections): Always neuter padding statements.
1278 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
1280 * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
1281 passed to lang_size_sections.
1282 (pe_exe_fill_sections): Likewise.
1283 * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
1284 (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
1286 2001-08-18 Alan Modra <amodra@bigpond.net.au>
1288 * emultempl/aix.em: Formatting fixes.
1290 2001-08-18 Alan Modra <amodra@bigpond.net.au>
1292 * ldlang.c (insert_pad): Make use of an existing pad statement if
1293 available. Move code calculating alignment, adjusting section
1294 alignment power, and adjusting dot to ..
1295 (size_input_section): .. here. Remove unused relax param.
1296 (lang_size_sections): Change boolean `relax' param to boolean *.
1297 Adjust call to size_input_section. Make use of insert_pad to
1298 place pad after the assignment statement. If relaxing, zap
1300 (reset_memory_regions): Reset output_bfd section sizes too.
1301 (relax_again): Move to..
1302 (lang_process): ..here. Adjust call to lang_size_sections, and
1303 remove duplicated code.
1304 * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
1306 2001-08-17 Alan Modra <amodra@bigpond.net.au>
1308 * ld.texinfo: Document that fill values now use the four least
1310 * emulparams/elf32fr30.sh (NOP): Update.
1311 * emulparams/elf32mcore.sh: Likewise.
1312 * emulparams/elf64_s390.sh: Likewise.
1313 * emulparams/elf_i386.sh: Likewise.
1314 * emulparams/elf_i386_be.sh: Likewise.
1315 * emulparams/elf_i386_chaos.sh: Likewise.
1316 * emulparams/elf_i386_ldso.sh: Likewise.
1317 * emulparams/elf_s390.sh: Likewise.
1318 * emulparams/elf_x86_64.sh: Likewise.
1319 * emulparams/i386moss.sh: Likewise.
1320 * emulparams/i386nw.sh: Likewise.
1321 * emulparams/m68kelf.sh: Likewise.
1322 * scripttempl/elf.sc: Update NOP comment.
1323 * scripttempl/elfi370.sc: Likewise.
1324 * scripttempl/elfm68hc11.sc: Likewise.
1325 * scripttempl/elfm68hc12.sc: Likewise.
1326 * scripttempl/nw.sc: Likewise.
1328 2001-08-15 Tom Rix <trix@redhat.com>
1330 * ldgram.y (saved_script_handle): Initialize to NULL.
1331 * ldmain.c (main): Change check on saved_script_handle.
1333 2001-08-14 Alan Modra <amodra@bigpond.net.au>
1335 * emultempl/elf32.em: Formatting fixes.
1336 (output_prev_sec_find): Test for bfd_ind_section too; do so by
1337 looking at sec->owner.
1338 (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
1339 (gld${EMULATION_NAME}_place_orphan): Add a few comments. Remove
1340 unused code, and reorganize orphan section placement code.
1342 * ldlang.c (wild_doit): Rename to lang_add_section.
1343 * ldlang.h: Here too.
1344 * mpw-elfmips.c: And here.
1345 * emultempl/beos.em: And here.
1346 * emultempl/elf32.em: And here.
1347 * emultempl/hppaelf.em: And here.
1348 * emultempl/pe.em: And here.
1350 2001-08-13 Richard Henderson <rth@redhat.com>
1352 * emultempl/needrelax.em: New file.
1353 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
1354 * Makefile.am (eelf64_ia64.c): Depend on it.
1355 * Makefile.in: Rebuild.
1357 2001-08-13 Alan Modra <amodra@bigpond.net.au>
1359 * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
1360 output_section is set non-NULL.
1362 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
1363 `true' for SEC_EXCLUDE sections so that the generic code doesn't
1364 needlessly create an output_section_statement. Treat a correctly
1365 named output_section_statement with NULL bfd_section as compatible.
1367 2001-08-13 Hans-Peter Nilsson <hp@bitrange.com>
1369 * emultempl/generic.em: Support EXTRA_EM_FILE.
1370 (ld_${EMULATION_NAME}_emulation): Support emulation parameters
1371 LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
1372 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
1373 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
1374 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
1375 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
1376 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
1377 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
1378 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
1379 LDEMUL_FIND_POTENTIAL_LIBRARIES.
1381 2001-08-12 Richard Henderson <rth@redhat.com>
1383 * scripttempl/elf.sc, scripttempl/elfd30v.sc,
1384 scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
1385 scripttempl/v850.sc: Keep .jcr data.
1387 2001-08-12 H.J. Lu <hjl@gnu.org>
1388 Andrew Haley <aph@cambridge.redhat.com>
1389 Nick Clifton <nickc@redhat.com>
1391 * ldgram.y (had_script): Change name to saved_script_handle.
1392 Change type to file handle.
1393 * ld.h (had_script): Rename and retype.
1394 * ldfile.c (ldfile_open_command_file): Save the file handle
1395 used in saved_script_handle.
1396 * lexsup.c (parse_args): Do not allow -c option to alter
1397 saved_script_handle.
1398 * ldmain.c (main): Print out the linker script used if
1399 --verbose is given. Check saved_script_handle to obtain the
1400 external linker script used, or if NULL, dump the builtin
1402 * ld.texinfo: Document that --verbose now dumps the linker
1403 script used, regardless of whether it was an internal or an
1406 2001-08-10 Andreas Jaeger <aj@suse.de>
1408 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
1410 * configure: Regenerate.
1412 2001-08-09 Alan Modra <amodra@bigpond.net.au>
1414 * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
1416 * scripttempl/elf.sc: Move non-text .dynamic section before
1417 .plt/.got/.sdata* group.
1418 (OTHER_GOT_SECTIONS): Move to immediately after .got.
1419 (OTHER_SDATA_SECTIONS): Add.
1420 * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
1422 * emulparams/crislinux.sh: Likewise.
1423 * emulparams/elf32b4300.sh: Likewise.
1424 * emulparams/elf32bmip.sh: Likewise.
1425 * emulparams/elf32bmipn32.sh: Likewise.
1426 * emulparams/elf32bsmip.sh: Likewise.
1427 * emulparams/elf32btsmip.sh: Likewise.
1428 * emulparams/elf32ebmip.sh: Likewise.
1429 * emulparams/elf32elmip.sh: Likewise.
1430 * emulparams/elf32l4300.sh: Likewise.
1431 * emulparams/elf32lmip.sh: Likewise.
1432 * emulparams/elf32lsmip.sh: Likewise.
1433 * emulparams/elf32ltsmip.sh: Likewise.
1434 * emulparams/elf64bmip.sh: Likewise.
1435 * emulparams/elf64btsmip.sh: Likewise.
1436 * emulparams/elf64ltsmip.sh: Likewise.
1438 2001-08-08 Alan Modra <amodra@bigpond.net.au>
1440 * genscripts.sh: Source the emulparams script before each output
1441 script is generated so that variables like `RELOCATING' may affect
1442 variables defined in the emulparams script.
1444 2001-08-04 Alan Modra <amodra@bigpond.net.au>
1446 * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
1449 * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
1450 ie. iterate over wild_statement.section_list.
1451 (gld${EMULATION_NAME}_place_orphan): Likewise.
1453 2001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1455 * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
1456 .fini[0-4] sections used by _exit
1457 (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
1458 (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
1459 * scripttempl/elfm68hc11.sc: Likewise.
1461 2001-08-03 H.J. Lu <hjl@gnu.org>
1463 * emultempl/beos.em (init): Add the missing initialization.
1465 2001-08-03 Alan Modra <amodra@bigpond.net.au>
1467 * ld.texinfo (Input Section Basics): Clarify ordering of output
1469 * ldlang.c (callback_t): Add wildcard_list param.
1470 (walk_wild_section): Remove "section" param. Rewrite for
1471 lang_wild_statement_type change. Remove unique_section_p test.
1472 (walk_wild_file): Remove "section" param.
1473 (walk_wild): Remove "section" and "file" params.
1474 (lang_gc_wild): Likewise.
1475 (wild): Likewise. Modify for lang_wild_statement_type change.
1476 (wild_sort): Likewise. Add "sec" param.
1477 (gc_section_callback): Likewise.
1478 (output_section_callback): Likewise. Do unique_section_p test.
1479 (map_input_to_output_sections): Modify call to wild.
1480 (lang_gc_sections_1): Likewise.
1481 (print_wild_statement): Modify for lang_wild_statement_type
1483 (lang_add_wild): Replace filename, filenames_sorted param with
1484 filespec. Replace section_name, sections_sorted,
1485 exclude_filename_list with section_list.
1486 * ldlang.h (lang_add_wild): Here too.
1487 (lang_wild_statement_type): Replace section_name, sections_sorted,
1488 and exclude_filename_list with section_list.
1489 * ldgram.y (current_file): Delete.
1490 (%union): Add wildcard_list.
1491 (file_NAME_list): Set type to wildcard_list. Build a linked list
1492 rather than calling lang_add_wild for each entry.
1493 (input_section_spec_no_keep): Call lang_add_wild here instead.
1494 * ld.h (struct wildcard_list): Declare.
1495 * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
1497 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
1499 * ldmain.c (main): initialize link_info.pei386_auto_import
1500 * pe-dll.c: new tables for auto-export filtering
1501 (auto_export): change API, pass abfd for contextual filtering.
1502 Loop thru tables of excluded symbols instead of comparing
1505 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
1507 * pe-dll.c: new variable pe_dll_enable_extra_debug. New
1508 static variable current_sec (static struct sec *). Add
1509 forward declaration for add_bfd_to_link.
1510 (process_def_file): Don't export undefined symbols. Do not
1511 export symbols starting with "_imp__". Call auto_export()
1513 (pe_walk_relocs_of_symbol): New function.
1514 (generate_reloc): add optional extra debugging
1515 (pe_dll_generate_def_file): eliminate extraneous initial blank
1517 (make_one): enlarge symtab to make room for __nm__ symbols
1518 (DATA auto-import support).
1519 (make_singleton_name_thunk): New function.
1520 (make_import_fixup_mark): New function.
1521 (make_import_fixup_entry): New function.
1522 (pe_create_import_fixup): New function.
1523 (add_bfd_to_link): Specify that 'name' argument is a CONST
1525 * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
1526 declare new functions pe_walk_relocs_of_symbol and
1527 pe_create_import_fixup.
1528 * emultempl/pe.em: add new options --enable-auto-import,
1529 --disable-auto-import, and --enable-extra-pe-debug.
1530 (make_import_fixup): New function.
1531 (pe_find_data_imports): New function.
1532 (pr_sym): New function.
1533 (gld_${EMULATION_NAME}_after_open): Add optional extra pe
1534 debugging. Call pe_find_data_imports. Mark .idata as DATA, not
1537 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
1539 * ld.texinfo: add additional documentation for
1540 --export-all-symbols. Document --out-implib,
1541 --enable-auto-image-base, --disable-auto-image-base,
1542 --dll-search-prefix, --enable-auto-import, and
1543 --disable-auto-import.
1544 * ldint.texinfo: Add detailed documentation on auto-import
1547 2001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
1549 * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
1552 2001-07-24 Alan Modra <amodra@bigpond.net.au>
1554 * Makefile.am: Update dependencies with "make dep-am".
1555 * Makefile.in: Regenerate
1557 2001-07-23 Alan Modra <amodra@bigpond.net.au>
1559 * ldcref.c (check_section_sym_xref): New function.
1560 (check_nocrossrefs): Call it.
1561 (check_nocrossref): Interate over h->refs here instead of..
1562 (check_refs): ..here. Pass in the symbol name, section, and bfd
1563 rather than hash_entry pointers.
1564 (struct check_refs_info): Keep symbol name rather than hash entry.
1566 (check_reloc_refs): Tweak for above changes in check_refs_info.
1567 Only report references to section syms when symname is NULL to
1568 prevent duplicate messages for the same reloc.
1570 2001-07-19 Nick Clifton <nickc@cambridge.redhat.com>
1572 * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
1573 available. Do not print NULL trees.
1574 (exp_print_token): Print unknown tokens with values > 126 as
1575 decimal values not ASCII characters.
1577 * ldlang.c (lang_leave_overlay): If a region is specified assign
1578 it to all sections inside the overlay unless they have been
1579 assigned to the own, non-default, memory region.
1581 * README: Add header for consistency with other README files.
1583 2001-07-14 H.J. Lu <hjl@gnu.org>
1585 * emultempl/elf32.em (output_prev_sec_find): Never return
1586 bfd_abs_section_ptr, bfd_com_section_ptr nor
1587 bfd_und_section_ptr.
1589 2001-07-14 Nick Clifton <nickc@cambridge.redhat.com>
1591 * Makefile.am (em32relf.c): Change dependency from generic.em to
1593 * Makefile.in: Regenerate.
1595 2001-07-14 matthew green <mrg@eterna.com.au>
1597 * configure.tgt (i386-*-netbsdelf*): New target.
1598 (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
1600 2001-07-13 Jakub Jelinek <jakub@redhat.com>
1602 * emultempl/elf32.em (output_prev_sec_find): New.
1603 (place_orphan): Use it.
1605 2001-07-11 H.J. Lu <hjl@gnu.org>
1607 * ldmain.c (main): Fix typos in the last change.
1609 2001-07-11 Jakub Jelinek <jakub@redhat.com>
1611 * ldmain.c (main): Disallow -F and -f without -shared.
1613 2001-07-11 Nick Clifton <nickc@cambridge.redhat.com>
1615 * emultempl/pe.em (after_open): Check for the output_bfd not
1616 having any coff_data structure allocated to it.
1618 2001-07-09 David O'Brien <obrien@FreeBSD.org>
1620 * emultempl/elf32.em: Do not assuming that contents of the buffer
1621 returned from basename function will remain unchanged accross other
1624 2001-07-03 H.J. Lu <hjl@gnu.org>
1626 * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
1627 2001-07-03. It creates dynamic entries even for static binaries.
1629 2001-07-03 Jakub Jelinek <jakub@redhat.com>
1631 * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
1632 (DYNAMIC): Use it to reserve few dynamic entries for
1635 2001-06-27 Alan Modra <amodra@bigpond.net.au>
1637 * emulparams/hppa64linux.sh: New file.
1638 * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
1639 * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
1640 (ehppa64linux.c): Add rule to make it.
1642 * Makefile.in: Regenerate.
1644 2001-06-21 Hans-Peter Nilsson <hp@axis.com>
1646 * ld.texinfo (Options, -r): Mention restrictions when using
1647 different object formats.
1649 2001-06-19 Hans-Peter Nilsson <hp@axis.com>
1651 * ldlang.c (lang_check): Emit fatal error if relocatable link
1652 between different object flavours with relocations in input.
1654 2001-06-19 H.J. Lu <hjl@gnu.org>
1656 * ld.texinfo (-E, --export-dynamic): Mention --version-script.
1657 (--version-script): Mention the language support.
1659 2001-06-19 H.J. Lu <hjl@gnu.org>
1661 * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
1663 2001-06-18 H.J. Lu <hjl@gnu.org>
1665 * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
1666 (diststuff): Add $(MANS).
1667 * Makefile.in: Regenerated.
1671 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
1673 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
1674 Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
1675 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
1676 * ld.h (args_type): Remove member export_dynamic. All users
1677 changed to use struct bfd_link_info member.
1679 * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
1680 $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
1681 * Makefile.in: Regenerate.
1683 2001-06-18 H.J. Lu <hjl@gnu.org>
1685 * ldlang.c (init_os): Add the newline to the einfo call.
1686 (lang_check): Likewise.
1687 (lang_do_version_exports_section): Likewise.
1689 2001-06-15 H.J. Lu <hjl@gnu.org>
1691 * lexsup.c (parse_args); Save optind to report unrecognized
1694 2001-06-15 Hans-Peter Nilsson <hp@axis.com>
1696 * ldlang.c (lang_check): Emit fatal error if relocatable link
1697 between different object flavours.
1699 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
1700 Set new link_info member export_dynamic.
1701 * ldmain.c (main): Initialize new link_info member export_dynamic.
1703 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
1705 * ldlang.c (walk_wild): Only call walk_wild_file if
1706 lookup_name returns something.
1707 (lookup_name): If load_symbols fails, return NULL.
1708 (load_symbols): Change to a boolean function.
1709 (open_input_bfds): If load_symbols fails then do not make the
1712 2001-06-08 Alan Modra <amodra@bigpond.net.au>
1714 * ldlang.c (record_bfd_errors): Remove.
1716 * emultempl/aix.em: Fix copyright dates.
1718 2001-06-07 Andreas Jaeger <aj@suse.de>
1720 * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
1721 (TEXT_START_ADDR): Likewise.
1723 2001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
1725 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
1727 2001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1729 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
1731 2001-05-31 H.J. Lu <hjl@gnu.org>
1733 * ldlang.c (open_input_bfds): Don't change the bfd error
1734 handler whilst loading symbols.
1736 2001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
1738 * configure.tgt: Remove i370-mvs architecture, it is not currently
1741 2001-05-25 H.J. Lu <hjl@gnu.org>
1743 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
1744 like emulparams/aixppc.sh.
1746 2001-05-25 H.J. Lu <hjl@gnu.org>
1748 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
1749 setting of output_filename after bfd_scan_arch.
1750 * emultempl/pe.em: Likewise.
1752 2001-05-25 H.J. Lu <hjl@gnu.org>
1754 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
1755 like emulparams/aixppc.sh.
1757 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
1758 instead of ${srcdir}/emultempl/stringify.sed.
1760 2001-05-25 Timothy Wall <twall@oculustech.com>
1762 * emulparams/elf64_aix.sh: Change settings to match IBM linker
1765 2001-05-25 Alan Modra <amodra@one.net.au>
1767 * configure.host: Replace linuxoldld with linux*oldld.
1768 * configure.tgt: Likewise.
1770 2001-05-24 H.J. Lu <hjl@gnu.org>
1772 * emultempl/stringify.sed: Removed again.
1774 2001-05-24 H.J. Lu <hjl@gnu.org>
1776 * emultempl/aix.em (OUTPUT_ARCH): Defined.
1777 (gld${EMULATION_NAME}_before_parse): Initialize
1778 ldfile_output_architecture, ldfile_output_machine and
1779 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
1780 * emultempl/beos.em: Likewise.
1781 * emultempl/elf32.em: Likewise.
1782 * emultempl/linux.em: Likewise.
1783 * emultempl/mipsecoff.em: Likewise.
1784 * emultempl/pe.em: Likewise.
1785 * emultempl/sunos.em: Likewise.
1787 2001-05-24 Tom Rix <trix@redhat.com>
1789 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
1790 udate import file format.
1791 (change_symbol_mode) New, same
1792 (is_syscall) New, same
1793 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
1794 * emulparams/aixppc64.sh : same
1795 * emulparams/aixrs6.sh : same
1796 * emulparams/ppcmacos.sh : same
1797 * emultempl/aix.em : use strtoull to parse options
1798 * Makefile.am : add eaixppc64 emulation for xcoff64
1799 * Makefile.in : same
1800 * configure.tgt : same
1802 * scripttempl/aix.sc : default text section offset to 0x10000000
1803 default data section offset to 0x20000000
1804 add .sv3264 and .sv64 pseudo sections
1805 loader and debug sections use the currect section offset.
1807 * emultempl/aix.em : Add xcoff64 support
1808 Add -binitfini support
1809 (gld${EMULATION_NAME}_before_parse) -binitfini
1810 (gld${EMULATION_NAME}_parse_args) same
1811 (gld${EMULATION_NAME}_before_allocation) format change for special
1814 * emulparams/aixppc64.sh : New file for xcoff64 support
1816 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
1818 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
1819 variable to avoid non-portable shell construct.
1821 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1823 * ldmain.c (get_emulation): Add -mips5 command line argument.
1825 2001-05-22 Alexandre Oliva <aoliva@redhat.com>
1827 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
1828 (ELF_INTERPRETER_NAME): Define it.
1829 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
1831 * configure.tgt (targ_emul, targ_extra_emuls)
1832 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
1833 as primary, elf_i386 as extra.
1834 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
1835 (eelf_i386_ldso.c): New rule.
1836 * Makefile.in: Rebuilt.
1838 2001-05-22 Nick Clifton <nickc@redhat.com>
1840 * lexsup.c (ld_options): Allow -I to be an alias for
1841 --dynamic-linker. This is for Solaris compatability.
1842 * ld.texinfo: Document that -I can be used.
1845 2001-05-16 Alan Modra <amodra@one.net.au>
1847 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
1848 whether an input section is the first one assigned to an output
1850 Assorted formatting fixes.
1852 2001-05-14 DJ Delorie <dj@delorie.com>
1854 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
1855 * Makefile.in: Ditto.
1857 2001-05-11 Jakub Jelinek <jakub@redhat.com>
1859 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
1860 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
1862 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
1864 2001-05-11 Jakub Jelinek <jakub@redhat.com>
1866 * ldlang.c (lang_process): Call bfd_merge_sections.
1868 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1870 * ldgram.y: Fix typo.
1872 2001-05-03 H.J. Lu <hjl@gnu.org>
1874 * emultempl/elf32.em: Include "libiberty.h".
1875 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
1876 basename of the bfd filename.
1877 (gld${EMULATION_NAME}_stat_needed): Likewise.
1878 (gld${EMULATION_NAME}_try_needed): Likewise.
1879 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
1881 2001-05-02 H.J. Lu <hjl@gnu.org>
1883 * emultempl/pe.em: Include <ctype.h>.
1885 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
1887 * emulparams/elf32openrisc.sh: New file.
1889 * Makefile.am: Add OpenRISC target.
1890 * Makefile.in: Regenerated.
1892 * configure.tgt: Add openrisc-*-* mapping.
1894 2001-05-02 Nick Clifton <nickc@redhat.com>
1896 * emultempl/aix.em: Replace buystring with xstrdup.
1897 * emultempl/beos.em: Replace buystring with xstrdup.
1899 2001-05-02 H.J. Lu <hjl@gnu.org>
1901 * ldfile.c: Include "libiberty.h".
1902 * ldlex.l: Likewise.
1904 * ldmisc.c (buystring): Removed.
1905 * ldmisc.h: Likewise.
1907 * ldfile.c: Replace buystring with xstrdup.
1908 * ldlang.c: Likewise.
1909 * ldlex.l: Likewise.
1910 * ldmain.c: Likewise.
1911 * ldmisc.c: Likewise.
1912 * lexsup.c: Likewise.
1913 * mpw-eppcmac.c: Likewise.
1915 2001-04-30 Andreas Jaeger <aj@suse.de>
1917 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
1919 2001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
1921 * ldlang.c (load_symbols): Give emulation a chance
1922 to process unrecognized file before fatal error is
1923 reported, not after.
1925 2001-04-27 Sean McNeil <sean@mcneil.com>
1927 * configure.tgt: Add arm-vxworks target.
1928 * scripttempl/armcoff.sc: Support .text or .data as a section name
1932 2001-04-13 J.T. Conklin <jtc@redback.com>
1934 * ld.texinfo: Document --fatal-warnings.
1937 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
1938 warnings have been turned into errors.
1939 * lexsup.c (OPTION_WARN_FATAL): Define.
1940 (ld_options): Entry for --fatal-warnings.
1941 (parse_args): Handle OPTION_WARN_FATAL.
1942 * ld.h (ld_config_type): Add fatal_warnings field.
1944 2001-04-13 Jakub Jelinek <jakub@redhat.com>
1946 * ldmain.c (main): Default to discard_sec_merge.
1947 * lexsup.c (OPTION_DISCARD_NONE): Define.
1948 (ld_options): Add --discard-none.
1949 (parse_args): Handle OPTION_DISCARD_NONE.
1950 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
1951 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
1952 all its input sections match.
1954 2001-04-05 Steven J. Hill <sjhill@cotw.com>
1956 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
1957 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
1958 (eelf32ltsmip.c): New target.
1959 (eelf64btsmip.c): Likewise.
1960 (eelf64ltsmip.c): Likewise.
1961 * Makefile.in: Regenerated.
1963 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
1965 (mips*-*-linux-gnu*): Likewise.
1967 * emulparams/elf32ltsmip.sh: New. Traditional little endian
1969 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
1971 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
1974 2001-04-05 Hans-Peter Nilsson <hp@axis.com>
1976 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
1977 correct value of __Stext here.
1978 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
1981 * emulparams/crislinux.sh: Remove FIXME.
1983 2001-04-02 Alan Modra <alan@linuxcare.com.au>
1985 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
1986 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
1988 2001-03-27 Hans-Peter Nilsson <hp@axis.com>
1990 * configure.tgt (cris-*-*): Change default emulation to criself.
1991 (cris-*-*aout*): New rule.
1993 2001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
1995 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
1996 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
1998 2001-03-26 Andreas Jaeger <aj@suse.de>
2000 * ld.texinfo (Overview): Fix syntax in texi code.
2002 2001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2004 * ld.texinfo: Put @c man indications to generate the ld man page.
2005 When generating man, define all the variables. Define SEEALSO
2006 and SYNOPSIS. Re-organize some lines to avoid the cross references.
2007 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
2008 (ld.1): Generate from ld.texinfo.
2009 * Makefile.in: Regenerate.
2011 2001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
2013 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
2014 and '-fdata-sections'. Set the VMA of STABS sections to zero.
2016 2001-03-17 Ulrich Drepper <drepper@redhat.com>
2018 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
2019 is an absolute path look only for this file and not along the path.
2021 2001-03-17 Ulrich Drepper <drepper@redhat.com>
2023 * emultempl/elf32.em (OPTION_GROUP): New macro.
2024 Add new option Bgroup to longopts.
2025 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
2026 (gld*_list_options): Add -Bgroup and -z defs.
2027 * ld.1: Document -Bgroup and -z defs.
2028 * ld.texinfo: Likewise.
2030 2001-03-07 Michael Meissner <meissner@redhat.com>
2032 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
2033 with sections created by -fdata-sections.
2034 (.dynbss,.bss): Ditto.
2036 2001-03-05 Alan Modra <alan@linuxcare.com.au>
2038 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
2039 after_allocation_default, not gld..._before_allocation.
2041 2001-02-27 Alan Modra <alan@linuxcare.com.au>
2043 * configure.in (BFD_VERSION): New.
2044 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
2045 * configure: Regenerate.
2046 * Makefile.am: Run "make dep-am"
2047 * Makefile.in: Regenerate.
2049 2001-02-26 Timothy Wall <twall@cygnus.com>
2051 * emulparams/elf64_aix.sh: Add additional read-only sections;
2052 uncomment lines which are now required.
2054 2001-02-26 H.J. Lu <hjl@gnu.org>
2056 * ldlang.c (open_input_bfds): Set the bfd error handler so
2057 that problems can be caught whilst loading symbols.
2058 (record_bfd_errors): New function: Report BFD errors and mark
2059 the executable output as being invalid.
2061 2001-02-22 Timothy Wall <twall@cygnus.com>
2063 * configure.host: Add configuration for ia64-*-aix*.
2064 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
2065 Add dependencies for eelf64_aix.c.
2066 * Makefile.in: Regenerate.
2067 * configure.tgt: Add ia64-*-aix* mapping.
2068 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
2069 * testsuite/ld-bootstrap/bootstrap.exp: Exclude ia64 flavor from
2072 2001-02-20 H.J. Lu <hjl@gnu.org>
2074 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
2075 false if we found the file.
2077 2001-02-18 David O'Brien <obrien@FreeBSD.org>
2079 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
2080 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
2082 2001-02-18 lars brinkhoff <lars@nocrew.org>
2084 * Makefile.am: Add PDP-11 target.
2085 * configure.tgt: Likewise.
2086 * emulparams/pdp11.sh: New file.
2088 2001-02-17 David O'Brien <obrien@FreeBSD.org>
2090 * configure.host: Add a generic FreeBSD configuration entry such that
2091 all [modern] FreeBSD systems on all platforms will look the same.
2093 2001-02-14 H.J. Lu <hjl@gnu.org>
2095 * configure.tgt: Remove mention of earmelf_linux26.
2097 2001-02-13 Richard Henderson <rth@redhat.com>
2099 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
2101 2001-02-13 H.J. Lu <hjl@gnu.org>
2103 * ldexp.h (node_type): Add etree_provided.
2104 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
2105 type to etree_provided if defined by PROVIDE. Allow updating
2107 (exp_print_tree): Handle etree_provided.
2108 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
2111 2001-02-09 David Mosberger <davidm@hpl.hp.com>
2113 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
2114 .IA_64.unwind.* pattern to unwind table section and
2115 .IA_64.unwind_info* pattern to unwind info section.
2117 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
2119 * Makefile.am: Add linux target for S/390.
2120 * Makefile.in: Likewise.
2121 * configure.host: Likewise.
2122 * configure.tgt: Likewise.
2123 * emulparams/elf64_s390.sh: New file.
2124 * emulparams/elf_s390.sh: New file.
2126 2001-02-09 Jakub Jelinek <jakub@redhat.com>
2128 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
2130 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
2132 2001-02-06 Philip Blundell <philb@gnu.org>
2134 * Makefile.am: Remove mention of earmelf_linux26.
2135 * Makefile.in: Regenerate.
2137 2001-02-04 Philip Blundell <philb@gnu.org>
2139 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
2140 * emulparams/armelf_linux26.sh: Delete.
2141 * configure.tgt: Remove mention of armelf_linux26 emulation.
2143 2001-02-01 Nick Clifton <nickc@redhat.com>
2145 * ld.1: Replace occurances of -oformat with --oformat.
2147 2001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
2149 * ldlang.c (lang_leave_overlay): Don't set lma_region when
2150 load_base is specified.
2152 2001-01-24 Hans-Peter Nilsson <hp@axis.com>
2154 * emultempl/elf32.em: Correct spelling in comments and listed
2157 2001-01-23 Alan Modra <alan@linuxcare.com.au>
2159 * ldlang.c (lang_leave_overlay): Only set lma_region from the
2160 default for the first section of a group of overlay sections.
2162 2001-01-22 Alan Modra <alan@linuxcare.com.au>
2164 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
2165 * Makefile.in: Regenerate.
2166 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
2167 Check for null tool_dir.
2169 2001-01-16 Jim Wilson <wilson@redhat.com>
2171 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
2172 and IA_64.unwind.info.
2174 2001-01-16 H.J. Lu <hjl@gnu.org>
2176 * ldlang.c (lang_check): Merge the private data only if the
2177 input file has contents.
2179 2001-01-14 Alan Modra <alan@linuxcare.com.au>
2181 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
2183 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
2184 enabling search for libmilli. On a relocatable link, make .text
2186 (LDEMUL_AFTER_PARSE): Define.
2187 (hppaelf_finish): Correct spelling of relocatable in comments.
2189 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
2190 rummage through the script for sections on the unique list.
2191 Correct length of strncmp for ".note".
2192 (gld${EMULATION_NAME}_check_needed): Rearrange function.
2194 * ldlang.c (unique_section_list): New var.
2195 (unique_section_p): New function.
2196 (walk_wild_section): Don't match sections on unique_section_list.
2197 (lang_add_unique): New function.
2198 Correct spelling of relocatable in comments.
2200 * ldlang.h (struct unique_sections): Declare.
2201 (unique_section_list): Declare.
2202 (unique_section_p): Declare.
2203 (lang_add_unique): Declare.
2205 * lexsup.c (ld_options): Allow --unique to take an optional arg.
2206 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
2208 * ld.texinfo (--unique): Update.
2210 2001-01-13 Nick Clifton <nickc@redhat.com>
2212 * lexsup.c (parse_args): Remove spurious white space.
2214 2001-01-12 Nick Clifton <nickc@redhat.com>
2216 * lexsup.c (parse_args): Update copyright date.
2218 2001-01-12 Philip Blundell <pb@futuretv.com>
2220 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
2222 2001-01-10 Kazu Hirata <kazu@hxi.com>
2224 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
2225 * scripttempl/h8300h.sc: Fix formatting.
2226 * scripttempl/h8300s.sc: Likewise.
2227 * scripttempl/h8500.sc: Likewise.
2228 * scripttempl/h8500b.sc: Likewise.
2229 * scripttempl/h8500c.sc: Likewise.
2230 * scripttempl/h8500m.sc: Likewise.
2231 * scripttempl/h8500s.sc: Likewise.
2233 2000-01-07 David O'Brien <obrien@BSDi.com>
2235 * emultempl/elf32.em: Only perform Linux ld hints processing when
2238 2001-01-07 Philip Blundell <philb@gnu.org>
2240 * ld.texinfo (Bug Reporting): Update email address for reports.
2242 2000-12-31 Nick Clifton <nickc@redhat.com>
2244 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
2245 options by checking for a return value of '?' not -1.
2247 2000-12-28 Nick Clifton <nickc@redhat.com>
2249 * lexsup.c (struct ld_option): Add new enum value:
2251 (ld_options[]): Change -omagic, -output and -oformat options
2252 to be EXACTLY_TWO_DASHES.
2253 (OUTPUT_COUNT): Use ARRAY_SIZE.
2254 (parse_args): Change parameter 'argc' to unsigned.
2255 Place EXACTLY_TWO_DASHES options into new really_longopts
2257 If getopt_long_only fails, try calling getopt_long using the
2258 really_longopts array.
2259 (help): Print a double dash for both EXACTLY_TWO_DASHES and
2262 * ldlex.h: Fix prototype of parse_args.
2264 * ld.texinfo: Document that long options starting with 'o'
2265 must be preceeded by two dashes. Change example of a single
2266 dashed long option from -oformat to -trace-symbol.
2268 2000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2270 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
2271 (longopts[]): New --no-default-excludes option.
2272 (gld_${EMULATION_NAME}_list_options): Document.
2273 (gld_${EMULATION_NAME}_parse_args): Handle.
2275 2000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2277 * ldlang.c (new_stat): Revert the last beautification with "innocent"
2278 whitespace, it breaks the K&R C preprocessor.
2280 2000-12-11 DJ Delorie <dj@redhat.com>
2282 * ld.texinfo: Add notes about --whole-archive and gcc.
2284 2000-11-18 Fred Fish <fnf@be.com>
2286 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
2287 (ld_options): Entry for --allow-shlib-undefined.
2288 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
2289 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
2291 * ld.texinfo: Document new command line switch.
2293 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
2295 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
2296 .fixup is actually read/write.
2297 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
2298 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
2299 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
2301 2000-12-11 Jan Hubicka <jh@suse.cz>
2303 * NEWS: Add note about x86_64 architecture.
2305 2000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
2307 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
2308 Set DWARF2 sections to a VMA of zero.
2310 2000-12-01 Joel Sherrill <joel@OARcorp.com>
2312 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
2314 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
2315 (sparc*-*-rtems*): Switched from a.out to ELF.
2317 2000-11-30 Jan Hubicka <jh@suse.cz>
2319 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
2320 (eelf_x86_64.c): New.
2321 * Makefile.in: Regenerate.
2322 * configure.tgt: Add support for x86_64-*-linux-gnu*.
2323 * emulparams/elf_x86_64.sh: New.
2325 2000-11-30 Hans-Peter Nilsson <hp@axis.com>
2327 * emulparams/crislinux.sh (ENTRY): Change back to _start.
2328 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
2330 * scripttempl/crisaout.sc: Change all RELOCATING not related to
2331 merging non-a.out sections into CONSTRUCTING.
2333 2000-11-28 Nick Clifton <nickc@redhat.com>
2335 * ld.1 (COPYING): Mention that the GNU Free Documentation
2336 License is present in the sources, but not the output, and
2337 also available from the GNU website.
2338 (GNU Free Documentation License): Comment out this section.
2340 2000-11-28 David O'Brien <obrien@dragon.nuxi.com>
2342 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
2345 2000-11-25 David O'Brien <obrien@FreeBSD.org>
2347 * ld.1: Remove old date so it does not give the impression the manpage
2350 2000-11-24 Nick Clifton <nickc@redhat.com>
2352 * configure.tgt (xscale-coff): Add target.
2353 (xscale-elf): Add target.
2355 2000-11-24 Fred Fish <fnf@be.com>
2357 * ldmain.c (main): Remove redundant init of config.make_executable
2360 2000-11-15 Richard Henderson <rth@redhat.com>
2362 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
2364 2000-11-14 Kazu Hirata <kazu@hxi.com>
2366 * scripttempl/h8300.sc: Fix formatting.
2367 * scripttempl/h8300h.sc: Likewise.
2368 * scripttempl/h8300s.sc: Likewise.
2370 2000-11-14 Denis Chertykov <denisc@overta.ru>
2372 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
2374 2000-11-09 Philip Blundell <pb@futuretv.com>
2376 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
2377 around orphan sections whose names can be represented in C.
2379 2000-11-07 Jim Wilson <wilson@redhat.com>
2381 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
2382 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
2384 2000-11-06 Nick Clifton <nickc@redhat.com>
2386 * ld.texinfo: Add GNU Free Documentation License.
2387 * ldint.texinfo: Add GNU Free Documentation License.
2388 * ld.1: Add GNU Free Documentation License.
2390 2000-11-05 Alan Modra <alan@linuxcare.com.au>
2392 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
2393 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
2395 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
2396 Move 2000-11-02 Makefile.in changes to this file.
2397 * Makefile.in: Regenerate.
2399 2000-11-03 Nick Clifton <nickc@redhat.com>
2401 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
2402 constructors and destructors.
2403 * scripttempl/h8300h.sc: Ditto.
2404 * scripttempl/h8300s.sc: Ditto.
2405 * scripttempl/h8500.sc: Ditto.
2406 * scripttempl/h8500b.sc: Ditto.
2407 * scripttempl/h8500c.sc: Ditto.
2408 * scripttempl/h8500m.sc: Ditto.
2409 * scripttempl/h8500s.sc: Ditto.
2410 * scripttempl/v850.sc: Ditto.
2411 * scripttempl/w65.sc: Ditto.
2412 * scripttempl/z8000.sc: Ditto.
2414 2000-11-02 Per Lundberg <plundis@chaosdev.org>
2416 * Makefile.in (e_i386_chaos.c): New rule.
2417 (ALL_EMULATIONS): Added e_i386_chaos.o.
2418 * emulparams/elf_i386_chaos.sh: New file.
2419 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
2421 2000-10-20 Jakub Jelinek <jakub@redhat.com>
2423 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
2424 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
2425 Fix sed invocation, so that it coped with '/' in Solaris 64bit
2426 library path suffix.
2427 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
2429 2000-10-18 Hans-Peter Nilsson <hp@axis.com>
2431 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
2432 for consecutive sections.
2434 2000-10-17 Chandrakala Chavva <cchavva@redhat.com>
2436 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
2438 * ld.texinfo: Added notes about this new option.
2440 2000-10-16 Nick Clifton <nickc@redhat.com>
2442 * emultempl/pe.em (_after_open): Add tests of return values from
2443 bfd functions. Emit appropriate error messages if necessary.
2445 2000-10-13 Nick Clifton <nickc@redhat.com>
2447 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
2448 local variables - they are not used, but leave in the call to
2449 bfd_canonicalize_symtab.
2450 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
2451 pe_dll_search_prefix.
2453 2000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
2455 * emultempl/pe.em (pe_dll_search_prefix): New variable,
2456 (longopts): New --dll-search-prefix option.
2457 (gld_${EMULATION_NAME}_list_options): Document.
2458 (gld_${EMULATION_NAME}_parse_args): Handle.
2459 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
2460 dynamically, search for a dll named '<prefix><basename>.dll'
2461 in preference to 'lib<basename>.dll' if --dll-search-prefix
2464 2000-10-12 Alan Modra <alan@linuxcare.com.au>
2466 * ldlang.c (section_already_linked): Set kept_section instead of
2469 2000-10-10 Kazu Hirata <kazu@hxi.com>
2471 * deffile.h: Fix formatting.
2472 * lexsup.c: Likewise.
2475 2000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2477 * pe-dll.c (make_one): Do not generate code thunk for DATA
2479 (process_def_file): deduce DATA flag for auto-export sumbols.
2481 2000-10-09 Kazu Hirata <kazu@hxi.com>
2483 * ld.h: Fix formatting.
2484 * ldcref.c: Likewise.
2485 * ldctor.h: Likewise.
2486 * ldemul.c: Likewise.
2487 * ldemul.h: Likewise.
2488 * ldexp.c: Likewise.
2489 * ldexp.h: Likewise.
2490 * ldfile.c: Likewise.
2491 * ldfile.h: Likewise.
2492 * ldlang.c: Likewise.
2493 * ldlang.h: Likewise.
2494 * ldmain.c: Likewise.
2495 * pe-dll.c: Likewise.
2497 * pe-dll.c: Revert some formatting fixes.
2499 2000-10-08 Kazu Hirata <kazu@hxi.com>
2501 * pe-dll.c: Fix formatting.
2503 2000-10-05 Kazu Hirata <kazu@hxi.com>
2505 * ldlang.c: Fix formatting.
2507 2000-10-03 DJ Delorie <dj@redhat.com>
2509 * pe-dll.c (fill_edata): initialize entire block
2510 (make_one): fill in correct section.
2512 2000-10-03 Kazu Hirata <kazu@hxi.com>
2514 * ldexp.c: Fix formatting.
2516 2000-10-02 DJ Delorie <dj@redhat.com>
2518 * emultempl/pe.em (gld_*_after_open): detect case where there two
2519 import libraries for same dll; rename one to ensure proper link
2522 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
2524 (generate_edata): fix typo
2526 2000-09-29 Hans-Peter Nilsson <hp@axis.com>
2528 * scripttempl/crisaout.sc (ENTRY): Now __start.
2529 (.text): Add default setting for __start.
2530 Remove CONSTRUCTORS handling.
2531 (/DISCARD/): Add .gnu.warning.*.
2532 * emulparams/crislinux.sh (ENTRY): Now __start.
2533 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
2534 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
2535 (ENTRY): Now __start.
2536 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
2537 (EXECUTABLE_SYMBOLS): Add default setting for __start.
2539 2000-09-29 Kazu Hirata <kazu@hxi.com>
2541 * deffile.h: Fix formatting.
2543 * ldcref.c: Likewise.
2544 * ldctor.c: Likewise.
2545 * ldctor.h: Likewise.
2546 * ldemul.c: Likewise.
2547 * ldemul.h: Likewise.
2548 * ldexp.c: Likewise.
2549 * ldexp.h: Likewise.
2550 * ldfile.c: Likewise.
2551 * ldfile.h: Likewise.
2552 * ldlang.c: Likewise.
2553 * ldlang.h: Likewise.
2554 * lexsup.c: Likewise.
2556 * pe-dll.c: Likewise.
2558 2000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2560 * pe-dll.c (process_def_file): Uninitialized data wasn't
2561 exported with --export-all-symbols switch.
2563 2000-09-28 DJ Delorie <dj@redhat.com>
2565 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
2566 noname work properly.
2568 2000-09-28 Alan Modra <alan@linuxcare.com.au>
2570 * ld.texinfo (HPPA ELF32): New section.
2572 * emultempl/hppaelf.em (group_size): New.
2573 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
2574 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
2575 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
2576 options to prevent abbreviations matching.
2577 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
2578 (PARSE_AND_LIST_ARGS_CASES): Handle it.
2580 2000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2582 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
2583 on the m68*-*-elf target. Make it support COFF input objects.
2585 2000-09-21 Kazu Hirata <kazu@hxi.com>
2587 * ldmain.c: Fix formatting.
2588 * ldmisc.c: Likewise.
2589 * ldver.c: Likewise.
2590 * ldwrite.c: Likewise.
2592 2000-09-21 Alan Modra <alan@linuxcare.com.au>
2594 * ldwrite.c (clone_section): Silence gcc warnings.
2596 2000-09-20 Alan Modra <alan@linuxcare.com.au>
2598 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
2599 out of memory failure.
2601 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
2602 (clone_section): Handle out of memory failures. Rename var to
2603 avoid c++ reserved word.
2605 2000-09-18 Alan Modra <alan@linuxcare.com.au>
2607 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
2608 stub_name param to stub_sec_name.
2609 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
2611 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2613 * emultempl/m68kelf.em: New file.
2614 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
2615 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
2616 * Makefile.in: Regenerate.
2618 2000-09-15 Alan Modra <alan@linuxcare.com.au>
2620 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
2623 2000-09-13 Nick Clifton <nickc@redhat.com>
2625 * ldmain.c (multiple_definition): Disable relaxation if
2626 multiple symbol definitions are encountered - otherwise the
2627 linker could abort with an assertion failure.
2629 2000-09-10 Nick Clifton <nickc@redhat.com>
2631 * mri.c: Fix formatting.
2633 2000-09-07 H.J. Lu <hjl@gnu.org>
2635 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
2636 * configure: Rebuild.
2638 2000-09-07 H.J. Lu <hjl@gnu.org>
2640 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
2641 * Makefile.in: Rebuild.
2643 2000-09-07 Alan Modra <alan@linuxcare.com.au>
2645 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
2646 broken list handling. Create __start_SECNAME and __stop_SECNAME
2647 when no place-holder. Add some comments. Test both SEC_CODE and
2648 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
2649 Handle case where no output section statement created.
2651 2000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
2653 * configure.tgt (sh-*-linux*): Added.
2654 * Makefile.am: Added eshelf_linux and eshlelf_linux.
2655 * Makefile.in: Rebuilt.
2656 * emulparams/shelf_linux.sh: New file.
2657 * emulparams/shlelf_linux.sh: New file.
2659 2000-09-06 Alan Modra <alan@linuxcare.com.au>
2661 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
2662 try shuffling sections when the orphan happens to be the place
2663 holder. Keep count of unique section names generated so we speed
2664 the search for a new name.
2666 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
2668 * configure: Rebuilt with new libtool.m4.
2670 2000-09-05 Nick Clifton <nickc@redhat.com>
2672 * Makefile.in: Regenerate.
2673 * aclocal.m4: Regenerate.
2674 * configure: Regenerate.
2675 * config.in: Regenerate.
2676 * po/ld.pot: Regenerate.
2678 * ldint.texinfo: Remove CVS revision marker - it foils local
2681 * emultempl/ticoff.em: Remove extraneous comma.
2683 2000-09-05 Alan Modra <alan@linuxcare.com.au>
2685 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
2686 to stub section flags.
2687 (hppa_for_each_input_file_wrapper): New.
2688 (hppa_lang_for_each_input_file): New.
2689 (lang_for_each_input_file): Define to call above.
2690 (multi_subspace): New.
2691 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
2692 (PARSE_AND_LIST_PROLOGUE): Define.
2693 (PARSE_AND_LIST_LONGOPTS): Define.
2694 (PARSE_AND_LIST_OPTIONS): Define.
2695 (PARSE_AND_LIST_ARGS_CASES): Define.
2696 (hppaelf_finish): Call elf32_hppa_set_gp.
2697 (hppaelf_set_output_arch): Remove.
2698 (LDEMUL_SET_OUTPUT_ARCH): Remove.
2700 * emulparams/hppalinux.sh (ELFSIZE): Define.
2702 (OTHER_READONLY_SECTIONS): Define.
2704 (GENERATE_SHLIB_SCRIPT): Define.
2706 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
2707 to const throughout. Change `void *' to `PTR' throughout.
2708 (lang_memory_default): Function is local to file, add `static'.
2710 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
2711 (ehppalinux.c): Likewise.
2712 (earmelf.c): Likewise.
2713 (earmelf_linux.c): Likewise.
2714 (earmelf_linux26.c): Likewise.
2715 * Makefile.in: Regenerate.
2717 * ld.h (ld_config_type): Add unique_orphan_sections.
2718 * lexsup.c (OPTION_UNIQUE): Define.
2719 (ld_options): Add "--unique".
2720 (parse_args): Handle it.
2721 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
2722 search for an existing output section if unique_orphan_sections is
2723 set. Make use of bfd_get_unique_section_name rather than
2724 duplicating code here.
2725 * ld.texinfo: Describe --unique.
2727 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
2728 optional arg to split-by-file.
2729 (parse_args): Handle them.
2730 * ld.texinfo: Update description of these options.
2731 * ldwrite.c (clone_section): Pass in the section name. Replace
2732 local code with bfd_get_unique_section_name.
2733 (split_sections): Tidy code and comments. Use a list traversal
2734 more appropriate to the list construction. Handle cooked section
2735 sizes. Split when split_by_reloc reached rather than exceeded.
2736 Track section size and split when split_by_file reached. Fix
2737 link_order_tail (even though it's not used).
2738 (ldwrite): Modify condition for calling split_sections to suit
2739 changed split_by_reloc and split_by_file.
2740 * ldmain.c (main): Init config.split_by_reloc and
2741 config.split_by_file to -1.
2742 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
2743 Change split_by_file to bfd_size_type.
2745 2000-09-02 Nick Clifton <nickc@redhat.com>
2747 * configure.in: Increase version number to 2.10.91.
2748 * NEWS: Mention new ability to support removal of duplicate DWARF2
2750 * configure: Regenerate.
2751 * aclocal.m4: Regenerate.
2752 * config.in: Regenerate.
2754 2000-09-02 Daniel Berlin <dberlin@redhat.com>
2756 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
2758 * scripttempl/elf32avr.sc: Ditto.
2759 * scripttempl/elfd10v.sc: Ditto.
2760 * scripttempl/elfd30v.sc: Ditto.
2761 * scripttempl/elfi370.sc: Ditto.
2762 * scripttempl/elfm68hc11.sc: Ditto.
2763 * scripttempl/elfm68hc12.sc: Ditto.
2764 * scripttempl/elfi386beos.sc: Ditto.
2765 * scripttempl/v850.sc: Ditto.
2767 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
2769 * acinclude.m4: Include libtool and gettext macros from the
2771 * aclocal.m4, configure: Rebuilt.
2773 2000-08-25 Nick Clifton <nickc@redhat.com>
2775 * ldlang.c (open_output): When choosing the target for a
2776 particular endianness, do nothing if the target is not
2779 2000-08-25 H.J. Lu <hjl@gnu.org>
2781 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
2782 check -rpath nor LD_RUN_PATH for cross link.
2783 * ld.texinfo: Document the change.
2785 2000-08-24 Hans-Peter Nilsson <hp@axis.com>
2787 * NEWS: Mention support for CRIS.
2789 2000-08-23 H.J. Lu <hjl@gnu.org>
2791 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
2792 the current runpath list from bfd_elf_get_runpath_list ()
2795 2000-08-22 H.J. Lu <hjl@gnu.org>
2797 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
2798 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
2799 LD_LIBRARY_PATH for native linker. Display the needed DSO if
2800 trace_file_tries is non-zero.
2801 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
2802 if trace_file_tries is non-zero.
2804 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
2807 2000-08-14 Jason Eckhardt <jle@cygnus.com>
2809 * NEWS: Mention i860 support.
2811 2000-08-14 Andreas Schwab <schwab@suse.de>
2813 * scripttempl/elf.sc: Fix last change to use correct comment
2816 2000-08-10 Geoff Keating <geoffk@cygnus.com>
2818 * scripttempl/elf.sc: Add a comment giving the correspondence
2819 between sections, per-datum sections, and linkonce sections. Make
2820 the comment true even for .bss, .sdata, .sdata2, .sbss, and
2823 2000-08-10 Jason Eckhardt <jle@cygnus.com>
2825 * emulparams/elf32_i860.sh: New file.
2826 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
2827 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
2828 (eelf32_i860.c): New rule.
2829 * Makefile.in: Regenerate.
2831 2000-08-10 Nick Clifton <nickc@cygnus.com>
2833 * emulparams/mipspe.sh (ENTRY): Add definition.
2835 2000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
2837 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
2840 2000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2842 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
2843 the final size of .bss section.
2844 * scripttempl/elfm68hc12.sc: Likewise.
2846 2000-08-04 Alan Modra <alan@linuxcare.com.au>
2848 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
2849 gld${EMULATION_NAME}_parse_args for consistency. Combine
2850 lastoptind and prevoptind vars, and keep track of last optind.
2851 (gld_${EMULATION_NAME}_list_options): Rename to
2852 gld${EMULATION_NAME}_list_options.
2854 2000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
2856 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
2857 (i586-sco-sysv5uw7.1.0).
2859 2000-07-27 H.J. Lu <hjl@gnu.org>
2861 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
2862 (PARSE_AND_LIST_PROLOGUE): New.
2863 (PARSE_AND_LIST_LONGOPTS): Likewise.
2864 (PARSE_AND_LIST_OPTIONS): Likewise.
2865 (PARSE_AND_LIST_ARGS_CASES): Likewise.
2866 (PARSE_AND_LIST_EPILOGUE): Likewise.
2868 2000-07-28 Alan Modra <alan@linuxcare.com.au>
2870 * emultempl/armelf.em: Elide functions common to elf32.em,
2871 ie. most of the file.
2872 (arm_elf_after_open): New. Do arm specific things then call
2873 gld${EMULATION_NAME}_after_open.
2874 (arm_elf_before_allocation): New. Call
2875 gld${EMULATION_NAME}_before_allocation then do arm specifics.
2876 (PARSE_AND_LIST_PROLOGUE): Define.
2877 (PARSE_AND_LIST_SHORTOPTS): Define.
2878 (PARSE_AND_LIST_LONGOPTS): Define.
2879 (PARSE_AND_LIST_OPTIONS): Define.
2880 (PARSE_AND_LIST_ARGS_CASES): Define.
2881 (LDEMUL_AFTER_OPEN): Define.
2882 (LDEMUL_BEFORE_ALLOCATION): Define.
2883 (LDEMUL_BEFORE_PARSE): Define.
2884 (LDEMUL_FINISH): Define.
2886 * emultempl/hppaelf.em: Similarly zap most of this file.
2887 (hppaelf_add_stub_section): Prototype.
2888 (hppaelf_layaout_sections_again): Prototype.
2889 (hook_in_stub): Prototype.
2890 (LDEMUL_SET_OUTPUT_ARCH): Define.
2891 (LDEMUL_FINISH): Define.
2892 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
2894 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
2895 (EXTRA_EM_FILE): New.
2896 * emulparams/armelf_linux.sh: Likewise.
2897 * emulparams/armelf_linux26.sh: Likewise.
2898 * emulparams/hppalinux.sh: Likewise.
2899 * emulparams/hppaelf.sh: Likewise.
2902 * emultempl/elf32.em: Fix formatting.
2903 (EXTRA_EM_FILE): Source it.
2904 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
2905 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
2906 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
2907 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
2908 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
2909 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
2910 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
2911 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
2912 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
2913 allow functions in this file to be overridden.
2914 (PARSE_AND_LIST_SHORTOPTS): Handle it.
2916 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
2918 * emultempl/elf32.em: Reorganize file.
2920 2000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
2922 * emulparams/elf64alpha.sh: Implement "-taso" emulation
2923 specific option to fit 64-bit executable in the lower
2924 31-bit address range. This is done by changing start
2925 address of .interp (the very first section of executable)
2926 and then setting EF_ALPHA_32BIT elf header flag.
2928 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2930 * emultempl/m68kcoff.em: New file.
2931 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
2932 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
2934 * Makefile.in: Regenerate.
2936 2000-07-20 H.J. Lu <hjl@gnu.org>
2938 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
2939 and "disable-new-dtags" to stop getopt from treating -d/-e as
2940 abbreviations for these options.
2942 2000-07-20 H.J. Lu <hjl@gnu.org>
2944 * ld.texinfo: Add documentation for --disable-new-dtags and
2947 * ldmain.c (main): Initialize link_info.new_dtags to false.
2949 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
2950 --disable-new-dtags and --enable-new-dtags.
2951 (gld_${EMULATION_NAME}_list_options): Likewise.
2953 2000-07-05 Kenneth Block <krblock@computer.org>
2955 * lexsup.c: Add optional style to demangle switch
2956 * ld.texinfo: Document optional style to demangle switch.
2958 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
2960 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
2962 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
2963 Regenerate dependencies.
2964 * Makefile.in: Rebuild.
2965 * configure.tgt (cris-*-*): New target.
2966 * emulparams/crisaout.sh, emulparams/criself.sh,
2967 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
2968 * po/POTFILES.in, po/ld.pot: Regenerate.
2970 2000-07-20 H.J. Lu <hjl@gnu.org>
2972 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
2973 Print out ignored -z options.
2975 2000-07-19 H.J. Lu <hjl@gnu.org>
2977 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
2978 (PARSE_AND_LIST_PROLOGUE): New.
2979 (PARSE_AND_LIST_LONGOPTS): Likewise.
2980 (PARSE_AND_LIST_OPTIONS): Likewise.
2981 (PARSE_AND_LIST_ARGS_CASES): Likewise.
2983 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
2985 * lexsup.c (ld_options): Comment out 'z'.
2986 (parse_args): Likewise.
2988 * emultempl/elf32.em: Include "elf/common.h".
2989 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
2991 (gld_${EMULATION_NAME}_list_options): Likewise.
2993 * ld.texinfo: Add documentation for the recognized -z options.
2995 2000-07-19 H.J. Lu <hjl@gnu.org>
2997 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
2998 bfd_elf_set_dt_needed_soname ().
3000 2000-07-18 DJ Delorie <dj@cygnus.com>
3002 * pe-dll.c (pe_dll_id_target): check object target name also
3004 2000-07-18 Hans-Peter Nilsson <hp@axis.com>
3006 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
3007 ${INIT_END} if relocating.
3008 (.fini): Likewise ${FINI_START} and ${FINI_END}.
3010 2000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
3012 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
3013 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
3014 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
3015 errors introduced by the old dynamic lib search order.
3017 2000-07-17 DJ Delorie <dj@cygnus.com>
3019 * pe-dll.c (process_def_file): auto-export data items also
3020 (pe_process_import_defs): also see if _imp_ form needed
3022 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
3024 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
3025 for dll import libraries
3027 2000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
3029 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
3030 gcc 2.95.2 and later.
3032 2000-07-11 Kazu Hirata <kazu@hxi.com>
3034 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
3037 2000-07-10 Alan Modra <alan@linuxcare.com.au>
3039 * ldemul.h (struct lang_input_statement_struct): Remove forward
3041 (struct search_dirs): Likewise.
3042 * ldfile.h (struct lang_input_statement_struct): Likewise.
3043 Protect file from multiple inclusion.
3044 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
3045 declaration from macro to file scope.
3047 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
3048 * ldgram.y: Likewise here.
3049 * ldlang.c: And here.
3050 * ldmain.c: And here.
3051 * mpw-elfmips.c: And here.
3052 * mpw-eppcmac.c: And here.
3053 * emultempl/aix.em: And here.
3054 * emultempl/armcoff.em: And here.
3055 * emultempl/armelf.em: And here.
3056 * emultempl/armelf_oabi.em: And here.
3057 * emultempl/beos.em: And here.
3058 * emultempl/elf32.em: And here.
3059 * emultempl/hppaelf.em: And here.
3060 * emultempl/linux.em: And here.
3061 * emultempl/lnk960.em: And here.
3062 * emultempl/pe.em: And here.
3063 * emultempl/sunos.em: And here.
3064 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
3065 * mpw-idtmips.c: Ditto.
3066 * emultempl/generic.em: Ditto.
3067 * emultempl/gld960.em: Ditto.
3068 * emultempl/gld960c.em: Ditto.
3069 * emultempl/mipsecoff.em: Ditto.
3070 * emultempl/ticoff.em: Ditto.
3071 * emultempl/vanilla.em: Ditto.
3073 * pe-dll.c: Include ldfile.h
3074 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
3076 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
3077 arguments to bfd_elf32_size_dynamic_sections call.
3078 (gldelf32ebmip_place_orphan): Add missing arguments to
3079 lang_leave_output_section_statement call.
3081 2000-07-10 H.J. Lu <hjl@gnu.org>
3083 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
3085 (strhash): Likewise.
3086 (compute_dll_image_base): Likewise.
3087 (pe_undef_found_sym): Likewise.
3088 (pe_undef_cdecl_match): Likewise.
3089 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
3090 argument "arch" with ATTRIBUTE_UNUSED.
3092 2000-07-10 Alan Modra <alan@linuxcare.com.au>
3094 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
3096 From Ryan Bradetich <rbradetich@uswest.net>
3097 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
3099 2000-07-09 Alan Modra <alan@linuxcare.com.au>
3101 Changes to create multiple linker stubs, positioned immediately
3102 before the section where they are required.
3103 * emultempl/hppaelf.em: Include elf32-hppa.h.
3104 (stub_sec, file_chain): Delete.
3105 (hppaelf_create_output_section_statements): Don't make a stub
3107 (hook_stub_info): New struct.
3108 (hook_in_stub): New function.
3109 (hppaelf_add_stub_section): New function.
3110 (hppaelf_finish): Do nothing for relocateable links. Modify the
3111 call to elf32_hppa_size_stubs. Move code for updating section
3113 (hppaelf_layaout_sections_again): ..to here, a new function.
3115 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
3116 broken list handling. Pass in a pointer to the list.
3117 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
3119 (hppaelf_before_parse): Prototype.
3120 (hppaelf_set_output_arch): Prototype.
3121 (hppaelf_create_output_section_statements): Prototype.
3122 (hppaelf_delete_padding_statements): Prototype.
3123 (hppaelf_finish): Prototype.
3126 * emultempl/hppaelf.em: Include ctype.h.
3127 (struct orphan_save): New.
3128 (gld${EMULATION_NAME}_place_orphan): New.
3129 (output_rel_find): New.
3130 (hppaelf_get_script): Update from elf32.em.
3131 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
3132 Change emulation_name field to "${EMULATION_NAME}". Add
3133 gld${EMULATION_NAME}_place_orphan.
3135 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
3136 ehppalinux.o, sort it. Regenerate dependencies.
3137 (ehppalinux.c): Depend on hppaelf.em
3138 * Makefile.in: Regenerate.
3140 * configure.tgt: targ_emul=hppalinux for hppa*linux
3142 * emulparams/hppalinux.sh: New.
3143 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
3145 2000-07-08 Alan Modra <alan@linuxcare.com.au>
3147 * lexsup.c (parse_args): Copy section name.
3149 2000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
3151 * emultempl/pe.em: institute the following search order for
3152 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
3153 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
3154 static lib (libfoo.a) if none of the above are found.
3156 2000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
3158 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
3159 (longopts): New --{enable,disable}-auto-image-base options.
3160 (gld_${EMULATION_NAME}_list_options): Document.
3161 (gld_${EMULATION_NAME}_parse): Handle.
3162 (strhash): New static function.
3163 (compute_dll_image_base): New static function.
3164 (gld_${EMULATION_NAME}_set_symbols): Use.
3166 2000-07-05 DJ Delorie <dj@redhat.com>
3170 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
3172 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
3173 * emulparams/elf32btsmip.sh: New file.
3174 * Makefile.am: Add traditional mips target.
3175 * Makefile.in: Rebuild.
3177 2000-07-01 H.J. Lu <hjl@gnu.org>
3179 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
3180 automake to use YLWRAP.
3181 * Makefile.in: Rebuild.
3183 2000-07-01 Alan Modra <alan@linuxcare.com.au>
3185 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
3186 (CLEANFILES): Add DEPA.
3187 * Makefile.in: Regenerate.
3189 2000-06-30 Timothy Wall <twall@ppc>
3191 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
3192 the page in the upper octet of the address.
3194 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
3196 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
3198 2000-06-24 Alan Modra <alan@linuxcare.com.au>
3200 * NEWS: arm-elf does --gc-sections too.
3202 2000-06-22 Alan Modra <alan@linuxcare.com.au>
3204 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
3206 * Makefile.in: Regenerate.
3208 2000-06-21 H.J. Lu <hjl@gnu.org>
3210 * Makefile.am: Rebuild dependency.
3211 * Makefile.in: Rebuild.
3213 2000-06-20 H.J. Lu <hjl@gnu.org>
3215 * Makefile.am: Rebuild dependency.
3216 * Makefile.in: Rebuild.
3218 2000-06-20 Timothy Wall <twall@cygnus.com>
3220 * scripttempl/tic54xcoff.sc: New.
3221 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
3222 * gen-doc.texi: Add flag for TI COFF.
3223 * ld.texinfo: Add documentation for TI COFF handling switches.
3224 * emultempl/ticoff.em: New. TI COFF handling.
3225 * configure.tgt: Add tic54x target.
3226 * Makefile.am: Add tic54x target.
3227 * Makefile.in: Ditto.
3229 2000-06-20 Alan Modra <alan@linuxcare.com.au>
3231 * ldmain.c (set_scripts_dir): Correct pointer comparison when
3232 checking for backslashes.
3234 2000-06-19 Alan Modra <alan@linuxcare.com.au>
3236 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
3238 2000-06-18 Alan Modra <alan@linuxcare.com.au>
3240 * NEWS: Update list of targets supporting --gc-sections.
3242 * scripttempl/elf.sc: KEEP .eh_frame contents.
3243 * scripttempl/elfd30v.sc: Same here.
3245 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
3247 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
3249 * Makefile.in: Rebuild.
3250 * configure.tgt: Recognize m68hc12 and m68hc11.
3251 * scripttempl/elfm68hc12.sc: New file.
3252 * emulparams/m68hc12elfb: New emulation.
3253 * emulparams/m68hc12elf: New emulation.
3254 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
3255 (includes a memory.x script to define the ROM and RAM banks).
3256 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
3257 New configuration files for support of Motorola 68hc11
3259 2000-06-15 Alan Modra <alan@linuxcare.com.au>
3261 * ldmain.c (main): Only change SEC_READONLY for final link.
3263 2000-06-13 H.J. Lu <hjl@gnu.org>
3265 * configure: Regenerate.
3267 2000-06-08 David O'Brien <obrien@FreeBSD.org>
3269 * configure.in (VERSION): Update to show this is the CVS mainline.
3271 2000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3273 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
3274 input objects to be ECOFF.
3275 (check_sections): einfo takes %B, not %P, to print a BFD name.
3277 2000-06-05 Michael Matz <matz@ifh.de>
3279 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
3282 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
3284 2000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
3286 * emulparams/avr1200.sh (STACK): Define as 0.
3287 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
3288 * emulparams/avr4433.sh (STACK): Likewise.
3289 * emulparams/avr44x4.sh (STACK): Likewise.
3290 * emulparams/avr85xx.sh (STACK): Likewise.
3291 * emulparams/avrmega103.sh (STACK): Likewise.
3292 * emulparams/avrmega161.sh (STACK): Likewise.
3293 * emulparams/avrmega603.sh (STACK): Likewise.
3294 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
3295 (__stack): Define from ${STACK} for main().
3297 2000-05-26 Alan Modra <alan@linuxcare.com.au>
3299 * Makefile.am: Update dependencies with "make dep-am"
3300 * Makefile.in: Regenerate.
3302 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
3304 * ldmain.c: Include filenames.h.
3305 (set_scripts_dir): Support backslashes in program name.
3307 2000-05-22 Igor Shevlyakov <igor@windriver.com>
3309 * ldmain.c (main): When deciding if ".text" section should be
3310 read-only, don't forget to reset SEC_READONLY because it
3311 could be already set.
3313 2000-05-22 Thomas de Lellis <tdel@windriver.com>
3315 * ld.1: Add documentation for new command line option:
3316 --section-start <sectionname>=<sectionorg>
3317 This is a generic version of -Ttext etc. which accepts
3318 any section name as a parameter instead of just text/data/
3320 * ld.texinfo: More docs.
3322 * lexsup.c: (parse_args): Recognize new command line option.
3323 (ld_options): Add new option.
3325 2000-05-18 H.J. Lu <hjl@gnu.org>
3327 * lexsup.c (parse_args): `i' == `r', not `q'.
3329 2000-05-18 Jeffrey A Law (law@cygnus.com)
3331 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
3333 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
3334 Rick Gorton <gorton@scrugs.lkg.dec.com>
3336 Add support for '-q' == '--emit-relocs' switch.
3337 * ldmain.c (main): Default to false.
3338 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
3339 * NEWS: Describe the emitrelocations switch.
3340 * ld.texinfo: Describe the emitrelocations switch.
3342 2000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
3344 * emultempl/pe.em (_open_dynamic_archive): New function: Search
3345 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
3346 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
3349 2000-05-15 David O'Brien <obrien@FreeBSD.org>
3351 * lexsup.c (parse_args): Update the year in the copyright notice.
3353 2000-05-13 Alan Modra <alan@linuxcare.com.au>
3355 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
3356 Replace defines with those from intl/libgettext.h to quieten gcc
3359 2000-05-10 H.J. Lu <hjl@gnu.org>
3361 * ldlang.c (open_input_bfds): Don't load the same file within
3362 a group again if the whole archive has been loaded already.
3364 2000-05-03 Alan Modra <alan@linuxcare.com.au>
3366 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
3367 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
3370 2000-05-01 Jim Wilson <wilson@cygnus.com>
3372 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
3374 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
3375 host "ia64-*-linux-gnu*".
3377 2000-04-29 Andreas Jaeger <aj@suse.de>
3379 * ld.h: Correctly check GCC version.
3381 2000-04-25 Jeffrey A Law (law@cygnus.com)
3383 * Makefile.am: Add PA64 support. Add missing dependencies for
3385 * Makefile.in: Rebuilt.
3386 * configure.tgt: Add PA64 support (currently disabled).
3388 2000-04-25 Alan Modra <alan@linuxcare.com.au>
3390 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
3391 (output_rel_find): New function.
3392 (hold_section, hold_use): Delete.
3393 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
3394 hold_interp): Make local to place_orphan.
3395 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
3396 rather than place_section to find possible previous use of orphan.
3397 Similarly find the place-holder output sections. Use returned
3398 value from lang_enter_output_section_statement rather than calling
3399 lang_output_section_statement_lookup.
3400 * emultempl/armelf.em: Same here.
3401 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
3403 * ldlang.c (lang_enter_output_section_statement): Return output
3405 * ldlang.h (lang_enter_output_section_statement): Change
3408 * ldlang.h (lang_output_section_statement): Export it.
3409 * ldlang.c (lang_output_section_statement): Ditto.
3411 2000-04-24 Nick Clifton <nickc@cygnus.com>
3413 * ld.texinfo (Output Section Data): Add note that section data
3414 commands cannot appear outside of section directives.
3416 2000-04-2 Matthew Green <mrg@cygnus.com>
3418 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
3420 2000-04-21 Richard Henderson <rth@cygnus.com>
3421 David Mosberger <davidm@hpl.hp.com>
3423 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
3424 (eelf64_ia64.c): New rule.
3425 * Makefile.in: Rebuild.
3426 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
3427 * emulparams/elf64_ia64.sh: New file.
3429 2000-04-21 Richard Henderson <rth@cygnus.com>
3431 * scripttempl/elfd30v.sc: Place .gcc_except_table.
3433 2000-04-19 Alan Modra <alan@linuxcare.com.au>
3435 * dep-in.sed: Match space at start of file name, not at end.
3437 2000-04-18 H.J. Lu <hjl@gnu.org>
3439 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
3440 lang_leave_output_section_statement () after calling
3441 lang_enter_output_section_statement ().
3442 * emultempl/armelf.em: Likewise.
3444 2000-04-18 Alan Modra <alan@linuxcare.com.au>
3446 * emultempl/elf32.em (struct orphan_save): Add section field.
3447 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
3448 better order, and place first orphan section as we did before the
3449 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
3450 Don't call make_bfd_section here, let wild_doit do the job for us.
3451 Don't build a statement list when we'll only throw it away.
3452 * emultempl/armelf.em: Ditto.
3453 * emultempl/pe.em: Similarly.
3455 2000-04-14 Geoff Keating <geoffk@cygnus.com>
3457 * scripttempl/elfppc.sc: Remove.
3458 * emulparams/elf32ppc.sh: Use elf.sc.
3459 * emulparams/elf32lppc.sh: Use elf.sc.
3460 * emulparams/elf32ppclinux.sh: Use elf.sc.
3461 * emulparams/elf32ppcsim.sh: New file.
3462 * emulparams/elf32lppcsim.sh: New file.
3463 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
3464 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
3465 * Makefile.in: Regenerate.
3466 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
3468 2000-04-14 Alan Modra <alan@linuxcare.com.au>
3470 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
3471 ~SEC_ALLOC sections too. Init start address of debug sections.
3472 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
3473 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
3474 Also set all relocateable section start addresses.
3476 2000-04-13 Geoff Keating <geoffk@cygnus.com>
3478 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
3479 Add new BSS_PLT variable for when .plt need not be contained in
3480 the file. Move _etext so that it is also after .fini, and provide
3481 both etext and _etext with a leading underscore. Mark the start
3484 2000-04-12 Alan Modra <alan@linuxcare.com.au>
3486 * emultempl/elf32.em (struct orphan_save): New.
3487 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
3488 hold_interp): Make them struct orphan_save.
3489 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
3490 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
3491 the end of the relevant section list. Also add associated section
3492 statements to the end of any previous orphan statements.
3493 * emultempl/armelf.em: Similarly.
3494 * emultempl/pe.em: Similarly.
3496 2000-04-11 Alan Modra <alan@linuxcare.com.au>
3498 * ld.texinfo (Simple Example): Remove extraneous paragraph.
3500 2000-04-07 Andrew Cagney <cagney@b1.cygnus.com>
3502 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
3503 --enable-build-warnings option.
3504 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
3505 * Makefile.in, configure: Re-generate.
3507 2000-04-04 Alan Modra <alan@linuxcare.com.au>
3509 * po/ld.pot: Regenerate.
3511 * lexsup.c (help): Restore translated part of bug string.
3513 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
3514 (DEP): Quote when passing vars to sub-make. Add warning message
3516 (DEP1): Rewrite for "gcc -MM".
3517 (CLEANFILES): Add DEP2.
3518 Update dependencies.
3519 * Makefile.in: Regenerate.
3521 2000-04-03 Alan Modra <alan@linuxcare.com.au>
3523 * ld.h: #include "bin-bugs.h"
3524 * lexsup.c (help): Use REPORT_BUGS_TO.
3526 2000-03-27 Denis Chertykov <denisc@overta.ru>
3528 * configure.tgt (avr-*-*): New target support.
3529 * Makefile.am: Likewise.
3530 * scripttempl/elf32avr.sc: New script file.
3531 * emulparams/avr1200.sh: New file.
3532 * emulparams/avr23xx.sh: New file.
3533 * emulparams/avr4433.sh New file.
3534 * emulparams/avr44x4.sh New file.
3535 * emulparams/avr85xx.sh New file.
3536 * emulparams/avrmega103.sh New file.
3537 * emulparams/avrmega161.sh New file.
3538 * emulparams/avrmega603.sh New file.
3539 * Makefile.in: Regenerate.
3541 2000-03-09 Andreas Jaeger <aj@suse.de>
3543 * Makefile.am (check-DEJAGNU): Also unset LANG.
3544 * Makefile.in: Rebuild.
3546 2000-03-06 Ian Lance Taylor <ian@zembu.com>
3548 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
3551 2000-03-02 H.J. Lu <hjl@gnu.org>
3553 * emulparams/elf32mcore.sh: Include "getopt.h".
3555 2000-03-01 Ian Lance Taylor <ian@zembu.com>
3557 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
3559 2000-03-01 H.J. Lu <hjl@gnu.org>
3561 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
3562 * emulparams/shpe.sh: Likewise.
3564 2000-03-01 Nick Clifton <nickc@cygnus.com>
3566 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
3567 to unused parameters.
3569 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
3570 functions only used by DLL code.
3571 (_place_orphan): Initialise 'dollar'.
3573 2000-03-01 H.J. Lu <hjl@gnu.org>
3575 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
3576 indicate if the undefined symbol is a fatal error or not.
3577 Don't delete the output file if "fatal" is false.
3579 2000-02-29 H.J. Lu <hjl@gnu.org>
3581 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
3582 Set LC_COLLATE and LC_ALL to null and export them. It is for
3583 sort which expects the C locale.
3584 Add $(LIBS) to all $(HOSTING_LIBS).
3585 * Makefile.in: Rebuild.
3587 2000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
3589 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
3590 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
3591 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
3592 (ld_emulation_xfer_struct): Add missing NULL initialiser for
3593 find_potential_libraries.
3595 2000-02-28 Jim Blandy <jimb@redhat.com>
3597 * ldgram.y (exclude_name_list): Don't require a comma to separate
3598 list entries; the lexer considers commas to be valid part of a
3599 filename, so in something like `foo, bar' the comma is considered
3600 part of the first filename, `foo,'.
3601 * ld.texinfo: Update section on EXCLUDE_FILE lists.
3603 2000-02-27 Loren J. Rittle <ljrittle@acm.org>
3605 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
3606 host "i[3456]86-*-freebsdelf*".
3608 2000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
3610 * scripttempl/i386go32.sc: Move misplaced semicolons.
3612 2000-02-25 Ian Lance Taylor <ian@zembu.com>
3614 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
3615 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
3616 (eelf64hppa.c, ehppaelf.c): Remove targets.
3617 * Makefile.in: Rebuild.
3619 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
3621 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
3622 GNU/Linux/sparc, but keep the default as 32.
3624 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
3625 it default if sparcv9 or sparc64.
3627 2000-02-24 Nick Clifton <nickc@cygnus.com>
3629 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
3630 * Makefile.in: Regenerate.
3631 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
3633 * ldemul.h (ld_emulation_xfer_struct): Add new field:
3634 find_potential_libraries.
3635 * ldemul.c (ldemul_find_potential_libraries): New function.
3637 * ldfile.c (ldfile_open_file_search): Allow function to be
3639 (ldfile_open_file): Call ldemul_find_potential_libraries.
3640 * ldfile.h: Add prototype for ldfile_open_file_search.
3642 * pe-dll.c: Add support for ARM, MIPS and SH targets.
3644 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
3645 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
3647 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
3648 (gld_X_find_potential_libraries): New function. Search for
3649 libraries called "*.lib".
3651 * scripttempl/pe.sc: Add .pdata section.
3653 2000-02-23 Richard Henderson <rth@cygnus.com>
3655 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
3656 Add and use memory regions.
3658 2000-02-23 Linas Vepstas (linas@linas.org)
3660 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
3662 * Makefile.am: Add support for Linux/IBM 370.
3663 * configure.tgt: Likewise.
3665 * Makefile.in: Regenerate.
3667 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
3669 * ldlang.c (print_input_section, print_data_statement,
3670 print_reloc_statement, print_padding_statement, insert_pad,
3671 size_input_section, lang_check_section_addresses,
3672 lang_size_sections, lang_do_assignments, lang_set_startof,
3673 lang_one_common): Change `opb' to unsigned.
3674 (lang_do_assignments): Also change `size' to unsigned.
3676 2000-02-16 Richard Henderson <rth@cygnus.com>
3678 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
3680 2000-02-16 Timothy Wall <twall@cygnus.com>
3682 * mri.c (mri_draw_tree): Add default LMA region argument to call
3683 to lang_leave_output_section_statement.
3684 * ldlang.h: Update prototypes with LMA region arguments.
3685 * ldlang.c (lang_size_sections): Encapsulate region bounds
3686 checking in os_check_region call.
3687 (os_check_region): New function.
3688 (lang_output_section_statement_lookup): Initialize lma_region.
3689 (lang_leave_output_section_statement): Add LMA region argument.
3690 (lang_leave_overlay): Ditto.
3691 * ldgram.y: Handle LMA region syntax.
3692 * ld.texinfo (Output Section Description): Describe LMA region usage.
3693 * emultempl/armelf.em (gld$place_orphan): Add default value for
3694 lma region in call to lang_leave_output_section_statement.
3695 * emultempl/elf32.em (gld$place_orphan): Add default value for
3696 lma region in call to lang_leave_output_section_statement.
3697 * emultempl/pe.em (gld$place_orphan): Add default value for
3698 lma region in call to lang_leave_output_section_statement.
3701 2000-02-04 Timothy Wall <twall@redhat.com>
3703 * ldlang.c (lang_check_section_addresses): Use bytes instead of
3704 octets when calculating section end addresses.
3706 2000-02-04 Timothy Wall <twall@redhat.com>
3708 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
3710 2000-02-03 Timothy Wall <twall@redhat.com>
3712 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
3714 * ldlang.c (print_input_section, print_data_statement,
3715 print_reloc_statement, print_padding_statement): Print target
3716 address values and section sizes as bytes, not octets.
3717 (insert_pad) Calculate padding size in octets, and adjust "dot"
3719 (size_input_section) Always adjust "dot" by bytes, not octets.
3720 (lang_check_section_addresses, lang_do_assignments) Adjust
3721 "dot" by bytes, not octets. Use the larger of the directive size
3722 or octets_per_byte for the number of octets actually allocated in
3724 (lang_set_startof) Make sure STARTOF returns a target address.
3725 (lang_one_common) Record size changes in octets.
3726 (lang_abs_symbol_at_end_of) Section end symbol's value is
3727 recorded in target bytes.
3728 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
3729 to be clear about behavior when an octet is smaller than one byte.
3731 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
3733 * ldcref.c (output_cref): Don't pass message strings to printf
3737 * ldmisc.c (vfinfo): Same here.
3740 2000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
3742 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
3743 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
3744 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
3745 Add missing NULL initialisers, and comments.
3747 * testsuite/ld-srec/sr3.cc (__rethrow): New.
3749 2000-01-21 Nick Clifton <nickc@cygnus.com>
3751 * ldlang.c (lang_size_sections): Fix typo in comment.
3753 2000-01-18 H.J. Lu <hjl@gnu.org>
3755 * ldlang.c (lang_size_sections): Also update the current
3756 address of a region if the SEC_NEVER_LOAD bit is not set.
3758 2000-01-10 Philip Blundell <pb@futuretv.com>
3760 * configure.tgt (arm*-*-conix*): New target.
3762 2000-01-07 Nick Clifton <nickc@cygnus.com>
3764 * ld.texinfo (Options): Remind users to preceed linker command
3765 line switches with -Wl, (or whatever is appropriate) if it is
3766 being invoked by a comnpiler driver program.
3767 Fix description of the behaviour of the -n command line switch.
3769 2000-01-05 Catherine Moore <clm@cygnus.com>
3771 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
3773 * ld.texinfo (EXCLUDE_FILE): Update documentation.
3774 * ldgram.y (wildcard_spec): Support a list of excluded_files.
3775 (exclude_name_list): New.
3776 ldlang.c (walk_wild_section): Support list of excluded files.
3777 (print_wild_statement): Likewise.
3778 (lang_add_wild): Likewise.
3779 * ldlang.h (lang_wild_statement_type): Likewise.
3780 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
3782 2000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
3784 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
3785 (process_def_file): Use.
3786 (pe_dll_compat_implib): New variable.
3789 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
3790 pe_dll_compat_implib.
3792 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
3793 compat-implib options.
3794 (gld_${EMULATION_NAME}_list_options): List new options.
3795 (gld_${EMULATION_NAME}_parse_args): Handle.
3797 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
3800 * deffilep.y (opt_name): Allow "." in name.
3802 For older changes see ChangeLog-9899
3808 version-control: never