1 2002-05-06 Nick Clifton <nickc@redhat.com>
3 * po/sv.po: New translation.
5 2002-05-04 Alan Modra <amodra@bigpond.net.au>
7 * emultempl/hppaelf.em (build_section_lists): New function.
8 (gld${EMULATION_NAME}_finish): Call elf32_hppa_setup_section_lists
9 and build_section_lists.
11 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
13 * ld.h: Fix formatting.
21 2002-05-02 Alan Modra <amodra@bigpond.net.au>
23 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
24 Adjust for ppc64_elf_set_toc change. #include libbfd.h.
25 (build_section_lists): Do output_section tests here.
27 2002-04-30 Tom Rix <trix@redhat.com>
29 * emultempl/aix.em : (gld*_parse_arge): Formatting changes.
31 2002-05-01 Alan Modra <amodra@bigpond.net.au>
33 Long branch stubs, multiple stub sections.
34 * emultempl/ppc64elf.em: Include ldctor.h.
36 (group_size): New var.
37 (ppc_create_output_section_statements): New function.
38 (struct hook_stub_info): New.
39 (hook_in_stub): New function.
40 (ppc_add_stub_section): New function.
41 (ppc_layout_sections_again): New function.
42 (build_section_lists): New function.
43 (gld${EMULATION_NAME}_finish): Rewrite.
45 (ppc_for_each_input_file_wrapper): New function.
46 (ppc_lang_for_each_input_file): New function.
47 (lang_for_each_input_file): Define.
48 (PARSE_AND_LIST_PROLOGUE): Define.
49 (PARSE_AND_LIST_LONGOPTS): Define.
50 (PARSE_AND_LIST_OPTIONS): Define.
51 (PARSE_AND_LIST_ARGS_CASES): Define.
52 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
54 2002-04-30 Tom Rix <trix@redhat.com>
56 * emultempl/aix.em (gld*_parse_arge, gld*_before_allocation): Add
57 -blibpath, -bnolibpath support.
59 2002-04-30 Mark Mitchell <mark@codesourcery.com>
61 * Makefile.am (ALL_EMULATIONS): Add elf32ppcwindiss.o.
62 (eelf32ppcwindiss.c): New target.
63 * Makefile.in: Regenerated.
64 * configure.tgt: Add support for powerpc-*-windiss.
65 * emulparams/elf32ppcwindiss.sh: New file.
67 2002-04-30 Richard Sandiford <rsandifo@redhat.com>
69 * ldlang.c (print_assignment): Update print_dot for assignments to ".".
70 * ldexp.c (exp_print_token): Add "infix_p" argument.
71 (exp_print_tree): Update accordingly.
73 2002-04-28 Alan Modra <amodra@bigpond.net.au>
75 * Makefile.am (mpw): New maintainer mode rule to make mpw-*.c files.
76 * Makefile.in: Regenerate.
77 * mpw-elfmips.c: Delete.
78 * mpw-eppcmac.c: Delete.
80 * mpw-idtmips.c: Delete.
82 Wed Apr 17 19:23:14 2002 J"orn Rennecke <joern.rennecke@superh.com>
84 * emulparams/shelf32.sh (MACHINE): Now sh5.
86 2002-04-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
88 * ldgram.y: Fix syntax warning.
90 2002-04-11 Nick Clifton <nickc@cambridge.redhat.com>
92 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Add 'n' in order
93 to prevent "-n" from being taken as an abbreviation for
94 "--no-pipeline-knowledge".
96 2002-04-08 Alan Modra <amodra@bigpond.net.au>
98 * ldlang.c (lang_size_sections_1): Don't complain about
99 SEC_NEVER_LOAD sections having no memory region specified.
101 * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.
103 2002-04-07 matthew green <mrg@redhat.com>
105 * ld/configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
107 2002-04-04 Alan Modra <amodra@bigpond.net.au>
109 * dep-in.sed: Cope with absolute paths.
110 * Makefile.am (dep.sed): Subst TOPDIR and BFDDIR.
112 * Makefile.in: Regenerate.
114 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
116 * emulparams/elf64btsmip.sh: n64 replaces .reginfo with .MIPS.options.
118 2002-04-03 Jakub Jelinek <jakub@redhat.com>
120 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size
121 is smaller than maximum, round dot up to common page boundary.
123 2002-03-28 Alan Modra <amodra@bigpond.net.au>
125 * configure.host: Set up for generic hosts first, then tweak as
126 necessary in more specific targets.
127 (HOSTING_LIBS): Include libgcc_eh.a if found.
129 2002-03-23 Andreas Jaeger <aj@suse.de>
131 * emulparams/elf_x86_64.sh (COMMONPAGESIZE): Set it.
133 2002-03-21 Alan Modra <amodra@bigpond.net.au>
135 * Makefile.am: Run "make dep-am".
136 * Makefile.in: Regenerate.
138 2002-03-21 Albert Chin-A-Young <china@thewrittenword.com>
140 * genscripts.sh (LIB_SEARCH_DIRS): Quote path.
142 2002-03-20 Alan Modra <amodra@bigpond.net.au>
144 * ldlang.c (ldlang_add_undef): If the output bfd has been opened,
145 add the symbol to the linker hash table immediately.
146 (lang_place_undefineds): Split symbol creation out..
147 (insert_undefined): ..to here.
149 2002-03-18 David O'Brien <obrien@FreeBSD.org>
151 * emultempl/elf32.em: Use lbasename vs. basename to fix problem where
152 the contents of the buffer returned from basename function will are
153 getting overwritten while still being used.
155 Mon Mar 18 17:38:39 CET 2002 Jan Hubicka <jh@suse.cz>
156 Andreas Jaeger <aj@suse.de>
157 Andreas Schwab <schwab@suse.de>
159 * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native.
160 * elf_x86_64.sh (ARCH): Set to i386:x86-64
161 set libraries to default to lib64 paths.
163 2002-03-18 Tom Rix <trix@redhat.com>
165 * Makefile.am : Add eaix5ppc and eaix5rs6, AIX 5 support.
166 * configure.tgt : Same.
167 * emulparms/aix5ppc.sh : New file. For eaix5ppc.
168 * emulparms/aix5rs6.sh : New file. For eaix5rs6.
169 * emulparms/aixppc.sh : OUPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT
170 emulation parameters for better -b32, -b64 support.
171 * emulparms/aixrs6.sh : Same.
172 * emulparms/ppcmacos.sh : Same.
173 * emultempl/aix.em (choose_target) : Use new emulation parameters
174 OUTPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT.
175 * Makefile.in : Regenerate.
177 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
179 * po/fr.po: Updated version.
181 2002-03-18 Alan Modra <amodra@bigpond.net.au>
183 * ldmain.c (main): Move .text readonly flag fudges from here..
184 * ldlang.c (lang_process): ..to here.
186 2002-03-14 Alan Modra <amodra@bigpond.net.au>
188 * ldlang.c (lang_check): Remove the word size check added in last
189 change. Treat emitrelocations case as for relocatable links.
191 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
193 * po/fr.po: Updated version.
195 2002-03-13 Alan Modra <amodra@bigpond.net.au>
197 * ldlang.c (lang_check): Do relocatable link checks first, so that
198 warn_mismatch can't override. Check compatible and word size too.
200 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
202 * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
204 2002-03-05 Jakub Jelinek <jakub@redhat.com>
206 * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
209 2002-03-04 H.J. Lu <hjl@gnu.org>
211 * scripttempl/elf.sc: Put .preinit_array, .init_array and
212 .fini_array in the data segment.
214 2002-03-04 Alan Modra <amodra@bigpond.net.au>
216 * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
218 2002-03-01 David Mosberger <davidm@hpl.hp.com>
220 * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
221 .init_array, and .fini_array.
223 2002-02-20 Andreas Schwab <schwab@suse.de>
225 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
226 .IA64_unwind* in a relocatable link.
228 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
230 * NEWS: Mark 2.12 branch.
232 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
234 * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
235 * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
237 2002-02-18 Tom Rix <trix@redhat.com>
239 * emultempl/aix.em (gld*_parse_args): Add -brtl support.
240 (gld*_before_allocation): Same.
241 (gld*_create_output_section_statements): Generate
242 __rtinit if run time linking. Add librtl.a to the link.
243 (gld*_read_file): Clean.
245 2002-02-18 Alan Modra <amodra@bigpond.net.au>
247 * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
249 2002-02-18 David O'Brien <obrien@FreeBSD.org>
251 * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
252 eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
253 and eelf64alpha_fbsd.
254 * Makefile.in: Regenerate.
255 * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
256 x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
257 use a FreeBSD-specific emulation rather than the psABI one.
258 * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
259 for all FreeBSD ELF systems.
260 * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
262 * emulparams/elf32ppc_fbsd.sh: Likewise.
263 * emulparams/elf64_ia64_fbsd.sh: Likewise.
264 * emulparams/elf64_sparc_fbsd.sh: Likewise.
265 * emulparams/elf64alpha_fbsd.sh: Likewise.
266 * emulparams/elf_i386_fbsd.sh: Likewise.
267 * emulparams/elf_x86_64_fbsd.sh: Likewise.
269 2002-02-18 Nick Clifton <nickc@cambridge.redhat.com>
271 * po/tr.po: Updated version.
273 2002-02-18 Alan Modra <amodra@bigpond.net.au>
275 * ld.texinfo (Output Section Fill): Fix amateur texinfo.
278 2002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
280 * emultempl/mmo.em (mmo_after_open): Don't call
281 _bfd_mmix_check_all_relocs when producing ELF output.
283 2002-02-15 Richard Henderson <rth@redhat.com>
285 * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
286 definition. Emit a unop+nop pair.
288 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
290 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
291 for presence of .MMIX.reg_contents.linker_allocated before early
294 * NEWS: Mention support for MMIX.
296 2002-02-15 Alan Modra <amodra@bigpond.net.au>
298 Support arbitrary length fill patterns.
299 * ld.texinfo (Output Section Fill): Describe fill expressions.
300 (FILL): Refer to the above.
301 * ldexp.h (etree_value_type): Add "str" field.
302 (union etree_union): Add "str" to "value" struct.
303 (exp_bigintop): Declare.
304 (exp_get_fill): Declare.
305 * ldexp.c: Include "safe-ctype.h".
306 (exp_intop): Set value.str to NULL.
307 (exp_bigintop): New function.
308 (new_rel): Pass in "str", and set new.str from it.
309 (new_rel_from_section): Set new.str to NULL.
310 (fold_name): Adjust calls to new_rel.
311 (exp_fold_tree): Likewise.
312 (exp_get_fill): New function.
313 * ldgram.y (struct big_int bigint, fill_type *fill): New.
314 (INT): Returns a "bigint". Adjust all code handling INTs.
315 (fill_opt): Returns a "fill".
316 (fill_exp): Split out of fill_opt, use for FILL.
317 * ldlang.h (struct _fill_type): New.
318 (fill_type): Move typedef to ldexp.h.
319 (lang_output_section_statement_type): "fill" is now a pointer.
320 (lang_fill_statement_type): Likewise.
321 (lang_padding_statement_type): Likewise.
322 (lang_add_fill): Now takes a "fill_type *" param.
323 (lang_leave_output_section_statement): Likewise.
324 (lang_do_assignments): Likewise.
325 (lang_size_sections): Likewise.
326 (lang_leave_overlay_section): Likewise.
327 (lang_leave_overlay): Likewise.
328 * ldlang.c: Include ldgram.h after ldexp.h.
329 (lang_output_section_statement_lookup): Adjust for fill_type change.
330 (print_fill_statement): Likewise.
331 (print_padding_statement): Likewise.
332 (insert_pad): Now takes a "fill_type *" arg.
333 (size_input_section): Likewise.
334 (lang_size_sections_1): Likewise.
335 (lang_size_sections): Likewise.
336 (lang_do_assignments): Likewise.
337 (lang_add_fill): Likewise.
338 (lang_leave_output_section_statement): Likewise.
339 (lang_leave_overlay_section): Likewise.
340 (lang_leave_overlay): Likewise.
341 Adjust all callers of the above function.
342 * ldlex.l: Include ldgram.h after ldexp.h. Allow hex numbers
343 starting with "0X" as well as "0x". Return bigint.str for hex
344 numbers starting with "0x" or "0X", zero bigint.str otherwise.
345 Always use base 16 for numbers starting with "$".
346 * ldmain.c: Include ldgram.h after ldexp.h.
347 * ldwrite.c (build_link_order): Use bfd_data_link_order in place
348 of bfd_fill_link_order.
349 * pe-dll.c: Adjust lang_do_assignments calls.
350 * emultempl/elf32.em: Likewise.
351 * emultempl/hppaelf.em: Likewise.
352 * emultempl/ppc64elf.em: Likewise.
353 * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
354 lang_add_assignment call.
355 * emultempl/pe.em: Likewise.
357 2002-02-14 Phil Edwards <pme@gcc.gnu.org>
359 * ld.texinfo (VERSION scripts): Symbol names are globbing patterns.
360 * ldgram.y (lang_new_vers_regex): Rename to lang_new_vers_pattern;
361 the pattern in question is not a regexp.
362 * ldlang.c: Likewise.
363 * ldlang.h: Likewise.
364 * ldlex.l (V_IDENTIFIER): Allow '[', ']', '-', '!', and '^' also.
366 2002-02-12 Jakub Jelinek <jakub@redhat.com>
368 * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
369 * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
370 (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
371 * ldexp.c (exp_data_seg): New variable.
372 (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
373 (fold_binary): Handle DATA_SEGMENT_ALIGN.
374 (exp_fold_tree): Handle DATA_SEGMENT_END.
375 Pass allocation_done when recursing instead of hardcoding
376 lang_allocating_phase_enum.
377 * ldexp.h (exp_data_seg): New.
378 * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
379 (lang_size_sections): New.
380 * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
381 * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
382 if COMMONPAGESIZE is defined.
383 * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
384 * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
385 * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
386 * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
387 * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
390 2002-02-11 Alan Modra <amodra@bigpond.net.au>
392 * Makefile.in: Regenerate.
394 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
396 * lexsup.c: Remove strtoul declaration.
398 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
400 * ldmain.c: Add prototype for main ().
401 * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
402 * emultempl/lnk960.em (lnk960_choose_target): Function should
405 2002-02-10 Alan Modra <amodra@bigpond.net.au>
407 * ldlang.c (entry_section): New initialised variable.
408 (lang_finish): Use it.
409 * ldlang.h (entry_section): Declare.
410 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
411 entry_section to ".opd".
413 2002-02-09 Chris Demetriou <cgd@broadcom.com>
415 * ld.texinfo (Options): Add back in -nostdlib documentation,
416 which had been inadvertently removed.
418 2002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
420 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
421 register section vma to a sane value after emitting error. Make
422 fatal conditions cause program exit when emitting message.
424 2002-02-08 Ivan Guzvinec <ivang@opencores.org>
426 * configure.tgt: Add or32-*-rtems target.
428 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
431 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
432 * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
433 in OTHER_RELOCATABLE_SECTIONS.
434 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
435 * emulparams/shelf32.sh (STACK_ADDR): Define.
436 (OTHER_RELOCATABLE_SECTIONS): Renamed to...
437 (OTHER_SECTIONS): this. Removed stack settings.
438 * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
439 (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
440 2001-03-12 DJ Delorie <dj@redhat.com>
441 * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
442 relaxing if any shmedia or mixed sections are found.
443 2001-03-07 DJ Delorie <dj@redhat.com>
444 * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
445 einfo. Gracefully decline to output to non-elf formats.
446 2001-03-06 Hans-Peter Nilsson <hpn@redhat.com>
447 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
448 Default to _end aligned to next multiple of 0x40000, plus 0x40000.
449 * emulparams/shelf32.sh: Ditto.
450 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
451 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
453 2001-01-10 Ben Elliston <bje@redhat.com>
454 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
455 non-portable shell constructs. From Hans-Peter Nilsson.
456 2001-01-09 Hans-Peter Nilsson <hpn@cygnus.com>
457 * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
458 * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
459 dependencies to the shell script include chain.
460 * Makefile.in: Regenerate.
461 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
462 * emultempl/sh64elf.em: Update and tweak comments.
463 (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
464 make a .cranges section SEC_IN_MEMORY.
465 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
466 * emultempl/sh64elf.em
467 (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
468 .cranges section found to be necessary; continue and set stored
469 section contents flags for sections with non-mixed contents.
470 Use a struct sh64_section_data container and sh64_elf_section_data
471 to store contents-type flags.
472 Remove unused update of "isec".
473 (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
474 sections marked SHF_SH5_ISA32_MIXED. Use sh64_elf_section_data to
475 access contents-type flags. Assert that the associated container
476 is initialized. Use that container, not elf_gp_size, to hold size
477 of linker-generated cranges contents.
478 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
479 * emultempl/sh64elf.em
480 (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
481 there's already a .cranges section. When section flag difference
482 is found, don't NULL-check cranges a second time. Tweak comments.
483 (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
484 merging, not max size, as size of ld-generated .cranges contents.
485 Don't set ELF section flags in output section. When checking for
486 needed .cranges descriptors, don't use a variable; compare
487 incoming ELF section flags directly to SHF_SH5_ISA32_MIXED. Tweak
489 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
490 * emultempl/sh64elf.em: New file.
491 * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
492 * Makefile.in: Regenerate.
493 * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
494 (OTHER_RELOCATING_SECTIONS): Ditto.
495 (EXTRA_EM_FILE): New, set to sh64elf if not set.
496 * emulparams/shlelf32.sh: Stub out all settings except
497 OUTPUT_FORMAT. Source shelf32.sh.
498 * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
499 OTHER_RELOCATING_SECTIONS.
500 (OTHER_RELOCATING_SECTIONS): Remove .cranges.
501 * emulparams/shlelf64.sh: Stub out all settings except
502 OUTPUT_FORMAT. Source shelf64.sh.
503 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
504 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
506 (DATA_START_SYMBOLS): Define, provide ___data.
507 (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
508 for consecutive .data section.
509 (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
510 section after .data section.
511 * emulparams/shlelf64.sh: Ditto.
512 * emulparams/shelf32.sh: Ditto.
513 (ALIGNMENT): Define to 8.
514 * emulparams/shelf32.sh: Ditto.
515 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
516 * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
517 built-in linker scripts.
518 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
519 * emulparams/shlelf64.sh: New.
520 * emulparams/shelf64.sh: New.
521 * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
523 * Makefile.am: Add support for shlelf64 and shelf64.
524 * Makefile.in: Regenerate.
525 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
526 * configure.tgt (sh64-*-elf*): Add shelf as default.
527 Add shlelf to targ_extra_emuls.
528 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
529 * emulparams/shelf32.sh: New file.
530 * emulparams/shlelf32.sh: New file.
531 * Makefile.am: Add support for shlelf32 and shelf32.
532 * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
533 * Makefile.in: Regenerate.
535 2002-02-05 Hans-Peter Nilsson <hp@axis.com>
537 * ldlang.c (lang_reset_memory_regions): Rename from
538 reset_memory_regions. Change all callers. Make public.
539 * ldlang.h (lang_reset_memory_regions): Prototype.
540 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
541 lang_reset_memory_regions before lang_size_sections.
542 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
543 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
545 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
547 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
548 arithmetic when checking for too many global registers.
550 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
552 * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
553 (ehppanbsd.c): New rule.
554 * Makefile.in: Regenerate.
555 * configure.tgt (hppa*-*-netbsd*): New target.
556 * emulparams/hppalinux.sh: Add comment to check other files
557 that source this file it is modified, and list which
559 * emulparams/hppanbsd.sh: New file.
561 2002-02-01 Geoffrey Keating <geoffk@redhat.com>
563 * scripttempl/xstormy16.sc: Don't allocate extra space for the
566 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
568 Support on-demand global register allocation from
569 R_MMIX_BASE_PLUS_OFFSET relocs.
570 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
571 mmix_set_reg_section_vma. Call
572 _bfd_mmix_finalize_linker_allocated_gregs.
573 (mmix_before_allocation): New function.
574 (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
575 (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
576 * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
577 (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
578 before .MMIX.reg_contents.
579 * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
580 (mmo_after_open): New function.
581 (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
582 * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting. Add
583 .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
585 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
587 * emulparams/or32.sh: New file.
588 * emulparams/or32elf.sh: New file.
589 * scripttempl/or32.sc: New file.
590 * configure.tgt : Add support for or32.
591 * configure: Regenerate
592 * Makefile.am: Add support for or32.
593 * Makefile.in: Regenerate.
594 * NEWS: Mention support for or32.
595 * po/ld.pot: Regenerate.
597 2002-01-29 Chris Demetriou <cgd@broadcom.com>
598 Mitch Lichtenberg <mpl@broadcom.com>
600 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
601 * emultempl/mipself.em: New file to handle MIPS ELF embedded
602 reloc creation (ld --embedded-relocs).
604 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
606 * configure: Regenerated.
608 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
610 * Makefile.am (install): Depend on install-info.
611 * Makefile.in: Regenerate.
613 2002-01-26 Christian Rose <menthos@menthos.com>
615 * ldmain.c (main): Use full sentences to ease translation.
617 2002-01-26 Nick Clifton <nickc@cambridge.redhat.com>
619 * po/fr.po: Updated version.
621 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
623 * po/es.po: Updated version.
625 2002-01-25 Andreas Jaeger <aj@suse.de>
627 * ldlex.l (yy_input): Correct error check.
629 2002-01-25 Alan Modra <amodra@bigpond.net.au>
631 * ldmisc.c (demangle): Put back dots when string not demangled.
633 2002-01-22 Richard Henderson <rth@redhat.com>
635 * emulparams/elf64alpha.sh (NOP): Use unop.
637 2002-01-21 Andreas Jaeger <aj@suse.de>
639 * ldlex.l: Use fread instead of read.
641 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
643 * configure.tgt (ia64-*-netbsd*): New target.
645 2002-01-21 H.J. Lu <hjl@gnu.org>
647 * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
649 * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
651 2002-01-18 Andreas Jaeger <aj@suse.de>
653 * ldver.c (ldversion): Update year.
655 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
657 * po/ld.pot: Regenerate.
659 2002-01-16 Alan Modra <amodra@bigpond.net.au>
661 * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
662 * Makefile.in: Regenerate.
663 * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
664 * emultempl/ppc64elf.em: New file.
666 2002-01-15 DJ Delorie <dj@redhat.com>
668 * scripttempl/pe.sc: Add support for constructor priorities.
670 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
672 * emulparams/avr1200.sh (DATA_START): Define as 0x60.
673 * emulparams/avr23xx.sh: Likewise.
674 * emulparams/avr4433.sh: Likewise.
675 * emulparams/avr44x4.sh: Likewise.
676 * emulparams/avr85xx.sh: Likewise.
677 * emulparams/avrmega103.sh: Likewise.
678 * emulparams/avrmega161.sh: Likewise.
679 * emulparams/avrmega603.sh: Likewise.
680 * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
682 2002-01-08 Alexandre Oliva <aoliva@redhat.com>
684 * ldlang.c (walk_wild_section): Exclude object file if enclosing
687 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
689 * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
690 (eshelf_nbsd.c): New rule.
691 (eshlelf_nbsd.c): New rule.
692 * Makefile.in: Regenerate.
693 * configure.tgt (sh*le-*-netbsdelf*): New target.
694 (sh*-*-netbsdelf*): New target.
695 * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
696 * ld/emulparams/shelf_nbsd.sh: New emulation.
697 * ld/emulparams/shlelf_nbsd.sh: New emulation.
699 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
701 * po/es.po: New file: Spanish translation.
702 * configure.in (ALL_LINGUAS): Add es.
703 * configure: Regenerate.
705 2002-01-06 John Marshall <jmarshall@acm.org>
707 * ld.texinfo: Note that --emit-relocs is currently only
710 2002-01-05 Alan Modra <amodra@bigpond.net.au>
712 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
713 of bfd_section_list_remove and bfd_section_list_insert macros.
714 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
715 * emultempl/mmo.em (mmo_place_orphan): Likewise.
717 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
719 * configure.tgt (x86_64-*-netbsd*): New target.
721 2001-12-21 Tom Rix <trix@redhat.com>
723 (gld*_create_output_section_statements): New function.
724 For -binitfini support.
725 * emultempl/aix.em (gld*_before_parse): Fix comment.
726 * emultempl/aix.em (gld*_parse_args): Fix comment.
728 2001-12-20 Jason Thorpe <thorpej@wasabisystems.com>
730 * configure.tgt (mips*-dec-netbsd*): Delete alias for
732 (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
734 * configure.tgt (arm-*-netbsdelf*): Add target.
735 (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
736 * emulparams/armelf_nbsd.sh: Added.
737 * Makefile.am: Add rules for earmelf_nbsd.
738 * Makefile.in: Regenerate.
740 2001-12-19 Andreas Jaeger <aj@suse.de>,
741 Susanne Oberhauser <froh@suse.de>
743 * configure.host: Add rules for x86_64-*linux-gnu. Change
744 s390x-linux entry to use gcc to report configuration, replace gcc
745 with $CC in s390-linux
747 2001-12-19 Andreas Jaeger <aj@suse.de>
749 * ld.texinfo (VERSION): Fix markup.
751 2001-12-18 matthew green <mrg@eterna.com.au>
753 * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
754 (m68kelfnbsd.c): New rule.
755 * Makefile.in: Regenerate.
756 * configure.tgt (m68*-hp-netbsd*): Renamed to ..
757 (m68*-*-netbsd*4k*): .. this.
758 (m68*-*-netbsdelf*): New target.
759 (m68*-*-netbsd*): Also include ELF support.
760 (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
761 * emulparams/m68kelfnbsd.sh: New emulation.
763 2001-12-18 Jakub Jelinek <jakub@redhat.com>
765 * ldgram.y (vers_node): Support anonymous version tags.
766 * ldlang.c (lang_register_vers_node): Ensure anonymous version
767 tag is not defined together with non-anonymous versions.
768 * ld.texinfo: Document it.
770 2001-12-18 Nick Clifton <nickc@cambridge.redhat.com>
772 * po/tr.po: New file: Turkish translation.
773 * configure.in (ALL_LINGUAS): Add tr.
774 * configure: Regenerate.
776 2001-12-17 Jason Thorpe <thorpej@wasabisystems.com>
778 * Makefile.am: Add rules for eelf64alpha_nbsd.
779 * Makefile.in: Regenerate.
780 * configure.tgt (alpha*-*-netbsd*): Set
781 targ_emul to elf64alpha_nbsd.
782 * emulparams/elf64alpha_nbsd.sh: Added.
784 2001-12-17 Alan Modra <amodra@bigpond.net.au>
786 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
787 section_tail when fiddling with section list.
788 (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
789 broken into separate strings to make translation easier.
790 * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
791 fiddling with section list.
792 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
794 2001-12-16 Hans-Peter Nilsson <hp@bitrange.com>
796 * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
798 2001-12-15 Alan Modra <amodra@bigpond.net.au>
800 * ldmain.c (main): Initialise link_info.eh_frame_hdr.
802 2001-12-13 Jakub Jelinek <jakub@redhat.com>
804 * emultempl/elf32.em (finish): Supply output_bfd
805 to bfd_elf*_discard_info.
806 (OPTION_EH_FRAME_HDR): Define.
807 (longopts): Add --eh-frame-hdr.
808 (parse_args): Handle it.
809 (list_options): Add --eh-frame-hdr to help.
810 * emultempl/hppaelf.em (finish): Supply output_bfd
811 to bfd_elf*_discard_info.
812 * scripttempl/elf.sc (.eh_frame_hdr): Add.
814 2001-12-13 Alan Modra <amodra@bigpond.net.au>
816 * lexsup.c (parse_args): Don't pass shortopts to second call to
817 getopt functions. Restore optind rather than decrementing before
818 second call. Remove errind as it now duplicates last_optind.
820 2001-12-11 Christopher Faylor <cgf@redhat.com>
822 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
824 2001-12-07 Geoffrey Keating <geoffk@redhat.com>
825 Richard Henderson <rth@redhat.com>
827 * Makefile.am: Add support for xstormy16.
828 * configure.tgt: Add support for xstormy16.
829 * Makefile.in: Regenerate.
830 * emulparams/elf32xstormy16.sh: New file.
831 * scripttempl/xstormy16.sc: New file.
833 2001-10-01 Christopher Faylor <cgf@cygnus.com>
835 * Makefile.in (LIB_PATH): Make configurable.
836 (GENSCRIPTS): Set LIB_PATH in environment.
837 * configure.in: Substitute LIB_PATH.
838 * configure: Regenerate.
839 * configure.tgt (*cygwin): Set LIB_PATH for cross build.
840 * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
842 2001-12-07 Nick Clifton <nickc@cambridge.redhat.com>
844 * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
845 describing the -N option so that it is easier to translate into
848 2001-12-05 Nick Clifton <nickc@cambridge.redhat.com>
850 * emultempl/pe.em (..._list_options): Replace multiple fprintf
851 statements describing a single option with a single, newline
852 escaped fprintf. This allows better translation into other
855 * ldmain.c (add_archive_element): Combine multiple strings
856 into a single string to permit better translation into other
859 2001-12-05 Tom Rix <trix@redhat.com>
861 * Makefile.am: Remove eaixppc64.
862 * Makefile.in: Regenerate.
864 2001-12-04 Tom Rix <trix@redhat.com>
866 * emultempl/aix.em (choose_target): Change default target to
867 OUTPUT_FORMAT for ppcmacos. Add braces to remove compiler
869 (gld*_read_file): Fix typo.
870 (change_symbol_mode): Add prototype.
873 * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
874 * emulparams/aixrs6.sh : Same.
875 * emulparams/ppcmacos.sh : Same.
876 * emulparams/aixppc64.sh : Delete file.
877 * emultempl/aix.em : Formatting changes.
879 2001-12-04 Hans-Peter Nilsson <hp@axis.com>
881 * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
882 (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
884 (OTHER_END_SYMBOLS): Fix formatting.
885 * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
886 (OTHER_END_SYMBOLS): Fix formatting.
888 2001-12-04 Alan Modra <amodra@bigpond.net.au>
890 * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
892 2001-12-02 Tom Rix <trix@redhat.com>
894 * configure.tgt : Remove eaixppc64 emulations.
895 * Makefile.in : Remove eaixppc64.c
896 * ldemul.c (ldemul_choose_target): New parameters argc, argv.
897 (ldemul_default_target): Same.
898 * emultempl/gld960.em (gld960_choose_target): Same.
899 * emultempl/gld960c.em (gld960_choose_target): Same.
900 * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
901 * emultempl/aix.em (is_syscall): syscall_mask now a variable.
902 * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
903 * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
904 * emultempl/aix.em (choose_target): New function. Handle emulation of
907 2001-11-27 H.J. Lu <hjl@gnu.org>
909 * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
910 * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
911 * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
912 * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
913 * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
914 * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
915 * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
916 * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
918 * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
921 (REL_SDATA): Likewise.
922 (REL_SBSS): Likewise.
923 (REL_SDATA2): Likewise.
924 (REL_SBSS2): Likewise.
925 (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
928 2001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
930 * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
932 * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
934 2001-11-22 H.J. Lu <hjl@gnu.org>
936 * Makefile.in: Regenerated with automake based on automake
939 2001-11-22 Alan Modra <amodra@bigpond.net.au>
941 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
942 (config.status): Delete rule.
943 Add extra dependencies to cover sourced emulparams files.
944 * Makefile.in: Regenerate.
946 * scripttempl/elf.sc: Order <section>, <section>.* and
947 corresponding linkonce sections as seen in input files.
948 Formatting fixes. Zero vma of all sections if not relocating.
949 (STACK): Define and insert if STACK_ADDR defined.
950 (OTHER_RELOCATING_SECTIONS): Delete.
951 (OTHER_END_SYMBOLS): Define.
952 (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
953 (OTHER_READWRITE_SECTIONS): Likewise.
954 (OTHER_GOT_SECTIONS): Likewise.
955 (OTHER_SDATA_SECTIONS): Likewise.
956 (OTHER_BSS_SECTIONS): Likewise.
957 * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
958 (OTHER_READWRITE_SECTIONS): Likewise.
959 * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
960 (OTHER_READWRITE_SECTIONS): Likewise
962 * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
963 (STACK_ADDR): Define.
964 * emulparams/armelf_oabi.sh: As for armelf.sh.
965 * emulparams/elf32mcore.sh: As for armelf.sh.
966 * emulparams/h8300elf.sh: As for armelf.sh.
967 * emulparams/mn10200.sh: As for armelf.sh.
968 * emulparams/shelf.sh: As for armelf.sh.
970 * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
971 (OTHER_END_SYMBOLS): Define.
972 * emulparams/m32relf.sh: As for elf32fr30.sh.
973 * emulparams/h8300helf.sh: As for elf32fr30.sh.
974 * emulparams/h8300self.sh: As for elf32fr30.sh.
976 * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
977 defines with RELOCATING test.
978 (OTHER_SDATA_SECTIONS): Likewise.
979 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
980 (OTHER_END_SYMBOLS): ..this.
981 * emulparams/crislinux.sh: As for criself.sh.
983 * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
985 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
986 (OTHER_SECTIONS): ..this. Zero vma if not relocating. Order
987 normal and linkonce sections as seen in input files.
988 * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
989 (TEXT_DYNAMIC): Likewise.
990 (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
991 (OTHER_SDATA_SECTIONS): Likewise.
992 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
993 * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
994 * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
995 * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
996 * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
997 (OTHER_PLT_RELOC_SECTIONS): Likewise.
998 (OTHER_READONLY_SECTIONS): Likewise. Order normal and linkonce
999 sections as seen in input files.
1000 * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
1001 * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
1003 (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
1004 (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
1005 * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
1006 (OTHER_SECTIONS): Instead, use this..
1007 (OTHER_END_SYMBOLS): ..and this.
1009 * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
1010 * emulparams/elf32bsmip.sh: Likewise.
1011 * emulparams/elf32btsmip.sh: Likewise.
1012 * emulparams/elf32ebmip.sh: Likewise.
1013 * emulparams/elf32lmip.sh: Likewise.
1014 * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
1015 * emulparams/elf32lsmip.sh: Likewise.
1016 * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
1017 * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
1018 * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
1019 * emulparams/elf64btsmip.sh: Likewise.
1020 * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
1021 * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
1022 * emulparams/elf32ppclinux.sh: Likewise.
1023 * emulparams/elf32ppcsim.sh: Likewise.
1024 * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
1025 * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
1026 * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
1027 * emulparams/h8300self.sh: Likewise.
1028 * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
1029 * emulparams/sh.sh: Comment.
1030 * emulparams/shl.sh: Source sh.sh, remove duplicates.
1031 * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
1032 * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
1034 2001-11-21 David Heine <dlheine@tensilica.com>
1035 Alan Modra <amodra@bigpond.net.au>
1037 * ldlang.c (map_input_to_output_sections): Replace "break"
1038 accidentally removed with 2001-08-03 change.
1039 (lang_gc_sections_1): Likewise.
1041 2001-11-21 Alan Modra <amodra@bigpond.net.au>
1043 * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
1045 2001-11-20 Angela Marie Thomas <angela@redhat.com>
1047 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
1048 of false when calling lang_size_sections.
1049 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
1051 2001-11-15 Alan Modra <amodra@bigpond.net.au>
1053 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
1054 function when LDEMUL_FINISH isn't set to the same name. Don't
1055 call ${LDEMUL_FINISH}.
1056 (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
1057 * emultempl/armelf.em (arm_elf_finish): Call
1058 gld${EMULATION_NAME}_finish.
1059 * emultempl/hppaelf.em (hppaelf_finish): Rename to
1060 gld${EMULATION_NAME}_finish. Call bfd_elf32_discard_info and
1061 hppaelf_layout_sections_again if necessary.
1062 (need_laying_out): New var.
1063 (hppaelf_layaout_sections_again): Rename to
1064 hppaelf_layout_sections_again. Clear need_laying_out.
1065 (PARSE_AND_LIST_OPTIONS): Format text.
1067 2001-11-14 H.J. Lu <hjl@gnu.org>
1069 * emultempl/armelf.em (arm_elf_finish): Renamed from
1070 gld${EMULATION_NAME}_finish.
1071 (LDEMUL_FINISH): Set to arm_elf_finish.
1073 2001-11-14 Daniel Jacobowitz <drow@mvista.com>
1075 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
1076 (struct ld_emulation_xfer_struct): Use it.
1078 2001-11-13 Ross Alexander <ross.alexander@uk.neceur.com>
1080 * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
1081 additional symbols referenced by newer crt0.o files from HP.
1083 2001-11-12 Anthony Green <green@redhat.com>
1085 * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
1087 2001-11-12 Alfred M. Szmidt <ams@kemisten.nu>
1089 * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
1090 * Makefile.in: Regenerate.
1092 2001-11-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1094 * ld.texinfo: Use @command for commands, @option for options.
1095 * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
1097 * Makefile.in: Rebuild.
1099 2001-11-04 Chris Demetriou <cgd@broadcom.com>
1101 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
1102 Add support for targets.
1104 2001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
1106 * configure.in (ALL_LINGUAS): Add "fr" and "sv"
1107 * configure: Regernate.
1108 * po/fr.po: New file.
1109 * po/sv.po: New file.
1111 2001-11-01 NIIBE Yutaka <gniibe@m17n.org>
1113 * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
1114 as little endian default and to support big endian.
1116 2001-11-01 Chris Demetriou <cgd@broadcom.com>
1118 * ld.texinfo (Options): Document new option, -nostdlib.
1119 * lexsup.c (OPTION_NOSTDLIB): New definition.
1120 (ld_options): Add entry for "nostdlib".
1121 (parse_args): Handle OPTIONS_NOSTDLIB.
1122 * ldfile.c (ldfile_add_library_path): Don't add directories
1123 to the search path if they weren't specified on the command line
1124 and -nostdlib was specified.
1125 * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
1127 2001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
1129 * lexsup.c (parse_args): Prevent infinite parsing loop when
1130 "-rpath.a" is specified on the command line.
1131 Replace calls to fprintf with calls to einfo.
1133 2001-10-31 John Marshall <jmarshall@acm.org>
1135 * ld.texinfo: A historical requirement that MEMORY and SECTIONS
1136 appear only once across all the linker scripts involved in a link
1137 invocation no longer applies. Make the documentation reflect
1140 2001-10-31 NIIBE Yutaka <gniibe@m17n.org>
1142 * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
1144 (sh-*-linux*): Added targ_extra_libpath.
1146 2001-10-31 David Heine <dlheine@tensilica.com>
1148 * ldlang.c (lang_size_sections): Keep a valid output_offset field
1149 for padding statements.
1151 2001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
1153 * configure.tgt (mmix-*-*): New target.
1154 * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
1155 Add dependencies to match.
1156 * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
1157 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
1158 scripttempl/mmo.sc: New files.
1159 * gen-doc.texi: @set MMIX.
1160 * ld.texinfo: Ditto.
1161 [MMIX] Add MMIX node.
1162 * Makefile.in: Regenerate.
1164 2001-10-29 Kazu Hirata <kazu@hxi.com>
1166 * ldlang.c: Fix a comment typo.
1168 2001-10-23 Alan Modra <amodra@bigpond.net.au>
1170 * configure.host: Move alpha*-*-linux-gnu* entry to generic
1171 entries, and match *-*-linux*.
1173 2001-10-20 Alan Modra <amodra@bigpond.net.au>
1175 * ldgram.y (mri_script_command): Surround processing of INCLUDE
1176 with ldlex_script, ldlex_popstate.
1177 (ifile_p1): Likewise.
1178 * ldlex.l (EOF): Don't BEGIN(SCRIPT). Restore lineno from the
1180 (lex_push_file): Save current lineno to lineno_stack. Set lineno
1181 to 1. Don't BEGIN(SCRIPT).
1182 (lex_redirect): Similarly.
1183 * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
1185 2001-10-20 Nick Clifton <nickc@cambridge.redhat.com>
1187 * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
1188 __EH_FRAME_END__ and accept eh frames into data section.
1189 Add ctor and dtor sections.
1191 2001-10-19 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1193 * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
1194 (auto-export): Fix indentation.
1196 2001-10-18 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1198 * pe-dll.c (autofilter_objectlist): Add startup objects
1200 (auto-export): Constify char * p.
1201 Extract file basename and use strcmp rather than ststr
1204 2001-10-18 Chris Demetriou <cgd@broadcom.com>
1206 * ldmain.c (get_emulation): Improve comment about the handling
1209 2001-10-17 Alan Modra <amodra@bigpond.net.au>
1211 * po/POTFILES.in: Regenerate.
1213 2001-10-16 Vassili Karpov <malc@pulsesoft.com>
1215 * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
1216 -z nocopyreloc and -z nocombreloc usage strings.
1218 2001-10-12 Vassili Karpov <malc@pulsesoft.com>
1220 * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
1223 2001-10-11 Aleksey Romanov <aromanov@ennovatenetworks.com>
1225 * scripttempl/armaout.sc: Place .bss section after end of aligned
1226 data section to match behaviour of aout code in constructrion of
1229 2001-10-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1231 * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
1232 startup files for mingw32 dlls to list.
1234 2001-10-10 Chris Demetriou <cgd@broadcom.com>
1236 * emultempl/elf32.em: Fix shell 'if' usage for portability.
1238 2001-10-08 Aldy Hernandez <aldyh@redhat.com>
1240 * configure.tgt (targ): Add arm9e-*-elf.
1242 2001-10-05 H.J. Lu <hjl@gnu.org>
1244 * genscripts.sh: Fix a typo in the last change.
1246 2001-10-05 Jakub Jelinek <jakub@redhat.com>
1248 * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
1249 -z nocombreloc in usage.
1251 2001-10-03 Jim Blandy <jimb@redhat.com>
1253 * genscripts.sh: Include a comment at the top of each generated
1254 script, explaining its purpose.
1256 2001-10-03 Vassili Karpov <malc@pulsesoft.com>
1258 * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
1259 * NEWS: Mention -z nocopyreloc.
1260 * ld.texinfo (Options): Describe nocopyreloc.
1262 2001-10-03 Alan Modra <amodra@bigpond.net.au>
1264 * configure: Regenerate.
1266 2001-10-02 Alan Modra <amodra@bigpond.net.au>
1268 * ldver.h (ld_program_version): Remove declaration.
1269 * lexsup.c (parse_args): Move printing of copyright message..
1270 * ldver.c (ldversion): .. to here.
1271 Use BFD_VERSION_STRING in place of BFD_VERSION.
1272 (ld_program_version): Remove.
1273 * Makefile.am (Makefile): Depend on bfd/configure.in.
1275 * Makefile.in: Regenerate.
1277 2001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
1279 * Makefile.am: Update dependencies with "make dep-am".
1280 * Makefile.in: Regenerate.
1282 2001-09-29 John Reiser <jreiser@BitWagon.com>
1284 * ldlang.c (lang_common): Conditionally inhibit Common allocation.
1285 * lexsup.c: Add --no-define-common commandline option.
1286 * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
1287 * ldlex.l: Likewise.
1288 * ld.h: Add command_line.inhibit_common_definition.
1289 * ldmain.c (main): Initialize.
1290 * ld.texinfo: Document.
1292 2001-09-26 Alan Modra <amodra@bigpond.net.au>
1294 * ldmisc.c (USE_STDARG): Remove.
1295 (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
1300 * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
1301 declarations. Update copyright.
1303 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
1305 * pe-dll.c: Remove obsoleted declaration of
1306 pe_get_data_import_dll_name.
1307 (pe_create_import_fixup): Fix thinko.
1309 * ld.texinfo(enable-auto-import): Clarify the explanation.
1311 2001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
1313 * pe-dll.c (pe_create_import_fixup): Revert previous patch.
1314 * emultemp/pe.em (pe_data_import_dll): Move definition outside of
1315 DLL_SUPPORT controlled code.
1317 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
1319 * emultempl/pe.em(pe_data_import_dll): Make static.
1320 (pe_get_data_import_dll_name): New accessor function.
1321 * pe-dll.c(pe_create_import_fixup): call
1322 pe_get_data_import_dll_name() from pe.em, instead of
1323 directly accessing pe_data_import_dll variable from pe.em.
1325 2001-09-18 Bruno Haible <haible@clisp.cons.org>
1327 * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
1328 (def_file_add_directive): Use ISSPACE instead of isspace.
1329 (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
1330 isdigit/isxdigit/isalpha/isalnum.
1331 * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
1332 (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
1333 * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
1334 (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
1336 * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
1337 (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
1339 * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
1340 (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
1341 * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
1342 (ctor_prio): Use ISDIGIT instead of isdigit.
1343 * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
1344 (ldfile_open_file_search): Use ISALPHA instead of isalpha.
1345 (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
1347 * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
1348 (stricpy): Use TOLOWER instead of isupper/tolower.
1349 (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
1350 * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
1351 (lex_warn_invalid): Use ISPRINT instead of isprint.
1352 * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
1353 (main): For gettext, also set the LC_CTYPE locate facet.
1354 (add_keepsyms_file): Use ISSPACE instead of isspace.
1355 * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
1356 (is_num, parse_args): Use ISDIGIT instead of isdigit.
1357 * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
1358 (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
1359 * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
1360 (gldppcmacos_read_file): Use ISSPACE instead of isspace.
1361 * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
1362 (quoteput): Use ISSPACE instead of isspace.
1363 (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
1366 2001-09-18 Alan Modra <amodra@bigpond.net.au>
1368 * deffilep.y (def_stash_module): Constify "name" param.
1370 * pe-dll.c: Replace CONST with const throughout.
1371 (quick_symbol): Constify "n1", "n2", "n3" params.
1372 (make_singleton_name_thunk): Constify "import" param. Make
1373 "buffer_len" a size_t.
1374 (make_import_fixup_entry): Constify "name", "fixup_name",
1375 "dll_symname" params.
1376 (pe_get16): Cast args of bfd_seek. Replace bfd_read with bfd_bread.
1377 (pe_get32): Likewise.
1378 (pe_implied_import_dll): Likewise.
1380 * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
1381 (sort_by_section_name): Likewise.
1383 * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
1384 (make_import_fixup): Cast printf arg, rel->address to long rather
1386 (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
1388 2001-09-15 Alan Modra <amodra@bigpond.net.au>
1390 * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
1391 defines BufferSize. Increase buffer size by one.
1393 2001-09-14 Ralf Habacker <Ralf.Habacker@freenet.de>
1395 * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
1397 2001-09-14 Kevin Lo <kevlo@openbsd.org>
1399 * configure.tgt: Add arm-openbsd target.
1401 2001-09-12 H.J. Lu <hjl@gnu.org>
1403 * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
1405 (ALL_64_EMULATIONS): Here.
1406 * Makefile.in: Regenerated.
1408 2001-09-12 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
1410 * emultempl/pe.em(make_import_fixup): change signature to
1411 take asection as well as arelec; we need this for proper
1412 error reporting. Only call pe_create_import_fixup() if
1413 there is no attempt to add a constant addend to the reloc;
1414 otherwise, report error condition.
1415 * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
1416 since final argument is a pointer to make_import_fixup().
1417 Change call to cb() to match make_import_fixup() signature.
1418 (make_import_fixup_mark): make buffer_len unsigned.
1419 * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
1421 2001-09-12 Charles Wilson <cwilson@ece.gatech.edu>
1423 * ld.texinfo: add verbose documentation for auto-import
1424 direct-addressing workaround, to compliment the terse
1427 2001-09-12 Andrew MacLeod <amacleod@redhat.com>
1429 * scripttempl/v850.sc: Add gcc_except_table sections.
1431 2001-09-11 Jeffrey A Law (law@cygnus.com)
1433 * emulparams/h8300helf.sh: Move stack to a much higher memory address.
1434 * emulparams/h8300self.sh: Similarly.
1436 2001-09-05 Danny Smith <dannysmith@users.souceforge.net>
1438 * ld.texinfo (Options, --stack): Correct default value for stack
1441 2001-09-05 Tom Rix <trix@redhat.com>
1443 * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
1445 2001-09-03 Andreas Jaeger <aj@suse.de>
1447 * emultempl/beos.em: Declare prototypes for comparions functions,
1450 2001-09-02 Andreas Jaeger <aj@suse.de>
1452 * emultempl/aix.em: Add missing prototype.
1453 * emultempl/lnk960.em: Likewise.
1454 * emultempl/vanilla.em: Likewise.
1455 * emultempl/armcoff.em: Likewise.
1456 * emultempl/armelf_oabi.em: Likewise.
1457 * emultempl/beos.em: Likewise.
1458 * emultempl/gld960c.em: Likewise.
1459 * emultempl/gld960.em: Likewise.
1461 * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
1462 for prototype declaration.
1464 2001-08-31 Eric Christopher <echristo@redhat.com>
1465 Jason Eckhardt <jle@redhat.com>
1467 * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
1469 2001-08-31 Andreas Jaeger <aj@suse.de>
1471 * emultempl/pe.em: Add missing prototypes.
1472 (gld_${EMULATION_NAME}_after_open): Remove extra args to
1473 pe_find_data_imports.
1474 (pr_sym): Add unused attribute.
1476 2001-08-29 Joel Sherrill <joel@OARcorp.com>
1478 * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
1479 default from coff to elf.
1481 2001-08-29 Jeff Law <law@redhat.com>
1483 * emulparams/h8300helf.sh: Resync with h8300elf.sh. Update
1485 * emulparams/h8300self.sh: Similarly.
1487 2001-08-28 J"orn Rennecke <amylaar@redhat.com>
1489 * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
1491 (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
1492 * configure.tgt (h8300-*-elf*): New case.
1493 * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
1494 * emulparams/h8300self.sh: New file.
1495 * Makefile.in: Regenerated.
1497 2001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
1499 * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
1502 2001-08-27 Linus Nordberg <linus@swox.com>
1503 Alan Modra <amodra@bigpond.net.au>
1505 * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
1506 (eelf64ppc.c, eelf64lppc.c): Add make targets.
1508 * Makefile.in: Regenerate.
1509 * configure.tgt: Add powerpc64 support. Move pdp11, pjl, pj
1510 entries to correct alphabetical position.
1511 * emulparams/elf64ppc.sh: New.
1512 * emulparams/elf64lppc.sh: New.
1514 2001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
1516 * ldmain.c (main): Declare BSIZE as static.
1518 2001-08-23 Jakub Jelinek <jakub@redhat.com>
1520 * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
1521 into .rel.dyn resp. .rela.dyn if combreloc.
1522 (get_script): If .x linker script is equal to .xn, only put it
1523 once into the binary.
1524 Add .xc and .xsc scripts.
1525 (parse_args): Handle -z combreloc and -z nocombreloc.
1526 * scripttempl/elf.sc (.rela.sbss): Fix a typo.
1527 For .xc and .xsc scripts put all .rel* or .rela* input sections
1528 but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
1529 * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
1531 Strip trailing whitespace from script.
1532 Generate .xc and .xsc scripts if requested.
1533 * ldmain.c (main): Initialize link_info.combreloc and
1534 link_info.spare_dynamic_tags.
1535 * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
1536 (ld_options): Add --spare-dynamic-tags option.
1537 (parse_args): Likewise.
1538 * ld.texinfo: Document -z combreloc and -z nocombreloc.
1539 * ldint.texinfo: Document .xc and .xsc linker scripts.
1540 * NEWS: Add notes about -z combreloc and SHF_MERGE.
1542 2001-08-22 H.J. Lu <hjl@gnu.org>
1544 * emulparams/elf32fr30.sh: Add a newline.
1546 2001-08-21 Andreas Jaeger <aj@suse.de>
1548 * deffilep.y: Add missing prototypes.
1549 * pe-dll.c: Likewise.
1551 2001-08-20 Alan Modra <amodra@bigpond.net.au>
1553 * ldlang.c (insert_pad): Fix typos in last patch.
1555 * ldlang.c: When traversing lang_statement_union_type lists,
1556 consistently use "header.next" rather than "next".
1557 * mpw-eppcmac.c: Likewise.
1558 * emultempl/beos.em: Likewise.
1559 * emultempl/hppaelf.em: Likewise.
1560 * emultempl/pe.em: Likewise.
1561 * ldlang.h (union lang_statement_union): Remove "next" field.
1563 * ldlang.c (insert_pad): Use offsetof macro.
1564 (lang_size_sections): Always neuter padding statements.
1565 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
1567 * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
1568 passed to lang_size_sections.
1569 (pe_exe_fill_sections): Likewise.
1570 * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
1571 (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
1573 2001-08-18 Alan Modra <amodra@bigpond.net.au>
1575 * emultempl/aix.em: Formatting fixes.
1577 2001-08-18 Alan Modra <amodra@bigpond.net.au>
1579 * ldlang.c (insert_pad): Make use of an existing pad statement if
1580 available. Move code calculating alignment, adjusting section
1581 alignment power, and adjusting dot to ..
1582 (size_input_section): .. here. Remove unused relax param.
1583 (lang_size_sections): Change boolean `relax' param to boolean *.
1584 Adjust call to size_input_section. Make use of insert_pad to
1585 place pad after the assignment statement. If relaxing, zap
1587 (reset_memory_regions): Reset output_bfd section sizes too.
1588 (relax_again): Move to..
1589 (lang_process): ..here. Adjust call to lang_size_sections, and
1590 remove duplicated code.
1591 * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
1593 2001-08-17 Alan Modra <amodra@bigpond.net.au>
1595 * ld.texinfo: Document that fill values now use the four least
1597 * emulparams/elf32fr30.sh (NOP): Update.
1598 * emulparams/elf32mcore.sh: Likewise.
1599 * emulparams/elf64_s390.sh: Likewise.
1600 * emulparams/elf_i386.sh: Likewise.
1601 * emulparams/elf_i386_be.sh: Likewise.
1602 * emulparams/elf_i386_chaos.sh: Likewise.
1603 * emulparams/elf_i386_ldso.sh: Likewise.
1604 * emulparams/elf_s390.sh: Likewise.
1605 * emulparams/elf_x86_64.sh: Likewise.
1606 * emulparams/i386moss.sh: Likewise.
1607 * emulparams/i386nw.sh: Likewise.
1608 * emulparams/m68kelf.sh: Likewise.
1609 * scripttempl/elf.sc: Update NOP comment.
1610 * scripttempl/elfi370.sc: Likewise.
1611 * scripttempl/elfm68hc11.sc: Likewise.
1612 * scripttempl/elfm68hc12.sc: Likewise.
1613 * scripttempl/nw.sc: Likewise.
1615 2001-08-15 Tom Rix <trix@redhat.com>
1617 * ldgram.y (saved_script_handle): Initialize to NULL.
1618 * ldmain.c (main): Change check on saved_script_handle.
1620 2001-08-14 Alan Modra <amodra@bigpond.net.au>
1622 * emultempl/elf32.em: Formatting fixes.
1623 (output_prev_sec_find): Test for bfd_ind_section too; do so by
1624 looking at sec->owner.
1625 (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
1626 (gld${EMULATION_NAME}_place_orphan): Add a few comments. Remove
1627 unused code, and reorganize orphan section placement code.
1629 * ldlang.c (wild_doit): Rename to lang_add_section.
1630 * ldlang.h: Here too.
1631 * mpw-elfmips.c: And here.
1632 * emultempl/beos.em: And here.
1633 * emultempl/elf32.em: And here.
1634 * emultempl/hppaelf.em: And here.
1635 * emultempl/pe.em: And here.
1637 2001-08-13 Richard Henderson <rth@redhat.com>
1639 * emultempl/needrelax.em: New file.
1640 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
1641 * Makefile.am (eelf64_ia64.c): Depend on it.
1642 * Makefile.in: Rebuild.
1644 2001-08-13 Alan Modra <amodra@bigpond.net.au>
1646 * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
1647 output_section is set non-NULL.
1649 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
1650 `true' for SEC_EXCLUDE sections so that the generic code doesn't
1651 needlessly create an output_section_statement. Treat a correctly
1652 named output_section_statement with NULL bfd_section as compatible.
1654 2001-08-13 Hans-Peter Nilsson <hp@bitrange.com>
1656 * emultempl/generic.em: Support EXTRA_EM_FILE.
1657 (ld_${EMULATION_NAME}_emulation): Support emulation parameters
1658 LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
1659 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
1660 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
1661 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
1662 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
1663 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
1664 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
1665 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
1666 LDEMUL_FIND_POTENTIAL_LIBRARIES.
1668 2001-08-12 Richard Henderson <rth@redhat.com>
1670 * scripttempl/elf.sc, scripttempl/elfd30v.sc,
1671 scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
1672 scripttempl/v850.sc: Keep .jcr data.
1674 2001-08-12 H.J. Lu <hjl@gnu.org>
1675 Andrew Haley <aph@cambridge.redhat.com>
1676 Nick Clifton <nickc@redhat.com>
1678 * ldgram.y (had_script): Change name to saved_script_handle.
1679 Change type to file handle.
1680 * ld.h (had_script): Rename and retype.
1681 * ldfile.c (ldfile_open_command_file): Save the file handle
1682 used in saved_script_handle.
1683 * lexsup.c (parse_args): Do not allow -c option to alter
1684 saved_script_handle.
1685 * ldmain.c (main): Print out the linker script used if
1686 --verbose is given. Check saved_script_handle to obtain the
1687 external linker script used, or if NULL, dump the builtin
1689 * ld.texinfo: Document that --verbose now dumps the linker
1690 script used, regardless of whether it was an internal or an
1693 2001-08-10 Andreas Jaeger <aj@suse.de>
1695 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
1697 * configure: Regenerate.
1699 2001-08-09 Alan Modra <amodra@bigpond.net.au>
1701 * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
1703 * scripttempl/elf.sc: Move non-text .dynamic section before
1704 .plt/.got/.sdata* group.
1705 (OTHER_GOT_SECTIONS): Move to immediately after .got.
1706 (OTHER_SDATA_SECTIONS): Add.
1707 * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
1709 * emulparams/crislinux.sh: Likewise.
1710 * emulparams/elf32b4300.sh: Likewise.
1711 * emulparams/elf32bmip.sh: Likewise.
1712 * emulparams/elf32bmipn32.sh: Likewise.
1713 * emulparams/elf32bsmip.sh: Likewise.
1714 * emulparams/elf32btsmip.sh: Likewise.
1715 * emulparams/elf32ebmip.sh: Likewise.
1716 * emulparams/elf32elmip.sh: Likewise.
1717 * emulparams/elf32l4300.sh: Likewise.
1718 * emulparams/elf32lmip.sh: Likewise.
1719 * emulparams/elf32lsmip.sh: Likewise.
1720 * emulparams/elf32ltsmip.sh: Likewise.
1721 * emulparams/elf64bmip.sh: Likewise.
1722 * emulparams/elf64btsmip.sh: Likewise.
1723 * emulparams/elf64ltsmip.sh: Likewise.
1725 2001-08-08 Alan Modra <amodra@bigpond.net.au>
1727 * genscripts.sh: Source the emulparams script before each output
1728 script is generated so that variables like `RELOCATING' may affect
1729 variables defined in the emulparams script.
1731 2001-08-04 Alan Modra <amodra@bigpond.net.au>
1733 * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
1736 * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
1737 ie. iterate over wild_statement.section_list.
1738 (gld${EMULATION_NAME}_place_orphan): Likewise.
1740 2001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1742 * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
1743 .fini[0-4] sections used by _exit
1744 (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
1745 (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
1746 * scripttempl/elfm68hc11.sc: Likewise.
1748 2001-08-03 H.J. Lu <hjl@gnu.org>
1750 * emultempl/beos.em (init): Add the missing initialization.
1752 2001-08-03 Alan Modra <amodra@bigpond.net.au>
1754 * ld.texinfo (Input Section Basics): Clarify ordering of output
1756 * ldlang.c (callback_t): Add wildcard_list param.
1757 (walk_wild_section): Remove "section" param. Rewrite for
1758 lang_wild_statement_type change. Remove unique_section_p test.
1759 (walk_wild_file): Remove "section" param.
1760 (walk_wild): Remove "section" and "file" params.
1761 (lang_gc_wild): Likewise.
1762 (wild): Likewise. Modify for lang_wild_statement_type change.
1763 (wild_sort): Likewise. Add "sec" param.
1764 (gc_section_callback): Likewise.
1765 (output_section_callback): Likewise. Do unique_section_p test.
1766 (map_input_to_output_sections): Modify call to wild.
1767 (lang_gc_sections_1): Likewise.
1768 (print_wild_statement): Modify for lang_wild_statement_type
1770 (lang_add_wild): Replace filename, filenames_sorted param with
1771 filespec. Replace section_name, sections_sorted,
1772 exclude_filename_list with section_list.
1773 * ldlang.h (lang_add_wild): Here too.
1774 (lang_wild_statement_type): Replace section_name, sections_sorted,
1775 and exclude_filename_list with section_list.
1776 * ldgram.y (current_file): Delete.
1777 (%union): Add wildcard_list.
1778 (file_NAME_list): Set type to wildcard_list. Build a linked list
1779 rather than calling lang_add_wild for each entry.
1780 (input_section_spec_no_keep): Call lang_add_wild here instead.
1781 * ld.h (struct wildcard_list): Declare.
1782 * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
1784 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
1786 * ldmain.c (main): initialize link_info.pei386_auto_import
1787 * pe-dll.c: new tables for auto-export filtering
1788 (auto_export): change API, pass abfd for contextual filtering.
1789 Loop thru tables of excluded symbols instead of comparing
1792 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
1794 * pe-dll.c: new variable pe_dll_enable_extra_debug. New
1795 static variable current_sec (static struct sec *). Add
1796 forward declaration for add_bfd_to_link.
1797 (process_def_file): Don't export undefined symbols. Do not
1798 export symbols starting with "_imp__". Call auto_export()
1800 (pe_walk_relocs_of_symbol): New function.
1801 (generate_reloc): add optional extra debugging
1802 (pe_dll_generate_def_file): eliminate extraneous initial blank
1804 (make_one): enlarge symtab to make room for __nm__ symbols
1805 (DATA auto-import support).
1806 (make_singleton_name_thunk): New function.
1807 (make_import_fixup_mark): New function.
1808 (make_import_fixup_entry): New function.
1809 (pe_create_import_fixup): New function.
1810 (add_bfd_to_link): Specify that 'name' argument is a CONST
1812 * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
1813 declare new functions pe_walk_relocs_of_symbol and
1814 pe_create_import_fixup.
1815 * emultempl/pe.em: add new options --enable-auto-import,
1816 --disable-auto-import, and --enable-extra-pe-debug.
1817 (make_import_fixup): New function.
1818 (pe_find_data_imports): New function.
1819 (pr_sym): New function.
1820 (gld_${EMULATION_NAME}_after_open): Add optional extra pe
1821 debugging. Call pe_find_data_imports. Mark .idata as DATA, not
1824 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
1826 * ld.texinfo: add additional documentation for
1827 --export-all-symbols. Document --out-implib,
1828 --enable-auto-image-base, --disable-auto-image-base,
1829 --dll-search-prefix, --enable-auto-import, and
1830 --disable-auto-import.
1831 * ldint.texinfo: Add detailed documentation on auto-import
1834 2001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
1836 * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
1839 2001-07-24 Alan Modra <amodra@bigpond.net.au>
1841 * Makefile.am: Update dependencies with "make dep-am".
1842 * Makefile.in: Regenerate
1844 2001-07-23 Alan Modra <amodra@bigpond.net.au>
1846 * ldcref.c (check_section_sym_xref): New function.
1847 (check_nocrossrefs): Call it.
1848 (check_nocrossref): Interate over h->refs here instead of..
1849 (check_refs): ..here. Pass in the symbol name, section, and bfd
1850 rather than hash_entry pointers.
1851 (struct check_refs_info): Keep symbol name rather than hash entry.
1853 (check_reloc_refs): Tweak for above changes in check_refs_info.
1854 Only report references to section syms when symname is NULL to
1855 prevent duplicate messages for the same reloc.
1857 2001-07-19 Nick Clifton <nickc@cambridge.redhat.com>
1859 * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
1860 available. Do not print NULL trees.
1861 (exp_print_token): Print unknown tokens with values > 126 as
1862 decimal values not ASCII characters.
1864 * ldlang.c (lang_leave_overlay): If a region is specified assign
1865 it to all sections inside the overlay unless they have been
1866 assigned to the own, non-default, memory region.
1868 * README: Add header for consistency with other README files.
1870 2001-07-14 H.J. Lu <hjl@gnu.org>
1872 * emultempl/elf32.em (output_prev_sec_find): Never return
1873 bfd_abs_section_ptr, bfd_com_section_ptr nor
1874 bfd_und_section_ptr.
1876 2001-07-14 Nick Clifton <nickc@cambridge.redhat.com>
1878 * Makefile.am (em32relf.c): Change dependency from generic.em to
1880 * Makefile.in: Regenerate.
1882 2001-07-14 matthew green <mrg@eterna.com.au>
1884 * configure.tgt (i386-*-netbsdelf*): New target.
1885 (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
1887 2001-07-13 Jakub Jelinek <jakub@redhat.com>
1889 * emultempl/elf32.em (output_prev_sec_find): New.
1890 (place_orphan): Use it.
1892 2001-07-11 H.J. Lu <hjl@gnu.org>
1894 * ldmain.c (main): Fix typos in the last change.
1896 2001-07-11 Jakub Jelinek <jakub@redhat.com>
1898 * ldmain.c (main): Disallow -F and -f without -shared.
1900 2001-07-11 Nick Clifton <nickc@cambridge.redhat.com>
1902 * emultempl/pe.em (after_open): Check for the output_bfd not
1903 having any coff_data structure allocated to it.
1905 2001-07-09 David O'Brien <obrien@FreeBSD.org>
1907 * emultempl/elf32.em: Do not assuming that contents of the buffer
1908 returned from basename function will remain unchanged accross other
1911 2001-07-03 H.J. Lu <hjl@gnu.org>
1913 * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
1914 2001-07-03. It creates dynamic entries even for static binaries.
1916 2001-07-03 Jakub Jelinek <jakub@redhat.com>
1918 * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
1919 (DYNAMIC): Use it to reserve few dynamic entries for
1922 2001-06-27 Alan Modra <amodra@bigpond.net.au>
1924 * emulparams/hppa64linux.sh: New file.
1925 * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
1926 * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
1927 (ehppa64linux.c): Add rule to make it.
1929 * Makefile.in: Regenerate.
1931 2001-06-21 Hans-Peter Nilsson <hp@axis.com>
1933 * ld.texinfo (Options, -r): Mention restrictions when using
1934 different object formats.
1936 2001-06-19 Hans-Peter Nilsson <hp@axis.com>
1938 * ldlang.c (lang_check): Emit fatal error if relocatable link
1939 between different object flavours with relocations in input.
1941 2001-06-19 H.J. Lu <hjl@gnu.org>
1943 * ld.texinfo (-E, --export-dynamic): Mention --version-script.
1944 (--version-script): Mention the language support.
1946 2001-06-19 H.J. Lu <hjl@gnu.org>
1948 * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
1950 2001-06-18 H.J. Lu <hjl@gnu.org>
1952 * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
1953 (diststuff): Add $(MANS).
1954 * Makefile.in: Regenerated.
1958 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
1960 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
1961 Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
1962 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
1963 * ld.h (args_type): Remove member export_dynamic. All users
1964 changed to use struct bfd_link_info member.
1966 * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
1967 $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
1968 * Makefile.in: Regenerate.
1970 2001-06-18 H.J. Lu <hjl@gnu.org>
1972 * ldlang.c (init_os): Add the newline to the einfo call.
1973 (lang_check): Likewise.
1974 (lang_do_version_exports_section): Likewise.
1976 2001-06-15 H.J. Lu <hjl@gnu.org>
1978 * lexsup.c (parse_args); Save optind to report unrecognized
1981 2001-06-15 Hans-Peter Nilsson <hp@axis.com>
1983 * ldlang.c (lang_check): Emit fatal error if relocatable link
1984 between different object flavours.
1986 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
1987 Set new link_info member export_dynamic.
1988 * ldmain.c (main): Initialize new link_info member export_dynamic.
1990 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
1992 * ldlang.c (walk_wild): Only call walk_wild_file if
1993 lookup_name returns something.
1994 (lookup_name): If load_symbols fails, return NULL.
1995 (load_symbols): Change to a boolean function.
1996 (open_input_bfds): If load_symbols fails then do not make the
1999 2001-06-08 Alan Modra <amodra@bigpond.net.au>
2001 * ldlang.c (record_bfd_errors): Remove.
2003 * emultempl/aix.em: Fix copyright dates.
2005 2001-06-07 Andreas Jaeger <aj@suse.de>
2007 * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
2008 (TEXT_START_ADDR): Likewise.
2010 2001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
2012 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
2014 2001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2016 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
2018 2001-05-31 H.J. Lu <hjl@gnu.org>
2020 * ldlang.c (open_input_bfds): Don't change the bfd error
2021 handler whilst loading symbols.
2023 2001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
2025 * configure.tgt: Remove i370-mvs architecture, it is not currently
2028 2001-05-25 H.J. Lu <hjl@gnu.org>
2030 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
2031 like emulparams/aixppc.sh.
2033 2001-05-25 H.J. Lu <hjl@gnu.org>
2035 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
2036 setting of output_filename after bfd_scan_arch.
2037 * emultempl/pe.em: Likewise.
2039 2001-05-25 H.J. Lu <hjl@gnu.org>
2041 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
2042 like emulparams/aixppc.sh.
2044 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
2045 instead of ${srcdir}/emultempl/stringify.sed.
2047 2001-05-25 Timothy Wall <twall@oculustech.com>
2049 * emulparams/elf64_aix.sh: Change settings to match IBM linker
2052 2001-05-25 Alan Modra <amodra@one.net.au>
2054 * configure.host: Replace linuxoldld with linux*oldld.
2055 * configure.tgt: Likewise.
2057 2001-05-24 H.J. Lu <hjl@gnu.org>
2059 * emultempl/stringify.sed: Removed again.
2061 2001-05-24 H.J. Lu <hjl@gnu.org>
2063 * emultempl/aix.em (OUTPUT_ARCH): Defined.
2064 (gld${EMULATION_NAME}_before_parse): Initialize
2065 ldfile_output_architecture, ldfile_output_machine and
2066 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
2067 * emultempl/beos.em: Likewise.
2068 * emultempl/elf32.em: Likewise.
2069 * emultempl/linux.em: Likewise.
2070 * emultempl/mipsecoff.em: Likewise.
2071 * emultempl/pe.em: Likewise.
2072 * emultempl/sunos.em: Likewise.
2074 2001-05-24 Tom Rix <trix@redhat.com>
2076 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
2077 udate import file format.
2078 (change_symbol_mode) New, same
2079 (is_syscall) New, same
2080 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
2081 * emulparams/aixppc64.sh : same
2082 * emulparams/aixrs6.sh : same
2083 * emulparams/ppcmacos.sh : same
2084 * emultempl/aix.em : use strtoull to parse options
2085 * Makefile.am : add eaixppc64 emulation for xcoff64
2086 * Makefile.in : same
2087 * configure.tgt : same
2089 * scripttempl/aix.sc : default text section offset to 0x10000000
2090 default data section offset to 0x20000000
2091 add .sv3264 and .sv64 pseudo sections
2092 loader and debug sections use the currect section offset.
2094 * emultempl/aix.em : Add xcoff64 support
2095 Add -binitfini support
2096 (gld${EMULATION_NAME}_before_parse) -binitfini
2097 (gld${EMULATION_NAME}_parse_args) same
2098 (gld${EMULATION_NAME}_before_allocation) format change for special
2101 * emulparams/aixppc64.sh : New file for xcoff64 support
2103 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
2105 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
2106 variable to avoid non-portable shell construct.
2108 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2110 * ldmain.c (get_emulation): Add -mips5 command line argument.
2112 2001-05-22 Alexandre Oliva <aoliva@redhat.com>
2114 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
2115 (ELF_INTERPRETER_NAME): Define it.
2116 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
2118 * configure.tgt (targ_emul, targ_extra_emuls)
2119 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
2120 as primary, elf_i386 as extra.
2121 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
2122 (eelf_i386_ldso.c): New rule.
2123 * Makefile.in: Rebuilt.
2125 2001-05-22 Nick Clifton <nickc@redhat.com>
2127 * lexsup.c (ld_options): Allow -I to be an alias for
2128 --dynamic-linker. This is for Solaris compatability.
2129 * ld.texinfo: Document that -I can be used.
2132 2001-05-16 Alan Modra <amodra@one.net.au>
2134 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
2135 whether an input section is the first one assigned to an output
2137 Assorted formatting fixes.
2139 2001-05-14 DJ Delorie <dj@delorie.com>
2141 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
2142 * Makefile.in: Ditto.
2144 2001-05-11 Jakub Jelinek <jakub@redhat.com>
2146 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
2147 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
2149 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
2151 2001-05-11 Jakub Jelinek <jakub@redhat.com>
2153 * ldlang.c (lang_process): Call bfd_merge_sections.
2155 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2157 * ldgram.y: Fix typo.
2159 2001-05-03 H.J. Lu <hjl@gnu.org>
2161 * emultempl/elf32.em: Include "libiberty.h".
2162 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
2163 basename of the bfd filename.
2164 (gld${EMULATION_NAME}_stat_needed): Likewise.
2165 (gld${EMULATION_NAME}_try_needed): Likewise.
2166 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
2168 2001-05-02 H.J. Lu <hjl@gnu.org>
2170 * emultempl/pe.em: Include <ctype.h>.
2172 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
2174 * emulparams/elf32openrisc.sh: New file.
2176 * Makefile.am: Add OpenRISC target.
2177 * Makefile.in: Regenerated.
2179 * configure.tgt: Add openrisc-*-* mapping.
2181 2001-05-02 Nick Clifton <nickc@redhat.com>
2183 * emultempl/aix.em: Replace buystring with xstrdup.
2184 * emultempl/beos.em: Replace buystring with xstrdup.
2186 2001-05-02 H.J. Lu <hjl@gnu.org>
2188 * ldfile.c: Include "libiberty.h".
2189 * ldlex.l: Likewise.
2191 * ldmisc.c (buystring): Removed.
2192 * ldmisc.h: Likewise.
2194 * ldfile.c: Replace buystring with xstrdup.
2195 * ldlang.c: Likewise.
2196 * ldlex.l: Likewise.
2197 * ldmain.c: Likewise.
2198 * ldmisc.c: Likewise.
2199 * lexsup.c: Likewise.
2200 * mpw-eppcmac.c: Likewise.
2202 2001-04-30 Andreas Jaeger <aj@suse.de>
2204 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
2206 2001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2208 * ldlang.c (load_symbols): Give emulation a chance
2209 to process unrecognized file before fatal error is
2210 reported, not after.
2212 2001-04-27 Sean McNeil <sean@mcneil.com>
2214 * configure.tgt: Add arm-vxworks target.
2215 * scripttempl/armcoff.sc: Support .text or .data as a section name
2219 2001-04-13 J.T. Conklin <jtc@redback.com>
2221 * ld.texinfo: Document --fatal-warnings.
2224 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
2225 warnings have been turned into errors.
2226 * lexsup.c (OPTION_WARN_FATAL): Define.
2227 (ld_options): Entry for --fatal-warnings.
2228 (parse_args): Handle OPTION_WARN_FATAL.
2229 * ld.h (ld_config_type): Add fatal_warnings field.
2231 2001-04-13 Jakub Jelinek <jakub@redhat.com>
2233 * ldmain.c (main): Default to discard_sec_merge.
2234 * lexsup.c (OPTION_DISCARD_NONE): Define.
2235 (ld_options): Add --discard-none.
2236 (parse_args): Handle OPTION_DISCARD_NONE.
2237 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
2238 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
2239 all its input sections match.
2241 2001-04-05 Steven J. Hill <sjhill@cotw.com>
2243 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
2244 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
2245 (eelf32ltsmip.c): New target.
2246 (eelf64btsmip.c): Likewise.
2247 (eelf64ltsmip.c): Likewise.
2248 * Makefile.in: Regenerated.
2250 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
2252 (mips*-*-linux-gnu*): Likewise.
2254 * emulparams/elf32ltsmip.sh: New. Traditional little endian
2256 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
2258 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
2261 2001-04-05 Hans-Peter Nilsson <hp@axis.com>
2263 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
2264 correct value of __Stext here.
2265 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
2268 * emulparams/crislinux.sh: Remove FIXME.
2270 2001-04-02 Alan Modra <alan@linuxcare.com.au>
2272 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
2273 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
2275 2001-03-27 Hans-Peter Nilsson <hp@axis.com>
2277 * configure.tgt (cris-*-*): Change default emulation to criself.
2278 (cris-*-*aout*): New rule.
2280 2001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
2282 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
2283 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
2285 2001-03-26 Andreas Jaeger <aj@suse.de>
2287 * ld.texinfo (Overview): Fix syntax in texi code.
2289 2001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2291 * ld.texinfo: Put @c man indications to generate the ld man page.
2292 When generating man, define all the variables. Define SEEALSO
2293 and SYNOPSIS. Re-organize some lines to avoid the cross references.
2294 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
2295 (ld.1): Generate from ld.texinfo.
2296 * Makefile.in: Regenerate.
2298 2001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
2300 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
2301 and '-fdata-sections'. Set the VMA of STABS sections to zero.
2303 2001-03-17 Ulrich Drepper <drepper@redhat.com>
2305 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
2306 is an absolute path look only for this file and not along the path.
2308 2001-03-17 Ulrich Drepper <drepper@redhat.com>
2310 * emultempl/elf32.em (OPTION_GROUP): New macro.
2311 Add new option Bgroup to longopts.
2312 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
2313 (gld*_list_options): Add -Bgroup and -z defs.
2314 * ld.1: Document -Bgroup and -z defs.
2315 * ld.texinfo: Likewise.
2317 2001-03-07 Michael Meissner <meissner@redhat.com>
2319 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
2320 with sections created by -fdata-sections.
2321 (.dynbss,.bss): Ditto.
2323 2001-03-05 Alan Modra <alan@linuxcare.com.au>
2325 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
2326 after_allocation_default, not gld..._before_allocation.
2328 2001-02-27 Alan Modra <alan@linuxcare.com.au>
2330 * configure.in (BFD_VERSION): New.
2331 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
2332 * configure: Regenerate.
2333 * Makefile.am: Run "make dep-am"
2334 * Makefile.in: Regenerate.
2336 2001-02-26 Timothy Wall <twall@cygnus.com>
2338 * emulparams/elf64_aix.sh: Add additional read-only sections;
2339 uncomment lines which are now required.
2341 2001-02-26 H.J. Lu <hjl@gnu.org>
2343 * ldlang.c (open_input_bfds): Set the bfd error handler so
2344 that problems can be caught whilst loading symbols.
2345 (record_bfd_errors): New function: Report BFD errors and mark
2346 the executable output as being invalid.
2348 2001-02-22 Timothy Wall <twall@cygnus.com>
2350 * configure.host: Add configuration for ia64-*-aix*.
2351 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
2352 Add dependencies for eelf64_aix.c.
2353 * Makefile.in: Regenerate.
2354 * configure.tgt: Add ia64-*-aix* mapping.
2355 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
2356 * testsuite/ld-bootstrap/bootstrap.exp: Exclude ia64 flavor from
2359 2001-02-20 H.J. Lu <hjl@gnu.org>
2361 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
2362 false if we found the file.
2364 2001-02-18 David O'Brien <obrien@FreeBSD.org>
2366 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
2367 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
2369 2001-02-18 lars brinkhoff <lars@nocrew.org>
2371 * Makefile.am: Add PDP-11 target.
2372 * configure.tgt: Likewise.
2373 * emulparams/pdp11.sh: New file.
2375 2001-02-17 David O'Brien <obrien@FreeBSD.org>
2377 * configure.host: Add a generic FreeBSD configuration entry such that
2378 all [modern] FreeBSD systems on all platforms will look the same.
2380 2001-02-14 H.J. Lu <hjl@gnu.org>
2382 * configure.tgt: Remove mention of earmelf_linux26.
2384 2001-02-13 Richard Henderson <rth@redhat.com>
2386 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
2388 2001-02-13 H.J. Lu <hjl@gnu.org>
2390 * ldexp.h (node_type): Add etree_provided.
2391 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
2392 type to etree_provided if defined by PROVIDE. Allow updating
2394 (exp_print_tree): Handle etree_provided.
2395 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
2398 2001-02-09 David Mosberger <davidm@hpl.hp.com>
2400 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
2401 .IA_64.unwind.* pattern to unwind table section and
2402 .IA_64.unwind_info* pattern to unwind info section.
2404 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
2406 * Makefile.am: Add linux target for S/390.
2407 * Makefile.in: Likewise.
2408 * configure.host: Likewise.
2409 * configure.tgt: Likewise.
2410 * emulparams/elf64_s390.sh: New file.
2411 * emulparams/elf_s390.sh: New file.
2413 2001-02-09 Jakub Jelinek <jakub@redhat.com>
2415 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
2417 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
2419 2001-02-06 Philip Blundell <philb@gnu.org>
2421 * Makefile.am: Remove mention of earmelf_linux26.
2422 * Makefile.in: Regenerate.
2424 2001-02-04 Philip Blundell <philb@gnu.org>
2426 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
2427 * emulparams/armelf_linux26.sh: Delete.
2428 * configure.tgt: Remove mention of armelf_linux26 emulation.
2430 2001-02-01 Nick Clifton <nickc@redhat.com>
2432 * ld.1: Replace occurances of -oformat with --oformat.
2434 2001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
2436 * ldlang.c (lang_leave_overlay): Don't set lma_region when
2437 load_base is specified.
2439 2001-01-24 Hans-Peter Nilsson <hp@axis.com>
2441 * emultempl/elf32.em: Correct spelling in comments and listed
2444 2001-01-23 Alan Modra <alan@linuxcare.com.au>
2446 * ldlang.c (lang_leave_overlay): Only set lma_region from the
2447 default for the first section of a group of overlay sections.
2449 2001-01-22 Alan Modra <alan@linuxcare.com.au>
2451 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
2452 * Makefile.in: Regenerate.
2453 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
2454 Check for null tool_dir.
2456 2001-01-16 Jim Wilson <wilson@redhat.com>
2458 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
2459 and IA_64.unwind.info.
2461 2001-01-16 H.J. Lu <hjl@gnu.org>
2463 * ldlang.c (lang_check): Merge the private data only if the
2464 input file has contents.
2466 2001-01-14 Alan Modra <alan@linuxcare.com.au>
2468 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
2470 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
2471 enabling search for libmilli. On a relocatable link, make .text
2473 (LDEMUL_AFTER_PARSE): Define.
2474 (hppaelf_finish): Correct spelling of relocatable in comments.
2476 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
2477 rummage through the script for sections on the unique list.
2478 Correct length of strncmp for ".note".
2479 (gld${EMULATION_NAME}_check_needed): Rearrange function.
2481 * ldlang.c (unique_section_list): New var.
2482 (unique_section_p): New function.
2483 (walk_wild_section): Don't match sections on unique_section_list.
2484 (lang_add_unique): New function.
2485 Correct spelling of relocatable in comments.
2487 * ldlang.h (struct unique_sections): Declare.
2488 (unique_section_list): Declare.
2489 (unique_section_p): Declare.
2490 (lang_add_unique): Declare.
2492 * lexsup.c (ld_options): Allow --unique to take an optional arg.
2493 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
2495 * ld.texinfo (--unique): Update.
2497 2001-01-13 Nick Clifton <nickc@redhat.com>
2499 * lexsup.c (parse_args): Remove spurious white space.
2501 2001-01-12 Nick Clifton <nickc@redhat.com>
2503 * lexsup.c (parse_args): Update copyright date.
2505 2001-01-12 Philip Blundell <pb@futuretv.com>
2507 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
2509 2001-01-10 Kazu Hirata <kazu@hxi.com>
2511 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
2512 * scripttempl/h8300h.sc: Fix formatting.
2513 * scripttempl/h8300s.sc: Likewise.
2514 * scripttempl/h8500.sc: Likewise.
2515 * scripttempl/h8500b.sc: Likewise.
2516 * scripttempl/h8500c.sc: Likewise.
2517 * scripttempl/h8500m.sc: Likewise.
2518 * scripttempl/h8500s.sc: Likewise.
2520 2000-01-07 David O'Brien <obrien@BSDi.com>
2522 * emultempl/elf32.em: Only perform Linux ld hints processing when
2525 2001-01-07 Philip Blundell <philb@gnu.org>
2527 * ld.texinfo (Bug Reporting): Update email address for reports.
2529 2000-12-31 Nick Clifton <nickc@redhat.com>
2531 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
2532 options by checking for a return value of '?' not -1.
2534 2000-12-28 Nick Clifton <nickc@redhat.com>
2536 * lexsup.c (struct ld_option): Add new enum value:
2538 (ld_options[]): Change -omagic, -output and -oformat options
2539 to be EXACTLY_TWO_DASHES.
2540 (OUTPUT_COUNT): Use ARRAY_SIZE.
2541 (parse_args): Change parameter 'argc' to unsigned.
2542 Place EXACTLY_TWO_DASHES options into new really_longopts
2544 If getopt_long_only fails, try calling getopt_long using the
2545 really_longopts array.
2546 (help): Print a double dash for both EXACTLY_TWO_DASHES and
2549 * ldlex.h: Fix prototype of parse_args.
2551 * ld.texinfo: Document that long options starting with 'o'
2552 must be preceeded by two dashes. Change example of a single
2553 dashed long option from -oformat to -trace-symbol.
2555 2000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2557 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
2558 (longopts[]): New --no-default-excludes option.
2559 (gld_${EMULATION_NAME}_list_options): Document.
2560 (gld_${EMULATION_NAME}_parse_args): Handle.
2562 2000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2564 * ldlang.c (new_stat): Revert the last beautification with "innocent"
2565 whitespace, it breaks the K&R C preprocessor.
2567 2000-12-11 DJ Delorie <dj@redhat.com>
2569 * ld.texinfo: Add notes about --whole-archive and gcc.
2571 2000-11-18 Fred Fish <fnf@be.com>
2573 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
2574 (ld_options): Entry for --allow-shlib-undefined.
2575 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
2576 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
2578 * ld.texinfo: Document new command line switch.
2580 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
2582 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
2583 .fixup is actually read/write.
2584 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
2585 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
2586 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
2588 2000-12-11 Jan Hubicka <jh@suse.cz>
2590 * NEWS: Add note about x86_64 architecture.
2592 2000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
2594 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
2595 Set DWARF2 sections to a VMA of zero.
2597 2000-12-01 Joel Sherrill <joel@OARcorp.com>
2599 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
2601 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
2602 (sparc*-*-rtems*): Switched from a.out to ELF.
2604 2000-11-30 Jan Hubicka <jh@suse.cz>
2606 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
2607 (eelf_x86_64.c): New.
2608 * Makefile.in: Regenerate.
2609 * configure.tgt: Add support for x86_64-*-linux-gnu*.
2610 * emulparams/elf_x86_64.sh: New.
2612 2000-11-30 Hans-Peter Nilsson <hp@axis.com>
2614 * emulparams/crislinux.sh (ENTRY): Change back to _start.
2615 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
2617 * scripttempl/crisaout.sc: Change all RELOCATING not related to
2618 merging non-a.out sections into CONSTRUCTING.
2620 2000-11-28 Nick Clifton <nickc@redhat.com>
2622 * ld.1 (COPYING): Mention that the GNU Free Documentation
2623 License is present in the sources, but not the output, and
2624 also available from the GNU website.
2625 (GNU Free Documentation License): Comment out this section.
2627 2000-11-28 David O'Brien <obrien@dragon.nuxi.com>
2629 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
2632 2000-11-25 David O'Brien <obrien@FreeBSD.org>
2634 * ld.1: Remove old date so it does not give the impression the manpage
2637 2000-11-24 Nick Clifton <nickc@redhat.com>
2639 * configure.tgt (xscale-coff): Add target.
2640 (xscale-elf): Add target.
2642 2000-11-24 Fred Fish <fnf@be.com>
2644 * ldmain.c (main): Remove redundant init of config.make_executable
2647 2000-11-15 Richard Henderson <rth@redhat.com>
2649 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
2651 2000-11-14 Kazu Hirata <kazu@hxi.com>
2653 * scripttempl/h8300.sc: Fix formatting.
2654 * scripttempl/h8300h.sc: Likewise.
2655 * scripttempl/h8300s.sc: Likewise.
2657 2000-11-14 Denis Chertykov <denisc@overta.ru>
2659 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
2661 2000-11-09 Philip Blundell <pb@futuretv.com>
2663 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
2664 around orphan sections whose names can be represented in C.
2666 2000-11-07 Jim Wilson <wilson@redhat.com>
2668 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
2669 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
2671 2000-11-06 Nick Clifton <nickc@redhat.com>
2673 * ld.texinfo: Add GNU Free Documentation License.
2674 * ldint.texinfo: Add GNU Free Documentation License.
2675 * ld.1: Add GNU Free Documentation License.
2677 2000-11-05 Alan Modra <alan@linuxcare.com.au>
2679 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
2680 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
2682 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
2683 Move 2000-11-02 Makefile.in changes to this file.
2684 * Makefile.in: Regenerate.
2686 2000-11-03 Nick Clifton <nickc@redhat.com>
2688 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
2689 constructors and destructors.
2690 * scripttempl/h8300h.sc: Ditto.
2691 * scripttempl/h8300s.sc: Ditto.
2692 * scripttempl/h8500.sc: Ditto.
2693 * scripttempl/h8500b.sc: Ditto.
2694 * scripttempl/h8500c.sc: Ditto.
2695 * scripttempl/h8500m.sc: Ditto.
2696 * scripttempl/h8500s.sc: Ditto.
2697 * scripttempl/v850.sc: Ditto.
2698 * scripttempl/w65.sc: Ditto.
2699 * scripttempl/z8000.sc: Ditto.
2701 2000-11-02 Per Lundberg <plundis@chaosdev.org>
2703 * Makefile.in (e_i386_chaos.c): New rule.
2704 (ALL_EMULATIONS): Added e_i386_chaos.o.
2705 * emulparams/elf_i386_chaos.sh: New file.
2706 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
2708 2000-10-20 Jakub Jelinek <jakub@redhat.com>
2710 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
2711 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
2712 Fix sed invocation, so that it coped with '/' in Solaris 64bit
2713 library path suffix.
2714 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
2716 2000-10-18 Hans-Peter Nilsson <hp@axis.com>
2718 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
2719 for consecutive sections.
2721 2000-10-17 Chandrakala Chavva <cchavva@redhat.com>
2723 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
2725 * ld.texinfo: Added notes about this new option.
2727 2000-10-16 Nick Clifton <nickc@redhat.com>
2729 * emultempl/pe.em (_after_open): Add tests of return values from
2730 bfd functions. Emit appropriate error messages if necessary.
2732 2000-10-13 Nick Clifton <nickc@redhat.com>
2734 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
2735 local variables - they are not used, but leave in the call to
2736 bfd_canonicalize_symtab.
2737 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
2738 pe_dll_search_prefix.
2740 2000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
2742 * emultempl/pe.em (pe_dll_search_prefix): New variable,
2743 (longopts): New --dll-search-prefix option.
2744 (gld_${EMULATION_NAME}_list_options): Document.
2745 (gld_${EMULATION_NAME}_parse_args): Handle.
2746 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
2747 dynamically, search for a dll named '<prefix><basename>.dll'
2748 in preference to 'lib<basename>.dll' if --dll-search-prefix
2751 2000-10-12 Alan Modra <alan@linuxcare.com.au>
2753 * ldlang.c (section_already_linked): Set kept_section instead of
2756 2000-10-10 Kazu Hirata <kazu@hxi.com>
2758 * deffile.h: Fix formatting.
2759 * lexsup.c: Likewise.
2762 2000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2764 * pe-dll.c (make_one): Do not generate code thunk for DATA
2766 (process_def_file): deduce DATA flag for auto-export sumbols.
2768 2000-10-09 Kazu Hirata <kazu@hxi.com>
2770 * ld.h: Fix formatting.
2771 * ldcref.c: Likewise.
2772 * ldctor.h: Likewise.
2773 * ldemul.c: Likewise.
2774 * ldemul.h: Likewise.
2775 * ldexp.c: Likewise.
2776 * ldexp.h: Likewise.
2777 * ldfile.c: Likewise.
2778 * ldfile.h: Likewise.
2779 * ldlang.c: Likewise.
2780 * ldlang.h: Likewise.
2781 * ldmain.c: Likewise.
2782 * pe-dll.c: Likewise.
2784 * pe-dll.c: Revert some formatting fixes.
2786 2000-10-08 Kazu Hirata <kazu@hxi.com>
2788 * pe-dll.c: Fix formatting.
2790 2000-10-05 Kazu Hirata <kazu@hxi.com>
2792 * ldlang.c: Fix formatting.
2794 2000-10-03 DJ Delorie <dj@redhat.com>
2796 * pe-dll.c (fill_edata): initialize entire block
2797 (make_one): fill in correct section.
2799 2000-10-03 Kazu Hirata <kazu@hxi.com>
2801 * ldexp.c: Fix formatting.
2803 2000-10-02 DJ Delorie <dj@redhat.com>
2805 * emultempl/pe.em (gld_*_after_open): detect case where there two
2806 import libraries for same dll; rename one to ensure proper link
2809 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
2811 (generate_edata): fix typo
2813 2000-09-29 Hans-Peter Nilsson <hp@axis.com>
2815 * scripttempl/crisaout.sc (ENTRY): Now __start.
2816 (.text): Add default setting for __start.
2817 Remove CONSTRUCTORS handling.
2818 (/DISCARD/): Add .gnu.warning.*.
2819 * emulparams/crislinux.sh (ENTRY): Now __start.
2820 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
2821 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
2822 (ENTRY): Now __start.
2823 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
2824 (EXECUTABLE_SYMBOLS): Add default setting for __start.
2826 2000-09-29 Kazu Hirata <kazu@hxi.com>
2828 * deffile.h: Fix formatting.
2830 * ldcref.c: Likewise.
2831 * ldctor.c: Likewise.
2832 * ldctor.h: Likewise.
2833 * ldemul.c: Likewise.
2834 * ldemul.h: Likewise.
2835 * ldexp.c: Likewise.
2836 * ldexp.h: Likewise.
2837 * ldfile.c: Likewise.
2838 * ldfile.h: Likewise.
2839 * ldlang.c: Likewise.
2840 * ldlang.h: Likewise.
2841 * lexsup.c: Likewise.
2843 * pe-dll.c: Likewise.
2845 2000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2847 * pe-dll.c (process_def_file): Uninitialized data wasn't
2848 exported with --export-all-symbols switch.
2850 2000-09-28 DJ Delorie <dj@redhat.com>
2852 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
2853 noname work properly.
2855 2000-09-28 Alan Modra <alan@linuxcare.com.au>
2857 * ld.texinfo (HPPA ELF32): New section.
2859 * emultempl/hppaelf.em (group_size): New.
2860 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
2861 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
2862 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
2863 options to prevent abbreviations matching.
2864 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
2865 (PARSE_AND_LIST_ARGS_CASES): Handle it.
2867 2000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2869 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
2870 on the m68*-*-elf target. Make it support COFF input objects.
2872 2000-09-21 Kazu Hirata <kazu@hxi.com>
2874 * ldmain.c: Fix formatting.
2875 * ldmisc.c: Likewise.
2876 * ldver.c: Likewise.
2877 * ldwrite.c: Likewise.
2879 2000-09-21 Alan Modra <alan@linuxcare.com.au>
2881 * ldwrite.c (clone_section): Silence gcc warnings.
2883 2000-09-20 Alan Modra <alan@linuxcare.com.au>
2885 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
2886 out of memory failure.
2888 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
2889 (clone_section): Handle out of memory failures. Rename var to
2890 avoid c++ reserved word.
2892 2000-09-18 Alan Modra <alan@linuxcare.com.au>
2894 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
2895 stub_name param to stub_sec_name.
2896 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
2898 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2900 * emultempl/m68kelf.em: New file.
2901 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
2902 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
2903 * Makefile.in: Regenerate.
2905 2000-09-15 Alan Modra <alan@linuxcare.com.au>
2907 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
2910 2000-09-13 Nick Clifton <nickc@redhat.com>
2912 * ldmain.c (multiple_definition): Disable relaxation if
2913 multiple symbol definitions are encountered - otherwise the
2914 linker could abort with an assertion failure.
2916 2000-09-10 Nick Clifton <nickc@redhat.com>
2918 * mri.c: Fix formatting.
2920 2000-09-07 H.J. Lu <hjl@gnu.org>
2922 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
2923 * configure: Rebuild.
2925 2000-09-07 H.J. Lu <hjl@gnu.org>
2927 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
2928 * Makefile.in: Rebuild.
2930 2000-09-07 Alan Modra <alan@linuxcare.com.au>
2932 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
2933 broken list handling. Create __start_SECNAME and __stop_SECNAME
2934 when no place-holder. Add some comments. Test both SEC_CODE and
2935 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
2936 Handle case where no output section statement created.
2938 2000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
2940 * configure.tgt (sh-*-linux*): Added.
2941 * Makefile.am: Added eshelf_linux and eshlelf_linux.
2942 * Makefile.in: Rebuilt.
2943 * emulparams/shelf_linux.sh: New file.
2944 * emulparams/shlelf_linux.sh: New file.
2946 2000-09-06 Alan Modra <alan@linuxcare.com.au>
2948 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
2949 try shuffling sections when the orphan happens to be the place
2950 holder. Keep count of unique section names generated so we speed
2951 the search for a new name.
2953 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
2955 * configure: Rebuilt with new libtool.m4.
2957 2000-09-05 Nick Clifton <nickc@redhat.com>
2959 * Makefile.in: Regenerate.
2960 * aclocal.m4: Regenerate.
2961 * configure: Regenerate.
2962 * config.in: Regenerate.
2963 * po/ld.pot: Regenerate.
2965 * ldint.texinfo: Remove CVS revision marker - it foils local
2968 * emultempl/ticoff.em: Remove extraneous comma.
2970 2000-09-05 Alan Modra <alan@linuxcare.com.au>
2972 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
2973 to stub section flags.
2974 (hppa_for_each_input_file_wrapper): New.
2975 (hppa_lang_for_each_input_file): New.
2976 (lang_for_each_input_file): Define to call above.
2977 (multi_subspace): New.
2978 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
2979 (PARSE_AND_LIST_PROLOGUE): Define.
2980 (PARSE_AND_LIST_LONGOPTS): Define.
2981 (PARSE_AND_LIST_OPTIONS): Define.
2982 (PARSE_AND_LIST_ARGS_CASES): Define.
2983 (hppaelf_finish): Call elf32_hppa_set_gp.
2984 (hppaelf_set_output_arch): Remove.
2985 (LDEMUL_SET_OUTPUT_ARCH): Remove.
2987 * emulparams/hppalinux.sh (ELFSIZE): Define.
2989 (OTHER_READONLY_SECTIONS): Define.
2991 (GENERATE_SHLIB_SCRIPT): Define.
2993 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
2994 to const throughout. Change `void *' to `PTR' throughout.
2995 (lang_memory_default): Function is local to file, add `static'.
2997 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
2998 (ehppalinux.c): Likewise.
2999 (earmelf.c): Likewise.
3000 (earmelf_linux.c): Likewise.
3001 (earmelf_linux26.c): Likewise.
3002 * Makefile.in: Regenerate.
3004 * ld.h (ld_config_type): Add unique_orphan_sections.
3005 * lexsup.c (OPTION_UNIQUE): Define.
3006 (ld_options): Add "--unique".
3007 (parse_args): Handle it.
3008 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3009 search for an existing output section if unique_orphan_sections is
3010 set. Make use of bfd_get_unique_section_name rather than
3011 duplicating code here.
3012 * ld.texinfo: Describe --unique.
3014 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
3015 optional arg to split-by-file.
3016 (parse_args): Handle them.
3017 * ld.texinfo: Update description of these options.
3018 * ldwrite.c (clone_section): Pass in the section name. Replace
3019 local code with bfd_get_unique_section_name.
3020 (split_sections): Tidy code and comments. Use a list traversal
3021 more appropriate to the list construction. Handle cooked section
3022 sizes. Split when split_by_reloc reached rather than exceeded.
3023 Track section size and split when split_by_file reached. Fix
3024 link_order_tail (even though it's not used).
3025 (ldwrite): Modify condition for calling split_sections to suit
3026 changed split_by_reloc and split_by_file.
3027 * ldmain.c (main): Init config.split_by_reloc and
3028 config.split_by_file to -1.
3029 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
3030 Change split_by_file to bfd_size_type.
3032 2000-09-02 Nick Clifton <nickc@redhat.com>
3034 * configure.in: Increase version number to 2.10.91.
3035 * NEWS: Mention new ability to support removal of duplicate DWARF2
3037 * configure: Regenerate.
3038 * aclocal.m4: Regenerate.
3039 * config.in: Regenerate.
3041 2000-09-02 Daniel Berlin <dberlin@redhat.com>
3043 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
3045 * scripttempl/elf32avr.sc: Ditto.
3046 * scripttempl/elfd10v.sc: Ditto.
3047 * scripttempl/elfd30v.sc: Ditto.
3048 * scripttempl/elfi370.sc: Ditto.
3049 * scripttempl/elfm68hc11.sc: Ditto.
3050 * scripttempl/elfm68hc12.sc: Ditto.
3051 * scripttempl/elfi386beos.sc: Ditto.
3052 * scripttempl/v850.sc: Ditto.
3054 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
3056 * acinclude.m4: Include libtool and gettext macros from the
3058 * aclocal.m4, configure: Rebuilt.
3060 2000-08-25 Nick Clifton <nickc@redhat.com>
3062 * ldlang.c (open_output): When choosing the target for a
3063 particular endianness, do nothing if the target is not
3066 2000-08-25 H.J. Lu <hjl@gnu.org>
3068 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
3069 check -rpath nor LD_RUN_PATH for cross link.
3070 * ld.texinfo: Document the change.
3072 2000-08-24 Hans-Peter Nilsson <hp@axis.com>
3074 * NEWS: Mention support for CRIS.
3076 2000-08-23 H.J. Lu <hjl@gnu.org>
3078 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
3079 the current runpath list from bfd_elf_get_runpath_list ()
3082 2000-08-22 H.J. Lu <hjl@gnu.org>
3084 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
3085 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
3086 LD_LIBRARY_PATH for native linker. Display the needed DSO if
3087 trace_file_tries is non-zero.
3088 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
3089 if trace_file_tries is non-zero.
3091 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
3094 2000-08-14 Jason Eckhardt <jle@cygnus.com>
3096 * NEWS: Mention i860 support.
3098 2000-08-14 Andreas Schwab <schwab@suse.de>
3100 * scripttempl/elf.sc: Fix last change to use correct comment
3103 2000-08-10 Geoff Keating <geoffk@cygnus.com>
3105 * scripttempl/elf.sc: Add a comment giving the correspondence
3106 between sections, per-datum sections, and linkonce sections. Make
3107 the comment true even for .bss, .sdata, .sdata2, .sbss, and
3110 2000-08-10 Jason Eckhardt <jle@cygnus.com>
3112 * emulparams/elf32_i860.sh: New file.
3113 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
3114 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
3115 (eelf32_i860.c): New rule.
3116 * Makefile.in: Regenerate.
3118 2000-08-10 Nick Clifton <nickc@cygnus.com>
3120 * emulparams/mipspe.sh (ENTRY): Add definition.
3122 2000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
3124 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
3127 2000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3129 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
3130 the final size of .bss section.
3131 * scripttempl/elfm68hc12.sc: Likewise.
3133 2000-08-04 Alan Modra <alan@linuxcare.com.au>
3135 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
3136 gld${EMULATION_NAME}_parse_args for consistency. Combine
3137 lastoptind and prevoptind vars, and keep track of last optind.
3138 (gld_${EMULATION_NAME}_list_options): Rename to
3139 gld${EMULATION_NAME}_list_options.
3141 2000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
3143 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
3144 (i586-sco-sysv5uw7.1.0).
3146 2000-07-27 H.J. Lu <hjl@gnu.org>
3148 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
3149 (PARSE_AND_LIST_PROLOGUE): New.
3150 (PARSE_AND_LIST_LONGOPTS): Likewise.
3151 (PARSE_AND_LIST_OPTIONS): Likewise.
3152 (PARSE_AND_LIST_ARGS_CASES): Likewise.
3153 (PARSE_AND_LIST_EPILOGUE): Likewise.
3155 2000-07-28 Alan Modra <alan@linuxcare.com.au>
3157 * emultempl/armelf.em: Elide functions common to elf32.em,
3158 ie. most of the file.
3159 (arm_elf_after_open): New. Do arm specific things then call
3160 gld${EMULATION_NAME}_after_open.
3161 (arm_elf_before_allocation): New. Call
3162 gld${EMULATION_NAME}_before_allocation then do arm specifics.
3163 (PARSE_AND_LIST_PROLOGUE): Define.
3164 (PARSE_AND_LIST_SHORTOPTS): Define.
3165 (PARSE_AND_LIST_LONGOPTS): Define.
3166 (PARSE_AND_LIST_OPTIONS): Define.
3167 (PARSE_AND_LIST_ARGS_CASES): Define.
3168 (LDEMUL_AFTER_OPEN): Define.
3169 (LDEMUL_BEFORE_ALLOCATION): Define.
3170 (LDEMUL_BEFORE_PARSE): Define.
3171 (LDEMUL_FINISH): Define.
3173 * emultempl/hppaelf.em: Similarly zap most of this file.
3174 (hppaelf_add_stub_section): Prototype.
3175 (hppaelf_layaout_sections_again): Prototype.
3176 (hook_in_stub): Prototype.
3177 (LDEMUL_SET_OUTPUT_ARCH): Define.
3178 (LDEMUL_FINISH): Define.
3179 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
3181 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
3182 (EXTRA_EM_FILE): New.
3183 * emulparams/armelf_linux.sh: Likewise.
3184 * emulparams/armelf_linux26.sh: Likewise.
3185 * emulparams/hppalinux.sh: Likewise.
3186 * emulparams/hppaelf.sh: Likewise.
3189 * emultempl/elf32.em: Fix formatting.
3190 (EXTRA_EM_FILE): Source it.
3191 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
3192 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
3193 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
3194 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
3195 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
3196 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
3197 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
3198 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
3199 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
3200 allow functions in this file to be overridden.
3201 (PARSE_AND_LIST_SHORTOPTS): Handle it.
3203 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
3205 * emultempl/elf32.em: Reorganize file.
3207 2000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
3209 * emulparams/elf64alpha.sh: Implement "-taso" emulation
3210 specific option to fit 64-bit executable in the lower
3211 31-bit address range. This is done by changing start
3212 address of .interp (the very first section of executable)
3213 and then setting EF_ALPHA_32BIT elf header flag.
3215 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3217 * emultempl/m68kcoff.em: New file.
3218 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
3219 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
3221 * Makefile.in: Regenerate.
3223 2000-07-20 H.J. Lu <hjl@gnu.org>
3225 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
3226 and "disable-new-dtags" to stop getopt from treating -d/-e as
3227 abbreviations for these options.
3229 2000-07-20 H.J. Lu <hjl@gnu.org>
3231 * ld.texinfo: Add documentation for --disable-new-dtags and
3234 * ldmain.c (main): Initialize link_info.new_dtags to false.
3236 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
3237 --disable-new-dtags and --enable-new-dtags.
3238 (gld_${EMULATION_NAME}_list_options): Likewise.
3240 2000-07-05 Kenneth Block <krblock@computer.org>
3242 * lexsup.c: Add optional style to demangle switch
3243 * ld.texinfo: Document optional style to demangle switch.
3245 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
3247 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
3249 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
3250 Regenerate dependencies.
3251 * Makefile.in: Rebuild.
3252 * configure.tgt (cris-*-*): New target.
3253 * emulparams/crisaout.sh, emulparams/criself.sh,
3254 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
3255 * po/POTFILES.in, po/ld.pot: Regenerate.
3257 2000-07-20 H.J. Lu <hjl@gnu.org>
3259 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
3260 Print out ignored -z options.
3262 2000-07-19 H.J. Lu <hjl@gnu.org>
3264 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
3265 (PARSE_AND_LIST_PROLOGUE): New.
3266 (PARSE_AND_LIST_LONGOPTS): Likewise.
3267 (PARSE_AND_LIST_OPTIONS): Likewise.
3268 (PARSE_AND_LIST_ARGS_CASES): Likewise.
3270 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
3272 * lexsup.c (ld_options): Comment out 'z'.
3273 (parse_args): Likewise.
3275 * emultempl/elf32.em: Include "elf/common.h".
3276 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
3278 (gld_${EMULATION_NAME}_list_options): Likewise.
3280 * ld.texinfo: Add documentation for the recognized -z options.
3282 2000-07-19 H.J. Lu <hjl@gnu.org>
3284 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
3285 bfd_elf_set_dt_needed_soname ().
3287 2000-07-18 DJ Delorie <dj@cygnus.com>
3289 * pe-dll.c (pe_dll_id_target): check object target name also
3291 2000-07-18 Hans-Peter Nilsson <hp@axis.com>
3293 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
3294 ${INIT_END} if relocating.
3295 (.fini): Likewise ${FINI_START} and ${FINI_END}.
3297 2000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
3299 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
3300 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
3301 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
3302 errors introduced by the old dynamic lib search order.
3304 2000-07-17 DJ Delorie <dj@cygnus.com>
3306 * pe-dll.c (process_def_file): auto-export data items also
3307 (pe_process_import_defs): also see if _imp_ form needed
3309 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
3311 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
3312 for dll import libraries
3314 2000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
3316 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
3317 gcc 2.95.2 and later.
3319 2000-07-11 Kazu Hirata <kazu@hxi.com>
3321 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
3324 2000-07-10 Alan Modra <alan@linuxcare.com.au>
3326 * ldemul.h (struct lang_input_statement_struct): Remove forward
3328 (struct search_dirs): Likewise.
3329 * ldfile.h (struct lang_input_statement_struct): Likewise.
3330 Protect file from multiple inclusion.
3331 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
3332 declaration from macro to file scope.
3334 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
3335 * ldgram.y: Likewise here.
3336 * ldlang.c: And here.
3337 * ldmain.c: And here.
3338 * mpw-elfmips.c: And here.
3339 * mpw-eppcmac.c: And here.
3340 * emultempl/aix.em: And here.
3341 * emultempl/armcoff.em: And here.
3342 * emultempl/armelf.em: And here.
3343 * emultempl/armelf_oabi.em: And here.
3344 * emultempl/beos.em: And here.
3345 * emultempl/elf32.em: And here.
3346 * emultempl/hppaelf.em: And here.
3347 * emultempl/linux.em: And here.
3348 * emultempl/lnk960.em: And here.
3349 * emultempl/pe.em: And here.
3350 * emultempl/sunos.em: And here.
3351 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
3352 * mpw-idtmips.c: Ditto.
3353 * emultempl/generic.em: Ditto.
3354 * emultempl/gld960.em: Ditto.
3355 * emultempl/gld960c.em: Ditto.
3356 * emultempl/mipsecoff.em: Ditto.
3357 * emultempl/ticoff.em: Ditto.
3358 * emultempl/vanilla.em: Ditto.
3360 * pe-dll.c: Include ldfile.h
3361 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
3363 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
3364 arguments to bfd_elf32_size_dynamic_sections call.
3365 (gldelf32ebmip_place_orphan): Add missing arguments to
3366 lang_leave_output_section_statement call.
3368 2000-07-10 H.J. Lu <hjl@gnu.org>
3370 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
3372 (strhash): Likewise.
3373 (compute_dll_image_base): Likewise.
3374 (pe_undef_found_sym): Likewise.
3375 (pe_undef_cdecl_match): Likewise.
3376 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
3377 argument "arch" with ATTRIBUTE_UNUSED.
3379 2000-07-10 Alan Modra <alan@linuxcare.com.au>
3381 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
3383 From Ryan Bradetich <rbradetich@uswest.net>
3384 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
3386 2000-07-09 Alan Modra <alan@linuxcare.com.au>
3388 Changes to create multiple linker stubs, positioned immediately
3389 before the section where they are required.
3390 * emultempl/hppaelf.em: Include elf32-hppa.h.
3391 (stub_sec, file_chain): Delete.
3392 (hppaelf_create_output_section_statements): Don't make a stub
3394 (hook_stub_info): New struct.
3395 (hook_in_stub): New function.
3396 (hppaelf_add_stub_section): New function.
3397 (hppaelf_finish): Do nothing for relocateable links. Modify the
3398 call to elf32_hppa_size_stubs. Move code for updating section
3400 (hppaelf_layaout_sections_again): ..to here, a new function.
3402 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
3403 broken list handling. Pass in a pointer to the list.
3404 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
3406 (hppaelf_before_parse): Prototype.
3407 (hppaelf_set_output_arch): Prototype.
3408 (hppaelf_create_output_section_statements): Prototype.
3409 (hppaelf_delete_padding_statements): Prototype.
3410 (hppaelf_finish): Prototype.
3413 * emultempl/hppaelf.em: Include ctype.h.
3414 (struct orphan_save): New.
3415 (gld${EMULATION_NAME}_place_orphan): New.
3416 (output_rel_find): New.
3417 (hppaelf_get_script): Update from elf32.em.
3418 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
3419 Change emulation_name field to "${EMULATION_NAME}". Add
3420 gld${EMULATION_NAME}_place_orphan.
3422 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
3423 ehppalinux.o, sort it. Regenerate dependencies.
3424 (ehppalinux.c): Depend on hppaelf.em
3425 * Makefile.in: Regenerate.
3427 * configure.tgt: targ_emul=hppalinux for hppa*linux
3429 * emulparams/hppalinux.sh: New.
3430 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
3432 2000-07-08 Alan Modra <alan@linuxcare.com.au>
3434 * lexsup.c (parse_args): Copy section name.
3436 2000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
3438 * emultempl/pe.em: institute the following search order for
3439 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
3440 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
3441 static lib (libfoo.a) if none of the above are found.
3443 2000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
3445 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
3446 (longopts): New --{enable,disable}-auto-image-base options.
3447 (gld_${EMULATION_NAME}_list_options): Document.
3448 (gld_${EMULATION_NAME}_parse): Handle.
3449 (strhash): New static function.
3450 (compute_dll_image_base): New static function.
3451 (gld_${EMULATION_NAME}_set_symbols): Use.
3453 2000-07-05 DJ Delorie <dj@redhat.com>
3457 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
3459 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
3460 * emulparams/elf32btsmip.sh: New file.
3461 * Makefile.am: Add traditional mips target.
3462 * Makefile.in: Rebuild.
3464 2000-07-01 H.J. Lu <hjl@gnu.org>
3466 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
3467 automake to use YLWRAP.
3468 * Makefile.in: Rebuild.
3470 2000-07-01 Alan Modra <alan@linuxcare.com.au>
3472 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
3473 (CLEANFILES): Add DEPA.
3474 * Makefile.in: Regenerate.
3476 2000-06-30 Timothy Wall <twall@ppc>
3478 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
3479 the page in the upper octet of the address.
3481 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
3483 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
3485 2000-06-24 Alan Modra <alan@linuxcare.com.au>
3487 * NEWS: arm-elf does --gc-sections too.
3489 2000-06-22 Alan Modra <alan@linuxcare.com.au>
3491 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
3493 * Makefile.in: Regenerate.
3495 2000-06-21 H.J. Lu <hjl@gnu.org>
3497 * Makefile.am: Rebuild dependency.
3498 * Makefile.in: Rebuild.
3500 2000-06-20 H.J. Lu <hjl@gnu.org>
3502 * Makefile.am: Rebuild dependency.
3503 * Makefile.in: Rebuild.
3505 2000-06-20 Timothy Wall <twall@cygnus.com>
3507 * scripttempl/tic54xcoff.sc: New.
3508 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
3509 * gen-doc.texi: Add flag for TI COFF.
3510 * ld.texinfo: Add documentation for TI COFF handling switches.
3511 * emultempl/ticoff.em: New. TI COFF handling.
3512 * configure.tgt: Add tic54x target.
3513 * Makefile.am: Add tic54x target.
3514 * Makefile.in: Ditto.
3516 2000-06-20 Alan Modra <alan@linuxcare.com.au>
3518 * ldmain.c (set_scripts_dir): Correct pointer comparison when
3519 checking for backslashes.
3521 2000-06-19 Alan Modra <alan@linuxcare.com.au>
3523 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
3525 2000-06-18 Alan Modra <alan@linuxcare.com.au>
3527 * NEWS: Update list of targets supporting --gc-sections.
3529 * scripttempl/elf.sc: KEEP .eh_frame contents.
3530 * scripttempl/elfd30v.sc: Same here.
3532 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
3534 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
3536 * Makefile.in: Rebuild.
3537 * configure.tgt: Recognize m68hc12 and m68hc11.
3538 * scripttempl/elfm68hc12.sc: New file.
3539 * emulparams/m68hc12elfb: New emulation.
3540 * emulparams/m68hc12elf: New emulation.
3541 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
3542 (includes a memory.x script to define the ROM and RAM banks).
3543 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
3544 New configuration files for support of Motorola 68hc11
3546 2000-06-15 Alan Modra <alan@linuxcare.com.au>
3548 * ldmain.c (main): Only change SEC_READONLY for final link.
3550 2000-06-13 H.J. Lu <hjl@gnu.org>
3552 * configure: Regenerate.
3554 2000-06-08 David O'Brien <obrien@FreeBSD.org>
3556 * configure.in (VERSION): Update to show this is the CVS mainline.
3558 2000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3560 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
3561 input objects to be ECOFF.
3562 (check_sections): einfo takes %B, not %P, to print a BFD name.
3564 2000-06-05 Michael Matz <matz@ifh.de>
3566 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
3569 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
3571 2000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
3573 * emulparams/avr1200.sh (STACK): Define as 0.
3574 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
3575 * emulparams/avr4433.sh (STACK): Likewise.
3576 * emulparams/avr44x4.sh (STACK): Likewise.
3577 * emulparams/avr85xx.sh (STACK): Likewise.
3578 * emulparams/avrmega103.sh (STACK): Likewise.
3579 * emulparams/avrmega161.sh (STACK): Likewise.
3580 * emulparams/avrmega603.sh (STACK): Likewise.
3581 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
3582 (__stack): Define from ${STACK} for main().
3584 2000-05-26 Alan Modra <alan@linuxcare.com.au>
3586 * Makefile.am: Update dependencies with "make dep-am"
3587 * Makefile.in: Regenerate.
3589 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
3591 * ldmain.c: Include filenames.h.
3592 (set_scripts_dir): Support backslashes in program name.
3594 2000-05-22 Igor Shevlyakov <igor@windriver.com>
3596 * ldmain.c (main): When deciding if ".text" section should be
3597 read-only, don't forget to reset SEC_READONLY because it
3598 could be already set.
3600 2000-05-22 Thomas de Lellis <tdel@windriver.com>
3602 * ld.1: Add documentation for new command line option:
3603 --section-start <sectionname>=<sectionorg>
3604 This is a generic version of -Ttext etc. which accepts
3605 any section name as a parameter instead of just text/data/
3607 * ld.texinfo: More docs.
3609 * lexsup.c: (parse_args): Recognize new command line option.
3610 (ld_options): Add new option.
3612 2000-05-18 H.J. Lu <hjl@gnu.org>
3614 * lexsup.c (parse_args): `i' == `r', not `q'.
3616 2000-05-18 Jeffrey A Law (law@cygnus.com)
3618 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
3620 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
3621 Rick Gorton <gorton@scrugs.lkg.dec.com>
3623 Add support for '-q' == '--emit-relocs' switch.
3624 * ldmain.c (main): Default to false.
3625 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
3626 * NEWS: Describe the emitrelocations switch.
3627 * ld.texinfo: Describe the emitrelocations switch.
3629 2000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
3631 * emultempl/pe.em (_open_dynamic_archive): New function: Search
3632 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
3633 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
3636 2000-05-15 David O'Brien <obrien@FreeBSD.org>
3638 * lexsup.c (parse_args): Update the year in the copyright notice.
3640 2000-05-13 Alan Modra <alan@linuxcare.com.au>
3642 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
3643 Replace defines with those from intl/libgettext.h to quieten gcc
3646 2000-05-10 H.J. Lu <hjl@gnu.org>
3648 * ldlang.c (open_input_bfds): Don't load the same file within
3649 a group again if the whole archive has been loaded already.
3651 2000-05-03 Alan Modra <alan@linuxcare.com.au>
3653 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
3654 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
3657 2000-05-01 Jim Wilson <wilson@cygnus.com>
3659 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
3661 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
3662 host "ia64-*-linux-gnu*".
3664 2000-04-29 Andreas Jaeger <aj@suse.de>
3666 * ld.h: Correctly check GCC version.
3668 2000-04-25 Jeffrey A Law (law@cygnus.com)
3670 * Makefile.am: Add PA64 support. Add missing dependencies for
3672 * Makefile.in: Rebuilt.
3673 * configure.tgt: Add PA64 support (currently disabled).
3675 2000-04-25 Alan Modra <alan@linuxcare.com.au>
3677 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
3678 (output_rel_find): New function.
3679 (hold_section, hold_use): Delete.
3680 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
3681 hold_interp): Make local to place_orphan.
3682 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
3683 rather than place_section to find possible previous use of orphan.
3684 Similarly find the place-holder output sections. Use returned
3685 value from lang_enter_output_section_statement rather than calling
3686 lang_output_section_statement_lookup.
3687 * emultempl/armelf.em: Same here.
3688 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
3690 * ldlang.c (lang_enter_output_section_statement): Return output
3692 * ldlang.h (lang_enter_output_section_statement): Change
3695 * ldlang.h (lang_output_section_statement): Export it.
3696 * ldlang.c (lang_output_section_statement): Ditto.
3698 2000-04-24 Nick Clifton <nickc@cygnus.com>
3700 * ld.texinfo (Output Section Data): Add note that section data
3701 commands cannot appear outside of section directives.
3703 2000-04-2 Matthew Green <mrg@cygnus.com>
3705 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
3707 2000-04-21 Richard Henderson <rth@cygnus.com>
3708 David Mosberger <davidm@hpl.hp.com>
3710 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
3711 (eelf64_ia64.c): New rule.
3712 * Makefile.in: Rebuild.
3713 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
3714 * emulparams/elf64_ia64.sh: New file.
3716 2000-04-21 Richard Henderson <rth@cygnus.com>
3718 * scripttempl/elfd30v.sc: Place .gcc_except_table.
3720 2000-04-19 Alan Modra <alan@linuxcare.com.au>
3722 * dep-in.sed: Match space at start of file name, not at end.
3724 2000-04-18 H.J. Lu <hjl@gnu.org>
3726 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
3727 lang_leave_output_section_statement () after calling
3728 lang_enter_output_section_statement ().
3729 * emultempl/armelf.em: Likewise.
3731 2000-04-18 Alan Modra <alan@linuxcare.com.au>
3733 * emultempl/elf32.em (struct orphan_save): Add section field.
3734 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
3735 better order, and place first orphan section as we did before the
3736 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
3737 Don't call make_bfd_section here, let wild_doit do the job for us.
3738 Don't build a statement list when we'll only throw it away.
3739 * emultempl/armelf.em: Ditto.
3740 * emultempl/pe.em: Similarly.
3742 2000-04-14 Geoff Keating <geoffk@cygnus.com>
3744 * scripttempl/elfppc.sc: Remove.
3745 * emulparams/elf32ppc.sh: Use elf.sc.
3746 * emulparams/elf32lppc.sh: Use elf.sc.
3747 * emulparams/elf32ppclinux.sh: Use elf.sc.
3748 * emulparams/elf32ppcsim.sh: New file.
3749 * emulparams/elf32lppcsim.sh: New file.
3750 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
3751 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
3752 * Makefile.in: Regenerate.
3753 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
3755 2000-04-14 Alan Modra <alan@linuxcare.com.au>
3757 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
3758 ~SEC_ALLOC sections too. Init start address of debug sections.
3759 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
3760 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
3761 Also set all relocateable section start addresses.
3763 2000-04-13 Geoff Keating <geoffk@cygnus.com>
3765 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
3766 Add new BSS_PLT variable for when .plt need not be contained in
3767 the file. Move _etext so that it is also after .fini, and provide
3768 both etext and _etext with a leading underscore. Mark the start
3771 2000-04-12 Alan Modra <alan@linuxcare.com.au>
3773 * emultempl/elf32.em (struct orphan_save): New.
3774 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
3775 hold_interp): Make them struct orphan_save.
3776 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
3777 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
3778 the end of the relevant section list. Also add associated section
3779 statements to the end of any previous orphan statements.
3780 * emultempl/armelf.em: Similarly.
3781 * emultempl/pe.em: Similarly.
3783 2000-04-11 Alan Modra <alan@linuxcare.com.au>
3785 * ld.texinfo (Simple Example): Remove extraneous paragraph.
3787 2000-04-07 Andrew Cagney <cagney@b1.cygnus.com>
3789 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
3790 --enable-build-warnings option.
3791 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
3792 * Makefile.in, configure: Re-generate.
3794 2000-04-04 Alan Modra <alan@linuxcare.com.au>
3796 * po/ld.pot: Regenerate.
3798 * lexsup.c (help): Restore translated part of bug string.
3800 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
3801 (DEP): Quote when passing vars to sub-make. Add warning message
3803 (DEP1): Rewrite for "gcc -MM".
3804 (CLEANFILES): Add DEP2.
3805 Update dependencies.
3806 * Makefile.in: Regenerate.
3808 2000-04-03 Alan Modra <alan@linuxcare.com.au>
3810 * ld.h: #include "bin-bugs.h"
3811 * lexsup.c (help): Use REPORT_BUGS_TO.
3813 2000-03-27 Denis Chertykov <denisc@overta.ru>
3815 * configure.tgt (avr-*-*): New target support.
3816 * Makefile.am: Likewise.
3817 * scripttempl/elf32avr.sc: New script file.
3818 * emulparams/avr1200.sh: New file.
3819 * emulparams/avr23xx.sh: New file.
3820 * emulparams/avr4433.sh New file.
3821 * emulparams/avr44x4.sh New file.
3822 * emulparams/avr85xx.sh New file.
3823 * emulparams/avrmega103.sh New file.
3824 * emulparams/avrmega161.sh New file.
3825 * emulparams/avrmega603.sh New file.
3826 * Makefile.in: Regenerate.
3828 2000-03-09 Andreas Jaeger <aj@suse.de>
3830 * Makefile.am (check-DEJAGNU): Also unset LANG.
3831 * Makefile.in: Rebuild.
3833 2000-03-06 Ian Lance Taylor <ian@zembu.com>
3835 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
3838 2000-03-02 H.J. Lu <hjl@gnu.org>
3840 * emulparams/elf32mcore.sh: Include "getopt.h".
3842 2000-03-01 Ian Lance Taylor <ian@zembu.com>
3844 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
3846 2000-03-01 H.J. Lu <hjl@gnu.org>
3848 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
3849 * emulparams/shpe.sh: Likewise.
3851 2000-03-01 Nick Clifton <nickc@cygnus.com>
3853 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
3854 to unused parameters.
3856 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
3857 functions only used by DLL code.
3858 (_place_orphan): Initialise 'dollar'.
3860 2000-03-01 H.J. Lu <hjl@gnu.org>
3862 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
3863 indicate if the undefined symbol is a fatal error or not.
3864 Don't delete the output file if "fatal" is false.
3866 2000-02-29 H.J. Lu <hjl@gnu.org>
3868 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
3869 Set LC_COLLATE and LC_ALL to null and export them. It is for
3870 sort which expects the C locale.
3871 Add $(LIBS) to all $(HOSTING_LIBS).
3872 * Makefile.in: Rebuild.
3874 2000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
3876 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
3877 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
3878 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
3879 (ld_emulation_xfer_struct): Add missing NULL initialiser for
3880 find_potential_libraries.
3882 2000-02-28 Jim Blandy <jimb@redhat.com>
3884 * ldgram.y (exclude_name_list): Don't require a comma to separate
3885 list entries; the lexer considers commas to be valid part of a
3886 filename, so in something like `foo, bar' the comma is considered
3887 part of the first filename, `foo,'.
3888 * ld.texinfo: Update section on EXCLUDE_FILE lists.
3890 2000-02-27 Loren J. Rittle <ljrittle@acm.org>
3892 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
3893 host "i[3456]86-*-freebsdelf*".
3895 2000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
3897 * scripttempl/i386go32.sc: Move misplaced semicolons.
3899 2000-02-25 Ian Lance Taylor <ian@zembu.com>
3901 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
3902 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
3903 (eelf64hppa.c, ehppaelf.c): Remove targets.
3904 * Makefile.in: Rebuild.
3906 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
3908 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
3909 GNU/Linux/sparc, but keep the default as 32.
3911 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
3912 it default if sparcv9 or sparc64.
3914 2000-02-24 Nick Clifton <nickc@cygnus.com>
3916 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
3917 * Makefile.in: Regenerate.
3918 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
3920 * ldemul.h (ld_emulation_xfer_struct): Add new field:
3921 find_potential_libraries.
3922 * ldemul.c (ldemul_find_potential_libraries): New function.
3924 * ldfile.c (ldfile_open_file_search): Allow function to be
3926 (ldfile_open_file): Call ldemul_find_potential_libraries.
3927 * ldfile.h: Add prototype for ldfile_open_file_search.
3929 * pe-dll.c: Add support for ARM, MIPS and SH targets.
3931 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
3932 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
3934 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
3935 (gld_X_find_potential_libraries): New function. Search for
3936 libraries called "*.lib".
3938 * scripttempl/pe.sc: Add .pdata section.
3940 2000-02-23 Richard Henderson <rth@cygnus.com>
3942 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
3943 Add and use memory regions.
3945 2000-02-23 Linas Vepstas (linas@linas.org)
3947 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
3949 * Makefile.am: Add support for Linux/IBM 370.
3950 * configure.tgt: Likewise.
3952 * Makefile.in: Regenerate.
3954 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
3956 * ldlang.c (print_input_section, print_data_statement,
3957 print_reloc_statement, print_padding_statement, insert_pad,
3958 size_input_section, lang_check_section_addresses,
3959 lang_size_sections, lang_do_assignments, lang_set_startof,
3960 lang_one_common): Change `opb' to unsigned.
3961 (lang_do_assignments): Also change `size' to unsigned.
3963 2000-02-16 Richard Henderson <rth@cygnus.com>
3965 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
3967 2000-02-16 Timothy Wall <twall@cygnus.com>
3969 * mri.c (mri_draw_tree): Add default LMA region argument to call
3970 to lang_leave_output_section_statement.
3971 * ldlang.h: Update prototypes with LMA region arguments.
3972 * ldlang.c (lang_size_sections): Encapsulate region bounds
3973 checking in os_check_region call.
3974 (os_check_region): New function.
3975 (lang_output_section_statement_lookup): Initialize lma_region.
3976 (lang_leave_output_section_statement): Add LMA region argument.
3977 (lang_leave_overlay): Ditto.
3978 * ldgram.y: Handle LMA region syntax.
3979 * ld.texinfo (Output Section Description): Describe LMA region usage.
3980 * emultempl/armelf.em (gld$place_orphan): Add default value for
3981 lma region in call to lang_leave_output_section_statement.
3982 * emultempl/elf32.em (gld$place_orphan): Add default value for
3983 lma region in call to lang_leave_output_section_statement.
3984 * emultempl/pe.em (gld$place_orphan): Add default value for
3985 lma region in call to lang_leave_output_section_statement.
3988 2000-02-04 Timothy Wall <twall@redhat.com>
3990 * ldlang.c (lang_check_section_addresses): Use bytes instead of
3991 octets when calculating section end addresses.
3993 2000-02-04 Timothy Wall <twall@redhat.com>
3995 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
3997 2000-02-03 Timothy Wall <twall@redhat.com>
3999 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
4001 * ldlang.c (print_input_section, print_data_statement,
4002 print_reloc_statement, print_padding_statement): Print target
4003 address values and section sizes as bytes, not octets.
4004 (insert_pad) Calculate padding size in octets, and adjust "dot"
4006 (size_input_section) Always adjust "dot" by bytes, not octets.
4007 (lang_check_section_addresses, lang_do_assignments) Adjust
4008 "dot" by bytes, not octets. Use the larger of the directive size
4009 or octets_per_byte for the number of octets actually allocated in
4011 (lang_set_startof) Make sure STARTOF returns a target address.
4012 (lang_one_common) Record size changes in octets.
4013 (lang_abs_symbol_at_end_of) Section end symbol's value is
4014 recorded in target bytes.
4015 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
4016 to be clear about behavior when an octet is smaller than one byte.
4018 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
4020 * ldcref.c (output_cref): Don't pass message strings to printf
4024 * ldmisc.c (vfinfo): Same here.
4027 2000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
4029 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
4030 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
4031 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
4032 Add missing NULL initialisers, and comments.
4034 * testsuite/ld-srec/sr3.cc (__rethrow): New.
4036 2000-01-21 Nick Clifton <nickc@cygnus.com>
4038 * ldlang.c (lang_size_sections): Fix typo in comment.
4040 2000-01-18 H.J. Lu <hjl@gnu.org>
4042 * ldlang.c (lang_size_sections): Also update the current
4043 address of a region if the SEC_NEVER_LOAD bit is not set.
4045 2000-01-10 Philip Blundell <pb@futuretv.com>
4047 * configure.tgt (arm*-*-conix*): New target.
4049 2000-01-07 Nick Clifton <nickc@cygnus.com>
4051 * ld.texinfo (Options): Remind users to preceed linker command
4052 line switches with -Wl, (or whatever is appropriate) if it is
4053 being invoked by a comnpiler driver program.
4054 Fix description of the behaviour of the -n command line switch.
4056 2000-01-05 Catherine Moore <clm@cygnus.com>
4058 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
4060 * ld.texinfo (EXCLUDE_FILE): Update documentation.
4061 * ldgram.y (wildcard_spec): Support a list of excluded_files.
4062 (exclude_name_list): New.
4063 ldlang.c (walk_wild_section): Support list of excluded files.
4064 (print_wild_statement): Likewise.
4065 (lang_add_wild): Likewise.
4066 * ldlang.h (lang_wild_statement_type): Likewise.
4067 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
4069 2000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
4071 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
4072 (process_def_file): Use.
4073 (pe_dll_compat_implib): New variable.
4076 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
4077 pe_dll_compat_implib.
4079 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
4080 compat-implib options.
4081 (gld_${EMULATION_NAME}_list_options): List new options.
4082 (gld_${EMULATION_NAME}_parse_args): Handle.
4084 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
4087 * deffilep.y (opt_name): Allow "." in name.
4089 For older changes see ChangeLog-9899
4095 version-control: never