1 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
3 * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
5 2002-03-05 Jakub Jelinek <jakub@redhat.com>
7 * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
10 2002-03-04 H.J. Lu <hjl@gnu.org>
12 * scripttempl/elf.sc: Put .preinit_array, .init_array and
13 .fini_array in the data segment.
15 2002-03-04 Alan Modra <amodra@bigpond.net.au>
17 * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
19 2002-03-01 David Mosberger <davidm@hpl.hp.com>
21 * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
22 .init_array, and .fini_array.
24 2002-02-20 Andreas Schwab <schwab@suse.de>
26 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
27 .IA64_unwind* in a relocatable link.
29 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
31 * NEWS: Mark 2.12 branch.
33 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
35 * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
36 * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
38 2002-02-18 Tom Rix <trix@redhat.com>
40 * emultempl/aix.em (gld*_parse_args): Add -brtl support.
41 (gld*_before_allocation): Same.
42 (gld*_create_output_section_statements): Generate
43 __rtinit if run time linking. Add librtl.a to the link.
44 (gld*_read_file): Clean.
46 2002-02-18 Alan Modra <amodra@bigpond.net.au>
48 * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
50 2002-02-18 David O'Brien <obrien@FreeBSD.org>
52 * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
53 eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
55 * Makefile.in: Regenerate.
56 * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
57 x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
58 use a FreeBSD-specific emulation rather than the psABI one.
59 * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
60 for all FreeBSD ELF systems.
61 * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
63 * emulparams/elf32ppc_fbsd.sh: Likewise.
64 * emulparams/elf64_ia64_fbsd.sh: Likewise.
65 * emulparams/elf64_sparc_fbsd.sh: Likewise.
66 * emulparams/elf64alpha_fbsd.sh: Likewise.
67 * emulparams/elf_i386_fbsd.sh: Likewise.
68 * emulparams/elf_x86_64_fbsd.sh: Likewise.
70 2002-02-18 Nick Clifton <nickc@cambridge.redhat.com>
72 * po/tr.po: Updated version.
74 2002-02-18 Alan Modra <amodra@bigpond.net.au>
76 * ld.texinfo (Output Section Fill): Fix amateur texinfo.
79 2002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
81 * emultempl/mmo.em (mmo_after_open): Don't call
82 _bfd_mmix_check_all_relocs when producing ELF output.
84 2002-02-15 Richard Henderson <rth@redhat.com>
86 * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
87 definition. Emit a unop+nop pair.
89 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
91 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
92 for presence of .MMIX.reg_contents.linker_allocated before early
95 * NEWS: Mention support for MMIX.
97 2002-02-15 Alan Modra <amodra@bigpond.net.au>
99 Support arbitrary length fill patterns.
100 * ld.texinfo (Output Section Fill): Describe fill expressions.
101 (FILL): Refer to the above.
102 * ldexp.h (etree_value_type): Add "str" field.
103 (union etree_union): Add "str" to "value" struct.
104 (exp_bigintop): Declare.
105 (exp_get_fill): Declare.
106 * ldexp.c: Include "safe-ctype.h".
107 (exp_intop): Set value.str to NULL.
108 (exp_bigintop): New function.
109 (new_rel): Pass in "str", and set new.str from it.
110 (new_rel_from_section): Set new.str to NULL.
111 (fold_name): Adjust calls to new_rel.
112 (exp_fold_tree): Likewise.
113 (exp_get_fill): New function.
114 * ldgram.y (struct big_int bigint, fill_type *fill): New.
115 (INT): Returns a "bigint". Adjust all code handling INTs.
116 (fill_opt): Returns a "fill".
117 (fill_exp): Split out of fill_opt, use for FILL.
118 * ldlang.h (struct _fill_type): New.
119 (fill_type): Move typedef to ldexp.h.
120 (lang_output_section_statement_type): "fill" is now a pointer.
121 (lang_fill_statement_type): Likewise.
122 (lang_padding_statement_type): Likewise.
123 (lang_add_fill): Now takes a "fill_type *" param.
124 (lang_leave_output_section_statement): Likewise.
125 (lang_do_assignments): Likewise.
126 (lang_size_sections): Likewise.
127 (lang_leave_overlay_section): Likewise.
128 (lang_leave_overlay): Likewise.
129 * ldlang.c: Include ldgram.h after ldexp.h.
130 (lang_output_section_statement_lookup): Adjust for fill_type change.
131 (print_fill_statement): Likewise.
132 (print_padding_statement): Likewise.
133 (insert_pad): Now takes a "fill_type *" arg.
134 (size_input_section): Likewise.
135 (lang_size_sections_1): Likewise.
136 (lang_size_sections): Likewise.
137 (lang_do_assignments): Likewise.
138 (lang_add_fill): Likewise.
139 (lang_leave_output_section_statement): Likewise.
140 (lang_leave_overlay_section): Likewise.
141 (lang_leave_overlay): Likewise.
142 Adjust all callers of the above function.
143 * ldlex.l: Include ldgram.h after ldexp.h. Allow hex numbers
144 starting with "0X" as well as "0x". Return bigint.str for hex
145 numbers starting with "0x" or "0X", zero bigint.str otherwise.
146 Always use base 16 for numbers starting with "$".
147 * ldmain.c: Include ldgram.h after ldexp.h.
148 * ldwrite.c (build_link_order): Use bfd_data_link_order in place
149 of bfd_fill_link_order.
150 * pe-dll.c: Adjust lang_do_assignments calls.
151 * emultempl/elf32.em: Likewise.
152 * emultempl/hppaelf.em: Likewise.
153 * emultempl/ppc64elf.em: Likewise.
154 * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
155 lang_add_assignment call.
156 * emultempl/pe.em: Likewise.
158 2002-02-14 Phil Edwards <pme@gcc.gnu.org>
160 * ld.texinfo (VERSION scripts): Symbol names are globbing patterns.
161 * ldgram.y (lang_new_vers_regex): Rename to lang_new_vers_pattern;
162 the pattern in question is not a regexp.
163 * ldlang.c: Likewise.
164 * ldlang.h: Likewise.
165 * ldlex.l (V_IDENTIFIER): Allow '[', ']', '-', '!', and '^' also.
167 2002-02-12 Jakub Jelinek <jakub@redhat.com>
169 * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
170 * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
171 (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
172 * ldexp.c (exp_data_seg): New variable.
173 (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
174 (fold_binary): Handle DATA_SEGMENT_ALIGN.
175 (exp_fold_tree): Handle DATA_SEGMENT_END.
176 Pass allocation_done when recursing instead of hardcoding
177 lang_allocating_phase_enum.
178 * ldexp.h (exp_data_seg): New.
179 * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
180 (lang_size_sections): New.
181 * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
182 * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
183 if COMMONPAGESIZE is defined.
184 * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
185 * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
186 * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
187 * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
188 * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
191 2002-02-11 Alan Modra <amodra@bigpond.net.au>
193 * Makefile.in: Regenerate.
195 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
197 * lexsup.c: Remove strtoul declaration.
199 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
201 * ldmain.c: Add prototype for main ().
202 * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
203 * emultempl/lnk960.em (lnk960_choose_target): Function should
206 2002-02-10 Alan Modra <amodra@bigpond.net.au>
208 * ldlang.c (entry_section): New initialised variable.
209 (lang_finish): Use it.
210 * ldlang.h (entry_section): Declare.
211 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
212 entry_section to ".opd".
214 2002-02-09 Chris Demetriou <cgd@broadcom.com>
216 * ld.texinfo (Options): Add back in -nostdlib documentation,
217 which had been inadvertently removed.
219 2002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
221 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
222 register section vma to a sane value after emitting error. Make
223 fatal conditions cause program exit when emitting message.
225 2002-02-08 Ivan Guzvinec <ivang@opencores.org>
227 * configure.tgt: Add or32-*-rtems target.
229 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
232 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
233 * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
234 in OTHER_RELOCATABLE_SECTIONS.
235 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
236 * emulparams/shelf32.sh (STACK_ADDR): Define.
237 (OTHER_RELOCATABLE_SECTIONS): Renamed to...
238 (OTHER_SECTIONS): this. Removed stack settings.
239 * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
240 (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
241 2001-03-12 DJ Delorie <dj@redhat.com>
242 * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
243 relaxing if any shmedia or mixed sections are found.
244 2001-03-07 DJ Delorie <dj@redhat.com>
245 * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
246 einfo. Gracefully decline to output to non-elf formats.
247 2001-03-06 Hans-Peter Nilsson <hpn@redhat.com>
248 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
249 Default to _end aligned to next multiple of 0x40000, plus 0x40000.
250 * emulparams/shelf32.sh: Ditto.
251 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
252 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
254 2001-01-10 Ben Elliston <bje@redhat.com>
255 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
256 non-portable shell constructs. From Hans-Peter Nilsson.
257 2001-01-09 Hans-Peter Nilsson <hpn@cygnus.com>
258 * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
259 * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
260 dependencies to the shell script include chain.
261 * Makefile.in: Regenerate.
262 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
263 * emultempl/sh64elf.em: Update and tweak comments.
264 (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
265 make a .cranges section SEC_IN_MEMORY.
266 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
267 * emultempl/sh64elf.em
268 (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
269 .cranges section found to be necessary; continue and set stored
270 section contents flags for sections with non-mixed contents.
271 Use a struct sh64_section_data container and sh64_elf_section_data
272 to store contents-type flags.
273 Remove unused update of "isec".
274 (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
275 sections marked SHF_SH5_ISA32_MIXED. Use sh64_elf_section_data to
276 access contents-type flags. Assert that the associated container
277 is initialized. Use that container, not elf_gp_size, to hold size
278 of linker-generated cranges contents.
279 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
280 * emultempl/sh64elf.em
281 (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
282 there's already a .cranges section. When section flag difference
283 is found, don't NULL-check cranges a second time. Tweak comments.
284 (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
285 merging, not max size, as size of ld-generated .cranges contents.
286 Don't set ELF section flags in output section. When checking for
287 needed .cranges descriptors, don't use a variable; compare
288 incoming ELF section flags directly to SHF_SH5_ISA32_MIXED. Tweak
290 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
291 * emultempl/sh64elf.em: New file.
292 * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
293 * Makefile.in: Regenerate.
294 * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
295 (OTHER_RELOCATING_SECTIONS): Ditto.
296 (EXTRA_EM_FILE): New, set to sh64elf if not set.
297 * emulparams/shlelf32.sh: Stub out all settings except
298 OUTPUT_FORMAT. Source shelf32.sh.
299 * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
300 OTHER_RELOCATING_SECTIONS.
301 (OTHER_RELOCATING_SECTIONS): Remove .cranges.
302 * emulparams/shlelf64.sh: Stub out all settings except
303 OUTPUT_FORMAT. Source shelf64.sh.
304 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
305 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
307 (DATA_START_SYMBOLS): Define, provide ___data.
308 (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
309 for consecutive .data section.
310 (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
311 section after .data section.
312 * emulparams/shlelf64.sh: Ditto.
313 * emulparams/shelf32.sh: Ditto.
314 (ALIGNMENT): Define to 8.
315 * emulparams/shelf32.sh: Ditto.
316 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
317 * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
318 built-in linker scripts.
319 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
320 * emulparams/shlelf64.sh: New.
321 * emulparams/shelf64.sh: New.
322 * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
324 * Makefile.am: Add support for shlelf64 and shelf64.
325 * Makefile.in: Regenerate.
326 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
327 * configure.tgt (sh64-*-elf*): Add shelf as default.
328 Add shlelf to targ_extra_emuls.
329 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
330 * emulparams/shelf32.sh: New file.
331 * emulparams/shlelf32.sh: New file.
332 * Makefile.am: Add support for shlelf32 and shelf32.
333 * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
334 * Makefile.in: Regenerate.
336 2002-02-05 Hans-Peter Nilsson <hp@axis.com>
338 * ldlang.c (lang_reset_memory_regions): Rename from
339 reset_memory_regions. Change all callers. Make public.
340 * ldlang.h (lang_reset_memory_regions): Prototype.
341 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
342 lang_reset_memory_regions before lang_size_sections.
343 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
344 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
346 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
348 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
349 arithmetic when checking for too many global registers.
351 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
353 * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
354 (ehppanbsd.c): New rule.
355 * Makefile.in: Regenerate.
356 * configure.tgt (hppa*-*-netbsd*): New target.
357 * emulparams/hppalinux.sh: Add comment to check other files
358 that source this file it is modified, and list which
360 * emulparams/hppanbsd.sh: New file.
362 2002-02-01 Geoffrey Keating <geoffk@redhat.com>
364 * scripttempl/xstormy16.sc: Don't allocate extra space for the
367 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
369 Support on-demand global register allocation from
370 R_MMIX_BASE_PLUS_OFFSET relocs.
371 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
372 mmix_set_reg_section_vma. Call
373 _bfd_mmix_finalize_linker_allocated_gregs.
374 (mmix_before_allocation): New function.
375 (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
376 (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
377 * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
378 (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
379 before .MMIX.reg_contents.
380 * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
381 (mmo_after_open): New function.
382 (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
383 * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting. Add
384 .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
386 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
388 * emulparams/or32.sh: New file.
389 * emulparams/or32elf.sh: New file.
390 * scripttempl/or32.sc: New file.
391 * configure.tgt : Add support for or32.
392 * configure: Regenerate
393 * Makefile.am: Add support for or32.
394 * Makefile.in: Regenerate.
395 * NEWS: Mention support for or32.
396 * po/ld.pot: Regenerate.
398 2002-01-29 Chris Demetriou <cgd@broadcom.com>
399 Mitch Lichtenberg <mpl@broadcom.com>
401 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
402 * emultempl/mipself.em: New file to handle MIPS ELF embedded
403 reloc creation (ld --embedded-relocs).
405 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
407 * configure: Regenerated.
409 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
411 * Makefile.am (install): Depend on install-info.
412 * Makefile.in: Regenerate.
414 2002-01-26 Christian Rose <menthos@menthos.com>
416 * ldmain.c (main): Use full sentences to ease translation.
418 2002-01-26 Nick Clifton <nickc@cambridge.redhat.com>
420 * po/fr.po: Updated version.
422 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
424 * po/es.po: Updated version.
426 2002-01-25 Andreas Jaeger <aj@suse.de>
428 * ldlex.l (yy_input): Correct error check.
430 2002-01-25 Alan Modra <amodra@bigpond.net.au>
432 * ldmisc.c (demangle): Put back dots when string not demangled.
434 2002-01-22 Richard Henderson <rth@redhat.com>
436 * emulparams/elf64alpha.sh (NOP): Use unop.
438 2002-01-21 Andreas Jaeger <aj@suse.de>
440 * ldlex.l: Use fread instead of read.
442 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
444 * configure.tgt (ia64-*-netbsd*): New target.
446 2002-01-21 H.J. Lu <hjl@gnu.org>
448 * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
450 * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
452 2002-01-18 Andreas Jaeger <aj@suse.de>
454 * ldver.c (ldversion): Update year.
456 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
458 * po/ld.pot: Regenerate.
460 2002-01-16 Alan Modra <amodra@bigpond.net.au>
462 * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
463 * Makefile.in: Regenerate.
464 * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
465 * emultempl/ppc64elf.em: New file.
467 2002-01-15 DJ Delorie <dj@redhat.com>
469 * scripttempl/pe.sc: Add support for constructor priorities.
471 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
473 * emulparams/avr1200.sh (DATA_START): Define as 0x60.
474 * emulparams/avr23xx.sh: Likewise.
475 * emulparams/avr4433.sh: Likewise.
476 * emulparams/avr44x4.sh: Likewise.
477 * emulparams/avr85xx.sh: Likewise.
478 * emulparams/avrmega103.sh: Likewise.
479 * emulparams/avrmega161.sh: Likewise.
480 * emulparams/avrmega603.sh: Likewise.
481 * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
483 2002-01-08 Alexandre Oliva <aoliva@redhat.com>
485 * ldlang.c (walk_wild_section): Exclude object file if enclosing
488 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
490 * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
491 (eshelf_nbsd.c): New rule.
492 (eshlelf_nbsd.c): New rule.
493 * Makefile.in: Regenerate.
494 * configure.tgt (sh*le-*-netbsdelf*): New target.
495 (sh*-*-netbsdelf*): New target.
496 * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
497 * ld/emulparams/shelf_nbsd.sh: New emulation.
498 * ld/emulparams/shlelf_nbsd.sh: New emulation.
500 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
502 * po/es.po: New file: Spanish translation.
503 * configure.in (ALL_LINGUAS): Add es.
504 * configure: Regenerate.
506 2002-01-06 John Marshall <jmarshall@acm.org>
508 * ld.texinfo: Note that --emit-relocs is currently only
511 2002-01-05 Alan Modra <amodra@bigpond.net.au>
513 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
514 of bfd_section_list_remove and bfd_section_list_insert macros.
515 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
516 * emultempl/mmo.em (mmo_place_orphan): Likewise.
518 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
520 * configure.tgt (x86_64-*-netbsd*): New target.
522 2001-12-21 Tom Rix <trix@redhat.com>
524 (gld*_create_output_section_statements): New function.
525 For -binitfini support.
526 * emultempl/aix.em (gld*_before_parse): Fix comment.
527 * emultempl/aix.em (gld*_parse_args): Fix comment.
529 2001-12-20 Jason Thorpe <thorpej@wasabisystems.com>
531 * configure.tgt (mips*-dec-netbsd*): Delete alias for
533 (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
535 * configure.tgt (arm-*-netbsdelf*): Add target.
536 (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
537 * emulparams/armelf_nbsd.sh: Added.
538 * Makefile.am: Add rules for earmelf_nbsd.
539 * Makefile.in: Regenerate.
541 2001-12-19 Andreas Jaeger <aj@suse.de>,
542 Susanne Oberhauser <froh@suse.de>
544 * configure.host: Add rules for x86_64-*linux-gnu. Change
545 s390x-linux entry to use gcc to report configuration, replace gcc
546 with $CC in s390-linux
548 2001-12-19 Andreas Jaeger <aj@suse.de>
550 * ld.texinfo (VERSION): Fix markup.
552 2001-12-18 matthew green <mrg@eterna.com.au>
554 * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
555 (m68kelfnbsd.c): New rule.
556 * Makefile.in: Regenerate.
557 * configure.tgt (m68*-hp-netbsd*): Renamed to ..
558 (m68*-*-netbsd*4k*): .. this.
559 (m68*-*-netbsdelf*): New target.
560 (m68*-*-netbsd*): Also include ELF support.
561 (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
562 * emulparams/m68kelfnbsd.sh: New emulation.
564 2001-12-18 Jakub Jelinek <jakub@redhat.com>
566 * ldgram.y (vers_node): Support anonymous version tags.
567 * ldlang.c (lang_register_vers_node): Ensure anonymous version
568 tag is not defined together with non-anonymous versions.
569 * ld.texinfo: Document it.
571 2001-12-18 Nick Clifton <nickc@cambridge.redhat.com>
573 * po/tr.po: New file: Turkish translation.
574 * configure.in (ALL_LINGUAS): Add tr.
575 * configure: Regenerate.
577 2001-12-17 Jason Thorpe <thorpej@wasabisystems.com>
579 * Makefile.am: Add rules for eelf64alpha_nbsd.
580 * Makefile.in: Regenerate.
581 * configure.tgt (alpha*-*-netbsd*): Set
582 targ_emul to elf64alpha_nbsd.
583 * emulparams/elf64alpha_nbsd.sh: Added.
585 2001-12-17 Alan Modra <amodra@bigpond.net.au>
587 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
588 section_tail when fiddling with section list.
589 (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
590 broken into separate strings to make translation easier.
591 * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
592 fiddling with section list.
593 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
595 2001-12-16 Hans-Peter Nilsson <hp@bitrange.com>
597 * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
599 2001-12-15 Alan Modra <amodra@bigpond.net.au>
601 * ldmain.c (main): Initialise link_info.eh_frame_hdr.
603 2001-12-13 Jakub Jelinek <jakub@redhat.com>
605 * emultempl/elf32.em (finish): Supply output_bfd
606 to bfd_elf*_discard_info.
607 (OPTION_EH_FRAME_HDR): Define.
608 (longopts): Add --eh-frame-hdr.
609 (parse_args): Handle it.
610 (list_options): Add --eh-frame-hdr to help.
611 * emultempl/hppaelf.em (finish): Supply output_bfd
612 to bfd_elf*_discard_info.
613 * scripttempl/elf.sc (.eh_frame_hdr): Add.
615 2001-12-13 Alan Modra <amodra@bigpond.net.au>
617 * lexsup.c (parse_args): Don't pass shortopts to second call to
618 getopt functions. Restore optind rather than decrementing before
619 second call. Remove errind as it now duplicates last_optind.
621 2001-12-11 Christopher Faylor <cgf@redhat.com>
623 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
625 2001-12-07 Geoffrey Keating <geoffk@redhat.com>
626 Richard Henderson <rth@redhat.com>
628 * Makefile.am: Add support for xstormy16.
629 * configure.tgt: Add support for xstormy16.
630 * Makefile.in: Regenerate.
631 * emulparams/elf32xstormy16.sh: New file.
632 * scripttempl/xstormy16.sc: New file.
634 2001-10-01 Christopher Faylor <cgf@cygnus.com>
636 * Makefile.in (LIB_PATH): Make configurable.
637 (GENSCRIPTS): Set LIB_PATH in environment.
638 * configure.in: Substitute LIB_PATH.
639 * configure: Regenerate.
640 * configure.tgt (*cygwin): Set LIB_PATH for cross build.
641 * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
643 2001-12-07 Nick Clifton <nickc@cambridge.redhat.com>
645 * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
646 describing the -N option so that it is easier to translate into
649 2001-12-05 Nick Clifton <nickc@cambridge.redhat.com>
651 * emultempl/pe.em (..._list_options): Replace multiple fprintf
652 statements describing a single option with a single, newline
653 escaped fprintf. This allows better translation into other
656 * ldmain.c (add_archive_element): Combine multiple strings
657 into a single string to permit better translation into other
660 2001-12-05 Tom Rix <trix@redhat.com>
662 * Makefile.am: Remove eaixppc64.
663 * Makefile.in: Regenerate.
665 2001-12-04 Tom Rix <trix@redhat.com>
667 * emultempl/aix.em (choose_target): Change default target to
668 OUTPUT_FORMAT for ppcmacos. Add braces to remove compiler
670 (gld*_read_file): Fix typo.
671 (change_symbol_mode): Add prototype.
674 * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
675 * emulparams/aixrs6.sh : Same.
676 * emulparams/ppcmacos.sh : Same.
677 * emulparams/aixppc64.sh : Delete file.
678 * emultempl/aix.em : Formatting changes.
680 2001-12-04 Hans-Peter Nilsson <hp@axis.com>
682 * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
683 (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
685 (OTHER_END_SYMBOLS): Fix formatting.
686 * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
687 (OTHER_END_SYMBOLS): Fix formatting.
689 2001-12-04 Alan Modra <amodra@bigpond.net.au>
691 * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
693 2001-12-02 Tom Rix <trix@redhat.com>
695 * configure.tgt : Remove eaixppc64 emulations.
696 * Makefile.in : Remove eaixppc64.c
697 * ldemul.c (ldemul_choose_target): New parameters argc, argv.
698 (ldemul_default_target): Same.
699 * emultempl/gld960.em (gld960_choose_target): Same.
700 * emultempl/gld960c.em (gld960_choose_target): Same.
701 * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
702 * emultempl/aix.em (is_syscall): syscall_mask now a variable.
703 * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
704 * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
705 * emultempl/aix.em (choose_target): New function. Handle emulation of
708 2001-11-27 H.J. Lu <hjl@gnu.org>
710 * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
711 * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
712 * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
713 * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
714 * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
715 * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
716 * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
717 * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
719 * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
722 (REL_SDATA): Likewise.
723 (REL_SBSS): Likewise.
724 (REL_SDATA2): Likewise.
725 (REL_SBSS2): Likewise.
726 (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
729 2001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
731 * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
733 * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
735 2001-11-22 H.J. Lu <hjl@gnu.org>
737 * Makefile.in: Regenerated with automake based on automake
740 2001-11-22 Alan Modra <amodra@bigpond.net.au>
742 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
743 (config.status): Delete rule.
744 Add extra dependencies to cover sourced emulparams files.
745 * Makefile.in: Regenerate.
747 * scripttempl/elf.sc: Order <section>, <section>.* and
748 corresponding linkonce sections as seen in input files.
749 Formatting fixes. Zero vma of all sections if not relocating.
750 (STACK): Define and insert if STACK_ADDR defined.
751 (OTHER_RELOCATING_SECTIONS): Delete.
752 (OTHER_END_SYMBOLS): Define.
753 (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
754 (OTHER_READWRITE_SECTIONS): Likewise.
755 (OTHER_GOT_SECTIONS): Likewise.
756 (OTHER_SDATA_SECTIONS): Likewise.
757 (OTHER_BSS_SECTIONS): Likewise.
758 * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
759 (OTHER_READWRITE_SECTIONS): Likewise.
760 * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
761 (OTHER_READWRITE_SECTIONS): Likewise
763 * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
764 (STACK_ADDR): Define.
765 * emulparams/armelf_oabi.sh: As for armelf.sh.
766 * emulparams/elf32mcore.sh: As for armelf.sh.
767 * emulparams/h8300elf.sh: As for armelf.sh.
768 * emulparams/mn10200.sh: As for armelf.sh.
769 * emulparams/shelf.sh: As for armelf.sh.
771 * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
772 (OTHER_END_SYMBOLS): Define.
773 * emulparams/m32relf.sh: As for elf32fr30.sh.
774 * emulparams/h8300helf.sh: As for elf32fr30.sh.
775 * emulparams/h8300self.sh: As for elf32fr30.sh.
777 * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
778 defines with RELOCATING test.
779 (OTHER_SDATA_SECTIONS): Likewise.
780 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
781 (OTHER_END_SYMBOLS): ..this.
782 * emulparams/crislinux.sh: As for criself.sh.
784 * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
786 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
787 (OTHER_SECTIONS): ..this. Zero vma if not relocating. Order
788 normal and linkonce sections as seen in input files.
789 * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
790 (TEXT_DYNAMIC): Likewise.
791 (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
792 (OTHER_SDATA_SECTIONS): Likewise.
793 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
794 * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
795 * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
796 * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
797 * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
798 (OTHER_PLT_RELOC_SECTIONS): Likewise.
799 (OTHER_READONLY_SECTIONS): Likewise. Order normal and linkonce
800 sections as seen in input files.
801 * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
802 * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
804 (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
805 (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
806 * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
807 (OTHER_SECTIONS): Instead, use this..
808 (OTHER_END_SYMBOLS): ..and this.
810 * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
811 * emulparams/elf32bsmip.sh: Likewise.
812 * emulparams/elf32btsmip.sh: Likewise.
813 * emulparams/elf32ebmip.sh: Likewise.
814 * emulparams/elf32lmip.sh: Likewise.
815 * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
816 * emulparams/elf32lsmip.sh: Likewise.
817 * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
818 * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
819 * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
820 * emulparams/elf64btsmip.sh: Likewise.
821 * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
822 * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
823 * emulparams/elf32ppclinux.sh: Likewise.
824 * emulparams/elf32ppcsim.sh: Likewise.
825 * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
826 * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
827 * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
828 * emulparams/h8300self.sh: Likewise.
829 * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
830 * emulparams/sh.sh: Comment.
831 * emulparams/shl.sh: Source sh.sh, remove duplicates.
832 * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
833 * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
835 2001-11-21 David Heine <dlheine@tensilica.com>
836 Alan Modra <amodra@bigpond.net.au>
838 * ldlang.c (map_input_to_output_sections): Replace "break"
839 accidentally removed with 2001-08-03 change.
840 (lang_gc_sections_1): Likewise.
842 2001-11-21 Alan Modra <amodra@bigpond.net.au>
844 * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
846 2001-11-20 Angela Marie Thomas <angela@redhat.com>
848 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
849 of false when calling lang_size_sections.
850 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
852 2001-11-15 Alan Modra <amodra@bigpond.net.au>
854 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
855 function when LDEMUL_FINISH isn't set to the same name. Don't
856 call ${LDEMUL_FINISH}.
857 (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
858 * emultempl/armelf.em (arm_elf_finish): Call
859 gld${EMULATION_NAME}_finish.
860 * emultempl/hppaelf.em (hppaelf_finish): Rename to
861 gld${EMULATION_NAME}_finish. Call bfd_elf32_discard_info and
862 hppaelf_layout_sections_again if necessary.
863 (need_laying_out): New var.
864 (hppaelf_layaout_sections_again): Rename to
865 hppaelf_layout_sections_again. Clear need_laying_out.
866 (PARSE_AND_LIST_OPTIONS): Format text.
868 2001-11-14 H.J. Lu <hjl@gnu.org>
870 * emultempl/armelf.em (arm_elf_finish): Renamed from
871 gld${EMULATION_NAME}_finish.
872 (LDEMUL_FINISH): Set to arm_elf_finish.
874 2001-11-14 Daniel Jacobowitz <drow@mvista.com>
876 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
877 (struct ld_emulation_xfer_struct): Use it.
879 2001-11-13 Ross Alexander <ross.alexander@uk.neceur.com>
881 * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
882 additional symbols referenced by newer crt0.o files from HP.
884 2001-11-12 Anthony Green <green@redhat.com>
886 * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
888 2001-11-12 Alfred M. Szmidt <ams@kemisten.nu>
890 * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
891 * Makefile.in: Regenerate.
893 2001-11-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
895 * ld.texinfo: Use @command for commands, @option for options.
896 * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
898 * Makefile.in: Rebuild.
900 2001-11-04 Chris Demetriou <cgd@broadcom.com>
902 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
903 Add support for targets.
905 2001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
907 * configure.in (ALL_LINGUAS): Add "fr" and "sv"
908 * configure: Regernate.
909 * po/fr.po: New file.
910 * po/sv.po: New file.
912 2001-11-01 NIIBE Yutaka <gniibe@m17n.org>
914 * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
915 as little endian default and to support big endian.
917 2001-11-01 Chris Demetriou <cgd@broadcom.com>
919 * ld.texinfo (Options): Document new option, -nostdlib.
920 * lexsup.c (OPTION_NOSTDLIB): New definition.
921 (ld_options): Add entry for "nostdlib".
922 (parse_args): Handle OPTIONS_NOSTDLIB.
923 * ldfile.c (ldfile_add_library_path): Don't add directories
924 to the search path if they weren't specified on the command line
925 and -nostdlib was specified.
926 * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
928 2001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
930 * lexsup.c (parse_args): Prevent infinite parsing loop when
931 "-rpath.a" is specified on the command line.
932 Replace calls to fprintf with calls to einfo.
934 2001-10-31 John Marshall <jmarshall@acm.org>
936 * ld.texinfo: A historical requirement that MEMORY and SECTIONS
937 appear only once across all the linker scripts involved in a link
938 invocation no longer applies. Make the documentation reflect
941 2001-10-31 NIIBE Yutaka <gniibe@m17n.org>
943 * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
945 (sh-*-linux*): Added targ_extra_libpath.
947 2001-10-31 David Heine <dlheine@tensilica.com>
949 * ldlang.c (lang_size_sections): Keep a valid output_offset field
950 for padding statements.
952 2001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
954 * configure.tgt (mmix-*-*): New target.
955 * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
956 Add dependencies to match.
957 * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
958 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
959 scripttempl/mmo.sc: New files.
960 * gen-doc.texi: @set MMIX.
962 [MMIX] Add MMIX node.
963 * Makefile.in: Regenerate.
965 2001-10-29 Kazu Hirata <kazu@hxi.com>
967 * ldlang.c: Fix a comment typo.
969 2001-10-23 Alan Modra <amodra@bigpond.net.au>
971 * configure.host: Move alpha*-*-linux-gnu* entry to generic
972 entries, and match *-*-linux*.
974 2001-10-20 Alan Modra <amodra@bigpond.net.au>
976 * ldgram.y (mri_script_command): Surround processing of INCLUDE
977 with ldlex_script, ldlex_popstate.
978 (ifile_p1): Likewise.
979 * ldlex.l (EOF): Don't BEGIN(SCRIPT). Restore lineno from the
981 (lex_push_file): Save current lineno to lineno_stack. Set lineno
982 to 1. Don't BEGIN(SCRIPT).
983 (lex_redirect): Similarly.
984 * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
986 2001-10-20 Nick Clifton <nickc@cambridge.redhat.com>
988 * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
989 __EH_FRAME_END__ and accept eh frames into data section.
990 Add ctor and dtor sections.
992 2001-10-19 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
994 * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
995 (auto-export): Fix indentation.
997 2001-10-18 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
999 * pe-dll.c (autofilter_objectlist): Add startup objects
1001 (auto-export): Constify char * p.
1002 Extract file basename and use strcmp rather than ststr
1005 2001-10-18 Chris Demetriou <cgd@broadcom.com>
1007 * ldmain.c (get_emulation): Improve comment about the handling
1010 2001-10-17 Alan Modra <amodra@bigpond.net.au>
1012 * po/POTFILES.in: Regenerate.
1014 2001-10-16 Vassili Karpov <malc@pulsesoft.com>
1016 * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
1017 -z nocopyreloc and -z nocombreloc usage strings.
1019 2001-10-12 Vassili Karpov <malc@pulsesoft.com>
1021 * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
1024 2001-10-11 Aleksey Romanov <aromanov@ennovatenetworks.com>
1026 * scripttempl/armaout.sc: Place .bss section after end of aligned
1027 data section to match behaviour of aout code in constructrion of
1030 2001-10-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1032 * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
1033 startup files for mingw32 dlls to list.
1035 2001-10-10 Chris Demetriou <cgd@broadcom.com>
1037 * emultempl/elf32.em: Fix shell 'if' usage for portability.
1039 2001-10-08 Aldy Hernandez <aldyh@redhat.com>
1041 * configure.tgt (targ): Add arm9e-*-elf.
1043 2001-10-05 H.J. Lu <hjl@gnu.org>
1045 * genscripts.sh: Fix a typo in the last change.
1047 2001-10-05 Jakub Jelinek <jakub@redhat.com>
1049 * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
1050 -z nocombreloc in usage.
1052 2001-10-03 Jim Blandy <jimb@redhat.com>
1054 * genscripts.sh: Include a comment at the top of each generated
1055 script, explaining its purpose.
1057 2001-10-03 Vassili Karpov <malc@pulsesoft.com>
1059 * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
1060 * NEWS: Mention -z nocopyreloc.
1061 * ld.texinfo (Options): Describe nocopyreloc.
1063 2001-10-03 Alan Modra <amodra@bigpond.net.au>
1065 * configure: Regenerate.
1067 2001-10-02 Alan Modra <amodra@bigpond.net.au>
1069 * ldver.h (ld_program_version): Remove declaration.
1070 * lexsup.c (parse_args): Move printing of copyright message..
1071 * ldver.c (ldversion): .. to here.
1072 Use BFD_VERSION_STRING in place of BFD_VERSION.
1073 (ld_program_version): Remove.
1074 * Makefile.am (Makefile): Depend on bfd/configure.in.
1076 * Makefile.in: Regenerate.
1078 2001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
1080 * Makefile.am: Update dependencies with "make dep-am".
1081 * Makefile.in: Regenerate.
1083 2001-09-29 John Reiser <jreiser@BitWagon.com>
1085 * ldlang.c (lang_common): Conditionally inhibit Common allocation.
1086 * lexsup.c: Add --no-define-common commandline option.
1087 * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
1088 * ldlex.l: Likewise.
1089 * ld.h: Add command_line.inhibit_common_definition.
1090 * ldmain.c (main): Initialize.
1091 * ld.texinfo: Document.
1093 2001-09-26 Alan Modra <amodra@bigpond.net.au>
1095 * ldmisc.c (USE_STDARG): Remove.
1096 (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
1101 * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
1102 declarations. Update copyright.
1104 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
1106 * pe-dll.c: Remove obsoleted declaration of
1107 pe_get_data_import_dll_name.
1108 (pe_create_import_fixup): Fix thinko.
1110 * ld.texinfo(enable-auto-import): Clarify the explanation.
1112 2001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
1114 * pe-dll.c (pe_create_import_fixup): Revert previous patch.
1115 * emultemp/pe.em (pe_data_import_dll): Move definition outside of
1116 DLL_SUPPORT controlled code.
1118 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
1120 * emultempl/pe.em(pe_data_import_dll): Make static.
1121 (pe_get_data_import_dll_name): New accessor function.
1122 * pe-dll.c(pe_create_import_fixup): call
1123 pe_get_data_import_dll_name() from pe.em, instead of
1124 directly accessing pe_data_import_dll variable from pe.em.
1126 2001-09-18 Bruno Haible <haible@clisp.cons.org>
1128 * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
1129 (def_file_add_directive): Use ISSPACE instead of isspace.
1130 (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
1131 isdigit/isxdigit/isalpha/isalnum.
1132 * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
1133 (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
1134 * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
1135 (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
1137 * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
1138 (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
1140 * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
1141 (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
1142 * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
1143 (ctor_prio): Use ISDIGIT instead of isdigit.
1144 * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
1145 (ldfile_open_file_search): Use ISALPHA instead of isalpha.
1146 (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
1148 * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
1149 (stricpy): Use TOLOWER instead of isupper/tolower.
1150 (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
1151 * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
1152 (lex_warn_invalid): Use ISPRINT instead of isprint.
1153 * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
1154 (main): For gettext, also set the LC_CTYPE locate facet.
1155 (add_keepsyms_file): Use ISSPACE instead of isspace.
1156 * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
1157 (is_num, parse_args): Use ISDIGIT instead of isdigit.
1158 * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
1159 (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
1160 * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
1161 (gldppcmacos_read_file): Use ISSPACE instead of isspace.
1162 * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
1163 (quoteput): Use ISSPACE instead of isspace.
1164 (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
1167 2001-09-18 Alan Modra <amodra@bigpond.net.au>
1169 * deffilep.y (def_stash_module): Constify "name" param.
1171 * pe-dll.c: Replace CONST with const throughout.
1172 (quick_symbol): Constify "n1", "n2", "n3" params.
1173 (make_singleton_name_thunk): Constify "import" param. Make
1174 "buffer_len" a size_t.
1175 (make_import_fixup_entry): Constify "name", "fixup_name",
1176 "dll_symname" params.
1177 (pe_get16): Cast args of bfd_seek. Replace bfd_read with bfd_bread.
1178 (pe_get32): Likewise.
1179 (pe_implied_import_dll): Likewise.
1181 * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
1182 (sort_by_section_name): Likewise.
1184 * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
1185 (make_import_fixup): Cast printf arg, rel->address to long rather
1187 (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
1189 2001-09-15 Alan Modra <amodra@bigpond.net.au>
1191 * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
1192 defines BufferSize. Increase buffer size by one.
1194 2001-09-14 Ralf Habacker <Ralf.Habacker@freenet.de>
1196 * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
1198 2001-09-14 Kevin Lo <kevlo@openbsd.org>
1200 * configure.tgt: Add arm-openbsd target.
1202 2001-09-12 H.J. Lu <hjl@gnu.org>
1204 * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
1206 (ALL_64_EMULATIONS): Here.
1207 * Makefile.in: Regenerated.
1209 2001-09-12 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
1211 * emultempl/pe.em(make_import_fixup): change signature to
1212 take asection as well as arelec; we need this for proper
1213 error reporting. Only call pe_create_import_fixup() if
1214 there is no attempt to add a constant addend to the reloc;
1215 otherwise, report error condition.
1216 * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
1217 since final argument is a pointer to make_import_fixup().
1218 Change call to cb() to match make_import_fixup() signature.
1219 (make_import_fixup_mark): make buffer_len unsigned.
1220 * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
1222 2001-09-12 Charles Wilson <cwilson@ece.gatech.edu>
1224 * ld.texinfo: add verbose documentation for auto-import
1225 direct-addressing workaround, to compliment the terse
1228 2001-09-12 Andrew MacLeod <amacleod@redhat.com>
1230 * scripttempl/v850.sc: Add gcc_except_table sections.
1232 2001-09-11 Jeffrey A Law (law@cygnus.com)
1234 * emulparams/h8300helf.sh: Move stack to a much higher memory address.
1235 * emulparams/h8300self.sh: Similarly.
1237 2001-09-05 Danny Smith <dannysmith@users.souceforge.net>
1239 * ld.texinfo (Options, --stack): Correct default value for stack
1242 2001-09-05 Tom Rix <trix@redhat.com>
1244 * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
1246 2001-09-03 Andreas Jaeger <aj@suse.de>
1248 * emultempl/beos.em: Declare prototypes for comparions functions,
1251 2001-09-02 Andreas Jaeger <aj@suse.de>
1253 * emultempl/aix.em: Add missing prototype.
1254 * emultempl/lnk960.em: Likewise.
1255 * emultempl/vanilla.em: Likewise.
1256 * emultempl/armcoff.em: Likewise.
1257 * emultempl/armelf_oabi.em: Likewise.
1258 * emultempl/beos.em: Likewise.
1259 * emultempl/gld960c.em: Likewise.
1260 * emultempl/gld960.em: Likewise.
1262 * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
1263 for prototype declaration.
1265 2001-08-31 Eric Christopher <echristo@redhat.com>
1266 Jason Eckhardt <jle@redhat.com>
1268 * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
1270 2001-08-31 Andreas Jaeger <aj@suse.de>
1272 * emultempl/pe.em: Add missing prototypes.
1273 (gld_${EMULATION_NAME}_after_open): Remove extra args to
1274 pe_find_data_imports.
1275 (pr_sym): Add unused attribute.
1277 2001-08-29 Joel Sherrill <joel@OARcorp.com>
1279 * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
1280 default from coff to elf.
1282 2001-08-29 Jeff Law <law@redhat.com>
1284 * emulparams/h8300helf.sh: Resync with h8300elf.sh. Update
1286 * emulparams/h8300self.sh: Similarly.
1288 2001-08-28 J"orn Rennecke <amylaar@redhat.com>
1290 * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
1292 (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
1293 * configure.tgt (h8300-*-elf*): New case.
1294 * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
1295 * emulparams/h8300self.sh: New file.
1296 * Makefile.in: Regenerated.
1298 2001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
1300 * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
1303 2001-08-27 Linus Nordberg <linus@swox.com>
1304 Alan Modra <amodra@bigpond.net.au>
1306 * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
1307 (eelf64ppc.c, eelf64lppc.c): Add make targets.
1309 * Makefile.in: Regenerate.
1310 * configure.tgt: Add powerpc64 support. Move pdp11, pjl, pj
1311 entries to correct alphabetical position.
1312 * emulparams/elf64ppc.sh: New.
1313 * emulparams/elf64lppc.sh: New.
1315 2001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
1317 * ldmain.c (main): Declare BSIZE as static.
1319 2001-08-23 Jakub Jelinek <jakub@redhat.com>
1321 * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
1322 into .rel.dyn resp. .rela.dyn if combreloc.
1323 (get_script): If .x linker script is equal to .xn, only put it
1324 once into the binary.
1325 Add .xc and .xsc scripts.
1326 (parse_args): Handle -z combreloc and -z nocombreloc.
1327 * scripttempl/elf.sc (.rela.sbss): Fix a typo.
1328 For .xc and .xsc scripts put all .rel* or .rela* input sections
1329 but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
1330 * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
1332 Strip trailing whitespace from script.
1333 Generate .xc and .xsc scripts if requested.
1334 * ldmain.c (main): Initialize link_info.combreloc and
1335 link_info.spare_dynamic_tags.
1336 * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
1337 (ld_options): Add --spare-dynamic-tags option.
1338 (parse_args): Likewise.
1339 * ld.texinfo: Document -z combreloc and -z nocombreloc.
1340 * ldint.texinfo: Document .xc and .xsc linker scripts.
1341 * NEWS: Add notes about -z combreloc and SHF_MERGE.
1343 2001-08-22 H.J. Lu <hjl@gnu.org>
1345 * emulparams/elf32fr30.sh: Add a newline.
1347 2001-08-21 Andreas Jaeger <aj@suse.de>
1349 * deffilep.y: Add missing prototypes.
1350 * pe-dll.c: Likewise.
1352 2001-08-20 Alan Modra <amodra@bigpond.net.au>
1354 * ldlang.c (insert_pad): Fix typos in last patch.
1356 * ldlang.c: When traversing lang_statement_union_type lists,
1357 consistently use "header.next" rather than "next".
1358 * mpw-eppcmac.c: Likewise.
1359 * emultempl/beos.em: Likewise.
1360 * emultempl/hppaelf.em: Likewise.
1361 * emultempl/pe.em: Likewise.
1362 * ldlang.h (union lang_statement_union): Remove "next" field.
1364 * ldlang.c (insert_pad): Use offsetof macro.
1365 (lang_size_sections): Always neuter padding statements.
1366 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
1368 * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
1369 passed to lang_size_sections.
1370 (pe_exe_fill_sections): Likewise.
1371 * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
1372 (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
1374 2001-08-18 Alan Modra <amodra@bigpond.net.au>
1376 * emultempl/aix.em: Formatting fixes.
1378 2001-08-18 Alan Modra <amodra@bigpond.net.au>
1380 * ldlang.c (insert_pad): Make use of an existing pad statement if
1381 available. Move code calculating alignment, adjusting section
1382 alignment power, and adjusting dot to ..
1383 (size_input_section): .. here. Remove unused relax param.
1384 (lang_size_sections): Change boolean `relax' param to boolean *.
1385 Adjust call to size_input_section. Make use of insert_pad to
1386 place pad after the assignment statement. If relaxing, zap
1388 (reset_memory_regions): Reset output_bfd section sizes too.
1389 (relax_again): Move to..
1390 (lang_process): ..here. Adjust call to lang_size_sections, and
1391 remove duplicated code.
1392 * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
1394 2001-08-17 Alan Modra <amodra@bigpond.net.au>
1396 * ld.texinfo: Document that fill values now use the four least
1398 * emulparams/elf32fr30.sh (NOP): Update.
1399 * emulparams/elf32mcore.sh: Likewise.
1400 * emulparams/elf64_s390.sh: Likewise.
1401 * emulparams/elf_i386.sh: Likewise.
1402 * emulparams/elf_i386_be.sh: Likewise.
1403 * emulparams/elf_i386_chaos.sh: Likewise.
1404 * emulparams/elf_i386_ldso.sh: Likewise.
1405 * emulparams/elf_s390.sh: Likewise.
1406 * emulparams/elf_x86_64.sh: Likewise.
1407 * emulparams/i386moss.sh: Likewise.
1408 * emulparams/i386nw.sh: Likewise.
1409 * emulparams/m68kelf.sh: Likewise.
1410 * scripttempl/elf.sc: Update NOP comment.
1411 * scripttempl/elfi370.sc: Likewise.
1412 * scripttempl/elfm68hc11.sc: Likewise.
1413 * scripttempl/elfm68hc12.sc: Likewise.
1414 * scripttempl/nw.sc: Likewise.
1416 2001-08-15 Tom Rix <trix@redhat.com>
1418 * ldgram.y (saved_script_handle): Initialize to NULL.
1419 * ldmain.c (main): Change check on saved_script_handle.
1421 2001-08-14 Alan Modra <amodra@bigpond.net.au>
1423 * emultempl/elf32.em: Formatting fixes.
1424 (output_prev_sec_find): Test for bfd_ind_section too; do so by
1425 looking at sec->owner.
1426 (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
1427 (gld${EMULATION_NAME}_place_orphan): Add a few comments. Remove
1428 unused code, and reorganize orphan section placement code.
1430 * ldlang.c (wild_doit): Rename to lang_add_section.
1431 * ldlang.h: Here too.
1432 * mpw-elfmips.c: And here.
1433 * emultempl/beos.em: And here.
1434 * emultempl/elf32.em: And here.
1435 * emultempl/hppaelf.em: And here.
1436 * emultempl/pe.em: And here.
1438 2001-08-13 Richard Henderson <rth@redhat.com>
1440 * emultempl/needrelax.em: New file.
1441 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
1442 * Makefile.am (eelf64_ia64.c): Depend on it.
1443 * Makefile.in: Rebuild.
1445 2001-08-13 Alan Modra <amodra@bigpond.net.au>
1447 * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
1448 output_section is set non-NULL.
1450 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
1451 `true' for SEC_EXCLUDE sections so that the generic code doesn't
1452 needlessly create an output_section_statement. Treat a correctly
1453 named output_section_statement with NULL bfd_section as compatible.
1455 2001-08-13 Hans-Peter Nilsson <hp@bitrange.com>
1457 * emultempl/generic.em: Support EXTRA_EM_FILE.
1458 (ld_${EMULATION_NAME}_emulation): Support emulation parameters
1459 LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
1460 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
1461 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
1462 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
1463 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
1464 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
1465 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
1466 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
1467 LDEMUL_FIND_POTENTIAL_LIBRARIES.
1469 2001-08-12 Richard Henderson <rth@redhat.com>
1471 * scripttempl/elf.sc, scripttempl/elfd30v.sc,
1472 scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
1473 scripttempl/v850.sc: Keep .jcr data.
1475 2001-08-12 H.J. Lu <hjl@gnu.org>
1476 Andrew Haley <aph@cambridge.redhat.com>
1477 Nick Clifton <nickc@redhat.com>
1479 * ldgram.y (had_script): Change name to saved_script_handle.
1480 Change type to file handle.
1481 * ld.h (had_script): Rename and retype.
1482 * ldfile.c (ldfile_open_command_file): Save the file handle
1483 used in saved_script_handle.
1484 * lexsup.c (parse_args): Do not allow -c option to alter
1485 saved_script_handle.
1486 * ldmain.c (main): Print out the linker script used if
1487 --verbose is given. Check saved_script_handle to obtain the
1488 external linker script used, or if NULL, dump the builtin
1490 * ld.texinfo: Document that --verbose now dumps the linker
1491 script used, regardless of whether it was an internal or an
1494 2001-08-10 Andreas Jaeger <aj@suse.de>
1496 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
1498 * configure: Regenerate.
1500 2001-08-09 Alan Modra <amodra@bigpond.net.au>
1502 * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
1504 * scripttempl/elf.sc: Move non-text .dynamic section before
1505 .plt/.got/.sdata* group.
1506 (OTHER_GOT_SECTIONS): Move to immediately after .got.
1507 (OTHER_SDATA_SECTIONS): Add.
1508 * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
1510 * emulparams/crislinux.sh: Likewise.
1511 * emulparams/elf32b4300.sh: Likewise.
1512 * emulparams/elf32bmip.sh: Likewise.
1513 * emulparams/elf32bmipn32.sh: Likewise.
1514 * emulparams/elf32bsmip.sh: Likewise.
1515 * emulparams/elf32btsmip.sh: Likewise.
1516 * emulparams/elf32ebmip.sh: Likewise.
1517 * emulparams/elf32elmip.sh: Likewise.
1518 * emulparams/elf32l4300.sh: Likewise.
1519 * emulparams/elf32lmip.sh: Likewise.
1520 * emulparams/elf32lsmip.sh: Likewise.
1521 * emulparams/elf32ltsmip.sh: Likewise.
1522 * emulparams/elf64bmip.sh: Likewise.
1523 * emulparams/elf64btsmip.sh: Likewise.
1524 * emulparams/elf64ltsmip.sh: Likewise.
1526 2001-08-08 Alan Modra <amodra@bigpond.net.au>
1528 * genscripts.sh: Source the emulparams script before each output
1529 script is generated so that variables like `RELOCATING' may affect
1530 variables defined in the emulparams script.
1532 2001-08-04 Alan Modra <amodra@bigpond.net.au>
1534 * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
1537 * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
1538 ie. iterate over wild_statement.section_list.
1539 (gld${EMULATION_NAME}_place_orphan): Likewise.
1541 2001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1543 * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
1544 .fini[0-4] sections used by _exit
1545 (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
1546 (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
1547 * scripttempl/elfm68hc11.sc: Likewise.
1549 2001-08-03 H.J. Lu <hjl@gnu.org>
1551 * emultempl/beos.em (init): Add the missing initialization.
1553 2001-08-03 Alan Modra <amodra@bigpond.net.au>
1555 * ld.texinfo (Input Section Basics): Clarify ordering of output
1557 * ldlang.c (callback_t): Add wildcard_list param.
1558 (walk_wild_section): Remove "section" param. Rewrite for
1559 lang_wild_statement_type change. Remove unique_section_p test.
1560 (walk_wild_file): Remove "section" param.
1561 (walk_wild): Remove "section" and "file" params.
1562 (lang_gc_wild): Likewise.
1563 (wild): Likewise. Modify for lang_wild_statement_type change.
1564 (wild_sort): Likewise. Add "sec" param.
1565 (gc_section_callback): Likewise.
1566 (output_section_callback): Likewise. Do unique_section_p test.
1567 (map_input_to_output_sections): Modify call to wild.
1568 (lang_gc_sections_1): Likewise.
1569 (print_wild_statement): Modify for lang_wild_statement_type
1571 (lang_add_wild): Replace filename, filenames_sorted param with
1572 filespec. Replace section_name, sections_sorted,
1573 exclude_filename_list with section_list.
1574 * ldlang.h (lang_add_wild): Here too.
1575 (lang_wild_statement_type): Replace section_name, sections_sorted,
1576 and exclude_filename_list with section_list.
1577 * ldgram.y (current_file): Delete.
1578 (%union): Add wildcard_list.
1579 (file_NAME_list): Set type to wildcard_list. Build a linked list
1580 rather than calling lang_add_wild for each entry.
1581 (input_section_spec_no_keep): Call lang_add_wild here instead.
1582 * ld.h (struct wildcard_list): Declare.
1583 * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
1585 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
1587 * ldmain.c (main): initialize link_info.pei386_auto_import
1588 * pe-dll.c: new tables for auto-export filtering
1589 (auto_export): change API, pass abfd for contextual filtering.
1590 Loop thru tables of excluded symbols instead of comparing
1593 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
1595 * pe-dll.c: new variable pe_dll_enable_extra_debug. New
1596 static variable current_sec (static struct sec *). Add
1597 forward declaration for add_bfd_to_link.
1598 (process_def_file): Don't export undefined symbols. Do not
1599 export symbols starting with "_imp__". Call auto_export()
1601 (pe_walk_relocs_of_symbol): New function.
1602 (generate_reloc): add optional extra debugging
1603 (pe_dll_generate_def_file): eliminate extraneous initial blank
1605 (make_one): enlarge symtab to make room for __nm__ symbols
1606 (DATA auto-import support).
1607 (make_singleton_name_thunk): New function.
1608 (make_import_fixup_mark): New function.
1609 (make_import_fixup_entry): New function.
1610 (pe_create_import_fixup): New function.
1611 (add_bfd_to_link): Specify that 'name' argument is a CONST
1613 * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
1614 declare new functions pe_walk_relocs_of_symbol and
1615 pe_create_import_fixup.
1616 * emultempl/pe.em: add new options --enable-auto-import,
1617 --disable-auto-import, and --enable-extra-pe-debug.
1618 (make_import_fixup): New function.
1619 (pe_find_data_imports): New function.
1620 (pr_sym): New function.
1621 (gld_${EMULATION_NAME}_after_open): Add optional extra pe
1622 debugging. Call pe_find_data_imports. Mark .idata as DATA, not
1625 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
1627 * ld.texinfo: add additional documentation for
1628 --export-all-symbols. Document --out-implib,
1629 --enable-auto-image-base, --disable-auto-image-base,
1630 --dll-search-prefix, --enable-auto-import, and
1631 --disable-auto-import.
1632 * ldint.texinfo: Add detailed documentation on auto-import
1635 2001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
1637 * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
1640 2001-07-24 Alan Modra <amodra@bigpond.net.au>
1642 * Makefile.am: Update dependencies with "make dep-am".
1643 * Makefile.in: Regenerate
1645 2001-07-23 Alan Modra <amodra@bigpond.net.au>
1647 * ldcref.c (check_section_sym_xref): New function.
1648 (check_nocrossrefs): Call it.
1649 (check_nocrossref): Interate over h->refs here instead of..
1650 (check_refs): ..here. Pass in the symbol name, section, and bfd
1651 rather than hash_entry pointers.
1652 (struct check_refs_info): Keep symbol name rather than hash entry.
1654 (check_reloc_refs): Tweak for above changes in check_refs_info.
1655 Only report references to section syms when symname is NULL to
1656 prevent duplicate messages for the same reloc.
1658 2001-07-19 Nick Clifton <nickc@cambridge.redhat.com>
1660 * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
1661 available. Do not print NULL trees.
1662 (exp_print_token): Print unknown tokens with values > 126 as
1663 decimal values not ASCII characters.
1665 * ldlang.c (lang_leave_overlay): If a region is specified assign
1666 it to all sections inside the overlay unless they have been
1667 assigned to the own, non-default, memory region.
1669 * README: Add header for consistency with other README files.
1671 2001-07-14 H.J. Lu <hjl@gnu.org>
1673 * emultempl/elf32.em (output_prev_sec_find): Never return
1674 bfd_abs_section_ptr, bfd_com_section_ptr nor
1675 bfd_und_section_ptr.
1677 2001-07-14 Nick Clifton <nickc@cambridge.redhat.com>
1679 * Makefile.am (em32relf.c): Change dependency from generic.em to
1681 * Makefile.in: Regenerate.
1683 2001-07-14 matthew green <mrg@eterna.com.au>
1685 * configure.tgt (i386-*-netbsdelf*): New target.
1686 (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
1688 2001-07-13 Jakub Jelinek <jakub@redhat.com>
1690 * emultempl/elf32.em (output_prev_sec_find): New.
1691 (place_orphan): Use it.
1693 2001-07-11 H.J. Lu <hjl@gnu.org>
1695 * ldmain.c (main): Fix typos in the last change.
1697 2001-07-11 Jakub Jelinek <jakub@redhat.com>
1699 * ldmain.c (main): Disallow -F and -f without -shared.
1701 2001-07-11 Nick Clifton <nickc@cambridge.redhat.com>
1703 * emultempl/pe.em (after_open): Check for the output_bfd not
1704 having any coff_data structure allocated to it.
1706 2001-07-09 David O'Brien <obrien@FreeBSD.org>
1708 * emultempl/elf32.em: Do not assuming that contents of the buffer
1709 returned from basename function will remain unchanged accross other
1712 2001-07-03 H.J. Lu <hjl@gnu.org>
1714 * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
1715 2001-07-03. It creates dynamic entries even for static binaries.
1717 2001-07-03 Jakub Jelinek <jakub@redhat.com>
1719 * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
1720 (DYNAMIC): Use it to reserve few dynamic entries for
1723 2001-06-27 Alan Modra <amodra@bigpond.net.au>
1725 * emulparams/hppa64linux.sh: New file.
1726 * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
1727 * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
1728 (ehppa64linux.c): Add rule to make it.
1730 * Makefile.in: Regenerate.
1732 2001-06-21 Hans-Peter Nilsson <hp@axis.com>
1734 * ld.texinfo (Options, -r): Mention restrictions when using
1735 different object formats.
1737 2001-06-19 Hans-Peter Nilsson <hp@axis.com>
1739 * ldlang.c (lang_check): Emit fatal error if relocatable link
1740 between different object flavours with relocations in input.
1742 2001-06-19 H.J. Lu <hjl@gnu.org>
1744 * ld.texinfo (-E, --export-dynamic): Mention --version-script.
1745 (--version-script): Mention the language support.
1747 2001-06-19 H.J. Lu <hjl@gnu.org>
1749 * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
1751 2001-06-18 H.J. Lu <hjl@gnu.org>
1753 * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
1754 (diststuff): Add $(MANS).
1755 * Makefile.in: Regenerated.
1759 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
1761 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
1762 Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
1763 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
1764 * ld.h (args_type): Remove member export_dynamic. All users
1765 changed to use struct bfd_link_info member.
1767 * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
1768 $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
1769 * Makefile.in: Regenerate.
1771 2001-06-18 H.J. Lu <hjl@gnu.org>
1773 * ldlang.c (init_os): Add the newline to the einfo call.
1774 (lang_check): Likewise.
1775 (lang_do_version_exports_section): Likewise.
1777 2001-06-15 H.J. Lu <hjl@gnu.org>
1779 * lexsup.c (parse_args); Save optind to report unrecognized
1782 2001-06-15 Hans-Peter Nilsson <hp@axis.com>
1784 * ldlang.c (lang_check): Emit fatal error if relocatable link
1785 between different object flavours.
1787 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
1788 Set new link_info member export_dynamic.
1789 * ldmain.c (main): Initialize new link_info member export_dynamic.
1791 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
1793 * ldlang.c (walk_wild): Only call walk_wild_file if
1794 lookup_name returns something.
1795 (lookup_name): If load_symbols fails, return NULL.
1796 (load_symbols): Change to a boolean function.
1797 (open_input_bfds): If load_symbols fails then do not make the
1800 2001-06-08 Alan Modra <amodra@bigpond.net.au>
1802 * ldlang.c (record_bfd_errors): Remove.
1804 * emultempl/aix.em: Fix copyright dates.
1806 2001-06-07 Andreas Jaeger <aj@suse.de>
1808 * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
1809 (TEXT_START_ADDR): Likewise.
1811 2001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
1813 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
1815 2001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1817 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
1819 2001-05-31 H.J. Lu <hjl@gnu.org>
1821 * ldlang.c (open_input_bfds): Don't change the bfd error
1822 handler whilst loading symbols.
1824 2001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
1826 * configure.tgt: Remove i370-mvs architecture, it is not currently
1829 2001-05-25 H.J. Lu <hjl@gnu.org>
1831 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
1832 like emulparams/aixppc.sh.
1834 2001-05-25 H.J. Lu <hjl@gnu.org>
1836 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
1837 setting of output_filename after bfd_scan_arch.
1838 * emultempl/pe.em: Likewise.
1840 2001-05-25 H.J. Lu <hjl@gnu.org>
1842 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
1843 like emulparams/aixppc.sh.
1845 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
1846 instead of ${srcdir}/emultempl/stringify.sed.
1848 2001-05-25 Timothy Wall <twall@oculustech.com>
1850 * emulparams/elf64_aix.sh: Change settings to match IBM linker
1853 2001-05-25 Alan Modra <amodra@one.net.au>
1855 * configure.host: Replace linuxoldld with linux*oldld.
1856 * configure.tgt: Likewise.
1858 2001-05-24 H.J. Lu <hjl@gnu.org>
1860 * emultempl/stringify.sed: Removed again.
1862 2001-05-24 H.J. Lu <hjl@gnu.org>
1864 * emultempl/aix.em (OUTPUT_ARCH): Defined.
1865 (gld${EMULATION_NAME}_before_parse): Initialize
1866 ldfile_output_architecture, ldfile_output_machine and
1867 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
1868 * emultempl/beos.em: Likewise.
1869 * emultempl/elf32.em: Likewise.
1870 * emultempl/linux.em: Likewise.
1871 * emultempl/mipsecoff.em: Likewise.
1872 * emultempl/pe.em: Likewise.
1873 * emultempl/sunos.em: Likewise.
1875 2001-05-24 Tom Rix <trix@redhat.com>
1877 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
1878 udate import file format.
1879 (change_symbol_mode) New, same
1880 (is_syscall) New, same
1881 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
1882 * emulparams/aixppc64.sh : same
1883 * emulparams/aixrs6.sh : same
1884 * emulparams/ppcmacos.sh : same
1885 * emultempl/aix.em : use strtoull to parse options
1886 * Makefile.am : add eaixppc64 emulation for xcoff64
1887 * Makefile.in : same
1888 * configure.tgt : same
1890 * scripttempl/aix.sc : default text section offset to 0x10000000
1891 default data section offset to 0x20000000
1892 add .sv3264 and .sv64 pseudo sections
1893 loader and debug sections use the currect section offset.
1895 * emultempl/aix.em : Add xcoff64 support
1896 Add -binitfini support
1897 (gld${EMULATION_NAME}_before_parse) -binitfini
1898 (gld${EMULATION_NAME}_parse_args) same
1899 (gld${EMULATION_NAME}_before_allocation) format change for special
1902 * emulparams/aixppc64.sh : New file for xcoff64 support
1904 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
1906 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
1907 variable to avoid non-portable shell construct.
1909 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1911 * ldmain.c (get_emulation): Add -mips5 command line argument.
1913 2001-05-22 Alexandre Oliva <aoliva@redhat.com>
1915 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
1916 (ELF_INTERPRETER_NAME): Define it.
1917 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
1919 * configure.tgt (targ_emul, targ_extra_emuls)
1920 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
1921 as primary, elf_i386 as extra.
1922 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
1923 (eelf_i386_ldso.c): New rule.
1924 * Makefile.in: Rebuilt.
1926 2001-05-22 Nick Clifton <nickc@redhat.com>
1928 * lexsup.c (ld_options): Allow -I to be an alias for
1929 --dynamic-linker. This is for Solaris compatability.
1930 * ld.texinfo: Document that -I can be used.
1933 2001-05-16 Alan Modra <amodra@one.net.au>
1935 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
1936 whether an input section is the first one assigned to an output
1938 Assorted formatting fixes.
1940 2001-05-14 DJ Delorie <dj@delorie.com>
1942 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
1943 * Makefile.in: Ditto.
1945 2001-05-11 Jakub Jelinek <jakub@redhat.com>
1947 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
1948 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
1950 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
1952 2001-05-11 Jakub Jelinek <jakub@redhat.com>
1954 * ldlang.c (lang_process): Call bfd_merge_sections.
1956 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1958 * ldgram.y: Fix typo.
1960 2001-05-03 H.J. Lu <hjl@gnu.org>
1962 * emultempl/elf32.em: Include "libiberty.h".
1963 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
1964 basename of the bfd filename.
1965 (gld${EMULATION_NAME}_stat_needed): Likewise.
1966 (gld${EMULATION_NAME}_try_needed): Likewise.
1967 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
1969 2001-05-02 H.J. Lu <hjl@gnu.org>
1971 * emultempl/pe.em: Include <ctype.h>.
1973 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
1975 * emulparams/elf32openrisc.sh: New file.
1977 * Makefile.am: Add OpenRISC target.
1978 * Makefile.in: Regenerated.
1980 * configure.tgt: Add openrisc-*-* mapping.
1982 2001-05-02 Nick Clifton <nickc@redhat.com>
1984 * emultempl/aix.em: Replace buystring with xstrdup.
1985 * emultempl/beos.em: Replace buystring with xstrdup.
1987 2001-05-02 H.J. Lu <hjl@gnu.org>
1989 * ldfile.c: Include "libiberty.h".
1990 * ldlex.l: Likewise.
1992 * ldmisc.c (buystring): Removed.
1993 * ldmisc.h: Likewise.
1995 * ldfile.c: Replace buystring with xstrdup.
1996 * ldlang.c: Likewise.
1997 * ldlex.l: Likewise.
1998 * ldmain.c: Likewise.
1999 * ldmisc.c: Likewise.
2000 * lexsup.c: Likewise.
2001 * mpw-eppcmac.c: Likewise.
2003 2001-04-30 Andreas Jaeger <aj@suse.de>
2005 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
2007 2001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2009 * ldlang.c (load_symbols): Give emulation a chance
2010 to process unrecognized file before fatal error is
2011 reported, not after.
2013 2001-04-27 Sean McNeil <sean@mcneil.com>
2015 * configure.tgt: Add arm-vxworks target.
2016 * scripttempl/armcoff.sc: Support .text or .data as a section name
2020 2001-04-13 J.T. Conklin <jtc@redback.com>
2022 * ld.texinfo: Document --fatal-warnings.
2025 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
2026 warnings have been turned into errors.
2027 * lexsup.c (OPTION_WARN_FATAL): Define.
2028 (ld_options): Entry for --fatal-warnings.
2029 (parse_args): Handle OPTION_WARN_FATAL.
2030 * ld.h (ld_config_type): Add fatal_warnings field.
2032 2001-04-13 Jakub Jelinek <jakub@redhat.com>
2034 * ldmain.c (main): Default to discard_sec_merge.
2035 * lexsup.c (OPTION_DISCARD_NONE): Define.
2036 (ld_options): Add --discard-none.
2037 (parse_args): Handle OPTION_DISCARD_NONE.
2038 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
2039 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
2040 all its input sections match.
2042 2001-04-05 Steven J. Hill <sjhill@cotw.com>
2044 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
2045 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
2046 (eelf32ltsmip.c): New target.
2047 (eelf64btsmip.c): Likewise.
2048 (eelf64ltsmip.c): Likewise.
2049 * Makefile.in: Regenerated.
2051 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
2053 (mips*-*-linux-gnu*): Likewise.
2055 * emulparams/elf32ltsmip.sh: New. Traditional little endian
2057 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
2059 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
2062 2001-04-05 Hans-Peter Nilsson <hp@axis.com>
2064 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
2065 correct value of __Stext here.
2066 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
2069 * emulparams/crislinux.sh: Remove FIXME.
2071 2001-04-02 Alan Modra <alan@linuxcare.com.au>
2073 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
2074 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
2076 2001-03-27 Hans-Peter Nilsson <hp@axis.com>
2078 * configure.tgt (cris-*-*): Change default emulation to criself.
2079 (cris-*-*aout*): New rule.
2081 2001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
2083 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
2084 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
2086 2001-03-26 Andreas Jaeger <aj@suse.de>
2088 * ld.texinfo (Overview): Fix syntax in texi code.
2090 2001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2092 * ld.texinfo: Put @c man indications to generate the ld man page.
2093 When generating man, define all the variables. Define SEEALSO
2094 and SYNOPSIS. Re-organize some lines to avoid the cross references.
2095 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
2096 (ld.1): Generate from ld.texinfo.
2097 * Makefile.in: Regenerate.
2099 2001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
2101 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
2102 and '-fdata-sections'. Set the VMA of STABS sections to zero.
2104 2001-03-17 Ulrich Drepper <drepper@redhat.com>
2106 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
2107 is an absolute path look only for this file and not along the path.
2109 2001-03-17 Ulrich Drepper <drepper@redhat.com>
2111 * emultempl/elf32.em (OPTION_GROUP): New macro.
2112 Add new option Bgroup to longopts.
2113 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
2114 (gld*_list_options): Add -Bgroup and -z defs.
2115 * ld.1: Document -Bgroup and -z defs.
2116 * ld.texinfo: Likewise.
2118 2001-03-07 Michael Meissner <meissner@redhat.com>
2120 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
2121 with sections created by -fdata-sections.
2122 (.dynbss,.bss): Ditto.
2124 2001-03-05 Alan Modra <alan@linuxcare.com.au>
2126 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
2127 after_allocation_default, not gld..._before_allocation.
2129 2001-02-27 Alan Modra <alan@linuxcare.com.au>
2131 * configure.in (BFD_VERSION): New.
2132 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
2133 * configure: Regenerate.
2134 * Makefile.am: Run "make dep-am"
2135 * Makefile.in: Regenerate.
2137 2001-02-26 Timothy Wall <twall@cygnus.com>
2139 * emulparams/elf64_aix.sh: Add additional read-only sections;
2140 uncomment lines which are now required.
2142 2001-02-26 H.J. Lu <hjl@gnu.org>
2144 * ldlang.c (open_input_bfds): Set the bfd error handler so
2145 that problems can be caught whilst loading symbols.
2146 (record_bfd_errors): New function: Report BFD errors and mark
2147 the executable output as being invalid.
2149 2001-02-22 Timothy Wall <twall@cygnus.com>
2151 * configure.host: Add configuration for ia64-*-aix*.
2152 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
2153 Add dependencies for eelf64_aix.c.
2154 * Makefile.in: Regenerate.
2155 * configure.tgt: Add ia64-*-aix* mapping.
2156 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
2157 * testsuite/ld-bootstrap/bootstrap.exp: Exclude ia64 flavor from
2160 2001-02-20 H.J. Lu <hjl@gnu.org>
2162 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
2163 false if we found the file.
2165 2001-02-18 David O'Brien <obrien@FreeBSD.org>
2167 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
2168 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
2170 2001-02-18 lars brinkhoff <lars@nocrew.org>
2172 * Makefile.am: Add PDP-11 target.
2173 * configure.tgt: Likewise.
2174 * emulparams/pdp11.sh: New file.
2176 2001-02-17 David O'Brien <obrien@FreeBSD.org>
2178 * configure.host: Add a generic FreeBSD configuration entry such that
2179 all [modern] FreeBSD systems on all platforms will look the same.
2181 2001-02-14 H.J. Lu <hjl@gnu.org>
2183 * configure.tgt: Remove mention of earmelf_linux26.
2185 2001-02-13 Richard Henderson <rth@redhat.com>
2187 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
2189 2001-02-13 H.J. Lu <hjl@gnu.org>
2191 * ldexp.h (node_type): Add etree_provided.
2192 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
2193 type to etree_provided if defined by PROVIDE. Allow updating
2195 (exp_print_tree): Handle etree_provided.
2196 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
2199 2001-02-09 David Mosberger <davidm@hpl.hp.com>
2201 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
2202 .IA_64.unwind.* pattern to unwind table section and
2203 .IA_64.unwind_info* pattern to unwind info section.
2205 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
2207 * Makefile.am: Add linux target for S/390.
2208 * Makefile.in: Likewise.
2209 * configure.host: Likewise.
2210 * configure.tgt: Likewise.
2211 * emulparams/elf64_s390.sh: New file.
2212 * emulparams/elf_s390.sh: New file.
2214 2001-02-09 Jakub Jelinek <jakub@redhat.com>
2216 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
2218 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
2220 2001-02-06 Philip Blundell <philb@gnu.org>
2222 * Makefile.am: Remove mention of earmelf_linux26.
2223 * Makefile.in: Regenerate.
2225 2001-02-04 Philip Blundell <philb@gnu.org>
2227 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
2228 * emulparams/armelf_linux26.sh: Delete.
2229 * configure.tgt: Remove mention of armelf_linux26 emulation.
2231 2001-02-01 Nick Clifton <nickc@redhat.com>
2233 * ld.1: Replace occurances of -oformat with --oformat.
2235 2001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
2237 * ldlang.c (lang_leave_overlay): Don't set lma_region when
2238 load_base is specified.
2240 2001-01-24 Hans-Peter Nilsson <hp@axis.com>
2242 * emultempl/elf32.em: Correct spelling in comments and listed
2245 2001-01-23 Alan Modra <alan@linuxcare.com.au>
2247 * ldlang.c (lang_leave_overlay): Only set lma_region from the
2248 default for the first section of a group of overlay sections.
2250 2001-01-22 Alan Modra <alan@linuxcare.com.au>
2252 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
2253 * Makefile.in: Regenerate.
2254 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
2255 Check for null tool_dir.
2257 2001-01-16 Jim Wilson <wilson@redhat.com>
2259 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
2260 and IA_64.unwind.info.
2262 2001-01-16 H.J. Lu <hjl@gnu.org>
2264 * ldlang.c (lang_check): Merge the private data only if the
2265 input file has contents.
2267 2001-01-14 Alan Modra <alan@linuxcare.com.au>
2269 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
2271 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
2272 enabling search for libmilli. On a relocatable link, make .text
2274 (LDEMUL_AFTER_PARSE): Define.
2275 (hppaelf_finish): Correct spelling of relocatable in comments.
2277 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
2278 rummage through the script for sections on the unique list.
2279 Correct length of strncmp for ".note".
2280 (gld${EMULATION_NAME}_check_needed): Rearrange function.
2282 * ldlang.c (unique_section_list): New var.
2283 (unique_section_p): New function.
2284 (walk_wild_section): Don't match sections on unique_section_list.
2285 (lang_add_unique): New function.
2286 Correct spelling of relocatable in comments.
2288 * ldlang.h (struct unique_sections): Declare.
2289 (unique_section_list): Declare.
2290 (unique_section_p): Declare.
2291 (lang_add_unique): Declare.
2293 * lexsup.c (ld_options): Allow --unique to take an optional arg.
2294 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
2296 * ld.texinfo (--unique): Update.
2298 2001-01-13 Nick Clifton <nickc@redhat.com>
2300 * lexsup.c (parse_args): Remove spurious white space.
2302 2001-01-12 Nick Clifton <nickc@redhat.com>
2304 * lexsup.c (parse_args): Update copyright date.
2306 2001-01-12 Philip Blundell <pb@futuretv.com>
2308 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
2310 2001-01-10 Kazu Hirata <kazu@hxi.com>
2312 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
2313 * scripttempl/h8300h.sc: Fix formatting.
2314 * scripttempl/h8300s.sc: Likewise.
2315 * scripttempl/h8500.sc: Likewise.
2316 * scripttempl/h8500b.sc: Likewise.
2317 * scripttempl/h8500c.sc: Likewise.
2318 * scripttempl/h8500m.sc: Likewise.
2319 * scripttempl/h8500s.sc: Likewise.
2321 2000-01-07 David O'Brien <obrien@BSDi.com>
2323 * emultempl/elf32.em: Only perform Linux ld hints processing when
2326 2001-01-07 Philip Blundell <philb@gnu.org>
2328 * ld.texinfo (Bug Reporting): Update email address for reports.
2330 2000-12-31 Nick Clifton <nickc@redhat.com>
2332 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
2333 options by checking for a return value of '?' not -1.
2335 2000-12-28 Nick Clifton <nickc@redhat.com>
2337 * lexsup.c (struct ld_option): Add new enum value:
2339 (ld_options[]): Change -omagic, -output and -oformat options
2340 to be EXACTLY_TWO_DASHES.
2341 (OUTPUT_COUNT): Use ARRAY_SIZE.
2342 (parse_args): Change parameter 'argc' to unsigned.
2343 Place EXACTLY_TWO_DASHES options into new really_longopts
2345 If getopt_long_only fails, try calling getopt_long using the
2346 really_longopts array.
2347 (help): Print a double dash for both EXACTLY_TWO_DASHES and
2350 * ldlex.h: Fix prototype of parse_args.
2352 * ld.texinfo: Document that long options starting with 'o'
2353 must be preceeded by two dashes. Change example of a single
2354 dashed long option from -oformat to -trace-symbol.
2356 2000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2358 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
2359 (longopts[]): New --no-default-excludes option.
2360 (gld_${EMULATION_NAME}_list_options): Document.
2361 (gld_${EMULATION_NAME}_parse_args): Handle.
2363 2000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2365 * ldlang.c (new_stat): Revert the last beautification with "innocent"
2366 whitespace, it breaks the K&R C preprocessor.
2368 2000-12-11 DJ Delorie <dj@redhat.com>
2370 * ld.texinfo: Add notes about --whole-archive and gcc.
2372 2000-11-18 Fred Fish <fnf@be.com>
2374 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
2375 (ld_options): Entry for --allow-shlib-undefined.
2376 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
2377 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
2379 * ld.texinfo: Document new command line switch.
2381 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
2383 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
2384 .fixup is actually read/write.
2385 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
2386 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
2387 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
2389 2000-12-11 Jan Hubicka <jh@suse.cz>
2391 * NEWS: Add note about x86_64 architecture.
2393 2000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
2395 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
2396 Set DWARF2 sections to a VMA of zero.
2398 2000-12-01 Joel Sherrill <joel@OARcorp.com>
2400 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
2402 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
2403 (sparc*-*-rtems*): Switched from a.out to ELF.
2405 2000-11-30 Jan Hubicka <jh@suse.cz>
2407 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
2408 (eelf_x86_64.c): New.
2409 * Makefile.in: Regenerate.
2410 * configure.tgt: Add support for x86_64-*-linux-gnu*.
2411 * emulparams/elf_x86_64.sh: New.
2413 2000-11-30 Hans-Peter Nilsson <hp@axis.com>
2415 * emulparams/crislinux.sh (ENTRY): Change back to _start.
2416 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
2418 * scripttempl/crisaout.sc: Change all RELOCATING not related to
2419 merging non-a.out sections into CONSTRUCTING.
2421 2000-11-28 Nick Clifton <nickc@redhat.com>
2423 * ld.1 (COPYING): Mention that the GNU Free Documentation
2424 License is present in the sources, but not the output, and
2425 also available from the GNU website.
2426 (GNU Free Documentation License): Comment out this section.
2428 2000-11-28 David O'Brien <obrien@dragon.nuxi.com>
2430 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
2433 2000-11-25 David O'Brien <obrien@FreeBSD.org>
2435 * ld.1: Remove old date so it does not give the impression the manpage
2438 2000-11-24 Nick Clifton <nickc@redhat.com>
2440 * configure.tgt (xscale-coff): Add target.
2441 (xscale-elf): Add target.
2443 2000-11-24 Fred Fish <fnf@be.com>
2445 * ldmain.c (main): Remove redundant init of config.make_executable
2448 2000-11-15 Richard Henderson <rth@redhat.com>
2450 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
2452 2000-11-14 Kazu Hirata <kazu@hxi.com>
2454 * scripttempl/h8300.sc: Fix formatting.
2455 * scripttempl/h8300h.sc: Likewise.
2456 * scripttempl/h8300s.sc: Likewise.
2458 2000-11-14 Denis Chertykov <denisc@overta.ru>
2460 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
2462 2000-11-09 Philip Blundell <pb@futuretv.com>
2464 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
2465 around orphan sections whose names can be represented in C.
2467 2000-11-07 Jim Wilson <wilson@redhat.com>
2469 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
2470 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
2472 2000-11-06 Nick Clifton <nickc@redhat.com>
2474 * ld.texinfo: Add GNU Free Documentation License.
2475 * ldint.texinfo: Add GNU Free Documentation License.
2476 * ld.1: Add GNU Free Documentation License.
2478 2000-11-05 Alan Modra <alan@linuxcare.com.au>
2480 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
2481 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
2483 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
2484 Move 2000-11-02 Makefile.in changes to this file.
2485 * Makefile.in: Regenerate.
2487 2000-11-03 Nick Clifton <nickc@redhat.com>
2489 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
2490 constructors and destructors.
2491 * scripttempl/h8300h.sc: Ditto.
2492 * scripttempl/h8300s.sc: Ditto.
2493 * scripttempl/h8500.sc: Ditto.
2494 * scripttempl/h8500b.sc: Ditto.
2495 * scripttempl/h8500c.sc: Ditto.
2496 * scripttempl/h8500m.sc: Ditto.
2497 * scripttempl/h8500s.sc: Ditto.
2498 * scripttempl/v850.sc: Ditto.
2499 * scripttempl/w65.sc: Ditto.
2500 * scripttempl/z8000.sc: Ditto.
2502 2000-11-02 Per Lundberg <plundis@chaosdev.org>
2504 * Makefile.in (e_i386_chaos.c): New rule.
2505 (ALL_EMULATIONS): Added e_i386_chaos.o.
2506 * emulparams/elf_i386_chaos.sh: New file.
2507 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
2509 2000-10-20 Jakub Jelinek <jakub@redhat.com>
2511 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
2512 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
2513 Fix sed invocation, so that it coped with '/' in Solaris 64bit
2514 library path suffix.
2515 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
2517 2000-10-18 Hans-Peter Nilsson <hp@axis.com>
2519 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
2520 for consecutive sections.
2522 2000-10-17 Chandrakala Chavva <cchavva@redhat.com>
2524 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
2526 * ld.texinfo: Added notes about this new option.
2528 2000-10-16 Nick Clifton <nickc@redhat.com>
2530 * emultempl/pe.em (_after_open): Add tests of return values from
2531 bfd functions. Emit appropriate error messages if necessary.
2533 2000-10-13 Nick Clifton <nickc@redhat.com>
2535 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
2536 local variables - they are not used, but leave in the call to
2537 bfd_canonicalize_symtab.
2538 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
2539 pe_dll_search_prefix.
2541 2000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
2543 * emultempl/pe.em (pe_dll_search_prefix): New variable,
2544 (longopts): New --dll-search-prefix option.
2545 (gld_${EMULATION_NAME}_list_options): Document.
2546 (gld_${EMULATION_NAME}_parse_args): Handle.
2547 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
2548 dynamically, search for a dll named '<prefix><basename>.dll'
2549 in preference to 'lib<basename>.dll' if --dll-search-prefix
2552 2000-10-12 Alan Modra <alan@linuxcare.com.au>
2554 * ldlang.c (section_already_linked): Set kept_section instead of
2557 2000-10-10 Kazu Hirata <kazu@hxi.com>
2559 * deffile.h: Fix formatting.
2560 * lexsup.c: Likewise.
2563 2000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2565 * pe-dll.c (make_one): Do not generate code thunk for DATA
2567 (process_def_file): deduce DATA flag for auto-export sumbols.
2569 2000-10-09 Kazu Hirata <kazu@hxi.com>
2571 * ld.h: Fix formatting.
2572 * ldcref.c: Likewise.
2573 * ldctor.h: Likewise.
2574 * ldemul.c: Likewise.
2575 * ldemul.h: Likewise.
2576 * ldexp.c: Likewise.
2577 * ldexp.h: Likewise.
2578 * ldfile.c: Likewise.
2579 * ldfile.h: Likewise.
2580 * ldlang.c: Likewise.
2581 * ldlang.h: Likewise.
2582 * ldmain.c: Likewise.
2583 * pe-dll.c: Likewise.
2585 * pe-dll.c: Revert some formatting fixes.
2587 2000-10-08 Kazu Hirata <kazu@hxi.com>
2589 * pe-dll.c: Fix formatting.
2591 2000-10-05 Kazu Hirata <kazu@hxi.com>
2593 * ldlang.c: Fix formatting.
2595 2000-10-03 DJ Delorie <dj@redhat.com>
2597 * pe-dll.c (fill_edata): initialize entire block
2598 (make_one): fill in correct section.
2600 2000-10-03 Kazu Hirata <kazu@hxi.com>
2602 * ldexp.c: Fix formatting.
2604 2000-10-02 DJ Delorie <dj@redhat.com>
2606 * emultempl/pe.em (gld_*_after_open): detect case where there two
2607 import libraries for same dll; rename one to ensure proper link
2610 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
2612 (generate_edata): fix typo
2614 2000-09-29 Hans-Peter Nilsson <hp@axis.com>
2616 * scripttempl/crisaout.sc (ENTRY): Now __start.
2617 (.text): Add default setting for __start.
2618 Remove CONSTRUCTORS handling.
2619 (/DISCARD/): Add .gnu.warning.*.
2620 * emulparams/crislinux.sh (ENTRY): Now __start.
2621 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
2622 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
2623 (ENTRY): Now __start.
2624 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
2625 (EXECUTABLE_SYMBOLS): Add default setting for __start.
2627 2000-09-29 Kazu Hirata <kazu@hxi.com>
2629 * deffile.h: Fix formatting.
2631 * ldcref.c: Likewise.
2632 * ldctor.c: Likewise.
2633 * ldctor.h: Likewise.
2634 * ldemul.c: Likewise.
2635 * ldemul.h: Likewise.
2636 * ldexp.c: Likewise.
2637 * ldexp.h: Likewise.
2638 * ldfile.c: Likewise.
2639 * ldfile.h: Likewise.
2640 * ldlang.c: Likewise.
2641 * ldlang.h: Likewise.
2642 * lexsup.c: Likewise.
2644 * pe-dll.c: Likewise.
2646 2000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2648 * pe-dll.c (process_def_file): Uninitialized data wasn't
2649 exported with --export-all-symbols switch.
2651 2000-09-28 DJ Delorie <dj@redhat.com>
2653 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
2654 noname work properly.
2656 2000-09-28 Alan Modra <alan@linuxcare.com.au>
2658 * ld.texinfo (HPPA ELF32): New section.
2660 * emultempl/hppaelf.em (group_size): New.
2661 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
2662 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
2663 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
2664 options to prevent abbreviations matching.
2665 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
2666 (PARSE_AND_LIST_ARGS_CASES): Handle it.
2668 2000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2670 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
2671 on the m68*-*-elf target. Make it support COFF input objects.
2673 2000-09-21 Kazu Hirata <kazu@hxi.com>
2675 * ldmain.c: Fix formatting.
2676 * ldmisc.c: Likewise.
2677 * ldver.c: Likewise.
2678 * ldwrite.c: Likewise.
2680 2000-09-21 Alan Modra <alan@linuxcare.com.au>
2682 * ldwrite.c (clone_section): Silence gcc warnings.
2684 2000-09-20 Alan Modra <alan@linuxcare.com.au>
2686 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
2687 out of memory failure.
2689 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
2690 (clone_section): Handle out of memory failures. Rename var to
2691 avoid c++ reserved word.
2693 2000-09-18 Alan Modra <alan@linuxcare.com.au>
2695 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
2696 stub_name param to stub_sec_name.
2697 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
2699 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2701 * emultempl/m68kelf.em: New file.
2702 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
2703 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
2704 * Makefile.in: Regenerate.
2706 2000-09-15 Alan Modra <alan@linuxcare.com.au>
2708 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
2711 2000-09-13 Nick Clifton <nickc@redhat.com>
2713 * ldmain.c (multiple_definition): Disable relaxation if
2714 multiple symbol definitions are encountered - otherwise the
2715 linker could abort with an assertion failure.
2717 2000-09-10 Nick Clifton <nickc@redhat.com>
2719 * mri.c: Fix formatting.
2721 2000-09-07 H.J. Lu <hjl@gnu.org>
2723 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
2724 * configure: Rebuild.
2726 2000-09-07 H.J. Lu <hjl@gnu.org>
2728 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
2729 * Makefile.in: Rebuild.
2731 2000-09-07 Alan Modra <alan@linuxcare.com.au>
2733 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
2734 broken list handling. Create __start_SECNAME and __stop_SECNAME
2735 when no place-holder. Add some comments. Test both SEC_CODE and
2736 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
2737 Handle case where no output section statement created.
2739 2000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
2741 * configure.tgt (sh-*-linux*): Added.
2742 * Makefile.am: Added eshelf_linux and eshlelf_linux.
2743 * Makefile.in: Rebuilt.
2744 * emulparams/shelf_linux.sh: New file.
2745 * emulparams/shlelf_linux.sh: New file.
2747 2000-09-06 Alan Modra <alan@linuxcare.com.au>
2749 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
2750 try shuffling sections when the orphan happens to be the place
2751 holder. Keep count of unique section names generated so we speed
2752 the search for a new name.
2754 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
2756 * configure: Rebuilt with new libtool.m4.
2758 2000-09-05 Nick Clifton <nickc@redhat.com>
2760 * Makefile.in: Regenerate.
2761 * aclocal.m4: Regenerate.
2762 * configure: Regenerate.
2763 * config.in: Regenerate.
2764 * po/ld.pot: Regenerate.
2766 * ldint.texinfo: Remove CVS revision marker - it foils local
2769 * emultempl/ticoff.em: Remove extraneous comma.
2771 2000-09-05 Alan Modra <alan@linuxcare.com.au>
2773 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
2774 to stub section flags.
2775 (hppa_for_each_input_file_wrapper): New.
2776 (hppa_lang_for_each_input_file): New.
2777 (lang_for_each_input_file): Define to call above.
2778 (multi_subspace): New.
2779 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
2780 (PARSE_AND_LIST_PROLOGUE): Define.
2781 (PARSE_AND_LIST_LONGOPTS): Define.
2782 (PARSE_AND_LIST_OPTIONS): Define.
2783 (PARSE_AND_LIST_ARGS_CASES): Define.
2784 (hppaelf_finish): Call elf32_hppa_set_gp.
2785 (hppaelf_set_output_arch): Remove.
2786 (LDEMUL_SET_OUTPUT_ARCH): Remove.
2788 * emulparams/hppalinux.sh (ELFSIZE): Define.
2790 (OTHER_READONLY_SECTIONS): Define.
2792 (GENERATE_SHLIB_SCRIPT): Define.
2794 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
2795 to const throughout. Change `void *' to `PTR' throughout.
2796 (lang_memory_default): Function is local to file, add `static'.
2798 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
2799 (ehppalinux.c): Likewise.
2800 (earmelf.c): Likewise.
2801 (earmelf_linux.c): Likewise.
2802 (earmelf_linux26.c): Likewise.
2803 * Makefile.in: Regenerate.
2805 * ld.h (ld_config_type): Add unique_orphan_sections.
2806 * lexsup.c (OPTION_UNIQUE): Define.
2807 (ld_options): Add "--unique".
2808 (parse_args): Handle it.
2809 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
2810 search for an existing output section if unique_orphan_sections is
2811 set. Make use of bfd_get_unique_section_name rather than
2812 duplicating code here.
2813 * ld.texinfo: Describe --unique.
2815 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
2816 optional arg to split-by-file.
2817 (parse_args): Handle them.
2818 * ld.texinfo: Update description of these options.
2819 * ldwrite.c (clone_section): Pass in the section name. Replace
2820 local code with bfd_get_unique_section_name.
2821 (split_sections): Tidy code and comments. Use a list traversal
2822 more appropriate to the list construction. Handle cooked section
2823 sizes. Split when split_by_reloc reached rather than exceeded.
2824 Track section size and split when split_by_file reached. Fix
2825 link_order_tail (even though it's not used).
2826 (ldwrite): Modify condition for calling split_sections to suit
2827 changed split_by_reloc and split_by_file.
2828 * ldmain.c (main): Init config.split_by_reloc and
2829 config.split_by_file to -1.
2830 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
2831 Change split_by_file to bfd_size_type.
2833 2000-09-02 Nick Clifton <nickc@redhat.com>
2835 * configure.in: Increase version number to 2.10.91.
2836 * NEWS: Mention new ability to support removal of duplicate DWARF2
2838 * configure: Regenerate.
2839 * aclocal.m4: Regenerate.
2840 * config.in: Regenerate.
2842 2000-09-02 Daniel Berlin <dberlin@redhat.com>
2844 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
2846 * scripttempl/elf32avr.sc: Ditto.
2847 * scripttempl/elfd10v.sc: Ditto.
2848 * scripttempl/elfd30v.sc: Ditto.
2849 * scripttempl/elfi370.sc: Ditto.
2850 * scripttempl/elfm68hc11.sc: Ditto.
2851 * scripttempl/elfm68hc12.sc: Ditto.
2852 * scripttempl/elfi386beos.sc: Ditto.
2853 * scripttempl/v850.sc: Ditto.
2855 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
2857 * acinclude.m4: Include libtool and gettext macros from the
2859 * aclocal.m4, configure: Rebuilt.
2861 2000-08-25 Nick Clifton <nickc@redhat.com>
2863 * ldlang.c (open_output): When choosing the target for a
2864 particular endianness, do nothing if the target is not
2867 2000-08-25 H.J. Lu <hjl@gnu.org>
2869 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
2870 check -rpath nor LD_RUN_PATH for cross link.
2871 * ld.texinfo: Document the change.
2873 2000-08-24 Hans-Peter Nilsson <hp@axis.com>
2875 * NEWS: Mention support for CRIS.
2877 2000-08-23 H.J. Lu <hjl@gnu.org>
2879 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
2880 the current runpath list from bfd_elf_get_runpath_list ()
2883 2000-08-22 H.J. Lu <hjl@gnu.org>
2885 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
2886 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
2887 LD_LIBRARY_PATH for native linker. Display the needed DSO if
2888 trace_file_tries is non-zero.
2889 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
2890 if trace_file_tries is non-zero.
2892 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
2895 2000-08-14 Jason Eckhardt <jle@cygnus.com>
2897 * NEWS: Mention i860 support.
2899 2000-08-14 Andreas Schwab <schwab@suse.de>
2901 * scripttempl/elf.sc: Fix last change to use correct comment
2904 2000-08-10 Geoff Keating <geoffk@cygnus.com>
2906 * scripttempl/elf.sc: Add a comment giving the correspondence
2907 between sections, per-datum sections, and linkonce sections. Make
2908 the comment true even for .bss, .sdata, .sdata2, .sbss, and
2911 2000-08-10 Jason Eckhardt <jle@cygnus.com>
2913 * emulparams/elf32_i860.sh: New file.
2914 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
2915 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
2916 (eelf32_i860.c): New rule.
2917 * Makefile.in: Regenerate.
2919 2000-08-10 Nick Clifton <nickc@cygnus.com>
2921 * emulparams/mipspe.sh (ENTRY): Add definition.
2923 2000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
2925 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
2928 2000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2930 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
2931 the final size of .bss section.
2932 * scripttempl/elfm68hc12.sc: Likewise.
2934 2000-08-04 Alan Modra <alan@linuxcare.com.au>
2936 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
2937 gld${EMULATION_NAME}_parse_args for consistency. Combine
2938 lastoptind and prevoptind vars, and keep track of last optind.
2939 (gld_${EMULATION_NAME}_list_options): Rename to
2940 gld${EMULATION_NAME}_list_options.
2942 2000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
2944 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
2945 (i586-sco-sysv5uw7.1.0).
2947 2000-07-27 H.J. Lu <hjl@gnu.org>
2949 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
2950 (PARSE_AND_LIST_PROLOGUE): New.
2951 (PARSE_AND_LIST_LONGOPTS): Likewise.
2952 (PARSE_AND_LIST_OPTIONS): Likewise.
2953 (PARSE_AND_LIST_ARGS_CASES): Likewise.
2954 (PARSE_AND_LIST_EPILOGUE): Likewise.
2956 2000-07-28 Alan Modra <alan@linuxcare.com.au>
2958 * emultempl/armelf.em: Elide functions common to elf32.em,
2959 ie. most of the file.
2960 (arm_elf_after_open): New. Do arm specific things then call
2961 gld${EMULATION_NAME}_after_open.
2962 (arm_elf_before_allocation): New. Call
2963 gld${EMULATION_NAME}_before_allocation then do arm specifics.
2964 (PARSE_AND_LIST_PROLOGUE): Define.
2965 (PARSE_AND_LIST_SHORTOPTS): Define.
2966 (PARSE_AND_LIST_LONGOPTS): Define.
2967 (PARSE_AND_LIST_OPTIONS): Define.
2968 (PARSE_AND_LIST_ARGS_CASES): Define.
2969 (LDEMUL_AFTER_OPEN): Define.
2970 (LDEMUL_BEFORE_ALLOCATION): Define.
2971 (LDEMUL_BEFORE_PARSE): Define.
2972 (LDEMUL_FINISH): Define.
2974 * emultempl/hppaelf.em: Similarly zap most of this file.
2975 (hppaelf_add_stub_section): Prototype.
2976 (hppaelf_layaout_sections_again): Prototype.
2977 (hook_in_stub): Prototype.
2978 (LDEMUL_SET_OUTPUT_ARCH): Define.
2979 (LDEMUL_FINISH): Define.
2980 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
2982 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
2983 (EXTRA_EM_FILE): New.
2984 * emulparams/armelf_linux.sh: Likewise.
2985 * emulparams/armelf_linux26.sh: Likewise.
2986 * emulparams/hppalinux.sh: Likewise.
2987 * emulparams/hppaelf.sh: Likewise.
2990 * emultempl/elf32.em: Fix formatting.
2991 (EXTRA_EM_FILE): Source it.
2992 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
2993 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
2994 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
2995 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
2996 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
2997 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
2998 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
2999 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
3000 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
3001 allow functions in this file to be overridden.
3002 (PARSE_AND_LIST_SHORTOPTS): Handle it.
3004 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
3006 * emultempl/elf32.em: Reorganize file.
3008 2000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
3010 * emulparams/elf64alpha.sh: Implement "-taso" emulation
3011 specific option to fit 64-bit executable in the lower
3012 31-bit address range. This is done by changing start
3013 address of .interp (the very first section of executable)
3014 and then setting EF_ALPHA_32BIT elf header flag.
3016 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3018 * emultempl/m68kcoff.em: New file.
3019 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
3020 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
3022 * Makefile.in: Regenerate.
3024 2000-07-20 H.J. Lu <hjl@gnu.org>
3026 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
3027 and "disable-new-dtags" to stop getopt from treating -d/-e as
3028 abbreviations for these options.
3030 2000-07-20 H.J. Lu <hjl@gnu.org>
3032 * ld.texinfo: Add documentation for --disable-new-dtags and
3035 * ldmain.c (main): Initialize link_info.new_dtags to false.
3037 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
3038 --disable-new-dtags and --enable-new-dtags.
3039 (gld_${EMULATION_NAME}_list_options): Likewise.
3041 2000-07-05 Kenneth Block <krblock@computer.org>
3043 * lexsup.c: Add optional style to demangle switch
3044 * ld.texinfo: Document optional style to demangle switch.
3046 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
3048 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
3050 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
3051 Regenerate dependencies.
3052 * Makefile.in: Rebuild.
3053 * configure.tgt (cris-*-*): New target.
3054 * emulparams/crisaout.sh, emulparams/criself.sh,
3055 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
3056 * po/POTFILES.in, po/ld.pot: Regenerate.
3058 2000-07-20 H.J. Lu <hjl@gnu.org>
3060 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
3061 Print out ignored -z options.
3063 2000-07-19 H.J. Lu <hjl@gnu.org>
3065 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
3066 (PARSE_AND_LIST_PROLOGUE): New.
3067 (PARSE_AND_LIST_LONGOPTS): Likewise.
3068 (PARSE_AND_LIST_OPTIONS): Likewise.
3069 (PARSE_AND_LIST_ARGS_CASES): Likewise.
3071 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
3073 * lexsup.c (ld_options): Comment out 'z'.
3074 (parse_args): Likewise.
3076 * emultempl/elf32.em: Include "elf/common.h".
3077 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
3079 (gld_${EMULATION_NAME}_list_options): Likewise.
3081 * ld.texinfo: Add documentation for the recognized -z options.
3083 2000-07-19 H.J. Lu <hjl@gnu.org>
3085 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
3086 bfd_elf_set_dt_needed_soname ().
3088 2000-07-18 DJ Delorie <dj@cygnus.com>
3090 * pe-dll.c (pe_dll_id_target): check object target name also
3092 2000-07-18 Hans-Peter Nilsson <hp@axis.com>
3094 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
3095 ${INIT_END} if relocating.
3096 (.fini): Likewise ${FINI_START} and ${FINI_END}.
3098 2000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
3100 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
3101 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
3102 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
3103 errors introduced by the old dynamic lib search order.
3105 2000-07-17 DJ Delorie <dj@cygnus.com>
3107 * pe-dll.c (process_def_file): auto-export data items also
3108 (pe_process_import_defs): also see if _imp_ form needed
3110 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
3112 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
3113 for dll import libraries
3115 2000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
3117 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
3118 gcc 2.95.2 and later.
3120 2000-07-11 Kazu Hirata <kazu@hxi.com>
3122 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
3125 2000-07-10 Alan Modra <alan@linuxcare.com.au>
3127 * ldemul.h (struct lang_input_statement_struct): Remove forward
3129 (struct search_dirs): Likewise.
3130 * ldfile.h (struct lang_input_statement_struct): Likewise.
3131 Protect file from multiple inclusion.
3132 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
3133 declaration from macro to file scope.
3135 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
3136 * ldgram.y: Likewise here.
3137 * ldlang.c: And here.
3138 * ldmain.c: And here.
3139 * mpw-elfmips.c: And here.
3140 * mpw-eppcmac.c: And here.
3141 * emultempl/aix.em: And here.
3142 * emultempl/armcoff.em: And here.
3143 * emultempl/armelf.em: And here.
3144 * emultempl/armelf_oabi.em: And here.
3145 * emultempl/beos.em: And here.
3146 * emultempl/elf32.em: And here.
3147 * emultempl/hppaelf.em: And here.
3148 * emultempl/linux.em: And here.
3149 * emultempl/lnk960.em: And here.
3150 * emultempl/pe.em: And here.
3151 * emultempl/sunos.em: And here.
3152 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
3153 * mpw-idtmips.c: Ditto.
3154 * emultempl/generic.em: Ditto.
3155 * emultempl/gld960.em: Ditto.
3156 * emultempl/gld960c.em: Ditto.
3157 * emultempl/mipsecoff.em: Ditto.
3158 * emultempl/ticoff.em: Ditto.
3159 * emultempl/vanilla.em: Ditto.
3161 * pe-dll.c: Include ldfile.h
3162 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
3164 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
3165 arguments to bfd_elf32_size_dynamic_sections call.
3166 (gldelf32ebmip_place_orphan): Add missing arguments to
3167 lang_leave_output_section_statement call.
3169 2000-07-10 H.J. Lu <hjl@gnu.org>
3171 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
3173 (strhash): Likewise.
3174 (compute_dll_image_base): Likewise.
3175 (pe_undef_found_sym): Likewise.
3176 (pe_undef_cdecl_match): Likewise.
3177 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
3178 argument "arch" with ATTRIBUTE_UNUSED.
3180 2000-07-10 Alan Modra <alan@linuxcare.com.au>
3182 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
3184 From Ryan Bradetich <rbradetich@uswest.net>
3185 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
3187 2000-07-09 Alan Modra <alan@linuxcare.com.au>
3189 Changes to create multiple linker stubs, positioned immediately
3190 before the section where they are required.
3191 * emultempl/hppaelf.em: Include elf32-hppa.h.
3192 (stub_sec, file_chain): Delete.
3193 (hppaelf_create_output_section_statements): Don't make a stub
3195 (hook_stub_info): New struct.
3196 (hook_in_stub): New function.
3197 (hppaelf_add_stub_section): New function.
3198 (hppaelf_finish): Do nothing for relocateable links. Modify the
3199 call to elf32_hppa_size_stubs. Move code for updating section
3201 (hppaelf_layaout_sections_again): ..to here, a new function.
3203 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
3204 broken list handling. Pass in a pointer to the list.
3205 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
3207 (hppaelf_before_parse): Prototype.
3208 (hppaelf_set_output_arch): Prototype.
3209 (hppaelf_create_output_section_statements): Prototype.
3210 (hppaelf_delete_padding_statements): Prototype.
3211 (hppaelf_finish): Prototype.
3214 * emultempl/hppaelf.em: Include ctype.h.
3215 (struct orphan_save): New.
3216 (gld${EMULATION_NAME}_place_orphan): New.
3217 (output_rel_find): New.
3218 (hppaelf_get_script): Update from elf32.em.
3219 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
3220 Change emulation_name field to "${EMULATION_NAME}". Add
3221 gld${EMULATION_NAME}_place_orphan.
3223 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
3224 ehppalinux.o, sort it. Regenerate dependencies.
3225 (ehppalinux.c): Depend on hppaelf.em
3226 * Makefile.in: Regenerate.
3228 * configure.tgt: targ_emul=hppalinux for hppa*linux
3230 * emulparams/hppalinux.sh: New.
3231 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
3233 2000-07-08 Alan Modra <alan@linuxcare.com.au>
3235 * lexsup.c (parse_args): Copy section name.
3237 2000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
3239 * emultempl/pe.em: institute the following search order for
3240 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
3241 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
3242 static lib (libfoo.a) if none of the above are found.
3244 2000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
3246 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
3247 (longopts): New --{enable,disable}-auto-image-base options.
3248 (gld_${EMULATION_NAME}_list_options): Document.
3249 (gld_${EMULATION_NAME}_parse): Handle.
3250 (strhash): New static function.
3251 (compute_dll_image_base): New static function.
3252 (gld_${EMULATION_NAME}_set_symbols): Use.
3254 2000-07-05 DJ Delorie <dj@redhat.com>
3258 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
3260 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
3261 * emulparams/elf32btsmip.sh: New file.
3262 * Makefile.am: Add traditional mips target.
3263 * Makefile.in: Rebuild.
3265 2000-07-01 H.J. Lu <hjl@gnu.org>
3267 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
3268 automake to use YLWRAP.
3269 * Makefile.in: Rebuild.
3271 2000-07-01 Alan Modra <alan@linuxcare.com.au>
3273 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
3274 (CLEANFILES): Add DEPA.
3275 * Makefile.in: Regenerate.
3277 2000-06-30 Timothy Wall <twall@ppc>
3279 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
3280 the page in the upper octet of the address.
3282 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
3284 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
3286 2000-06-24 Alan Modra <alan@linuxcare.com.au>
3288 * NEWS: arm-elf does --gc-sections too.
3290 2000-06-22 Alan Modra <alan@linuxcare.com.au>
3292 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
3294 * Makefile.in: Regenerate.
3296 2000-06-21 H.J. Lu <hjl@gnu.org>
3298 * Makefile.am: Rebuild dependency.
3299 * Makefile.in: Rebuild.
3301 2000-06-20 H.J. Lu <hjl@gnu.org>
3303 * Makefile.am: Rebuild dependency.
3304 * Makefile.in: Rebuild.
3306 2000-06-20 Timothy Wall <twall@cygnus.com>
3308 * scripttempl/tic54xcoff.sc: New.
3309 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
3310 * gen-doc.texi: Add flag for TI COFF.
3311 * ld.texinfo: Add documentation for TI COFF handling switches.
3312 * emultempl/ticoff.em: New. TI COFF handling.
3313 * configure.tgt: Add tic54x target.
3314 * Makefile.am: Add tic54x target.
3315 * Makefile.in: Ditto.
3317 2000-06-20 Alan Modra <alan@linuxcare.com.au>
3319 * ldmain.c (set_scripts_dir): Correct pointer comparison when
3320 checking for backslashes.
3322 2000-06-19 Alan Modra <alan@linuxcare.com.au>
3324 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
3326 2000-06-18 Alan Modra <alan@linuxcare.com.au>
3328 * NEWS: Update list of targets supporting --gc-sections.
3330 * scripttempl/elf.sc: KEEP .eh_frame contents.
3331 * scripttempl/elfd30v.sc: Same here.
3333 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
3335 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
3337 * Makefile.in: Rebuild.
3338 * configure.tgt: Recognize m68hc12 and m68hc11.
3339 * scripttempl/elfm68hc12.sc: New file.
3340 * emulparams/m68hc12elfb: New emulation.
3341 * emulparams/m68hc12elf: New emulation.
3342 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
3343 (includes a memory.x script to define the ROM and RAM banks).
3344 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
3345 New configuration files for support of Motorola 68hc11
3347 2000-06-15 Alan Modra <alan@linuxcare.com.au>
3349 * ldmain.c (main): Only change SEC_READONLY for final link.
3351 2000-06-13 H.J. Lu <hjl@gnu.org>
3353 * configure: Regenerate.
3355 2000-06-08 David O'Brien <obrien@FreeBSD.org>
3357 * configure.in (VERSION): Update to show this is the CVS mainline.
3359 2000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3361 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
3362 input objects to be ECOFF.
3363 (check_sections): einfo takes %B, not %P, to print a BFD name.
3365 2000-06-05 Michael Matz <matz@ifh.de>
3367 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
3370 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
3372 2000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
3374 * emulparams/avr1200.sh (STACK): Define as 0.
3375 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
3376 * emulparams/avr4433.sh (STACK): Likewise.
3377 * emulparams/avr44x4.sh (STACK): Likewise.
3378 * emulparams/avr85xx.sh (STACK): Likewise.
3379 * emulparams/avrmega103.sh (STACK): Likewise.
3380 * emulparams/avrmega161.sh (STACK): Likewise.
3381 * emulparams/avrmega603.sh (STACK): Likewise.
3382 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
3383 (__stack): Define from ${STACK} for main().
3385 2000-05-26 Alan Modra <alan@linuxcare.com.au>
3387 * Makefile.am: Update dependencies with "make dep-am"
3388 * Makefile.in: Regenerate.
3390 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
3392 * ldmain.c: Include filenames.h.
3393 (set_scripts_dir): Support backslashes in program name.
3395 2000-05-22 Igor Shevlyakov <igor@windriver.com>
3397 * ldmain.c (main): When deciding if ".text" section should be
3398 read-only, don't forget to reset SEC_READONLY because it
3399 could be already set.
3401 2000-05-22 Thomas de Lellis <tdel@windriver.com>
3403 * ld.1: Add documentation for new command line option:
3404 --section-start <sectionname>=<sectionorg>
3405 This is a generic version of -Ttext etc. which accepts
3406 any section name as a parameter instead of just text/data/
3408 * ld.texinfo: More docs.
3410 * lexsup.c: (parse_args): Recognize new command line option.
3411 (ld_options): Add new option.
3413 2000-05-18 H.J. Lu <hjl@gnu.org>
3415 * lexsup.c (parse_args): `i' == `r', not `q'.
3417 2000-05-18 Jeffrey A Law (law@cygnus.com)
3419 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
3421 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
3422 Rick Gorton <gorton@scrugs.lkg.dec.com>
3424 Add support for '-q' == '--emit-relocs' switch.
3425 * ldmain.c (main): Default to false.
3426 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
3427 * NEWS: Describe the emitrelocations switch.
3428 * ld.texinfo: Describe the emitrelocations switch.
3430 2000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
3432 * emultempl/pe.em (_open_dynamic_archive): New function: Search
3433 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
3434 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
3437 2000-05-15 David O'Brien <obrien@FreeBSD.org>
3439 * lexsup.c (parse_args): Update the year in the copyright notice.
3441 2000-05-13 Alan Modra <alan@linuxcare.com.au>
3443 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
3444 Replace defines with those from intl/libgettext.h to quieten gcc
3447 2000-05-10 H.J. Lu <hjl@gnu.org>
3449 * ldlang.c (open_input_bfds): Don't load the same file within
3450 a group again if the whole archive has been loaded already.
3452 2000-05-03 Alan Modra <alan@linuxcare.com.au>
3454 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
3455 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
3458 2000-05-01 Jim Wilson <wilson@cygnus.com>
3460 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
3462 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
3463 host "ia64-*-linux-gnu*".
3465 2000-04-29 Andreas Jaeger <aj@suse.de>
3467 * ld.h: Correctly check GCC version.
3469 2000-04-25 Jeffrey A Law (law@cygnus.com)
3471 * Makefile.am: Add PA64 support. Add missing dependencies for
3473 * Makefile.in: Rebuilt.
3474 * configure.tgt: Add PA64 support (currently disabled).
3476 2000-04-25 Alan Modra <alan@linuxcare.com.au>
3478 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
3479 (output_rel_find): New function.
3480 (hold_section, hold_use): Delete.
3481 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
3482 hold_interp): Make local to place_orphan.
3483 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
3484 rather than place_section to find possible previous use of orphan.
3485 Similarly find the place-holder output sections. Use returned
3486 value from lang_enter_output_section_statement rather than calling
3487 lang_output_section_statement_lookup.
3488 * emultempl/armelf.em: Same here.
3489 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
3491 * ldlang.c (lang_enter_output_section_statement): Return output
3493 * ldlang.h (lang_enter_output_section_statement): Change
3496 * ldlang.h (lang_output_section_statement): Export it.
3497 * ldlang.c (lang_output_section_statement): Ditto.
3499 2000-04-24 Nick Clifton <nickc@cygnus.com>
3501 * ld.texinfo (Output Section Data): Add note that section data
3502 commands cannot appear outside of section directives.
3504 2000-04-2 Matthew Green <mrg@cygnus.com>
3506 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
3508 2000-04-21 Richard Henderson <rth@cygnus.com>
3509 David Mosberger <davidm@hpl.hp.com>
3511 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
3512 (eelf64_ia64.c): New rule.
3513 * Makefile.in: Rebuild.
3514 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
3515 * emulparams/elf64_ia64.sh: New file.
3517 2000-04-21 Richard Henderson <rth@cygnus.com>
3519 * scripttempl/elfd30v.sc: Place .gcc_except_table.
3521 2000-04-19 Alan Modra <alan@linuxcare.com.au>
3523 * dep-in.sed: Match space at start of file name, not at end.
3525 2000-04-18 H.J. Lu <hjl@gnu.org>
3527 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
3528 lang_leave_output_section_statement () after calling
3529 lang_enter_output_section_statement ().
3530 * emultempl/armelf.em: Likewise.
3532 2000-04-18 Alan Modra <alan@linuxcare.com.au>
3534 * emultempl/elf32.em (struct orphan_save): Add section field.
3535 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
3536 better order, and place first orphan section as we did before the
3537 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
3538 Don't call make_bfd_section here, let wild_doit do the job for us.
3539 Don't build a statement list when we'll only throw it away.
3540 * emultempl/armelf.em: Ditto.
3541 * emultempl/pe.em: Similarly.
3543 2000-04-14 Geoff Keating <geoffk@cygnus.com>
3545 * scripttempl/elfppc.sc: Remove.
3546 * emulparams/elf32ppc.sh: Use elf.sc.
3547 * emulparams/elf32lppc.sh: Use elf.sc.
3548 * emulparams/elf32ppclinux.sh: Use elf.sc.
3549 * emulparams/elf32ppcsim.sh: New file.
3550 * emulparams/elf32lppcsim.sh: New file.
3551 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
3552 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
3553 * Makefile.in: Regenerate.
3554 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
3556 2000-04-14 Alan Modra <alan@linuxcare.com.au>
3558 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
3559 ~SEC_ALLOC sections too. Init start address of debug sections.
3560 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
3561 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
3562 Also set all relocateable section start addresses.
3564 2000-04-13 Geoff Keating <geoffk@cygnus.com>
3566 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
3567 Add new BSS_PLT variable for when .plt need not be contained in
3568 the file. Move _etext so that it is also after .fini, and provide
3569 both etext and _etext with a leading underscore. Mark the start
3572 2000-04-12 Alan Modra <alan@linuxcare.com.au>
3574 * emultempl/elf32.em (struct orphan_save): New.
3575 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
3576 hold_interp): Make them struct orphan_save.
3577 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
3578 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
3579 the end of the relevant section list. Also add associated section
3580 statements to the end of any previous orphan statements.
3581 * emultempl/armelf.em: Similarly.
3582 * emultempl/pe.em: Similarly.
3584 2000-04-11 Alan Modra <alan@linuxcare.com.au>
3586 * ld.texinfo (Simple Example): Remove extraneous paragraph.
3588 2000-04-07 Andrew Cagney <cagney@b1.cygnus.com>
3590 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
3591 --enable-build-warnings option.
3592 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
3593 * Makefile.in, configure: Re-generate.
3595 2000-04-04 Alan Modra <alan@linuxcare.com.au>
3597 * po/ld.pot: Regenerate.
3599 * lexsup.c (help): Restore translated part of bug string.
3601 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
3602 (DEP): Quote when passing vars to sub-make. Add warning message
3604 (DEP1): Rewrite for "gcc -MM".
3605 (CLEANFILES): Add DEP2.
3606 Update dependencies.
3607 * Makefile.in: Regenerate.
3609 2000-04-03 Alan Modra <alan@linuxcare.com.au>
3611 * ld.h: #include "bin-bugs.h"
3612 * lexsup.c (help): Use REPORT_BUGS_TO.
3614 2000-03-27 Denis Chertykov <denisc@overta.ru>
3616 * configure.tgt (avr-*-*): New target support.
3617 * Makefile.am: Likewise.
3618 * scripttempl/elf32avr.sc: New script file.
3619 * emulparams/avr1200.sh: New file.
3620 * emulparams/avr23xx.sh: New file.
3621 * emulparams/avr4433.sh New file.
3622 * emulparams/avr44x4.sh New file.
3623 * emulparams/avr85xx.sh New file.
3624 * emulparams/avrmega103.sh New file.
3625 * emulparams/avrmega161.sh New file.
3626 * emulparams/avrmega603.sh New file.
3627 * Makefile.in: Regenerate.
3629 2000-03-09 Andreas Jaeger <aj@suse.de>
3631 * Makefile.am (check-DEJAGNU): Also unset LANG.
3632 * Makefile.in: Rebuild.
3634 2000-03-06 Ian Lance Taylor <ian@zembu.com>
3636 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
3639 2000-03-02 H.J. Lu <hjl@gnu.org>
3641 * emulparams/elf32mcore.sh: Include "getopt.h".
3643 2000-03-01 Ian Lance Taylor <ian@zembu.com>
3645 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
3647 2000-03-01 H.J. Lu <hjl@gnu.org>
3649 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
3650 * emulparams/shpe.sh: Likewise.
3652 2000-03-01 Nick Clifton <nickc@cygnus.com>
3654 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
3655 to unused parameters.
3657 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
3658 functions only used by DLL code.
3659 (_place_orphan): Initialise 'dollar'.
3661 2000-03-01 H.J. Lu <hjl@gnu.org>
3663 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
3664 indicate if the undefined symbol is a fatal error or not.
3665 Don't delete the output file if "fatal" is false.
3667 2000-02-29 H.J. Lu <hjl@gnu.org>
3669 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
3670 Set LC_COLLATE and LC_ALL to null and export them. It is for
3671 sort which expects the C locale.
3672 Add $(LIBS) to all $(HOSTING_LIBS).
3673 * Makefile.in: Rebuild.
3675 2000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
3677 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
3678 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
3679 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
3680 (ld_emulation_xfer_struct): Add missing NULL initialiser for
3681 find_potential_libraries.
3683 2000-02-28 Jim Blandy <jimb@redhat.com>
3685 * ldgram.y (exclude_name_list): Don't require a comma to separate
3686 list entries; the lexer considers commas to be valid part of a
3687 filename, so in something like `foo, bar' the comma is considered
3688 part of the first filename, `foo,'.
3689 * ld.texinfo: Update section on EXCLUDE_FILE lists.
3691 2000-02-27 Loren J. Rittle <ljrittle@acm.org>
3693 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
3694 host "i[3456]86-*-freebsdelf*".
3696 2000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
3698 * scripttempl/i386go32.sc: Move misplaced semicolons.
3700 2000-02-25 Ian Lance Taylor <ian@zembu.com>
3702 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
3703 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
3704 (eelf64hppa.c, ehppaelf.c): Remove targets.
3705 * Makefile.in: Rebuild.
3707 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
3709 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
3710 GNU/Linux/sparc, but keep the default as 32.
3712 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
3713 it default if sparcv9 or sparc64.
3715 2000-02-24 Nick Clifton <nickc@cygnus.com>
3717 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
3718 * Makefile.in: Regenerate.
3719 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
3721 * ldemul.h (ld_emulation_xfer_struct): Add new field:
3722 find_potential_libraries.
3723 * ldemul.c (ldemul_find_potential_libraries): New function.
3725 * ldfile.c (ldfile_open_file_search): Allow function to be
3727 (ldfile_open_file): Call ldemul_find_potential_libraries.
3728 * ldfile.h: Add prototype for ldfile_open_file_search.
3730 * pe-dll.c: Add support for ARM, MIPS and SH targets.
3732 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
3733 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
3735 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
3736 (gld_X_find_potential_libraries): New function. Search for
3737 libraries called "*.lib".
3739 * scripttempl/pe.sc: Add .pdata section.
3741 2000-02-23 Richard Henderson <rth@cygnus.com>
3743 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
3744 Add and use memory regions.
3746 2000-02-23 Linas Vepstas (linas@linas.org)
3748 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
3750 * Makefile.am: Add support for Linux/IBM 370.
3751 * configure.tgt: Likewise.
3753 * Makefile.in: Regenerate.
3755 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
3757 * ldlang.c (print_input_section, print_data_statement,
3758 print_reloc_statement, print_padding_statement, insert_pad,
3759 size_input_section, lang_check_section_addresses,
3760 lang_size_sections, lang_do_assignments, lang_set_startof,
3761 lang_one_common): Change `opb' to unsigned.
3762 (lang_do_assignments): Also change `size' to unsigned.
3764 2000-02-16 Richard Henderson <rth@cygnus.com>
3766 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
3768 2000-02-16 Timothy Wall <twall@cygnus.com>
3770 * mri.c (mri_draw_tree): Add default LMA region argument to call
3771 to lang_leave_output_section_statement.
3772 * ldlang.h: Update prototypes with LMA region arguments.
3773 * ldlang.c (lang_size_sections): Encapsulate region bounds
3774 checking in os_check_region call.
3775 (os_check_region): New function.
3776 (lang_output_section_statement_lookup): Initialize lma_region.
3777 (lang_leave_output_section_statement): Add LMA region argument.
3778 (lang_leave_overlay): Ditto.
3779 * ldgram.y: Handle LMA region syntax.
3780 * ld.texinfo (Output Section Description): Describe LMA region usage.
3781 * emultempl/armelf.em (gld$place_orphan): Add default value for
3782 lma region in call to lang_leave_output_section_statement.
3783 * emultempl/elf32.em (gld$place_orphan): Add default value for
3784 lma region in call to lang_leave_output_section_statement.
3785 * emultempl/pe.em (gld$place_orphan): Add default value for
3786 lma region in call to lang_leave_output_section_statement.
3789 2000-02-04 Timothy Wall <twall@redhat.com>
3791 * ldlang.c (lang_check_section_addresses): Use bytes instead of
3792 octets when calculating section end addresses.
3794 2000-02-04 Timothy Wall <twall@redhat.com>
3796 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
3798 2000-02-03 Timothy Wall <twall@redhat.com>
3800 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
3802 * ldlang.c (print_input_section, print_data_statement,
3803 print_reloc_statement, print_padding_statement): Print target
3804 address values and section sizes as bytes, not octets.
3805 (insert_pad) Calculate padding size in octets, and adjust "dot"
3807 (size_input_section) Always adjust "dot" by bytes, not octets.
3808 (lang_check_section_addresses, lang_do_assignments) Adjust
3809 "dot" by bytes, not octets. Use the larger of the directive size
3810 or octets_per_byte for the number of octets actually allocated in
3812 (lang_set_startof) Make sure STARTOF returns a target address.
3813 (lang_one_common) Record size changes in octets.
3814 (lang_abs_symbol_at_end_of) Section end symbol's value is
3815 recorded in target bytes.
3816 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
3817 to be clear about behavior when an octet is smaller than one byte.
3819 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
3821 * ldcref.c (output_cref): Don't pass message strings to printf
3825 * ldmisc.c (vfinfo): Same here.
3828 2000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
3830 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
3831 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
3832 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
3833 Add missing NULL initialisers, and comments.
3835 * testsuite/ld-srec/sr3.cc (__rethrow): New.
3837 2000-01-21 Nick Clifton <nickc@cygnus.com>
3839 * ldlang.c (lang_size_sections): Fix typo in comment.
3841 2000-01-18 H.J. Lu <hjl@gnu.org>
3843 * ldlang.c (lang_size_sections): Also update the current
3844 address of a region if the SEC_NEVER_LOAD bit is not set.
3846 2000-01-10 Philip Blundell <pb@futuretv.com>
3848 * configure.tgt (arm*-*-conix*): New target.
3850 2000-01-07 Nick Clifton <nickc@cygnus.com>
3852 * ld.texinfo (Options): Remind users to preceed linker command
3853 line switches with -Wl, (or whatever is appropriate) if it is
3854 being invoked by a comnpiler driver program.
3855 Fix description of the behaviour of the -n command line switch.
3857 2000-01-05 Catherine Moore <clm@cygnus.com>
3859 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
3861 * ld.texinfo (EXCLUDE_FILE): Update documentation.
3862 * ldgram.y (wildcard_spec): Support a list of excluded_files.
3863 (exclude_name_list): New.
3864 ldlang.c (walk_wild_section): Support list of excluded files.
3865 (print_wild_statement): Likewise.
3866 (lang_add_wild): Likewise.
3867 * ldlang.h (lang_wild_statement_type): Likewise.
3868 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
3870 2000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
3872 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
3873 (process_def_file): Use.
3874 (pe_dll_compat_implib): New variable.
3877 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
3878 pe_dll_compat_implib.
3880 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
3881 compat-implib options.
3882 (gld_${EMULATION_NAME}_list_options): List new options.
3883 (gld_${EMULATION_NAME}_parse_args): Handle.
3885 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
3888 * deffilep.y (opt_name): Allow "." in name.
3890 For older changes see ChangeLog-9899
3896 version-control: never