1 2002-04-08 Alan Modra <amodra@bigpond.net.au>
3 * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.
5 2002-04-07 matthew green <mrg@redhat.com>
7 * ld/configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
9 2002-04-04 Alan Modra <amodra@bigpond.net.au>
11 * dep-in.sed: Cope with absolute paths.
12 * Makefile.am (dep.sed): Subst TOPDIR and BFDDIR.
14 * Makefile.in: Regenerate.
16 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
18 * emulparams/elf64btsmip.sh: n64 replaces .reginfo with .MIPS.options.
20 2002-04-03 Jakub Jelinek <jakub@redhat.com>
22 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size
23 is smaller than maximum, round dot up to common page boundary.
25 2002-03-28 Alan Modra <amodra@bigpond.net.au>
27 * configure.host: Set up for generic hosts first, then tweak as
28 necessary in more specific targets.
29 (HOSTING_LIBS): Include libgcc_eh.a if found.
31 2002-03-23 Andreas Jaeger <aj@suse.de>
33 * emulparams/elf_x86_64.sh (COMMONPAGESIZE): Set it.
35 2002-03-21 Alan Modra <amodra@bigpond.net.au>
37 * Makefile.am: Run "make dep-am".
38 * Makefile.in: Regenerate.
40 2002-03-21 Albert Chin-A-Young <china@thewrittenword.com>
42 * genscripts.sh (LIB_SEARCH_DIRS): Quote path.
44 2002-03-20 Alan Modra <amodra@bigpond.net.au>
46 * ldlang.c (ldlang_add_undef): If the output bfd has been opened,
47 add the symbol to the linker hash table immediately.
48 (lang_place_undefineds): Split symbol creation out..
49 (insert_undefined): ..to here.
51 2002-03-18 David O'Brien <obrien@FreeBSD.org>
53 * emultempl/elf32.em: Use lbasename vs. basename to fix problem where
54 the contents of the buffer returned from basename function will are
55 getting overwritten while still being used.
57 Mon Mar 18 17:38:39 CET 2002 Jan Hubicka <jh@suse.cz>
58 Andreas Jaeger <aj@suse.de>
59 Andreas Schwab <schwab@suse.de>
61 * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native.
62 * elf_x86_64.sh (ARCH): Set to i386:x86-64
63 set libraries to default to lib64 paths.
65 2002-03-18 Tom Rix <trix@redhat.com>
67 * Makefile.am : Add eaix5ppc and eaix5rs6, AIX 5 support.
68 * configure.tgt : Same.
69 * emulparms/aix5ppc.sh : New file. For eaix5ppc.
70 * emulparms/aix5rs6.sh : New file. For eaix5rs6.
71 * emulparms/aixppc.sh : OUPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT
72 emulation parameters for better -b32, -b64 support.
73 * emulparms/aixrs6.sh : Same.
74 * emulparms/ppcmacos.sh : Same.
75 * emultempl/aix.em (choose_target) : Use new emulation parameters
76 OUTPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT.
77 * Makefile.in : Regenerate.
79 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
81 * po/fr.po: Updated version.
83 2002-03-18 Alan Modra <amodra@bigpond.net.au>
85 * ldmain.c (main): Move .text readonly flag fudges from here..
86 * ldlang.c (lang_process): ..to here.
88 2002-03-14 Alan Modra <amodra@bigpond.net.au>
90 * ldlang.c (lang_check): Remove the word size check added in last
91 change. Treat emitrelocations case as for relocatable links.
93 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
95 * po/fr.po: Updated version.
97 2002-03-13 Alan Modra <amodra@bigpond.net.au>
99 * ldlang.c (lang_check): Do relocatable link checks first, so that
100 warn_mismatch can't override. Check compatible and word size too.
102 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
104 * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
106 2002-03-05 Jakub Jelinek <jakub@redhat.com>
108 * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
111 2002-03-04 H.J. Lu <hjl@gnu.org>
113 * scripttempl/elf.sc: Put .preinit_array, .init_array and
114 .fini_array in the data segment.
116 2002-03-04 Alan Modra <amodra@bigpond.net.au>
118 * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
120 2002-03-01 David Mosberger <davidm@hpl.hp.com>
122 * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
123 .init_array, and .fini_array.
125 2002-02-20 Andreas Schwab <schwab@suse.de>
127 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
128 .IA64_unwind* in a relocatable link.
130 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
132 * NEWS: Mark 2.12 branch.
134 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
136 * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
137 * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
139 2002-02-18 Tom Rix <trix@redhat.com>
141 * emultempl/aix.em (gld*_parse_args): Add -brtl support.
142 (gld*_before_allocation): Same.
143 (gld*_create_output_section_statements): Generate
144 __rtinit if run time linking. Add librtl.a to the link.
145 (gld*_read_file): Clean.
147 2002-02-18 Alan Modra <amodra@bigpond.net.au>
149 * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
151 2002-02-18 David O'Brien <obrien@FreeBSD.org>
153 * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
154 eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
155 and eelf64alpha_fbsd.
156 * Makefile.in: Regenerate.
157 * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
158 x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
159 use a FreeBSD-specific emulation rather than the psABI one.
160 * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
161 for all FreeBSD ELF systems.
162 * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
164 * emulparams/elf32ppc_fbsd.sh: Likewise.
165 * emulparams/elf64_ia64_fbsd.sh: Likewise.
166 * emulparams/elf64_sparc_fbsd.sh: Likewise.
167 * emulparams/elf64alpha_fbsd.sh: Likewise.
168 * emulparams/elf_i386_fbsd.sh: Likewise.
169 * emulparams/elf_x86_64_fbsd.sh: Likewise.
171 2002-02-18 Nick Clifton <nickc@cambridge.redhat.com>
173 * po/tr.po: Updated version.
175 2002-02-18 Alan Modra <amodra@bigpond.net.au>
177 * ld.texinfo (Output Section Fill): Fix amateur texinfo.
180 2002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
182 * emultempl/mmo.em (mmo_after_open): Don't call
183 _bfd_mmix_check_all_relocs when producing ELF output.
185 2002-02-15 Richard Henderson <rth@redhat.com>
187 * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
188 definition. Emit a unop+nop pair.
190 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
192 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
193 for presence of .MMIX.reg_contents.linker_allocated before early
196 * NEWS: Mention support for MMIX.
198 2002-02-15 Alan Modra <amodra@bigpond.net.au>
200 Support arbitrary length fill patterns.
201 * ld.texinfo (Output Section Fill): Describe fill expressions.
202 (FILL): Refer to the above.
203 * ldexp.h (etree_value_type): Add "str" field.
204 (union etree_union): Add "str" to "value" struct.
205 (exp_bigintop): Declare.
206 (exp_get_fill): Declare.
207 * ldexp.c: Include "safe-ctype.h".
208 (exp_intop): Set value.str to NULL.
209 (exp_bigintop): New function.
210 (new_rel): Pass in "str", and set new.str from it.
211 (new_rel_from_section): Set new.str to NULL.
212 (fold_name): Adjust calls to new_rel.
213 (exp_fold_tree): Likewise.
214 (exp_get_fill): New function.
215 * ldgram.y (struct big_int bigint, fill_type *fill): New.
216 (INT): Returns a "bigint". Adjust all code handling INTs.
217 (fill_opt): Returns a "fill".
218 (fill_exp): Split out of fill_opt, use for FILL.
219 * ldlang.h (struct _fill_type): New.
220 (fill_type): Move typedef to ldexp.h.
221 (lang_output_section_statement_type): "fill" is now a pointer.
222 (lang_fill_statement_type): Likewise.
223 (lang_padding_statement_type): Likewise.
224 (lang_add_fill): Now takes a "fill_type *" param.
225 (lang_leave_output_section_statement): Likewise.
226 (lang_do_assignments): Likewise.
227 (lang_size_sections): Likewise.
228 (lang_leave_overlay_section): Likewise.
229 (lang_leave_overlay): Likewise.
230 * ldlang.c: Include ldgram.h after ldexp.h.
231 (lang_output_section_statement_lookup): Adjust for fill_type change.
232 (print_fill_statement): Likewise.
233 (print_padding_statement): Likewise.
234 (insert_pad): Now takes a "fill_type *" arg.
235 (size_input_section): Likewise.
236 (lang_size_sections_1): Likewise.
237 (lang_size_sections): Likewise.
238 (lang_do_assignments): Likewise.
239 (lang_add_fill): Likewise.
240 (lang_leave_output_section_statement): Likewise.
241 (lang_leave_overlay_section): Likewise.
242 (lang_leave_overlay): Likewise.
243 Adjust all callers of the above function.
244 * ldlex.l: Include ldgram.h after ldexp.h. Allow hex numbers
245 starting with "0X" as well as "0x". Return bigint.str for hex
246 numbers starting with "0x" or "0X", zero bigint.str otherwise.
247 Always use base 16 for numbers starting with "$".
248 * ldmain.c: Include ldgram.h after ldexp.h.
249 * ldwrite.c (build_link_order): Use bfd_data_link_order in place
250 of bfd_fill_link_order.
251 * pe-dll.c: Adjust lang_do_assignments calls.
252 * emultempl/elf32.em: Likewise.
253 * emultempl/hppaelf.em: Likewise.
254 * emultempl/ppc64elf.em: Likewise.
255 * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
256 lang_add_assignment call.
257 * emultempl/pe.em: Likewise.
259 2002-02-14 Phil Edwards <pme@gcc.gnu.org>
261 * ld.texinfo (VERSION scripts): Symbol names are globbing patterns.
262 * ldgram.y (lang_new_vers_regex): Rename to lang_new_vers_pattern;
263 the pattern in question is not a regexp.
264 * ldlang.c: Likewise.
265 * ldlang.h: Likewise.
266 * ldlex.l (V_IDENTIFIER): Allow '[', ']', '-', '!', and '^' also.
268 2002-02-12 Jakub Jelinek <jakub@redhat.com>
270 * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
271 * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
272 (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
273 * ldexp.c (exp_data_seg): New variable.
274 (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
275 (fold_binary): Handle DATA_SEGMENT_ALIGN.
276 (exp_fold_tree): Handle DATA_SEGMENT_END.
277 Pass allocation_done when recursing instead of hardcoding
278 lang_allocating_phase_enum.
279 * ldexp.h (exp_data_seg): New.
280 * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
281 (lang_size_sections): New.
282 * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
283 * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
284 if COMMONPAGESIZE is defined.
285 * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
286 * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
287 * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
288 * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
289 * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
292 2002-02-11 Alan Modra <amodra@bigpond.net.au>
294 * Makefile.in: Regenerate.
296 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
298 * lexsup.c: Remove strtoul declaration.
300 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
302 * ldmain.c: Add prototype for main ().
303 * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
304 * emultempl/lnk960.em (lnk960_choose_target): Function should
307 2002-02-10 Alan Modra <amodra@bigpond.net.au>
309 * ldlang.c (entry_section): New initialised variable.
310 (lang_finish): Use it.
311 * ldlang.h (entry_section): Declare.
312 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
313 entry_section to ".opd".
315 2002-02-09 Chris Demetriou <cgd@broadcom.com>
317 * ld.texinfo (Options): Add back in -nostdlib documentation,
318 which had been inadvertently removed.
320 2002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
322 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
323 register section vma to a sane value after emitting error. Make
324 fatal conditions cause program exit when emitting message.
326 2002-02-08 Ivan Guzvinec <ivang@opencores.org>
328 * configure.tgt: Add or32-*-rtems target.
330 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
333 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
334 * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
335 in OTHER_RELOCATABLE_SECTIONS.
336 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
337 * emulparams/shelf32.sh (STACK_ADDR): Define.
338 (OTHER_RELOCATABLE_SECTIONS): Renamed to...
339 (OTHER_SECTIONS): this. Removed stack settings.
340 * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
341 (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
342 2001-03-12 DJ Delorie <dj@redhat.com>
343 * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
344 relaxing if any shmedia or mixed sections are found.
345 2001-03-07 DJ Delorie <dj@redhat.com>
346 * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
347 einfo. Gracefully decline to output to non-elf formats.
348 2001-03-06 Hans-Peter Nilsson <hpn@redhat.com>
349 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
350 Default to _end aligned to next multiple of 0x40000, plus 0x40000.
351 * emulparams/shelf32.sh: Ditto.
352 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
353 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
355 2001-01-10 Ben Elliston <bje@redhat.com>
356 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
357 non-portable shell constructs. From Hans-Peter Nilsson.
358 2001-01-09 Hans-Peter Nilsson <hpn@cygnus.com>
359 * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
360 * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
361 dependencies to the shell script include chain.
362 * Makefile.in: Regenerate.
363 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
364 * emultempl/sh64elf.em: Update and tweak comments.
365 (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
366 make a .cranges section SEC_IN_MEMORY.
367 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
368 * emultempl/sh64elf.em
369 (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
370 .cranges section found to be necessary; continue and set stored
371 section contents flags for sections with non-mixed contents.
372 Use a struct sh64_section_data container and sh64_elf_section_data
373 to store contents-type flags.
374 Remove unused update of "isec".
375 (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
376 sections marked SHF_SH5_ISA32_MIXED. Use sh64_elf_section_data to
377 access contents-type flags. Assert that the associated container
378 is initialized. Use that container, not elf_gp_size, to hold size
379 of linker-generated cranges contents.
380 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
381 * emultempl/sh64elf.em
382 (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
383 there's already a .cranges section. When section flag difference
384 is found, don't NULL-check cranges a second time. Tweak comments.
385 (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
386 merging, not max size, as size of ld-generated .cranges contents.
387 Don't set ELF section flags in output section. When checking for
388 needed .cranges descriptors, don't use a variable; compare
389 incoming ELF section flags directly to SHF_SH5_ISA32_MIXED. Tweak
391 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
392 * emultempl/sh64elf.em: New file.
393 * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
394 * Makefile.in: Regenerate.
395 * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
396 (OTHER_RELOCATING_SECTIONS): Ditto.
397 (EXTRA_EM_FILE): New, set to sh64elf if not set.
398 * emulparams/shlelf32.sh: Stub out all settings except
399 OUTPUT_FORMAT. Source shelf32.sh.
400 * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
401 OTHER_RELOCATING_SECTIONS.
402 (OTHER_RELOCATING_SECTIONS): Remove .cranges.
403 * emulparams/shlelf64.sh: Stub out all settings except
404 OUTPUT_FORMAT. Source shelf64.sh.
405 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
406 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
408 (DATA_START_SYMBOLS): Define, provide ___data.
409 (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
410 for consecutive .data section.
411 (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
412 section after .data section.
413 * emulparams/shlelf64.sh: Ditto.
414 * emulparams/shelf32.sh: Ditto.
415 (ALIGNMENT): Define to 8.
416 * emulparams/shelf32.sh: Ditto.
417 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
418 * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
419 built-in linker scripts.
420 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
421 * emulparams/shlelf64.sh: New.
422 * emulparams/shelf64.sh: New.
423 * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
425 * Makefile.am: Add support for shlelf64 and shelf64.
426 * Makefile.in: Regenerate.
427 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
428 * configure.tgt (sh64-*-elf*): Add shelf as default.
429 Add shlelf to targ_extra_emuls.
430 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
431 * emulparams/shelf32.sh: New file.
432 * emulparams/shlelf32.sh: New file.
433 * Makefile.am: Add support for shlelf32 and shelf32.
434 * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
435 * Makefile.in: Regenerate.
437 2002-02-05 Hans-Peter Nilsson <hp@axis.com>
439 * ldlang.c (lang_reset_memory_regions): Rename from
440 reset_memory_regions. Change all callers. Make public.
441 * ldlang.h (lang_reset_memory_regions): Prototype.
442 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
443 lang_reset_memory_regions before lang_size_sections.
444 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
445 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
447 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
449 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
450 arithmetic when checking for too many global registers.
452 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
454 * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
455 (ehppanbsd.c): New rule.
456 * Makefile.in: Regenerate.
457 * configure.tgt (hppa*-*-netbsd*): New target.
458 * emulparams/hppalinux.sh: Add comment to check other files
459 that source this file it is modified, and list which
461 * emulparams/hppanbsd.sh: New file.
463 2002-02-01 Geoffrey Keating <geoffk@redhat.com>
465 * scripttempl/xstormy16.sc: Don't allocate extra space for the
468 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
470 Support on-demand global register allocation from
471 R_MMIX_BASE_PLUS_OFFSET relocs.
472 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
473 mmix_set_reg_section_vma. Call
474 _bfd_mmix_finalize_linker_allocated_gregs.
475 (mmix_before_allocation): New function.
476 (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
477 (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
478 * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
479 (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
480 before .MMIX.reg_contents.
481 * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
482 (mmo_after_open): New function.
483 (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
484 * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting. Add
485 .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
487 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
489 * emulparams/or32.sh: New file.
490 * emulparams/or32elf.sh: New file.
491 * scripttempl/or32.sc: New file.
492 * configure.tgt : Add support for or32.
493 * configure: Regenerate
494 * Makefile.am: Add support for or32.
495 * Makefile.in: Regenerate.
496 * NEWS: Mention support for or32.
497 * po/ld.pot: Regenerate.
499 2002-01-29 Chris Demetriou <cgd@broadcom.com>
500 Mitch Lichtenberg <mpl@broadcom.com>
502 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
503 * emultempl/mipself.em: New file to handle MIPS ELF embedded
504 reloc creation (ld --embedded-relocs).
506 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
508 * configure: Regenerated.
510 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
512 * Makefile.am (install): Depend on install-info.
513 * Makefile.in: Regenerate.
515 2002-01-26 Christian Rose <menthos@menthos.com>
517 * ldmain.c (main): Use full sentences to ease translation.
519 2002-01-26 Nick Clifton <nickc@cambridge.redhat.com>
521 * po/fr.po: Updated version.
523 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
525 * po/es.po: Updated version.
527 2002-01-25 Andreas Jaeger <aj@suse.de>
529 * ldlex.l (yy_input): Correct error check.
531 2002-01-25 Alan Modra <amodra@bigpond.net.au>
533 * ldmisc.c (demangle): Put back dots when string not demangled.
535 2002-01-22 Richard Henderson <rth@redhat.com>
537 * emulparams/elf64alpha.sh (NOP): Use unop.
539 2002-01-21 Andreas Jaeger <aj@suse.de>
541 * ldlex.l: Use fread instead of read.
543 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
545 * configure.tgt (ia64-*-netbsd*): New target.
547 2002-01-21 H.J. Lu <hjl@gnu.org>
549 * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
551 * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
553 2002-01-18 Andreas Jaeger <aj@suse.de>
555 * ldver.c (ldversion): Update year.
557 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
559 * po/ld.pot: Regenerate.
561 2002-01-16 Alan Modra <amodra@bigpond.net.au>
563 * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
564 * Makefile.in: Regenerate.
565 * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
566 * emultempl/ppc64elf.em: New file.
568 2002-01-15 DJ Delorie <dj@redhat.com>
570 * scripttempl/pe.sc: Add support for constructor priorities.
572 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
574 * emulparams/avr1200.sh (DATA_START): Define as 0x60.
575 * emulparams/avr23xx.sh: Likewise.
576 * emulparams/avr4433.sh: Likewise.
577 * emulparams/avr44x4.sh: Likewise.
578 * emulparams/avr85xx.sh: Likewise.
579 * emulparams/avrmega103.sh: Likewise.
580 * emulparams/avrmega161.sh: Likewise.
581 * emulparams/avrmega603.sh: Likewise.
582 * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
584 2002-01-08 Alexandre Oliva <aoliva@redhat.com>
586 * ldlang.c (walk_wild_section): Exclude object file if enclosing
589 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
591 * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
592 (eshelf_nbsd.c): New rule.
593 (eshlelf_nbsd.c): New rule.
594 * Makefile.in: Regenerate.
595 * configure.tgt (sh*le-*-netbsdelf*): New target.
596 (sh*-*-netbsdelf*): New target.
597 * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
598 * ld/emulparams/shelf_nbsd.sh: New emulation.
599 * ld/emulparams/shlelf_nbsd.sh: New emulation.
601 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
603 * po/es.po: New file: Spanish translation.
604 * configure.in (ALL_LINGUAS): Add es.
605 * configure: Regenerate.
607 2002-01-06 John Marshall <jmarshall@acm.org>
609 * ld.texinfo: Note that --emit-relocs is currently only
612 2002-01-05 Alan Modra <amodra@bigpond.net.au>
614 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
615 of bfd_section_list_remove and bfd_section_list_insert macros.
616 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
617 * emultempl/mmo.em (mmo_place_orphan): Likewise.
619 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
621 * configure.tgt (x86_64-*-netbsd*): New target.
623 2001-12-21 Tom Rix <trix@redhat.com>
625 (gld*_create_output_section_statements): New function.
626 For -binitfini support.
627 * emultempl/aix.em (gld*_before_parse): Fix comment.
628 * emultempl/aix.em (gld*_parse_args): Fix comment.
630 2001-12-20 Jason Thorpe <thorpej@wasabisystems.com>
632 * configure.tgt (mips*-dec-netbsd*): Delete alias for
634 (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
636 * configure.tgt (arm-*-netbsdelf*): Add target.
637 (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
638 * emulparams/armelf_nbsd.sh: Added.
639 * Makefile.am: Add rules for earmelf_nbsd.
640 * Makefile.in: Regenerate.
642 2001-12-19 Andreas Jaeger <aj@suse.de>,
643 Susanne Oberhauser <froh@suse.de>
645 * configure.host: Add rules for x86_64-*linux-gnu. Change
646 s390x-linux entry to use gcc to report configuration, replace gcc
647 with $CC in s390-linux
649 2001-12-19 Andreas Jaeger <aj@suse.de>
651 * ld.texinfo (VERSION): Fix markup.
653 2001-12-18 matthew green <mrg@eterna.com.au>
655 * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
656 (m68kelfnbsd.c): New rule.
657 * Makefile.in: Regenerate.
658 * configure.tgt (m68*-hp-netbsd*): Renamed to ..
659 (m68*-*-netbsd*4k*): .. this.
660 (m68*-*-netbsdelf*): New target.
661 (m68*-*-netbsd*): Also include ELF support.
662 (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
663 * emulparams/m68kelfnbsd.sh: New emulation.
665 2001-12-18 Jakub Jelinek <jakub@redhat.com>
667 * ldgram.y (vers_node): Support anonymous version tags.
668 * ldlang.c (lang_register_vers_node): Ensure anonymous version
669 tag is not defined together with non-anonymous versions.
670 * ld.texinfo: Document it.
672 2001-12-18 Nick Clifton <nickc@cambridge.redhat.com>
674 * po/tr.po: New file: Turkish translation.
675 * configure.in (ALL_LINGUAS): Add tr.
676 * configure: Regenerate.
678 2001-12-17 Jason Thorpe <thorpej@wasabisystems.com>
680 * Makefile.am: Add rules for eelf64alpha_nbsd.
681 * Makefile.in: Regenerate.
682 * configure.tgt (alpha*-*-netbsd*): Set
683 targ_emul to elf64alpha_nbsd.
684 * emulparams/elf64alpha_nbsd.sh: Added.
686 2001-12-17 Alan Modra <amodra@bigpond.net.au>
688 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
689 section_tail when fiddling with section list.
690 (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
691 broken into separate strings to make translation easier.
692 * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
693 fiddling with section list.
694 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
696 2001-12-16 Hans-Peter Nilsson <hp@bitrange.com>
698 * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
700 2001-12-15 Alan Modra <amodra@bigpond.net.au>
702 * ldmain.c (main): Initialise link_info.eh_frame_hdr.
704 2001-12-13 Jakub Jelinek <jakub@redhat.com>
706 * emultempl/elf32.em (finish): Supply output_bfd
707 to bfd_elf*_discard_info.
708 (OPTION_EH_FRAME_HDR): Define.
709 (longopts): Add --eh-frame-hdr.
710 (parse_args): Handle it.
711 (list_options): Add --eh-frame-hdr to help.
712 * emultempl/hppaelf.em (finish): Supply output_bfd
713 to bfd_elf*_discard_info.
714 * scripttempl/elf.sc (.eh_frame_hdr): Add.
716 2001-12-13 Alan Modra <amodra@bigpond.net.au>
718 * lexsup.c (parse_args): Don't pass shortopts to second call to
719 getopt functions. Restore optind rather than decrementing before
720 second call. Remove errind as it now duplicates last_optind.
722 2001-12-11 Christopher Faylor <cgf@redhat.com>
724 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
726 2001-12-07 Geoffrey Keating <geoffk@redhat.com>
727 Richard Henderson <rth@redhat.com>
729 * Makefile.am: Add support for xstormy16.
730 * configure.tgt: Add support for xstormy16.
731 * Makefile.in: Regenerate.
732 * emulparams/elf32xstormy16.sh: New file.
733 * scripttempl/xstormy16.sc: New file.
735 2001-10-01 Christopher Faylor <cgf@cygnus.com>
737 * Makefile.in (LIB_PATH): Make configurable.
738 (GENSCRIPTS): Set LIB_PATH in environment.
739 * configure.in: Substitute LIB_PATH.
740 * configure: Regenerate.
741 * configure.tgt (*cygwin): Set LIB_PATH for cross build.
742 * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
744 2001-12-07 Nick Clifton <nickc@cambridge.redhat.com>
746 * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
747 describing the -N option so that it is easier to translate into
750 2001-12-05 Nick Clifton <nickc@cambridge.redhat.com>
752 * emultempl/pe.em (..._list_options): Replace multiple fprintf
753 statements describing a single option with a single, newline
754 escaped fprintf. This allows better translation into other
757 * ldmain.c (add_archive_element): Combine multiple strings
758 into a single string to permit better translation into other
761 2001-12-05 Tom Rix <trix@redhat.com>
763 * Makefile.am: Remove eaixppc64.
764 * Makefile.in: Regenerate.
766 2001-12-04 Tom Rix <trix@redhat.com>
768 * emultempl/aix.em (choose_target): Change default target to
769 OUTPUT_FORMAT for ppcmacos. Add braces to remove compiler
771 (gld*_read_file): Fix typo.
772 (change_symbol_mode): Add prototype.
775 * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
776 * emulparams/aixrs6.sh : Same.
777 * emulparams/ppcmacos.sh : Same.
778 * emulparams/aixppc64.sh : Delete file.
779 * emultempl/aix.em : Formatting changes.
781 2001-12-04 Hans-Peter Nilsson <hp@axis.com>
783 * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
784 (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
786 (OTHER_END_SYMBOLS): Fix formatting.
787 * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
788 (OTHER_END_SYMBOLS): Fix formatting.
790 2001-12-04 Alan Modra <amodra@bigpond.net.au>
792 * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
794 2001-12-02 Tom Rix <trix@redhat.com>
796 * configure.tgt : Remove eaixppc64 emulations.
797 * Makefile.in : Remove eaixppc64.c
798 * ldemul.c (ldemul_choose_target): New parameters argc, argv.
799 (ldemul_default_target): Same.
800 * emultempl/gld960.em (gld960_choose_target): Same.
801 * emultempl/gld960c.em (gld960_choose_target): Same.
802 * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
803 * emultempl/aix.em (is_syscall): syscall_mask now a variable.
804 * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
805 * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
806 * emultempl/aix.em (choose_target): New function. Handle emulation of
809 2001-11-27 H.J. Lu <hjl@gnu.org>
811 * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
812 * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
813 * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
814 * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
815 * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
816 * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
817 * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
818 * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
820 * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
823 (REL_SDATA): Likewise.
824 (REL_SBSS): Likewise.
825 (REL_SDATA2): Likewise.
826 (REL_SBSS2): Likewise.
827 (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
830 2001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
832 * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
834 * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
836 2001-11-22 H.J. Lu <hjl@gnu.org>
838 * Makefile.in: Regenerated with automake based on automake
841 2001-11-22 Alan Modra <amodra@bigpond.net.au>
843 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
844 (config.status): Delete rule.
845 Add extra dependencies to cover sourced emulparams files.
846 * Makefile.in: Regenerate.
848 * scripttempl/elf.sc: Order <section>, <section>.* and
849 corresponding linkonce sections as seen in input files.
850 Formatting fixes. Zero vma of all sections if not relocating.
851 (STACK): Define and insert if STACK_ADDR defined.
852 (OTHER_RELOCATING_SECTIONS): Delete.
853 (OTHER_END_SYMBOLS): Define.
854 (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
855 (OTHER_READWRITE_SECTIONS): Likewise.
856 (OTHER_GOT_SECTIONS): Likewise.
857 (OTHER_SDATA_SECTIONS): Likewise.
858 (OTHER_BSS_SECTIONS): Likewise.
859 * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
860 (OTHER_READWRITE_SECTIONS): Likewise.
861 * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
862 (OTHER_READWRITE_SECTIONS): Likewise
864 * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
865 (STACK_ADDR): Define.
866 * emulparams/armelf_oabi.sh: As for armelf.sh.
867 * emulparams/elf32mcore.sh: As for armelf.sh.
868 * emulparams/h8300elf.sh: As for armelf.sh.
869 * emulparams/mn10200.sh: As for armelf.sh.
870 * emulparams/shelf.sh: As for armelf.sh.
872 * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
873 (OTHER_END_SYMBOLS): Define.
874 * emulparams/m32relf.sh: As for elf32fr30.sh.
875 * emulparams/h8300helf.sh: As for elf32fr30.sh.
876 * emulparams/h8300self.sh: As for elf32fr30.sh.
878 * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
879 defines with RELOCATING test.
880 (OTHER_SDATA_SECTIONS): Likewise.
881 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
882 (OTHER_END_SYMBOLS): ..this.
883 * emulparams/crislinux.sh: As for criself.sh.
885 * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
887 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
888 (OTHER_SECTIONS): ..this. Zero vma if not relocating. Order
889 normal and linkonce sections as seen in input files.
890 * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
891 (TEXT_DYNAMIC): Likewise.
892 (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
893 (OTHER_SDATA_SECTIONS): Likewise.
894 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
895 * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
896 * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
897 * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
898 * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
899 (OTHER_PLT_RELOC_SECTIONS): Likewise.
900 (OTHER_READONLY_SECTIONS): Likewise. Order normal and linkonce
901 sections as seen in input files.
902 * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
903 * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
905 (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
906 (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
907 * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
908 (OTHER_SECTIONS): Instead, use this..
909 (OTHER_END_SYMBOLS): ..and this.
911 * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
912 * emulparams/elf32bsmip.sh: Likewise.
913 * emulparams/elf32btsmip.sh: Likewise.
914 * emulparams/elf32ebmip.sh: Likewise.
915 * emulparams/elf32lmip.sh: Likewise.
916 * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
917 * emulparams/elf32lsmip.sh: Likewise.
918 * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
919 * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
920 * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
921 * emulparams/elf64btsmip.sh: Likewise.
922 * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
923 * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
924 * emulparams/elf32ppclinux.sh: Likewise.
925 * emulparams/elf32ppcsim.sh: Likewise.
926 * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
927 * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
928 * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
929 * emulparams/h8300self.sh: Likewise.
930 * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
931 * emulparams/sh.sh: Comment.
932 * emulparams/shl.sh: Source sh.sh, remove duplicates.
933 * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
934 * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
936 2001-11-21 David Heine <dlheine@tensilica.com>
937 Alan Modra <amodra@bigpond.net.au>
939 * ldlang.c (map_input_to_output_sections): Replace "break"
940 accidentally removed with 2001-08-03 change.
941 (lang_gc_sections_1): Likewise.
943 2001-11-21 Alan Modra <amodra@bigpond.net.au>
945 * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
947 2001-11-20 Angela Marie Thomas <angela@redhat.com>
949 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
950 of false when calling lang_size_sections.
951 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
953 2001-11-15 Alan Modra <amodra@bigpond.net.au>
955 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
956 function when LDEMUL_FINISH isn't set to the same name. Don't
957 call ${LDEMUL_FINISH}.
958 (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
959 * emultempl/armelf.em (arm_elf_finish): Call
960 gld${EMULATION_NAME}_finish.
961 * emultempl/hppaelf.em (hppaelf_finish): Rename to
962 gld${EMULATION_NAME}_finish. Call bfd_elf32_discard_info and
963 hppaelf_layout_sections_again if necessary.
964 (need_laying_out): New var.
965 (hppaelf_layaout_sections_again): Rename to
966 hppaelf_layout_sections_again. Clear need_laying_out.
967 (PARSE_AND_LIST_OPTIONS): Format text.
969 2001-11-14 H.J. Lu <hjl@gnu.org>
971 * emultempl/armelf.em (arm_elf_finish): Renamed from
972 gld${EMULATION_NAME}_finish.
973 (LDEMUL_FINISH): Set to arm_elf_finish.
975 2001-11-14 Daniel Jacobowitz <drow@mvista.com>
977 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
978 (struct ld_emulation_xfer_struct): Use it.
980 2001-11-13 Ross Alexander <ross.alexander@uk.neceur.com>
982 * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
983 additional symbols referenced by newer crt0.o files from HP.
985 2001-11-12 Anthony Green <green@redhat.com>
987 * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
989 2001-11-12 Alfred M. Szmidt <ams@kemisten.nu>
991 * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
992 * Makefile.in: Regenerate.
994 2001-11-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
996 * ld.texinfo: Use @command for commands, @option for options.
997 * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
999 * Makefile.in: Rebuild.
1001 2001-11-04 Chris Demetriou <cgd@broadcom.com>
1003 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
1004 Add support for targets.
1006 2001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
1008 * configure.in (ALL_LINGUAS): Add "fr" and "sv"
1009 * configure: Regernate.
1010 * po/fr.po: New file.
1011 * po/sv.po: New file.
1013 2001-11-01 NIIBE Yutaka <gniibe@m17n.org>
1015 * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
1016 as little endian default and to support big endian.
1018 2001-11-01 Chris Demetriou <cgd@broadcom.com>
1020 * ld.texinfo (Options): Document new option, -nostdlib.
1021 * lexsup.c (OPTION_NOSTDLIB): New definition.
1022 (ld_options): Add entry for "nostdlib".
1023 (parse_args): Handle OPTIONS_NOSTDLIB.
1024 * ldfile.c (ldfile_add_library_path): Don't add directories
1025 to the search path if they weren't specified on the command line
1026 and -nostdlib was specified.
1027 * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
1029 2001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
1031 * lexsup.c (parse_args): Prevent infinite parsing loop when
1032 "-rpath.a" is specified on the command line.
1033 Replace calls to fprintf with calls to einfo.
1035 2001-10-31 John Marshall <jmarshall@acm.org>
1037 * ld.texinfo: A historical requirement that MEMORY and SECTIONS
1038 appear only once across all the linker scripts involved in a link
1039 invocation no longer applies. Make the documentation reflect
1042 2001-10-31 NIIBE Yutaka <gniibe@m17n.org>
1044 * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
1046 (sh-*-linux*): Added targ_extra_libpath.
1048 2001-10-31 David Heine <dlheine@tensilica.com>
1050 * ldlang.c (lang_size_sections): Keep a valid output_offset field
1051 for padding statements.
1053 2001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
1055 * configure.tgt (mmix-*-*): New target.
1056 * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
1057 Add dependencies to match.
1058 * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
1059 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
1060 scripttempl/mmo.sc: New files.
1061 * gen-doc.texi: @set MMIX.
1062 * ld.texinfo: Ditto.
1063 [MMIX] Add MMIX node.
1064 * Makefile.in: Regenerate.
1066 2001-10-29 Kazu Hirata <kazu@hxi.com>
1068 * ldlang.c: Fix a comment typo.
1070 2001-10-23 Alan Modra <amodra@bigpond.net.au>
1072 * configure.host: Move alpha*-*-linux-gnu* entry to generic
1073 entries, and match *-*-linux*.
1075 2001-10-20 Alan Modra <amodra@bigpond.net.au>
1077 * ldgram.y (mri_script_command): Surround processing of INCLUDE
1078 with ldlex_script, ldlex_popstate.
1079 (ifile_p1): Likewise.
1080 * ldlex.l (EOF): Don't BEGIN(SCRIPT). Restore lineno from the
1082 (lex_push_file): Save current lineno to lineno_stack. Set lineno
1083 to 1. Don't BEGIN(SCRIPT).
1084 (lex_redirect): Similarly.
1085 * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
1087 2001-10-20 Nick Clifton <nickc@cambridge.redhat.com>
1089 * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
1090 __EH_FRAME_END__ and accept eh frames into data section.
1091 Add ctor and dtor sections.
1093 2001-10-19 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1095 * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
1096 (auto-export): Fix indentation.
1098 2001-10-18 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1100 * pe-dll.c (autofilter_objectlist): Add startup objects
1102 (auto-export): Constify char * p.
1103 Extract file basename and use strcmp rather than ststr
1106 2001-10-18 Chris Demetriou <cgd@broadcom.com>
1108 * ldmain.c (get_emulation): Improve comment about the handling
1111 2001-10-17 Alan Modra <amodra@bigpond.net.au>
1113 * po/POTFILES.in: Regenerate.
1115 2001-10-16 Vassili Karpov <malc@pulsesoft.com>
1117 * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
1118 -z nocopyreloc and -z nocombreloc usage strings.
1120 2001-10-12 Vassili Karpov <malc@pulsesoft.com>
1122 * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
1125 2001-10-11 Aleksey Romanov <aromanov@ennovatenetworks.com>
1127 * scripttempl/armaout.sc: Place .bss section after end of aligned
1128 data section to match behaviour of aout code in constructrion of
1131 2001-10-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1133 * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
1134 startup files for mingw32 dlls to list.
1136 2001-10-10 Chris Demetriou <cgd@broadcom.com>
1138 * emultempl/elf32.em: Fix shell 'if' usage for portability.
1140 2001-10-08 Aldy Hernandez <aldyh@redhat.com>
1142 * configure.tgt (targ): Add arm9e-*-elf.
1144 2001-10-05 H.J. Lu <hjl@gnu.org>
1146 * genscripts.sh: Fix a typo in the last change.
1148 2001-10-05 Jakub Jelinek <jakub@redhat.com>
1150 * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
1151 -z nocombreloc in usage.
1153 2001-10-03 Jim Blandy <jimb@redhat.com>
1155 * genscripts.sh: Include a comment at the top of each generated
1156 script, explaining its purpose.
1158 2001-10-03 Vassili Karpov <malc@pulsesoft.com>
1160 * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
1161 * NEWS: Mention -z nocopyreloc.
1162 * ld.texinfo (Options): Describe nocopyreloc.
1164 2001-10-03 Alan Modra <amodra@bigpond.net.au>
1166 * configure: Regenerate.
1168 2001-10-02 Alan Modra <amodra@bigpond.net.au>
1170 * ldver.h (ld_program_version): Remove declaration.
1171 * lexsup.c (parse_args): Move printing of copyright message..
1172 * ldver.c (ldversion): .. to here.
1173 Use BFD_VERSION_STRING in place of BFD_VERSION.
1174 (ld_program_version): Remove.
1175 * Makefile.am (Makefile): Depend on bfd/configure.in.
1177 * Makefile.in: Regenerate.
1179 2001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
1181 * Makefile.am: Update dependencies with "make dep-am".
1182 * Makefile.in: Regenerate.
1184 2001-09-29 John Reiser <jreiser@BitWagon.com>
1186 * ldlang.c (lang_common): Conditionally inhibit Common allocation.
1187 * lexsup.c: Add --no-define-common commandline option.
1188 * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
1189 * ldlex.l: Likewise.
1190 * ld.h: Add command_line.inhibit_common_definition.
1191 * ldmain.c (main): Initialize.
1192 * ld.texinfo: Document.
1194 2001-09-26 Alan Modra <amodra@bigpond.net.au>
1196 * ldmisc.c (USE_STDARG): Remove.
1197 (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
1202 * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
1203 declarations. Update copyright.
1205 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
1207 * pe-dll.c: Remove obsoleted declaration of
1208 pe_get_data_import_dll_name.
1209 (pe_create_import_fixup): Fix thinko.
1211 * ld.texinfo(enable-auto-import): Clarify the explanation.
1213 2001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
1215 * pe-dll.c (pe_create_import_fixup): Revert previous patch.
1216 * emultemp/pe.em (pe_data_import_dll): Move definition outside of
1217 DLL_SUPPORT controlled code.
1219 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
1221 * emultempl/pe.em(pe_data_import_dll): Make static.
1222 (pe_get_data_import_dll_name): New accessor function.
1223 * pe-dll.c(pe_create_import_fixup): call
1224 pe_get_data_import_dll_name() from pe.em, instead of
1225 directly accessing pe_data_import_dll variable from pe.em.
1227 2001-09-18 Bruno Haible <haible@clisp.cons.org>
1229 * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
1230 (def_file_add_directive): Use ISSPACE instead of isspace.
1231 (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
1232 isdigit/isxdigit/isalpha/isalnum.
1233 * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
1234 (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
1235 * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
1236 (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
1238 * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
1239 (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
1241 * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
1242 (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
1243 * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
1244 (ctor_prio): Use ISDIGIT instead of isdigit.
1245 * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
1246 (ldfile_open_file_search): Use ISALPHA instead of isalpha.
1247 (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
1249 * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
1250 (stricpy): Use TOLOWER instead of isupper/tolower.
1251 (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
1252 * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
1253 (lex_warn_invalid): Use ISPRINT instead of isprint.
1254 * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
1255 (main): For gettext, also set the LC_CTYPE locate facet.
1256 (add_keepsyms_file): Use ISSPACE instead of isspace.
1257 * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
1258 (is_num, parse_args): Use ISDIGIT instead of isdigit.
1259 * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
1260 (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
1261 * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
1262 (gldppcmacos_read_file): Use ISSPACE instead of isspace.
1263 * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
1264 (quoteput): Use ISSPACE instead of isspace.
1265 (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
1268 2001-09-18 Alan Modra <amodra@bigpond.net.au>
1270 * deffilep.y (def_stash_module): Constify "name" param.
1272 * pe-dll.c: Replace CONST with const throughout.
1273 (quick_symbol): Constify "n1", "n2", "n3" params.
1274 (make_singleton_name_thunk): Constify "import" param. Make
1275 "buffer_len" a size_t.
1276 (make_import_fixup_entry): Constify "name", "fixup_name",
1277 "dll_symname" params.
1278 (pe_get16): Cast args of bfd_seek. Replace bfd_read with bfd_bread.
1279 (pe_get32): Likewise.
1280 (pe_implied_import_dll): Likewise.
1282 * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
1283 (sort_by_section_name): Likewise.
1285 * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
1286 (make_import_fixup): Cast printf arg, rel->address to long rather
1288 (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
1290 2001-09-15 Alan Modra <amodra@bigpond.net.au>
1292 * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
1293 defines BufferSize. Increase buffer size by one.
1295 2001-09-14 Ralf Habacker <Ralf.Habacker@freenet.de>
1297 * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
1299 2001-09-14 Kevin Lo <kevlo@openbsd.org>
1301 * configure.tgt: Add arm-openbsd target.
1303 2001-09-12 H.J. Lu <hjl@gnu.org>
1305 * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
1307 (ALL_64_EMULATIONS): Here.
1308 * Makefile.in: Regenerated.
1310 2001-09-12 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
1312 * emultempl/pe.em(make_import_fixup): change signature to
1313 take asection as well as arelec; we need this for proper
1314 error reporting. Only call pe_create_import_fixup() if
1315 there is no attempt to add a constant addend to the reloc;
1316 otherwise, report error condition.
1317 * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
1318 since final argument is a pointer to make_import_fixup().
1319 Change call to cb() to match make_import_fixup() signature.
1320 (make_import_fixup_mark): make buffer_len unsigned.
1321 * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
1323 2001-09-12 Charles Wilson <cwilson@ece.gatech.edu>
1325 * ld.texinfo: add verbose documentation for auto-import
1326 direct-addressing workaround, to compliment the terse
1329 2001-09-12 Andrew MacLeod <amacleod@redhat.com>
1331 * scripttempl/v850.sc: Add gcc_except_table sections.
1333 2001-09-11 Jeffrey A Law (law@cygnus.com)
1335 * emulparams/h8300helf.sh: Move stack to a much higher memory address.
1336 * emulparams/h8300self.sh: Similarly.
1338 2001-09-05 Danny Smith <dannysmith@users.souceforge.net>
1340 * ld.texinfo (Options, --stack): Correct default value for stack
1343 2001-09-05 Tom Rix <trix@redhat.com>
1345 * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
1347 2001-09-03 Andreas Jaeger <aj@suse.de>
1349 * emultempl/beos.em: Declare prototypes for comparions functions,
1352 2001-09-02 Andreas Jaeger <aj@suse.de>
1354 * emultempl/aix.em: Add missing prototype.
1355 * emultempl/lnk960.em: Likewise.
1356 * emultempl/vanilla.em: Likewise.
1357 * emultempl/armcoff.em: Likewise.
1358 * emultempl/armelf_oabi.em: Likewise.
1359 * emultempl/beos.em: Likewise.
1360 * emultempl/gld960c.em: Likewise.
1361 * emultempl/gld960.em: Likewise.
1363 * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
1364 for prototype declaration.
1366 2001-08-31 Eric Christopher <echristo@redhat.com>
1367 Jason Eckhardt <jle@redhat.com>
1369 * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
1371 2001-08-31 Andreas Jaeger <aj@suse.de>
1373 * emultempl/pe.em: Add missing prototypes.
1374 (gld_${EMULATION_NAME}_after_open): Remove extra args to
1375 pe_find_data_imports.
1376 (pr_sym): Add unused attribute.
1378 2001-08-29 Joel Sherrill <joel@OARcorp.com>
1380 * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
1381 default from coff to elf.
1383 2001-08-29 Jeff Law <law@redhat.com>
1385 * emulparams/h8300helf.sh: Resync with h8300elf.sh. Update
1387 * emulparams/h8300self.sh: Similarly.
1389 2001-08-28 J"orn Rennecke <amylaar@redhat.com>
1391 * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
1393 (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
1394 * configure.tgt (h8300-*-elf*): New case.
1395 * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
1396 * emulparams/h8300self.sh: New file.
1397 * Makefile.in: Regenerated.
1399 2001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
1401 * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
1404 2001-08-27 Linus Nordberg <linus@swox.com>
1405 Alan Modra <amodra@bigpond.net.au>
1407 * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
1408 (eelf64ppc.c, eelf64lppc.c): Add make targets.
1410 * Makefile.in: Regenerate.
1411 * configure.tgt: Add powerpc64 support. Move pdp11, pjl, pj
1412 entries to correct alphabetical position.
1413 * emulparams/elf64ppc.sh: New.
1414 * emulparams/elf64lppc.sh: New.
1416 2001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
1418 * ldmain.c (main): Declare BSIZE as static.
1420 2001-08-23 Jakub Jelinek <jakub@redhat.com>
1422 * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
1423 into .rel.dyn resp. .rela.dyn if combreloc.
1424 (get_script): If .x linker script is equal to .xn, only put it
1425 once into the binary.
1426 Add .xc and .xsc scripts.
1427 (parse_args): Handle -z combreloc and -z nocombreloc.
1428 * scripttempl/elf.sc (.rela.sbss): Fix a typo.
1429 For .xc and .xsc scripts put all .rel* or .rela* input sections
1430 but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
1431 * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
1433 Strip trailing whitespace from script.
1434 Generate .xc and .xsc scripts if requested.
1435 * ldmain.c (main): Initialize link_info.combreloc and
1436 link_info.spare_dynamic_tags.
1437 * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
1438 (ld_options): Add --spare-dynamic-tags option.
1439 (parse_args): Likewise.
1440 * ld.texinfo: Document -z combreloc and -z nocombreloc.
1441 * ldint.texinfo: Document .xc and .xsc linker scripts.
1442 * NEWS: Add notes about -z combreloc and SHF_MERGE.
1444 2001-08-22 H.J. Lu <hjl@gnu.org>
1446 * emulparams/elf32fr30.sh: Add a newline.
1448 2001-08-21 Andreas Jaeger <aj@suse.de>
1450 * deffilep.y: Add missing prototypes.
1451 * pe-dll.c: Likewise.
1453 2001-08-20 Alan Modra <amodra@bigpond.net.au>
1455 * ldlang.c (insert_pad): Fix typos in last patch.
1457 * ldlang.c: When traversing lang_statement_union_type lists,
1458 consistently use "header.next" rather than "next".
1459 * mpw-eppcmac.c: Likewise.
1460 * emultempl/beos.em: Likewise.
1461 * emultempl/hppaelf.em: Likewise.
1462 * emultempl/pe.em: Likewise.
1463 * ldlang.h (union lang_statement_union): Remove "next" field.
1465 * ldlang.c (insert_pad): Use offsetof macro.
1466 (lang_size_sections): Always neuter padding statements.
1467 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
1469 * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
1470 passed to lang_size_sections.
1471 (pe_exe_fill_sections): Likewise.
1472 * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
1473 (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
1475 2001-08-18 Alan Modra <amodra@bigpond.net.au>
1477 * emultempl/aix.em: Formatting fixes.
1479 2001-08-18 Alan Modra <amodra@bigpond.net.au>
1481 * ldlang.c (insert_pad): Make use of an existing pad statement if
1482 available. Move code calculating alignment, adjusting section
1483 alignment power, and adjusting dot to ..
1484 (size_input_section): .. here. Remove unused relax param.
1485 (lang_size_sections): Change boolean `relax' param to boolean *.
1486 Adjust call to size_input_section. Make use of insert_pad to
1487 place pad after the assignment statement. If relaxing, zap
1489 (reset_memory_regions): Reset output_bfd section sizes too.
1490 (relax_again): Move to..
1491 (lang_process): ..here. Adjust call to lang_size_sections, and
1492 remove duplicated code.
1493 * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
1495 2001-08-17 Alan Modra <amodra@bigpond.net.au>
1497 * ld.texinfo: Document that fill values now use the four least
1499 * emulparams/elf32fr30.sh (NOP): Update.
1500 * emulparams/elf32mcore.sh: Likewise.
1501 * emulparams/elf64_s390.sh: Likewise.
1502 * emulparams/elf_i386.sh: Likewise.
1503 * emulparams/elf_i386_be.sh: Likewise.
1504 * emulparams/elf_i386_chaos.sh: Likewise.
1505 * emulparams/elf_i386_ldso.sh: Likewise.
1506 * emulparams/elf_s390.sh: Likewise.
1507 * emulparams/elf_x86_64.sh: Likewise.
1508 * emulparams/i386moss.sh: Likewise.
1509 * emulparams/i386nw.sh: Likewise.
1510 * emulparams/m68kelf.sh: Likewise.
1511 * scripttempl/elf.sc: Update NOP comment.
1512 * scripttempl/elfi370.sc: Likewise.
1513 * scripttempl/elfm68hc11.sc: Likewise.
1514 * scripttempl/elfm68hc12.sc: Likewise.
1515 * scripttempl/nw.sc: Likewise.
1517 2001-08-15 Tom Rix <trix@redhat.com>
1519 * ldgram.y (saved_script_handle): Initialize to NULL.
1520 * ldmain.c (main): Change check on saved_script_handle.
1522 2001-08-14 Alan Modra <amodra@bigpond.net.au>
1524 * emultempl/elf32.em: Formatting fixes.
1525 (output_prev_sec_find): Test for bfd_ind_section too; do so by
1526 looking at sec->owner.
1527 (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
1528 (gld${EMULATION_NAME}_place_orphan): Add a few comments. Remove
1529 unused code, and reorganize orphan section placement code.
1531 * ldlang.c (wild_doit): Rename to lang_add_section.
1532 * ldlang.h: Here too.
1533 * mpw-elfmips.c: And here.
1534 * emultempl/beos.em: And here.
1535 * emultempl/elf32.em: And here.
1536 * emultempl/hppaelf.em: And here.
1537 * emultempl/pe.em: And here.
1539 2001-08-13 Richard Henderson <rth@redhat.com>
1541 * emultempl/needrelax.em: New file.
1542 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
1543 * Makefile.am (eelf64_ia64.c): Depend on it.
1544 * Makefile.in: Rebuild.
1546 2001-08-13 Alan Modra <amodra@bigpond.net.au>
1548 * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
1549 output_section is set non-NULL.
1551 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
1552 `true' for SEC_EXCLUDE sections so that the generic code doesn't
1553 needlessly create an output_section_statement. Treat a correctly
1554 named output_section_statement with NULL bfd_section as compatible.
1556 2001-08-13 Hans-Peter Nilsson <hp@bitrange.com>
1558 * emultempl/generic.em: Support EXTRA_EM_FILE.
1559 (ld_${EMULATION_NAME}_emulation): Support emulation parameters
1560 LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
1561 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
1562 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
1563 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
1564 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
1565 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
1566 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
1567 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
1568 LDEMUL_FIND_POTENTIAL_LIBRARIES.
1570 2001-08-12 Richard Henderson <rth@redhat.com>
1572 * scripttempl/elf.sc, scripttempl/elfd30v.sc,
1573 scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
1574 scripttempl/v850.sc: Keep .jcr data.
1576 2001-08-12 H.J. Lu <hjl@gnu.org>
1577 Andrew Haley <aph@cambridge.redhat.com>
1578 Nick Clifton <nickc@redhat.com>
1580 * ldgram.y (had_script): Change name to saved_script_handle.
1581 Change type to file handle.
1582 * ld.h (had_script): Rename and retype.
1583 * ldfile.c (ldfile_open_command_file): Save the file handle
1584 used in saved_script_handle.
1585 * lexsup.c (parse_args): Do not allow -c option to alter
1586 saved_script_handle.
1587 * ldmain.c (main): Print out the linker script used if
1588 --verbose is given. Check saved_script_handle to obtain the
1589 external linker script used, or if NULL, dump the builtin
1591 * ld.texinfo: Document that --verbose now dumps the linker
1592 script used, regardless of whether it was an internal or an
1595 2001-08-10 Andreas Jaeger <aj@suse.de>
1597 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
1599 * configure: Regenerate.
1601 2001-08-09 Alan Modra <amodra@bigpond.net.au>
1603 * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
1605 * scripttempl/elf.sc: Move non-text .dynamic section before
1606 .plt/.got/.sdata* group.
1607 (OTHER_GOT_SECTIONS): Move to immediately after .got.
1608 (OTHER_SDATA_SECTIONS): Add.
1609 * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
1611 * emulparams/crislinux.sh: Likewise.
1612 * emulparams/elf32b4300.sh: Likewise.
1613 * emulparams/elf32bmip.sh: Likewise.
1614 * emulparams/elf32bmipn32.sh: Likewise.
1615 * emulparams/elf32bsmip.sh: Likewise.
1616 * emulparams/elf32btsmip.sh: Likewise.
1617 * emulparams/elf32ebmip.sh: Likewise.
1618 * emulparams/elf32elmip.sh: Likewise.
1619 * emulparams/elf32l4300.sh: Likewise.
1620 * emulparams/elf32lmip.sh: Likewise.
1621 * emulparams/elf32lsmip.sh: Likewise.
1622 * emulparams/elf32ltsmip.sh: Likewise.
1623 * emulparams/elf64bmip.sh: Likewise.
1624 * emulparams/elf64btsmip.sh: Likewise.
1625 * emulparams/elf64ltsmip.sh: Likewise.
1627 2001-08-08 Alan Modra <amodra@bigpond.net.au>
1629 * genscripts.sh: Source the emulparams script before each output
1630 script is generated so that variables like `RELOCATING' may affect
1631 variables defined in the emulparams script.
1633 2001-08-04 Alan Modra <amodra@bigpond.net.au>
1635 * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
1638 * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
1639 ie. iterate over wild_statement.section_list.
1640 (gld${EMULATION_NAME}_place_orphan): Likewise.
1642 2001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1644 * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
1645 .fini[0-4] sections used by _exit
1646 (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
1647 (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
1648 * scripttempl/elfm68hc11.sc: Likewise.
1650 2001-08-03 H.J. Lu <hjl@gnu.org>
1652 * emultempl/beos.em (init): Add the missing initialization.
1654 2001-08-03 Alan Modra <amodra@bigpond.net.au>
1656 * ld.texinfo (Input Section Basics): Clarify ordering of output
1658 * ldlang.c (callback_t): Add wildcard_list param.
1659 (walk_wild_section): Remove "section" param. Rewrite for
1660 lang_wild_statement_type change. Remove unique_section_p test.
1661 (walk_wild_file): Remove "section" param.
1662 (walk_wild): Remove "section" and "file" params.
1663 (lang_gc_wild): Likewise.
1664 (wild): Likewise. Modify for lang_wild_statement_type change.
1665 (wild_sort): Likewise. Add "sec" param.
1666 (gc_section_callback): Likewise.
1667 (output_section_callback): Likewise. Do unique_section_p test.
1668 (map_input_to_output_sections): Modify call to wild.
1669 (lang_gc_sections_1): Likewise.
1670 (print_wild_statement): Modify for lang_wild_statement_type
1672 (lang_add_wild): Replace filename, filenames_sorted param with
1673 filespec. Replace section_name, sections_sorted,
1674 exclude_filename_list with section_list.
1675 * ldlang.h (lang_add_wild): Here too.
1676 (lang_wild_statement_type): Replace section_name, sections_sorted,
1677 and exclude_filename_list with section_list.
1678 * ldgram.y (current_file): Delete.
1679 (%union): Add wildcard_list.
1680 (file_NAME_list): Set type to wildcard_list. Build a linked list
1681 rather than calling lang_add_wild for each entry.
1682 (input_section_spec_no_keep): Call lang_add_wild here instead.
1683 * ld.h (struct wildcard_list): Declare.
1684 * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
1686 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
1688 * ldmain.c (main): initialize link_info.pei386_auto_import
1689 * pe-dll.c: new tables for auto-export filtering
1690 (auto_export): change API, pass abfd for contextual filtering.
1691 Loop thru tables of excluded symbols instead of comparing
1694 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
1696 * pe-dll.c: new variable pe_dll_enable_extra_debug. New
1697 static variable current_sec (static struct sec *). Add
1698 forward declaration for add_bfd_to_link.
1699 (process_def_file): Don't export undefined symbols. Do not
1700 export symbols starting with "_imp__". Call auto_export()
1702 (pe_walk_relocs_of_symbol): New function.
1703 (generate_reloc): add optional extra debugging
1704 (pe_dll_generate_def_file): eliminate extraneous initial blank
1706 (make_one): enlarge symtab to make room for __nm__ symbols
1707 (DATA auto-import support).
1708 (make_singleton_name_thunk): New function.
1709 (make_import_fixup_mark): New function.
1710 (make_import_fixup_entry): New function.
1711 (pe_create_import_fixup): New function.
1712 (add_bfd_to_link): Specify that 'name' argument is a CONST
1714 * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
1715 declare new functions pe_walk_relocs_of_symbol and
1716 pe_create_import_fixup.
1717 * emultempl/pe.em: add new options --enable-auto-import,
1718 --disable-auto-import, and --enable-extra-pe-debug.
1719 (make_import_fixup): New function.
1720 (pe_find_data_imports): New function.
1721 (pr_sym): New function.
1722 (gld_${EMULATION_NAME}_after_open): Add optional extra pe
1723 debugging. Call pe_find_data_imports. Mark .idata as DATA, not
1726 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
1728 * ld.texinfo: add additional documentation for
1729 --export-all-symbols. Document --out-implib,
1730 --enable-auto-image-base, --disable-auto-image-base,
1731 --dll-search-prefix, --enable-auto-import, and
1732 --disable-auto-import.
1733 * ldint.texinfo: Add detailed documentation on auto-import
1736 2001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
1738 * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
1741 2001-07-24 Alan Modra <amodra@bigpond.net.au>
1743 * Makefile.am: Update dependencies with "make dep-am".
1744 * Makefile.in: Regenerate
1746 2001-07-23 Alan Modra <amodra@bigpond.net.au>
1748 * ldcref.c (check_section_sym_xref): New function.
1749 (check_nocrossrefs): Call it.
1750 (check_nocrossref): Interate over h->refs here instead of..
1751 (check_refs): ..here. Pass in the symbol name, section, and bfd
1752 rather than hash_entry pointers.
1753 (struct check_refs_info): Keep symbol name rather than hash entry.
1755 (check_reloc_refs): Tweak for above changes in check_refs_info.
1756 Only report references to section syms when symname is NULL to
1757 prevent duplicate messages for the same reloc.
1759 2001-07-19 Nick Clifton <nickc@cambridge.redhat.com>
1761 * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
1762 available. Do not print NULL trees.
1763 (exp_print_token): Print unknown tokens with values > 126 as
1764 decimal values not ASCII characters.
1766 * ldlang.c (lang_leave_overlay): If a region is specified assign
1767 it to all sections inside the overlay unless they have been
1768 assigned to the own, non-default, memory region.
1770 * README: Add header for consistency with other README files.
1772 2001-07-14 H.J. Lu <hjl@gnu.org>
1774 * emultempl/elf32.em (output_prev_sec_find): Never return
1775 bfd_abs_section_ptr, bfd_com_section_ptr nor
1776 bfd_und_section_ptr.
1778 2001-07-14 Nick Clifton <nickc@cambridge.redhat.com>
1780 * Makefile.am (em32relf.c): Change dependency from generic.em to
1782 * Makefile.in: Regenerate.
1784 2001-07-14 matthew green <mrg@eterna.com.au>
1786 * configure.tgt (i386-*-netbsdelf*): New target.
1787 (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
1789 2001-07-13 Jakub Jelinek <jakub@redhat.com>
1791 * emultempl/elf32.em (output_prev_sec_find): New.
1792 (place_orphan): Use it.
1794 2001-07-11 H.J. Lu <hjl@gnu.org>
1796 * ldmain.c (main): Fix typos in the last change.
1798 2001-07-11 Jakub Jelinek <jakub@redhat.com>
1800 * ldmain.c (main): Disallow -F and -f without -shared.
1802 2001-07-11 Nick Clifton <nickc@cambridge.redhat.com>
1804 * emultempl/pe.em (after_open): Check for the output_bfd not
1805 having any coff_data structure allocated to it.
1807 2001-07-09 David O'Brien <obrien@FreeBSD.org>
1809 * emultempl/elf32.em: Do not assuming that contents of the buffer
1810 returned from basename function will remain unchanged accross other
1813 2001-07-03 H.J. Lu <hjl@gnu.org>
1815 * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
1816 2001-07-03. It creates dynamic entries even for static binaries.
1818 2001-07-03 Jakub Jelinek <jakub@redhat.com>
1820 * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
1821 (DYNAMIC): Use it to reserve few dynamic entries for
1824 2001-06-27 Alan Modra <amodra@bigpond.net.au>
1826 * emulparams/hppa64linux.sh: New file.
1827 * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
1828 * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
1829 (ehppa64linux.c): Add rule to make it.
1831 * Makefile.in: Regenerate.
1833 2001-06-21 Hans-Peter Nilsson <hp@axis.com>
1835 * ld.texinfo (Options, -r): Mention restrictions when using
1836 different object formats.
1838 2001-06-19 Hans-Peter Nilsson <hp@axis.com>
1840 * ldlang.c (lang_check): Emit fatal error if relocatable link
1841 between different object flavours with relocations in input.
1843 2001-06-19 H.J. Lu <hjl@gnu.org>
1845 * ld.texinfo (-E, --export-dynamic): Mention --version-script.
1846 (--version-script): Mention the language support.
1848 2001-06-19 H.J. Lu <hjl@gnu.org>
1850 * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
1852 2001-06-18 H.J. Lu <hjl@gnu.org>
1854 * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
1855 (diststuff): Add $(MANS).
1856 * Makefile.in: Regenerated.
1860 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
1862 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
1863 Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
1864 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
1865 * ld.h (args_type): Remove member export_dynamic. All users
1866 changed to use struct bfd_link_info member.
1868 * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
1869 $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
1870 * Makefile.in: Regenerate.
1872 2001-06-18 H.J. Lu <hjl@gnu.org>
1874 * ldlang.c (init_os): Add the newline to the einfo call.
1875 (lang_check): Likewise.
1876 (lang_do_version_exports_section): Likewise.
1878 2001-06-15 H.J. Lu <hjl@gnu.org>
1880 * lexsup.c (parse_args); Save optind to report unrecognized
1883 2001-06-15 Hans-Peter Nilsson <hp@axis.com>
1885 * ldlang.c (lang_check): Emit fatal error if relocatable link
1886 between different object flavours.
1888 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
1889 Set new link_info member export_dynamic.
1890 * ldmain.c (main): Initialize new link_info member export_dynamic.
1892 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
1894 * ldlang.c (walk_wild): Only call walk_wild_file if
1895 lookup_name returns something.
1896 (lookup_name): If load_symbols fails, return NULL.
1897 (load_symbols): Change to a boolean function.
1898 (open_input_bfds): If load_symbols fails then do not make the
1901 2001-06-08 Alan Modra <amodra@bigpond.net.au>
1903 * ldlang.c (record_bfd_errors): Remove.
1905 * emultempl/aix.em: Fix copyright dates.
1907 2001-06-07 Andreas Jaeger <aj@suse.de>
1909 * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
1910 (TEXT_START_ADDR): Likewise.
1912 2001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
1914 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
1916 2001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1918 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
1920 2001-05-31 H.J. Lu <hjl@gnu.org>
1922 * ldlang.c (open_input_bfds): Don't change the bfd error
1923 handler whilst loading symbols.
1925 2001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
1927 * configure.tgt: Remove i370-mvs architecture, it is not currently
1930 2001-05-25 H.J. Lu <hjl@gnu.org>
1932 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
1933 like emulparams/aixppc.sh.
1935 2001-05-25 H.J. Lu <hjl@gnu.org>
1937 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
1938 setting of output_filename after bfd_scan_arch.
1939 * emultempl/pe.em: Likewise.
1941 2001-05-25 H.J. Lu <hjl@gnu.org>
1943 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
1944 like emulparams/aixppc.sh.
1946 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
1947 instead of ${srcdir}/emultempl/stringify.sed.
1949 2001-05-25 Timothy Wall <twall@oculustech.com>
1951 * emulparams/elf64_aix.sh: Change settings to match IBM linker
1954 2001-05-25 Alan Modra <amodra@one.net.au>
1956 * configure.host: Replace linuxoldld with linux*oldld.
1957 * configure.tgt: Likewise.
1959 2001-05-24 H.J. Lu <hjl@gnu.org>
1961 * emultempl/stringify.sed: Removed again.
1963 2001-05-24 H.J. Lu <hjl@gnu.org>
1965 * emultempl/aix.em (OUTPUT_ARCH): Defined.
1966 (gld${EMULATION_NAME}_before_parse): Initialize
1967 ldfile_output_architecture, ldfile_output_machine and
1968 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
1969 * emultempl/beos.em: Likewise.
1970 * emultempl/elf32.em: Likewise.
1971 * emultempl/linux.em: Likewise.
1972 * emultempl/mipsecoff.em: Likewise.
1973 * emultempl/pe.em: Likewise.
1974 * emultempl/sunos.em: Likewise.
1976 2001-05-24 Tom Rix <trix@redhat.com>
1978 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
1979 udate import file format.
1980 (change_symbol_mode) New, same
1981 (is_syscall) New, same
1982 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
1983 * emulparams/aixppc64.sh : same
1984 * emulparams/aixrs6.sh : same
1985 * emulparams/ppcmacos.sh : same
1986 * emultempl/aix.em : use strtoull to parse options
1987 * Makefile.am : add eaixppc64 emulation for xcoff64
1988 * Makefile.in : same
1989 * configure.tgt : same
1991 * scripttempl/aix.sc : default text section offset to 0x10000000
1992 default data section offset to 0x20000000
1993 add .sv3264 and .sv64 pseudo sections
1994 loader and debug sections use the currect section offset.
1996 * emultempl/aix.em : Add xcoff64 support
1997 Add -binitfini support
1998 (gld${EMULATION_NAME}_before_parse) -binitfini
1999 (gld${EMULATION_NAME}_parse_args) same
2000 (gld${EMULATION_NAME}_before_allocation) format change for special
2003 * emulparams/aixppc64.sh : New file for xcoff64 support
2005 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
2007 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
2008 variable to avoid non-portable shell construct.
2010 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2012 * ldmain.c (get_emulation): Add -mips5 command line argument.
2014 2001-05-22 Alexandre Oliva <aoliva@redhat.com>
2016 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
2017 (ELF_INTERPRETER_NAME): Define it.
2018 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
2020 * configure.tgt (targ_emul, targ_extra_emuls)
2021 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
2022 as primary, elf_i386 as extra.
2023 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
2024 (eelf_i386_ldso.c): New rule.
2025 * Makefile.in: Rebuilt.
2027 2001-05-22 Nick Clifton <nickc@redhat.com>
2029 * lexsup.c (ld_options): Allow -I to be an alias for
2030 --dynamic-linker. This is for Solaris compatability.
2031 * ld.texinfo: Document that -I can be used.
2034 2001-05-16 Alan Modra <amodra@one.net.au>
2036 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
2037 whether an input section is the first one assigned to an output
2039 Assorted formatting fixes.
2041 2001-05-14 DJ Delorie <dj@delorie.com>
2043 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
2044 * Makefile.in: Ditto.
2046 2001-05-11 Jakub Jelinek <jakub@redhat.com>
2048 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
2049 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
2051 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
2053 2001-05-11 Jakub Jelinek <jakub@redhat.com>
2055 * ldlang.c (lang_process): Call bfd_merge_sections.
2057 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2059 * ldgram.y: Fix typo.
2061 2001-05-03 H.J. Lu <hjl@gnu.org>
2063 * emultempl/elf32.em: Include "libiberty.h".
2064 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
2065 basename of the bfd filename.
2066 (gld${EMULATION_NAME}_stat_needed): Likewise.
2067 (gld${EMULATION_NAME}_try_needed): Likewise.
2068 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
2070 2001-05-02 H.J. Lu <hjl@gnu.org>
2072 * emultempl/pe.em: Include <ctype.h>.
2074 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
2076 * emulparams/elf32openrisc.sh: New file.
2078 * Makefile.am: Add OpenRISC target.
2079 * Makefile.in: Regenerated.
2081 * configure.tgt: Add openrisc-*-* mapping.
2083 2001-05-02 Nick Clifton <nickc@redhat.com>
2085 * emultempl/aix.em: Replace buystring with xstrdup.
2086 * emultempl/beos.em: Replace buystring with xstrdup.
2088 2001-05-02 H.J. Lu <hjl@gnu.org>
2090 * ldfile.c: Include "libiberty.h".
2091 * ldlex.l: Likewise.
2093 * ldmisc.c (buystring): Removed.
2094 * ldmisc.h: Likewise.
2096 * ldfile.c: Replace buystring with xstrdup.
2097 * ldlang.c: Likewise.
2098 * ldlex.l: Likewise.
2099 * ldmain.c: Likewise.
2100 * ldmisc.c: Likewise.
2101 * lexsup.c: Likewise.
2102 * mpw-eppcmac.c: Likewise.
2104 2001-04-30 Andreas Jaeger <aj@suse.de>
2106 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
2108 2001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2110 * ldlang.c (load_symbols): Give emulation a chance
2111 to process unrecognized file before fatal error is
2112 reported, not after.
2114 2001-04-27 Sean McNeil <sean@mcneil.com>
2116 * configure.tgt: Add arm-vxworks target.
2117 * scripttempl/armcoff.sc: Support .text or .data as a section name
2121 2001-04-13 J.T. Conklin <jtc@redback.com>
2123 * ld.texinfo: Document --fatal-warnings.
2126 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
2127 warnings have been turned into errors.
2128 * lexsup.c (OPTION_WARN_FATAL): Define.
2129 (ld_options): Entry for --fatal-warnings.
2130 (parse_args): Handle OPTION_WARN_FATAL.
2131 * ld.h (ld_config_type): Add fatal_warnings field.
2133 2001-04-13 Jakub Jelinek <jakub@redhat.com>
2135 * ldmain.c (main): Default to discard_sec_merge.
2136 * lexsup.c (OPTION_DISCARD_NONE): Define.
2137 (ld_options): Add --discard-none.
2138 (parse_args): Handle OPTION_DISCARD_NONE.
2139 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
2140 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
2141 all its input sections match.
2143 2001-04-05 Steven J. Hill <sjhill@cotw.com>
2145 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
2146 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
2147 (eelf32ltsmip.c): New target.
2148 (eelf64btsmip.c): Likewise.
2149 (eelf64ltsmip.c): Likewise.
2150 * Makefile.in: Regenerated.
2152 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
2154 (mips*-*-linux-gnu*): Likewise.
2156 * emulparams/elf32ltsmip.sh: New. Traditional little endian
2158 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
2160 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
2163 2001-04-05 Hans-Peter Nilsson <hp@axis.com>
2165 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
2166 correct value of __Stext here.
2167 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
2170 * emulparams/crislinux.sh: Remove FIXME.
2172 2001-04-02 Alan Modra <alan@linuxcare.com.au>
2174 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
2175 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
2177 2001-03-27 Hans-Peter Nilsson <hp@axis.com>
2179 * configure.tgt (cris-*-*): Change default emulation to criself.
2180 (cris-*-*aout*): New rule.
2182 2001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
2184 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
2185 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
2187 2001-03-26 Andreas Jaeger <aj@suse.de>
2189 * ld.texinfo (Overview): Fix syntax in texi code.
2191 2001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2193 * ld.texinfo: Put @c man indications to generate the ld man page.
2194 When generating man, define all the variables. Define SEEALSO
2195 and SYNOPSIS. Re-organize some lines to avoid the cross references.
2196 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
2197 (ld.1): Generate from ld.texinfo.
2198 * Makefile.in: Regenerate.
2200 2001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
2202 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
2203 and '-fdata-sections'. Set the VMA of STABS sections to zero.
2205 2001-03-17 Ulrich Drepper <drepper@redhat.com>
2207 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
2208 is an absolute path look only for this file and not along the path.
2210 2001-03-17 Ulrich Drepper <drepper@redhat.com>
2212 * emultempl/elf32.em (OPTION_GROUP): New macro.
2213 Add new option Bgroup to longopts.
2214 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
2215 (gld*_list_options): Add -Bgroup and -z defs.
2216 * ld.1: Document -Bgroup and -z defs.
2217 * ld.texinfo: Likewise.
2219 2001-03-07 Michael Meissner <meissner@redhat.com>
2221 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
2222 with sections created by -fdata-sections.
2223 (.dynbss,.bss): Ditto.
2225 2001-03-05 Alan Modra <alan@linuxcare.com.au>
2227 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
2228 after_allocation_default, not gld..._before_allocation.
2230 2001-02-27 Alan Modra <alan@linuxcare.com.au>
2232 * configure.in (BFD_VERSION): New.
2233 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
2234 * configure: Regenerate.
2235 * Makefile.am: Run "make dep-am"
2236 * Makefile.in: Regenerate.
2238 2001-02-26 Timothy Wall <twall@cygnus.com>
2240 * emulparams/elf64_aix.sh: Add additional read-only sections;
2241 uncomment lines which are now required.
2243 2001-02-26 H.J. Lu <hjl@gnu.org>
2245 * ldlang.c (open_input_bfds): Set the bfd error handler so
2246 that problems can be caught whilst loading symbols.
2247 (record_bfd_errors): New function: Report BFD errors and mark
2248 the executable output as being invalid.
2250 2001-02-22 Timothy Wall <twall@cygnus.com>
2252 * configure.host: Add configuration for ia64-*-aix*.
2253 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
2254 Add dependencies for eelf64_aix.c.
2255 * Makefile.in: Regenerate.
2256 * configure.tgt: Add ia64-*-aix* mapping.
2257 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
2258 * testsuite/ld-bootstrap/bootstrap.exp: Exclude ia64 flavor from
2261 2001-02-20 H.J. Lu <hjl@gnu.org>
2263 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
2264 false if we found the file.
2266 2001-02-18 David O'Brien <obrien@FreeBSD.org>
2268 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
2269 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
2271 2001-02-18 lars brinkhoff <lars@nocrew.org>
2273 * Makefile.am: Add PDP-11 target.
2274 * configure.tgt: Likewise.
2275 * emulparams/pdp11.sh: New file.
2277 2001-02-17 David O'Brien <obrien@FreeBSD.org>
2279 * configure.host: Add a generic FreeBSD configuration entry such that
2280 all [modern] FreeBSD systems on all platforms will look the same.
2282 2001-02-14 H.J. Lu <hjl@gnu.org>
2284 * configure.tgt: Remove mention of earmelf_linux26.
2286 2001-02-13 Richard Henderson <rth@redhat.com>
2288 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
2290 2001-02-13 H.J. Lu <hjl@gnu.org>
2292 * ldexp.h (node_type): Add etree_provided.
2293 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
2294 type to etree_provided if defined by PROVIDE. Allow updating
2296 (exp_print_tree): Handle etree_provided.
2297 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
2300 2001-02-09 David Mosberger <davidm@hpl.hp.com>
2302 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
2303 .IA_64.unwind.* pattern to unwind table section and
2304 .IA_64.unwind_info* pattern to unwind info section.
2306 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
2308 * Makefile.am: Add linux target for S/390.
2309 * Makefile.in: Likewise.
2310 * configure.host: Likewise.
2311 * configure.tgt: Likewise.
2312 * emulparams/elf64_s390.sh: New file.
2313 * emulparams/elf_s390.sh: New file.
2315 2001-02-09 Jakub Jelinek <jakub@redhat.com>
2317 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
2319 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
2321 2001-02-06 Philip Blundell <philb@gnu.org>
2323 * Makefile.am: Remove mention of earmelf_linux26.
2324 * Makefile.in: Regenerate.
2326 2001-02-04 Philip Blundell <philb@gnu.org>
2328 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
2329 * emulparams/armelf_linux26.sh: Delete.
2330 * configure.tgt: Remove mention of armelf_linux26 emulation.
2332 2001-02-01 Nick Clifton <nickc@redhat.com>
2334 * ld.1: Replace occurances of -oformat with --oformat.
2336 2001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
2338 * ldlang.c (lang_leave_overlay): Don't set lma_region when
2339 load_base is specified.
2341 2001-01-24 Hans-Peter Nilsson <hp@axis.com>
2343 * emultempl/elf32.em: Correct spelling in comments and listed
2346 2001-01-23 Alan Modra <alan@linuxcare.com.au>
2348 * ldlang.c (lang_leave_overlay): Only set lma_region from the
2349 default for the first section of a group of overlay sections.
2351 2001-01-22 Alan Modra <alan@linuxcare.com.au>
2353 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
2354 * Makefile.in: Regenerate.
2355 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
2356 Check for null tool_dir.
2358 2001-01-16 Jim Wilson <wilson@redhat.com>
2360 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
2361 and IA_64.unwind.info.
2363 2001-01-16 H.J. Lu <hjl@gnu.org>
2365 * ldlang.c (lang_check): Merge the private data only if the
2366 input file has contents.
2368 2001-01-14 Alan Modra <alan@linuxcare.com.au>
2370 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
2372 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
2373 enabling search for libmilli. On a relocatable link, make .text
2375 (LDEMUL_AFTER_PARSE): Define.
2376 (hppaelf_finish): Correct spelling of relocatable in comments.
2378 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
2379 rummage through the script for sections on the unique list.
2380 Correct length of strncmp for ".note".
2381 (gld${EMULATION_NAME}_check_needed): Rearrange function.
2383 * ldlang.c (unique_section_list): New var.
2384 (unique_section_p): New function.
2385 (walk_wild_section): Don't match sections on unique_section_list.
2386 (lang_add_unique): New function.
2387 Correct spelling of relocatable in comments.
2389 * ldlang.h (struct unique_sections): Declare.
2390 (unique_section_list): Declare.
2391 (unique_section_p): Declare.
2392 (lang_add_unique): Declare.
2394 * lexsup.c (ld_options): Allow --unique to take an optional arg.
2395 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
2397 * ld.texinfo (--unique): Update.
2399 2001-01-13 Nick Clifton <nickc@redhat.com>
2401 * lexsup.c (parse_args): Remove spurious white space.
2403 2001-01-12 Nick Clifton <nickc@redhat.com>
2405 * lexsup.c (parse_args): Update copyright date.
2407 2001-01-12 Philip Blundell <pb@futuretv.com>
2409 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
2411 2001-01-10 Kazu Hirata <kazu@hxi.com>
2413 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
2414 * scripttempl/h8300h.sc: Fix formatting.
2415 * scripttempl/h8300s.sc: Likewise.
2416 * scripttempl/h8500.sc: Likewise.
2417 * scripttempl/h8500b.sc: Likewise.
2418 * scripttempl/h8500c.sc: Likewise.
2419 * scripttempl/h8500m.sc: Likewise.
2420 * scripttempl/h8500s.sc: Likewise.
2422 2000-01-07 David O'Brien <obrien@BSDi.com>
2424 * emultempl/elf32.em: Only perform Linux ld hints processing when
2427 2001-01-07 Philip Blundell <philb@gnu.org>
2429 * ld.texinfo (Bug Reporting): Update email address for reports.
2431 2000-12-31 Nick Clifton <nickc@redhat.com>
2433 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
2434 options by checking for a return value of '?' not -1.
2436 2000-12-28 Nick Clifton <nickc@redhat.com>
2438 * lexsup.c (struct ld_option): Add new enum value:
2440 (ld_options[]): Change -omagic, -output and -oformat options
2441 to be EXACTLY_TWO_DASHES.
2442 (OUTPUT_COUNT): Use ARRAY_SIZE.
2443 (parse_args): Change parameter 'argc' to unsigned.
2444 Place EXACTLY_TWO_DASHES options into new really_longopts
2446 If getopt_long_only fails, try calling getopt_long using the
2447 really_longopts array.
2448 (help): Print a double dash for both EXACTLY_TWO_DASHES and
2451 * ldlex.h: Fix prototype of parse_args.
2453 * ld.texinfo: Document that long options starting with 'o'
2454 must be preceeded by two dashes. Change example of a single
2455 dashed long option from -oformat to -trace-symbol.
2457 2000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2459 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
2460 (longopts[]): New --no-default-excludes option.
2461 (gld_${EMULATION_NAME}_list_options): Document.
2462 (gld_${EMULATION_NAME}_parse_args): Handle.
2464 2000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2466 * ldlang.c (new_stat): Revert the last beautification with "innocent"
2467 whitespace, it breaks the K&R C preprocessor.
2469 2000-12-11 DJ Delorie <dj@redhat.com>
2471 * ld.texinfo: Add notes about --whole-archive and gcc.
2473 2000-11-18 Fred Fish <fnf@be.com>
2475 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
2476 (ld_options): Entry for --allow-shlib-undefined.
2477 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
2478 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
2480 * ld.texinfo: Document new command line switch.
2482 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
2484 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
2485 .fixup is actually read/write.
2486 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
2487 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
2488 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
2490 2000-12-11 Jan Hubicka <jh@suse.cz>
2492 * NEWS: Add note about x86_64 architecture.
2494 2000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
2496 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
2497 Set DWARF2 sections to a VMA of zero.
2499 2000-12-01 Joel Sherrill <joel@OARcorp.com>
2501 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
2503 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
2504 (sparc*-*-rtems*): Switched from a.out to ELF.
2506 2000-11-30 Jan Hubicka <jh@suse.cz>
2508 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
2509 (eelf_x86_64.c): New.
2510 * Makefile.in: Regenerate.
2511 * configure.tgt: Add support for x86_64-*-linux-gnu*.
2512 * emulparams/elf_x86_64.sh: New.
2514 2000-11-30 Hans-Peter Nilsson <hp@axis.com>
2516 * emulparams/crislinux.sh (ENTRY): Change back to _start.
2517 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
2519 * scripttempl/crisaout.sc: Change all RELOCATING not related to
2520 merging non-a.out sections into CONSTRUCTING.
2522 2000-11-28 Nick Clifton <nickc@redhat.com>
2524 * ld.1 (COPYING): Mention that the GNU Free Documentation
2525 License is present in the sources, but not the output, and
2526 also available from the GNU website.
2527 (GNU Free Documentation License): Comment out this section.
2529 2000-11-28 David O'Brien <obrien@dragon.nuxi.com>
2531 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
2534 2000-11-25 David O'Brien <obrien@FreeBSD.org>
2536 * ld.1: Remove old date so it does not give the impression the manpage
2539 2000-11-24 Nick Clifton <nickc@redhat.com>
2541 * configure.tgt (xscale-coff): Add target.
2542 (xscale-elf): Add target.
2544 2000-11-24 Fred Fish <fnf@be.com>
2546 * ldmain.c (main): Remove redundant init of config.make_executable
2549 2000-11-15 Richard Henderson <rth@redhat.com>
2551 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
2553 2000-11-14 Kazu Hirata <kazu@hxi.com>
2555 * scripttempl/h8300.sc: Fix formatting.
2556 * scripttempl/h8300h.sc: Likewise.
2557 * scripttempl/h8300s.sc: Likewise.
2559 2000-11-14 Denis Chertykov <denisc@overta.ru>
2561 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
2563 2000-11-09 Philip Blundell <pb@futuretv.com>
2565 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
2566 around orphan sections whose names can be represented in C.
2568 2000-11-07 Jim Wilson <wilson@redhat.com>
2570 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
2571 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
2573 2000-11-06 Nick Clifton <nickc@redhat.com>
2575 * ld.texinfo: Add GNU Free Documentation License.
2576 * ldint.texinfo: Add GNU Free Documentation License.
2577 * ld.1: Add GNU Free Documentation License.
2579 2000-11-05 Alan Modra <alan@linuxcare.com.au>
2581 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
2582 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
2584 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
2585 Move 2000-11-02 Makefile.in changes to this file.
2586 * Makefile.in: Regenerate.
2588 2000-11-03 Nick Clifton <nickc@redhat.com>
2590 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
2591 constructors and destructors.
2592 * scripttempl/h8300h.sc: Ditto.
2593 * scripttempl/h8300s.sc: Ditto.
2594 * scripttempl/h8500.sc: Ditto.
2595 * scripttempl/h8500b.sc: Ditto.
2596 * scripttempl/h8500c.sc: Ditto.
2597 * scripttempl/h8500m.sc: Ditto.
2598 * scripttempl/h8500s.sc: Ditto.
2599 * scripttempl/v850.sc: Ditto.
2600 * scripttempl/w65.sc: Ditto.
2601 * scripttempl/z8000.sc: Ditto.
2603 2000-11-02 Per Lundberg <plundis@chaosdev.org>
2605 * Makefile.in (e_i386_chaos.c): New rule.
2606 (ALL_EMULATIONS): Added e_i386_chaos.o.
2607 * emulparams/elf_i386_chaos.sh: New file.
2608 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
2610 2000-10-20 Jakub Jelinek <jakub@redhat.com>
2612 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
2613 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
2614 Fix sed invocation, so that it coped with '/' in Solaris 64bit
2615 library path suffix.
2616 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
2618 2000-10-18 Hans-Peter Nilsson <hp@axis.com>
2620 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
2621 for consecutive sections.
2623 2000-10-17 Chandrakala Chavva <cchavva@redhat.com>
2625 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
2627 * ld.texinfo: Added notes about this new option.
2629 2000-10-16 Nick Clifton <nickc@redhat.com>
2631 * emultempl/pe.em (_after_open): Add tests of return values from
2632 bfd functions. Emit appropriate error messages if necessary.
2634 2000-10-13 Nick Clifton <nickc@redhat.com>
2636 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
2637 local variables - they are not used, but leave in the call to
2638 bfd_canonicalize_symtab.
2639 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
2640 pe_dll_search_prefix.
2642 2000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
2644 * emultempl/pe.em (pe_dll_search_prefix): New variable,
2645 (longopts): New --dll-search-prefix option.
2646 (gld_${EMULATION_NAME}_list_options): Document.
2647 (gld_${EMULATION_NAME}_parse_args): Handle.
2648 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
2649 dynamically, search for a dll named '<prefix><basename>.dll'
2650 in preference to 'lib<basename>.dll' if --dll-search-prefix
2653 2000-10-12 Alan Modra <alan@linuxcare.com.au>
2655 * ldlang.c (section_already_linked): Set kept_section instead of
2658 2000-10-10 Kazu Hirata <kazu@hxi.com>
2660 * deffile.h: Fix formatting.
2661 * lexsup.c: Likewise.
2664 2000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2666 * pe-dll.c (make_one): Do not generate code thunk for DATA
2668 (process_def_file): deduce DATA flag for auto-export sumbols.
2670 2000-10-09 Kazu Hirata <kazu@hxi.com>
2672 * ld.h: Fix formatting.
2673 * ldcref.c: Likewise.
2674 * ldctor.h: Likewise.
2675 * ldemul.c: Likewise.
2676 * ldemul.h: Likewise.
2677 * ldexp.c: Likewise.
2678 * ldexp.h: Likewise.
2679 * ldfile.c: Likewise.
2680 * ldfile.h: Likewise.
2681 * ldlang.c: Likewise.
2682 * ldlang.h: Likewise.
2683 * ldmain.c: Likewise.
2684 * pe-dll.c: Likewise.
2686 * pe-dll.c: Revert some formatting fixes.
2688 2000-10-08 Kazu Hirata <kazu@hxi.com>
2690 * pe-dll.c: Fix formatting.
2692 2000-10-05 Kazu Hirata <kazu@hxi.com>
2694 * ldlang.c: Fix formatting.
2696 2000-10-03 DJ Delorie <dj@redhat.com>
2698 * pe-dll.c (fill_edata): initialize entire block
2699 (make_one): fill in correct section.
2701 2000-10-03 Kazu Hirata <kazu@hxi.com>
2703 * ldexp.c: Fix formatting.
2705 2000-10-02 DJ Delorie <dj@redhat.com>
2707 * emultempl/pe.em (gld_*_after_open): detect case where there two
2708 import libraries for same dll; rename one to ensure proper link
2711 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
2713 (generate_edata): fix typo
2715 2000-09-29 Hans-Peter Nilsson <hp@axis.com>
2717 * scripttempl/crisaout.sc (ENTRY): Now __start.
2718 (.text): Add default setting for __start.
2719 Remove CONSTRUCTORS handling.
2720 (/DISCARD/): Add .gnu.warning.*.
2721 * emulparams/crislinux.sh (ENTRY): Now __start.
2722 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
2723 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
2724 (ENTRY): Now __start.
2725 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
2726 (EXECUTABLE_SYMBOLS): Add default setting for __start.
2728 2000-09-29 Kazu Hirata <kazu@hxi.com>
2730 * deffile.h: Fix formatting.
2732 * ldcref.c: Likewise.
2733 * ldctor.c: Likewise.
2734 * ldctor.h: Likewise.
2735 * ldemul.c: Likewise.
2736 * ldemul.h: Likewise.
2737 * ldexp.c: Likewise.
2738 * ldexp.h: Likewise.
2739 * ldfile.c: Likewise.
2740 * ldfile.h: Likewise.
2741 * ldlang.c: Likewise.
2742 * ldlang.h: Likewise.
2743 * lexsup.c: Likewise.
2745 * pe-dll.c: Likewise.
2747 2000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2749 * pe-dll.c (process_def_file): Uninitialized data wasn't
2750 exported with --export-all-symbols switch.
2752 2000-09-28 DJ Delorie <dj@redhat.com>
2754 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
2755 noname work properly.
2757 2000-09-28 Alan Modra <alan@linuxcare.com.au>
2759 * ld.texinfo (HPPA ELF32): New section.
2761 * emultempl/hppaelf.em (group_size): New.
2762 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
2763 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
2764 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
2765 options to prevent abbreviations matching.
2766 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
2767 (PARSE_AND_LIST_ARGS_CASES): Handle it.
2769 2000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2771 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
2772 on the m68*-*-elf target. Make it support COFF input objects.
2774 2000-09-21 Kazu Hirata <kazu@hxi.com>
2776 * ldmain.c: Fix formatting.
2777 * ldmisc.c: Likewise.
2778 * ldver.c: Likewise.
2779 * ldwrite.c: Likewise.
2781 2000-09-21 Alan Modra <alan@linuxcare.com.au>
2783 * ldwrite.c (clone_section): Silence gcc warnings.
2785 2000-09-20 Alan Modra <alan@linuxcare.com.au>
2787 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
2788 out of memory failure.
2790 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
2791 (clone_section): Handle out of memory failures. Rename var to
2792 avoid c++ reserved word.
2794 2000-09-18 Alan Modra <alan@linuxcare.com.au>
2796 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
2797 stub_name param to stub_sec_name.
2798 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
2800 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2802 * emultempl/m68kelf.em: New file.
2803 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
2804 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
2805 * Makefile.in: Regenerate.
2807 2000-09-15 Alan Modra <alan@linuxcare.com.au>
2809 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
2812 2000-09-13 Nick Clifton <nickc@redhat.com>
2814 * ldmain.c (multiple_definition): Disable relaxation if
2815 multiple symbol definitions are encountered - otherwise the
2816 linker could abort with an assertion failure.
2818 2000-09-10 Nick Clifton <nickc@redhat.com>
2820 * mri.c: Fix formatting.
2822 2000-09-07 H.J. Lu <hjl@gnu.org>
2824 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
2825 * configure: Rebuild.
2827 2000-09-07 H.J. Lu <hjl@gnu.org>
2829 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
2830 * Makefile.in: Rebuild.
2832 2000-09-07 Alan Modra <alan@linuxcare.com.au>
2834 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
2835 broken list handling. Create __start_SECNAME and __stop_SECNAME
2836 when no place-holder. Add some comments. Test both SEC_CODE and
2837 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
2838 Handle case where no output section statement created.
2840 2000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
2842 * configure.tgt (sh-*-linux*): Added.
2843 * Makefile.am: Added eshelf_linux and eshlelf_linux.
2844 * Makefile.in: Rebuilt.
2845 * emulparams/shelf_linux.sh: New file.
2846 * emulparams/shlelf_linux.sh: New file.
2848 2000-09-06 Alan Modra <alan@linuxcare.com.au>
2850 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
2851 try shuffling sections when the orphan happens to be the place
2852 holder. Keep count of unique section names generated so we speed
2853 the search for a new name.
2855 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
2857 * configure: Rebuilt with new libtool.m4.
2859 2000-09-05 Nick Clifton <nickc@redhat.com>
2861 * Makefile.in: Regenerate.
2862 * aclocal.m4: Regenerate.
2863 * configure: Regenerate.
2864 * config.in: Regenerate.
2865 * po/ld.pot: Regenerate.
2867 * ldint.texinfo: Remove CVS revision marker - it foils local
2870 * emultempl/ticoff.em: Remove extraneous comma.
2872 2000-09-05 Alan Modra <alan@linuxcare.com.au>
2874 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
2875 to stub section flags.
2876 (hppa_for_each_input_file_wrapper): New.
2877 (hppa_lang_for_each_input_file): New.
2878 (lang_for_each_input_file): Define to call above.
2879 (multi_subspace): New.
2880 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
2881 (PARSE_AND_LIST_PROLOGUE): Define.
2882 (PARSE_AND_LIST_LONGOPTS): Define.
2883 (PARSE_AND_LIST_OPTIONS): Define.
2884 (PARSE_AND_LIST_ARGS_CASES): Define.
2885 (hppaelf_finish): Call elf32_hppa_set_gp.
2886 (hppaelf_set_output_arch): Remove.
2887 (LDEMUL_SET_OUTPUT_ARCH): Remove.
2889 * emulparams/hppalinux.sh (ELFSIZE): Define.
2891 (OTHER_READONLY_SECTIONS): Define.
2893 (GENERATE_SHLIB_SCRIPT): Define.
2895 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
2896 to const throughout. Change `void *' to `PTR' throughout.
2897 (lang_memory_default): Function is local to file, add `static'.
2899 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
2900 (ehppalinux.c): Likewise.
2901 (earmelf.c): Likewise.
2902 (earmelf_linux.c): Likewise.
2903 (earmelf_linux26.c): Likewise.
2904 * Makefile.in: Regenerate.
2906 * ld.h (ld_config_type): Add unique_orphan_sections.
2907 * lexsup.c (OPTION_UNIQUE): Define.
2908 (ld_options): Add "--unique".
2909 (parse_args): Handle it.
2910 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
2911 search for an existing output section if unique_orphan_sections is
2912 set. Make use of bfd_get_unique_section_name rather than
2913 duplicating code here.
2914 * ld.texinfo: Describe --unique.
2916 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
2917 optional arg to split-by-file.
2918 (parse_args): Handle them.
2919 * ld.texinfo: Update description of these options.
2920 * ldwrite.c (clone_section): Pass in the section name. Replace
2921 local code with bfd_get_unique_section_name.
2922 (split_sections): Tidy code and comments. Use a list traversal
2923 more appropriate to the list construction. Handle cooked section
2924 sizes. Split when split_by_reloc reached rather than exceeded.
2925 Track section size and split when split_by_file reached. Fix
2926 link_order_tail (even though it's not used).
2927 (ldwrite): Modify condition for calling split_sections to suit
2928 changed split_by_reloc and split_by_file.
2929 * ldmain.c (main): Init config.split_by_reloc and
2930 config.split_by_file to -1.
2931 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
2932 Change split_by_file to bfd_size_type.
2934 2000-09-02 Nick Clifton <nickc@redhat.com>
2936 * configure.in: Increase version number to 2.10.91.
2937 * NEWS: Mention new ability to support removal of duplicate DWARF2
2939 * configure: Regenerate.
2940 * aclocal.m4: Regenerate.
2941 * config.in: Regenerate.
2943 2000-09-02 Daniel Berlin <dberlin@redhat.com>
2945 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
2947 * scripttempl/elf32avr.sc: Ditto.
2948 * scripttempl/elfd10v.sc: Ditto.
2949 * scripttempl/elfd30v.sc: Ditto.
2950 * scripttempl/elfi370.sc: Ditto.
2951 * scripttempl/elfm68hc11.sc: Ditto.
2952 * scripttempl/elfm68hc12.sc: Ditto.
2953 * scripttempl/elfi386beos.sc: Ditto.
2954 * scripttempl/v850.sc: Ditto.
2956 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
2958 * acinclude.m4: Include libtool and gettext macros from the
2960 * aclocal.m4, configure: Rebuilt.
2962 2000-08-25 Nick Clifton <nickc@redhat.com>
2964 * ldlang.c (open_output): When choosing the target for a
2965 particular endianness, do nothing if the target is not
2968 2000-08-25 H.J. Lu <hjl@gnu.org>
2970 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
2971 check -rpath nor LD_RUN_PATH for cross link.
2972 * ld.texinfo: Document the change.
2974 2000-08-24 Hans-Peter Nilsson <hp@axis.com>
2976 * NEWS: Mention support for CRIS.
2978 2000-08-23 H.J. Lu <hjl@gnu.org>
2980 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
2981 the current runpath list from bfd_elf_get_runpath_list ()
2984 2000-08-22 H.J. Lu <hjl@gnu.org>
2986 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
2987 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
2988 LD_LIBRARY_PATH for native linker. Display the needed DSO if
2989 trace_file_tries is non-zero.
2990 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
2991 if trace_file_tries is non-zero.
2993 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
2996 2000-08-14 Jason Eckhardt <jle@cygnus.com>
2998 * NEWS: Mention i860 support.
3000 2000-08-14 Andreas Schwab <schwab@suse.de>
3002 * scripttempl/elf.sc: Fix last change to use correct comment
3005 2000-08-10 Geoff Keating <geoffk@cygnus.com>
3007 * scripttempl/elf.sc: Add a comment giving the correspondence
3008 between sections, per-datum sections, and linkonce sections. Make
3009 the comment true even for .bss, .sdata, .sdata2, .sbss, and
3012 2000-08-10 Jason Eckhardt <jle@cygnus.com>
3014 * emulparams/elf32_i860.sh: New file.
3015 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
3016 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
3017 (eelf32_i860.c): New rule.
3018 * Makefile.in: Regenerate.
3020 2000-08-10 Nick Clifton <nickc@cygnus.com>
3022 * emulparams/mipspe.sh (ENTRY): Add definition.
3024 2000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
3026 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
3029 2000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3031 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
3032 the final size of .bss section.
3033 * scripttempl/elfm68hc12.sc: Likewise.
3035 2000-08-04 Alan Modra <alan@linuxcare.com.au>
3037 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
3038 gld${EMULATION_NAME}_parse_args for consistency. Combine
3039 lastoptind and prevoptind vars, and keep track of last optind.
3040 (gld_${EMULATION_NAME}_list_options): Rename to
3041 gld${EMULATION_NAME}_list_options.
3043 2000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
3045 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
3046 (i586-sco-sysv5uw7.1.0).
3048 2000-07-27 H.J. Lu <hjl@gnu.org>
3050 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
3051 (PARSE_AND_LIST_PROLOGUE): New.
3052 (PARSE_AND_LIST_LONGOPTS): Likewise.
3053 (PARSE_AND_LIST_OPTIONS): Likewise.
3054 (PARSE_AND_LIST_ARGS_CASES): Likewise.
3055 (PARSE_AND_LIST_EPILOGUE): Likewise.
3057 2000-07-28 Alan Modra <alan@linuxcare.com.au>
3059 * emultempl/armelf.em: Elide functions common to elf32.em,
3060 ie. most of the file.
3061 (arm_elf_after_open): New. Do arm specific things then call
3062 gld${EMULATION_NAME}_after_open.
3063 (arm_elf_before_allocation): New. Call
3064 gld${EMULATION_NAME}_before_allocation then do arm specifics.
3065 (PARSE_AND_LIST_PROLOGUE): Define.
3066 (PARSE_AND_LIST_SHORTOPTS): Define.
3067 (PARSE_AND_LIST_LONGOPTS): Define.
3068 (PARSE_AND_LIST_OPTIONS): Define.
3069 (PARSE_AND_LIST_ARGS_CASES): Define.
3070 (LDEMUL_AFTER_OPEN): Define.
3071 (LDEMUL_BEFORE_ALLOCATION): Define.
3072 (LDEMUL_BEFORE_PARSE): Define.
3073 (LDEMUL_FINISH): Define.
3075 * emultempl/hppaelf.em: Similarly zap most of this file.
3076 (hppaelf_add_stub_section): Prototype.
3077 (hppaelf_layaout_sections_again): Prototype.
3078 (hook_in_stub): Prototype.
3079 (LDEMUL_SET_OUTPUT_ARCH): Define.
3080 (LDEMUL_FINISH): Define.
3081 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
3083 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
3084 (EXTRA_EM_FILE): New.
3085 * emulparams/armelf_linux.sh: Likewise.
3086 * emulparams/armelf_linux26.sh: Likewise.
3087 * emulparams/hppalinux.sh: Likewise.
3088 * emulparams/hppaelf.sh: Likewise.
3091 * emultempl/elf32.em: Fix formatting.
3092 (EXTRA_EM_FILE): Source it.
3093 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
3094 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
3095 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
3096 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
3097 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
3098 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
3099 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
3100 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
3101 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
3102 allow functions in this file to be overridden.
3103 (PARSE_AND_LIST_SHORTOPTS): Handle it.
3105 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
3107 * emultempl/elf32.em: Reorganize file.
3109 2000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
3111 * emulparams/elf64alpha.sh: Implement "-taso" emulation
3112 specific option to fit 64-bit executable in the lower
3113 31-bit address range. This is done by changing start
3114 address of .interp (the very first section of executable)
3115 and then setting EF_ALPHA_32BIT elf header flag.
3117 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3119 * emultempl/m68kcoff.em: New file.
3120 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
3121 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
3123 * Makefile.in: Regenerate.
3125 2000-07-20 H.J. Lu <hjl@gnu.org>
3127 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
3128 and "disable-new-dtags" to stop getopt from treating -d/-e as
3129 abbreviations for these options.
3131 2000-07-20 H.J. Lu <hjl@gnu.org>
3133 * ld.texinfo: Add documentation for --disable-new-dtags and
3136 * ldmain.c (main): Initialize link_info.new_dtags to false.
3138 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
3139 --disable-new-dtags and --enable-new-dtags.
3140 (gld_${EMULATION_NAME}_list_options): Likewise.
3142 2000-07-05 Kenneth Block <krblock@computer.org>
3144 * lexsup.c: Add optional style to demangle switch
3145 * ld.texinfo: Document optional style to demangle switch.
3147 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
3149 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
3151 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
3152 Regenerate dependencies.
3153 * Makefile.in: Rebuild.
3154 * configure.tgt (cris-*-*): New target.
3155 * emulparams/crisaout.sh, emulparams/criself.sh,
3156 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
3157 * po/POTFILES.in, po/ld.pot: Regenerate.
3159 2000-07-20 H.J. Lu <hjl@gnu.org>
3161 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
3162 Print out ignored -z options.
3164 2000-07-19 H.J. Lu <hjl@gnu.org>
3166 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
3167 (PARSE_AND_LIST_PROLOGUE): New.
3168 (PARSE_AND_LIST_LONGOPTS): Likewise.
3169 (PARSE_AND_LIST_OPTIONS): Likewise.
3170 (PARSE_AND_LIST_ARGS_CASES): Likewise.
3172 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
3174 * lexsup.c (ld_options): Comment out 'z'.
3175 (parse_args): Likewise.
3177 * emultempl/elf32.em: Include "elf/common.h".
3178 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
3180 (gld_${EMULATION_NAME}_list_options): Likewise.
3182 * ld.texinfo: Add documentation for the recognized -z options.
3184 2000-07-19 H.J. Lu <hjl@gnu.org>
3186 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
3187 bfd_elf_set_dt_needed_soname ().
3189 2000-07-18 DJ Delorie <dj@cygnus.com>
3191 * pe-dll.c (pe_dll_id_target): check object target name also
3193 2000-07-18 Hans-Peter Nilsson <hp@axis.com>
3195 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
3196 ${INIT_END} if relocating.
3197 (.fini): Likewise ${FINI_START} and ${FINI_END}.
3199 2000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
3201 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
3202 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
3203 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
3204 errors introduced by the old dynamic lib search order.
3206 2000-07-17 DJ Delorie <dj@cygnus.com>
3208 * pe-dll.c (process_def_file): auto-export data items also
3209 (pe_process_import_defs): also see if _imp_ form needed
3211 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
3213 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
3214 for dll import libraries
3216 2000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
3218 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
3219 gcc 2.95.2 and later.
3221 2000-07-11 Kazu Hirata <kazu@hxi.com>
3223 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
3226 2000-07-10 Alan Modra <alan@linuxcare.com.au>
3228 * ldemul.h (struct lang_input_statement_struct): Remove forward
3230 (struct search_dirs): Likewise.
3231 * ldfile.h (struct lang_input_statement_struct): Likewise.
3232 Protect file from multiple inclusion.
3233 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
3234 declaration from macro to file scope.
3236 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
3237 * ldgram.y: Likewise here.
3238 * ldlang.c: And here.
3239 * ldmain.c: And here.
3240 * mpw-elfmips.c: And here.
3241 * mpw-eppcmac.c: And here.
3242 * emultempl/aix.em: And here.
3243 * emultempl/armcoff.em: And here.
3244 * emultempl/armelf.em: And here.
3245 * emultempl/armelf_oabi.em: And here.
3246 * emultempl/beos.em: And here.
3247 * emultempl/elf32.em: And here.
3248 * emultempl/hppaelf.em: And here.
3249 * emultempl/linux.em: And here.
3250 * emultempl/lnk960.em: And here.
3251 * emultempl/pe.em: And here.
3252 * emultempl/sunos.em: And here.
3253 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
3254 * mpw-idtmips.c: Ditto.
3255 * emultempl/generic.em: Ditto.
3256 * emultempl/gld960.em: Ditto.
3257 * emultempl/gld960c.em: Ditto.
3258 * emultempl/mipsecoff.em: Ditto.
3259 * emultempl/ticoff.em: Ditto.
3260 * emultempl/vanilla.em: Ditto.
3262 * pe-dll.c: Include ldfile.h
3263 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
3265 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
3266 arguments to bfd_elf32_size_dynamic_sections call.
3267 (gldelf32ebmip_place_orphan): Add missing arguments to
3268 lang_leave_output_section_statement call.
3270 2000-07-10 H.J. Lu <hjl@gnu.org>
3272 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
3274 (strhash): Likewise.
3275 (compute_dll_image_base): Likewise.
3276 (pe_undef_found_sym): Likewise.
3277 (pe_undef_cdecl_match): Likewise.
3278 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
3279 argument "arch" with ATTRIBUTE_UNUSED.
3281 2000-07-10 Alan Modra <alan@linuxcare.com.au>
3283 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
3285 From Ryan Bradetich <rbradetich@uswest.net>
3286 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
3288 2000-07-09 Alan Modra <alan@linuxcare.com.au>
3290 Changes to create multiple linker stubs, positioned immediately
3291 before the section where they are required.
3292 * emultempl/hppaelf.em: Include elf32-hppa.h.
3293 (stub_sec, file_chain): Delete.
3294 (hppaelf_create_output_section_statements): Don't make a stub
3296 (hook_stub_info): New struct.
3297 (hook_in_stub): New function.
3298 (hppaelf_add_stub_section): New function.
3299 (hppaelf_finish): Do nothing for relocateable links. Modify the
3300 call to elf32_hppa_size_stubs. Move code for updating section
3302 (hppaelf_layaout_sections_again): ..to here, a new function.
3304 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
3305 broken list handling. Pass in a pointer to the list.
3306 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
3308 (hppaelf_before_parse): Prototype.
3309 (hppaelf_set_output_arch): Prototype.
3310 (hppaelf_create_output_section_statements): Prototype.
3311 (hppaelf_delete_padding_statements): Prototype.
3312 (hppaelf_finish): Prototype.
3315 * emultempl/hppaelf.em: Include ctype.h.
3316 (struct orphan_save): New.
3317 (gld${EMULATION_NAME}_place_orphan): New.
3318 (output_rel_find): New.
3319 (hppaelf_get_script): Update from elf32.em.
3320 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
3321 Change emulation_name field to "${EMULATION_NAME}". Add
3322 gld${EMULATION_NAME}_place_orphan.
3324 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
3325 ehppalinux.o, sort it. Regenerate dependencies.
3326 (ehppalinux.c): Depend on hppaelf.em
3327 * Makefile.in: Regenerate.
3329 * configure.tgt: targ_emul=hppalinux for hppa*linux
3331 * emulparams/hppalinux.sh: New.
3332 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
3334 2000-07-08 Alan Modra <alan@linuxcare.com.au>
3336 * lexsup.c (parse_args): Copy section name.
3338 2000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
3340 * emultempl/pe.em: institute the following search order for
3341 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
3342 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
3343 static lib (libfoo.a) if none of the above are found.
3345 2000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
3347 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
3348 (longopts): New --{enable,disable}-auto-image-base options.
3349 (gld_${EMULATION_NAME}_list_options): Document.
3350 (gld_${EMULATION_NAME}_parse): Handle.
3351 (strhash): New static function.
3352 (compute_dll_image_base): New static function.
3353 (gld_${EMULATION_NAME}_set_symbols): Use.
3355 2000-07-05 DJ Delorie <dj@redhat.com>
3359 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
3361 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
3362 * emulparams/elf32btsmip.sh: New file.
3363 * Makefile.am: Add traditional mips target.
3364 * Makefile.in: Rebuild.
3366 2000-07-01 H.J. Lu <hjl@gnu.org>
3368 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
3369 automake to use YLWRAP.
3370 * Makefile.in: Rebuild.
3372 2000-07-01 Alan Modra <alan@linuxcare.com.au>
3374 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
3375 (CLEANFILES): Add DEPA.
3376 * Makefile.in: Regenerate.
3378 2000-06-30 Timothy Wall <twall@ppc>
3380 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
3381 the page in the upper octet of the address.
3383 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
3385 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
3387 2000-06-24 Alan Modra <alan@linuxcare.com.au>
3389 * NEWS: arm-elf does --gc-sections too.
3391 2000-06-22 Alan Modra <alan@linuxcare.com.au>
3393 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
3395 * Makefile.in: Regenerate.
3397 2000-06-21 H.J. Lu <hjl@gnu.org>
3399 * Makefile.am: Rebuild dependency.
3400 * Makefile.in: Rebuild.
3402 2000-06-20 H.J. Lu <hjl@gnu.org>
3404 * Makefile.am: Rebuild dependency.
3405 * Makefile.in: Rebuild.
3407 2000-06-20 Timothy Wall <twall@cygnus.com>
3409 * scripttempl/tic54xcoff.sc: New.
3410 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
3411 * gen-doc.texi: Add flag for TI COFF.
3412 * ld.texinfo: Add documentation for TI COFF handling switches.
3413 * emultempl/ticoff.em: New. TI COFF handling.
3414 * configure.tgt: Add tic54x target.
3415 * Makefile.am: Add tic54x target.
3416 * Makefile.in: Ditto.
3418 2000-06-20 Alan Modra <alan@linuxcare.com.au>
3420 * ldmain.c (set_scripts_dir): Correct pointer comparison when
3421 checking for backslashes.
3423 2000-06-19 Alan Modra <alan@linuxcare.com.au>
3425 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
3427 2000-06-18 Alan Modra <alan@linuxcare.com.au>
3429 * NEWS: Update list of targets supporting --gc-sections.
3431 * scripttempl/elf.sc: KEEP .eh_frame contents.
3432 * scripttempl/elfd30v.sc: Same here.
3434 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
3436 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
3438 * Makefile.in: Rebuild.
3439 * configure.tgt: Recognize m68hc12 and m68hc11.
3440 * scripttempl/elfm68hc12.sc: New file.
3441 * emulparams/m68hc12elfb: New emulation.
3442 * emulparams/m68hc12elf: New emulation.
3443 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
3444 (includes a memory.x script to define the ROM and RAM banks).
3445 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
3446 New configuration files for support of Motorola 68hc11
3448 2000-06-15 Alan Modra <alan@linuxcare.com.au>
3450 * ldmain.c (main): Only change SEC_READONLY for final link.
3452 2000-06-13 H.J. Lu <hjl@gnu.org>
3454 * configure: Regenerate.
3456 2000-06-08 David O'Brien <obrien@FreeBSD.org>
3458 * configure.in (VERSION): Update to show this is the CVS mainline.
3460 2000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3462 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
3463 input objects to be ECOFF.
3464 (check_sections): einfo takes %B, not %P, to print a BFD name.
3466 2000-06-05 Michael Matz <matz@ifh.de>
3468 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
3471 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
3473 2000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
3475 * emulparams/avr1200.sh (STACK): Define as 0.
3476 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
3477 * emulparams/avr4433.sh (STACK): Likewise.
3478 * emulparams/avr44x4.sh (STACK): Likewise.
3479 * emulparams/avr85xx.sh (STACK): Likewise.
3480 * emulparams/avrmega103.sh (STACK): Likewise.
3481 * emulparams/avrmega161.sh (STACK): Likewise.
3482 * emulparams/avrmega603.sh (STACK): Likewise.
3483 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
3484 (__stack): Define from ${STACK} for main().
3486 2000-05-26 Alan Modra <alan@linuxcare.com.au>
3488 * Makefile.am: Update dependencies with "make dep-am"
3489 * Makefile.in: Regenerate.
3491 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
3493 * ldmain.c: Include filenames.h.
3494 (set_scripts_dir): Support backslashes in program name.
3496 2000-05-22 Igor Shevlyakov <igor@windriver.com>
3498 * ldmain.c (main): When deciding if ".text" section should be
3499 read-only, don't forget to reset SEC_READONLY because it
3500 could be already set.
3502 2000-05-22 Thomas de Lellis <tdel@windriver.com>
3504 * ld.1: Add documentation for new command line option:
3505 --section-start <sectionname>=<sectionorg>
3506 This is a generic version of -Ttext etc. which accepts
3507 any section name as a parameter instead of just text/data/
3509 * ld.texinfo: More docs.
3511 * lexsup.c: (parse_args): Recognize new command line option.
3512 (ld_options): Add new option.
3514 2000-05-18 H.J. Lu <hjl@gnu.org>
3516 * lexsup.c (parse_args): `i' == `r', not `q'.
3518 2000-05-18 Jeffrey A Law (law@cygnus.com)
3520 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
3522 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
3523 Rick Gorton <gorton@scrugs.lkg.dec.com>
3525 Add support for '-q' == '--emit-relocs' switch.
3526 * ldmain.c (main): Default to false.
3527 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
3528 * NEWS: Describe the emitrelocations switch.
3529 * ld.texinfo: Describe the emitrelocations switch.
3531 2000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
3533 * emultempl/pe.em (_open_dynamic_archive): New function: Search
3534 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
3535 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
3538 2000-05-15 David O'Brien <obrien@FreeBSD.org>
3540 * lexsup.c (parse_args): Update the year in the copyright notice.
3542 2000-05-13 Alan Modra <alan@linuxcare.com.au>
3544 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
3545 Replace defines with those from intl/libgettext.h to quieten gcc
3548 2000-05-10 H.J. Lu <hjl@gnu.org>
3550 * ldlang.c (open_input_bfds): Don't load the same file within
3551 a group again if the whole archive has been loaded already.
3553 2000-05-03 Alan Modra <alan@linuxcare.com.au>
3555 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
3556 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
3559 2000-05-01 Jim Wilson <wilson@cygnus.com>
3561 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
3563 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
3564 host "ia64-*-linux-gnu*".
3566 2000-04-29 Andreas Jaeger <aj@suse.de>
3568 * ld.h: Correctly check GCC version.
3570 2000-04-25 Jeffrey A Law (law@cygnus.com)
3572 * Makefile.am: Add PA64 support. Add missing dependencies for
3574 * Makefile.in: Rebuilt.
3575 * configure.tgt: Add PA64 support (currently disabled).
3577 2000-04-25 Alan Modra <alan@linuxcare.com.au>
3579 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
3580 (output_rel_find): New function.
3581 (hold_section, hold_use): Delete.
3582 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
3583 hold_interp): Make local to place_orphan.
3584 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
3585 rather than place_section to find possible previous use of orphan.
3586 Similarly find the place-holder output sections. Use returned
3587 value from lang_enter_output_section_statement rather than calling
3588 lang_output_section_statement_lookup.
3589 * emultempl/armelf.em: Same here.
3590 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
3592 * ldlang.c (lang_enter_output_section_statement): Return output
3594 * ldlang.h (lang_enter_output_section_statement): Change
3597 * ldlang.h (lang_output_section_statement): Export it.
3598 * ldlang.c (lang_output_section_statement): Ditto.
3600 2000-04-24 Nick Clifton <nickc@cygnus.com>
3602 * ld.texinfo (Output Section Data): Add note that section data
3603 commands cannot appear outside of section directives.
3605 2000-04-2 Matthew Green <mrg@cygnus.com>
3607 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
3609 2000-04-21 Richard Henderson <rth@cygnus.com>
3610 David Mosberger <davidm@hpl.hp.com>
3612 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
3613 (eelf64_ia64.c): New rule.
3614 * Makefile.in: Rebuild.
3615 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
3616 * emulparams/elf64_ia64.sh: New file.
3618 2000-04-21 Richard Henderson <rth@cygnus.com>
3620 * scripttempl/elfd30v.sc: Place .gcc_except_table.
3622 2000-04-19 Alan Modra <alan@linuxcare.com.au>
3624 * dep-in.sed: Match space at start of file name, not at end.
3626 2000-04-18 H.J. Lu <hjl@gnu.org>
3628 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
3629 lang_leave_output_section_statement () after calling
3630 lang_enter_output_section_statement ().
3631 * emultempl/armelf.em: Likewise.
3633 2000-04-18 Alan Modra <alan@linuxcare.com.au>
3635 * emultempl/elf32.em (struct orphan_save): Add section field.
3636 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
3637 better order, and place first orphan section as we did before the
3638 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
3639 Don't call make_bfd_section here, let wild_doit do the job for us.
3640 Don't build a statement list when we'll only throw it away.
3641 * emultempl/armelf.em: Ditto.
3642 * emultempl/pe.em: Similarly.
3644 2000-04-14 Geoff Keating <geoffk@cygnus.com>
3646 * scripttempl/elfppc.sc: Remove.
3647 * emulparams/elf32ppc.sh: Use elf.sc.
3648 * emulparams/elf32lppc.sh: Use elf.sc.
3649 * emulparams/elf32ppclinux.sh: Use elf.sc.
3650 * emulparams/elf32ppcsim.sh: New file.
3651 * emulparams/elf32lppcsim.sh: New file.
3652 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
3653 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
3654 * Makefile.in: Regenerate.
3655 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
3657 2000-04-14 Alan Modra <alan@linuxcare.com.au>
3659 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
3660 ~SEC_ALLOC sections too. Init start address of debug sections.
3661 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
3662 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
3663 Also set all relocateable section start addresses.
3665 2000-04-13 Geoff Keating <geoffk@cygnus.com>
3667 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
3668 Add new BSS_PLT variable for when .plt need not be contained in
3669 the file. Move _etext so that it is also after .fini, and provide
3670 both etext and _etext with a leading underscore. Mark the start
3673 2000-04-12 Alan Modra <alan@linuxcare.com.au>
3675 * emultempl/elf32.em (struct orphan_save): New.
3676 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
3677 hold_interp): Make them struct orphan_save.
3678 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
3679 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
3680 the end of the relevant section list. Also add associated section
3681 statements to the end of any previous orphan statements.
3682 * emultempl/armelf.em: Similarly.
3683 * emultempl/pe.em: Similarly.
3685 2000-04-11 Alan Modra <alan@linuxcare.com.au>
3687 * ld.texinfo (Simple Example): Remove extraneous paragraph.
3689 2000-04-07 Andrew Cagney <cagney@b1.cygnus.com>
3691 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
3692 --enable-build-warnings option.
3693 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
3694 * Makefile.in, configure: Re-generate.
3696 2000-04-04 Alan Modra <alan@linuxcare.com.au>
3698 * po/ld.pot: Regenerate.
3700 * lexsup.c (help): Restore translated part of bug string.
3702 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
3703 (DEP): Quote when passing vars to sub-make. Add warning message
3705 (DEP1): Rewrite for "gcc -MM".
3706 (CLEANFILES): Add DEP2.
3707 Update dependencies.
3708 * Makefile.in: Regenerate.
3710 2000-04-03 Alan Modra <alan@linuxcare.com.au>
3712 * ld.h: #include "bin-bugs.h"
3713 * lexsup.c (help): Use REPORT_BUGS_TO.
3715 2000-03-27 Denis Chertykov <denisc@overta.ru>
3717 * configure.tgt (avr-*-*): New target support.
3718 * Makefile.am: Likewise.
3719 * scripttempl/elf32avr.sc: New script file.
3720 * emulparams/avr1200.sh: New file.
3721 * emulparams/avr23xx.sh: New file.
3722 * emulparams/avr4433.sh New file.
3723 * emulparams/avr44x4.sh New file.
3724 * emulparams/avr85xx.sh New file.
3725 * emulparams/avrmega103.sh New file.
3726 * emulparams/avrmega161.sh New file.
3727 * emulparams/avrmega603.sh New file.
3728 * Makefile.in: Regenerate.
3730 2000-03-09 Andreas Jaeger <aj@suse.de>
3732 * Makefile.am (check-DEJAGNU): Also unset LANG.
3733 * Makefile.in: Rebuild.
3735 2000-03-06 Ian Lance Taylor <ian@zembu.com>
3737 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
3740 2000-03-02 H.J. Lu <hjl@gnu.org>
3742 * emulparams/elf32mcore.sh: Include "getopt.h".
3744 2000-03-01 Ian Lance Taylor <ian@zembu.com>
3746 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
3748 2000-03-01 H.J. Lu <hjl@gnu.org>
3750 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
3751 * emulparams/shpe.sh: Likewise.
3753 2000-03-01 Nick Clifton <nickc@cygnus.com>
3755 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
3756 to unused parameters.
3758 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
3759 functions only used by DLL code.
3760 (_place_orphan): Initialise 'dollar'.
3762 2000-03-01 H.J. Lu <hjl@gnu.org>
3764 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
3765 indicate if the undefined symbol is a fatal error or not.
3766 Don't delete the output file if "fatal" is false.
3768 2000-02-29 H.J. Lu <hjl@gnu.org>
3770 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
3771 Set LC_COLLATE and LC_ALL to null and export them. It is for
3772 sort which expects the C locale.
3773 Add $(LIBS) to all $(HOSTING_LIBS).
3774 * Makefile.in: Rebuild.
3776 2000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
3778 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
3779 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
3780 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
3781 (ld_emulation_xfer_struct): Add missing NULL initialiser for
3782 find_potential_libraries.
3784 2000-02-28 Jim Blandy <jimb@redhat.com>
3786 * ldgram.y (exclude_name_list): Don't require a comma to separate
3787 list entries; the lexer considers commas to be valid part of a
3788 filename, so in something like `foo, bar' the comma is considered
3789 part of the first filename, `foo,'.
3790 * ld.texinfo: Update section on EXCLUDE_FILE lists.
3792 2000-02-27 Loren J. Rittle <ljrittle@acm.org>
3794 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
3795 host "i[3456]86-*-freebsdelf*".
3797 2000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
3799 * scripttempl/i386go32.sc: Move misplaced semicolons.
3801 2000-02-25 Ian Lance Taylor <ian@zembu.com>
3803 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
3804 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
3805 (eelf64hppa.c, ehppaelf.c): Remove targets.
3806 * Makefile.in: Rebuild.
3808 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
3810 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
3811 GNU/Linux/sparc, but keep the default as 32.
3813 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
3814 it default if sparcv9 or sparc64.
3816 2000-02-24 Nick Clifton <nickc@cygnus.com>
3818 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
3819 * Makefile.in: Regenerate.
3820 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
3822 * ldemul.h (ld_emulation_xfer_struct): Add new field:
3823 find_potential_libraries.
3824 * ldemul.c (ldemul_find_potential_libraries): New function.
3826 * ldfile.c (ldfile_open_file_search): Allow function to be
3828 (ldfile_open_file): Call ldemul_find_potential_libraries.
3829 * ldfile.h: Add prototype for ldfile_open_file_search.
3831 * pe-dll.c: Add support for ARM, MIPS and SH targets.
3833 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
3834 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
3836 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
3837 (gld_X_find_potential_libraries): New function. Search for
3838 libraries called "*.lib".
3840 * scripttempl/pe.sc: Add .pdata section.
3842 2000-02-23 Richard Henderson <rth@cygnus.com>
3844 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
3845 Add and use memory regions.
3847 2000-02-23 Linas Vepstas (linas@linas.org)
3849 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
3851 * Makefile.am: Add support for Linux/IBM 370.
3852 * configure.tgt: Likewise.
3854 * Makefile.in: Regenerate.
3856 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
3858 * ldlang.c (print_input_section, print_data_statement,
3859 print_reloc_statement, print_padding_statement, insert_pad,
3860 size_input_section, lang_check_section_addresses,
3861 lang_size_sections, lang_do_assignments, lang_set_startof,
3862 lang_one_common): Change `opb' to unsigned.
3863 (lang_do_assignments): Also change `size' to unsigned.
3865 2000-02-16 Richard Henderson <rth@cygnus.com>
3867 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
3869 2000-02-16 Timothy Wall <twall@cygnus.com>
3871 * mri.c (mri_draw_tree): Add default LMA region argument to call
3872 to lang_leave_output_section_statement.
3873 * ldlang.h: Update prototypes with LMA region arguments.
3874 * ldlang.c (lang_size_sections): Encapsulate region bounds
3875 checking in os_check_region call.
3876 (os_check_region): New function.
3877 (lang_output_section_statement_lookup): Initialize lma_region.
3878 (lang_leave_output_section_statement): Add LMA region argument.
3879 (lang_leave_overlay): Ditto.
3880 * ldgram.y: Handle LMA region syntax.
3881 * ld.texinfo (Output Section Description): Describe LMA region usage.
3882 * emultempl/armelf.em (gld$place_orphan): Add default value for
3883 lma region in call to lang_leave_output_section_statement.
3884 * emultempl/elf32.em (gld$place_orphan): Add default value for
3885 lma region in call to lang_leave_output_section_statement.
3886 * emultempl/pe.em (gld$place_orphan): Add default value for
3887 lma region in call to lang_leave_output_section_statement.
3890 2000-02-04 Timothy Wall <twall@redhat.com>
3892 * ldlang.c (lang_check_section_addresses): Use bytes instead of
3893 octets when calculating section end addresses.
3895 2000-02-04 Timothy Wall <twall@redhat.com>
3897 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
3899 2000-02-03 Timothy Wall <twall@redhat.com>
3901 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
3903 * ldlang.c (print_input_section, print_data_statement,
3904 print_reloc_statement, print_padding_statement): Print target
3905 address values and section sizes as bytes, not octets.
3906 (insert_pad) Calculate padding size in octets, and adjust "dot"
3908 (size_input_section) Always adjust "dot" by bytes, not octets.
3909 (lang_check_section_addresses, lang_do_assignments) Adjust
3910 "dot" by bytes, not octets. Use the larger of the directive size
3911 or octets_per_byte for the number of octets actually allocated in
3913 (lang_set_startof) Make sure STARTOF returns a target address.
3914 (lang_one_common) Record size changes in octets.
3915 (lang_abs_symbol_at_end_of) Section end symbol's value is
3916 recorded in target bytes.
3917 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
3918 to be clear about behavior when an octet is smaller than one byte.
3920 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
3922 * ldcref.c (output_cref): Don't pass message strings to printf
3926 * ldmisc.c (vfinfo): Same here.
3929 2000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
3931 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
3932 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
3933 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
3934 Add missing NULL initialisers, and comments.
3936 * testsuite/ld-srec/sr3.cc (__rethrow): New.
3938 2000-01-21 Nick Clifton <nickc@cygnus.com>
3940 * ldlang.c (lang_size_sections): Fix typo in comment.
3942 2000-01-18 H.J. Lu <hjl@gnu.org>
3944 * ldlang.c (lang_size_sections): Also update the current
3945 address of a region if the SEC_NEVER_LOAD bit is not set.
3947 2000-01-10 Philip Blundell <pb@futuretv.com>
3949 * configure.tgt (arm*-*-conix*): New target.
3951 2000-01-07 Nick Clifton <nickc@cygnus.com>
3953 * ld.texinfo (Options): Remind users to preceed linker command
3954 line switches with -Wl, (or whatever is appropriate) if it is
3955 being invoked by a comnpiler driver program.
3956 Fix description of the behaviour of the -n command line switch.
3958 2000-01-05 Catherine Moore <clm@cygnus.com>
3960 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
3962 * ld.texinfo (EXCLUDE_FILE): Update documentation.
3963 * ldgram.y (wildcard_spec): Support a list of excluded_files.
3964 (exclude_name_list): New.
3965 ldlang.c (walk_wild_section): Support list of excluded files.
3966 (print_wild_statement): Likewise.
3967 (lang_add_wild): Likewise.
3968 * ldlang.h (lang_wild_statement_type): Likewise.
3969 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
3971 2000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
3973 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
3974 (process_def_file): Use.
3975 (pe_dll_compat_implib): New variable.
3978 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
3979 pe_dll_compat_implib.
3981 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
3982 compat-implib options.
3983 (gld_${EMULATION_NAME}_list_options): List new options.
3984 (gld_${EMULATION_NAME}_parse_args): Handle.
3986 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
3989 * deffilep.y (opt_name): Allow "." in name.
3991 For older changes see ChangeLog-9899
3997 version-control: never