1 2002-05-15 Alan Modra <amodra@bigpond.net.au>
3 * ldlang.c (section_already_linked): Call bfd_link_just_syms.
4 (lang_place_orphans): Abort if just_syms_flag.
6 2002-05-10 Tom Rix <trix@redhat.com>
8 * emultempl/aix.em: (gld*_set_output_arch): New function. Use
9 architecture and machine information in the output bfd.
10 (gld*_before_parse): Remove old arch and machine code.
11 (choose_target): Rename to gld*_choose_target.
12 (rtld): Change type to int.
13 * ldfile.c (ldfile_try_open_bfd): Disable compatiblity check for
14 objects in XCOFF archives.
15 * ldfile.h: Update copyright date.
17 2002-05-10 Jakub Jelinek <jakub@redhat.com>
19 * ldmain.c (main): Enable -z combreloc by default.
21 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
23 * Makefile.am: Honour DESTDIR.
24 * Makefile.in: Regenerate.
26 2002-05-07 Richard Sandiford <rsandifo@redhat.com>
28 * ldlang.h (lang_output_section_statement_type): Add update_dot_tree.
29 (lang_enter_overlay): Remove the last two parameters.
30 (lang_leave_overlay): Take them here instead.
31 * ldgram.y (memspec_at_opt): Set $$ to null if no region is given.
32 (section): Pass LMA and crossref flag to lang_leave_overlay rather
33 than lang_enter_overlay.
34 * ldlang.c (lang_memory_region_lookup): Return null for null names.
35 (lang_output_section_statement_lookup): Initialize update_dot_tree.
36 (lang_size_sections_1): Evaluate it.
37 (lang_leave_output_section_statement): Rework LMA lookup.
38 (overlay_lma, overlay_nocrossrefs): Remove.
39 (lang_enter_overlay): Remove LMA and corssref arguments.
40 (lang_enter_overlay_section): Don't set the LMA here.
41 (lang_leave_overlay): Take LMA and crossref arguments. Move the '.'
42 assignment to the last section's update_dot_tree. Unconditionally
43 use the load and run-time regions specified in the OVERLAY statement.
44 Likewise the first section's LMA. Only set the other sections' LMAs
45 when no load region is given.
47 2002-05-06 Nick Clifton <nickc@redhat.com>
49 * po/sv.po: New translation.
51 2002-05-04 Alan Modra <amodra@bigpond.net.au>
53 * emultempl/hppaelf.em (build_section_lists): New function.
54 (gld${EMULATION_NAME}_finish): Call elf32_hppa_setup_section_lists
55 and build_section_lists.
57 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
59 * ld.h: Fix formatting.
67 2002-05-02 Alan Modra <amodra@bigpond.net.au>
69 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
70 Adjust for ppc64_elf_set_toc change. #include libbfd.h.
71 (build_section_lists): Do output_section tests here.
73 2002-04-30 Tom Rix <trix@redhat.com>
75 * emultempl/aix.em : (gld*_parse_arge): Formatting changes.
77 2002-05-01 Alan Modra <amodra@bigpond.net.au>
79 Long branch stubs, multiple stub sections.
80 * emultempl/ppc64elf.em: Include ldctor.h.
82 (group_size): New var.
83 (ppc_create_output_section_statements): New function.
84 (struct hook_stub_info): New.
85 (hook_in_stub): New function.
86 (ppc_add_stub_section): New function.
87 (ppc_layout_sections_again): New function.
88 (build_section_lists): New function.
89 (gld${EMULATION_NAME}_finish): Rewrite.
91 (ppc_for_each_input_file_wrapper): New function.
92 (ppc_lang_for_each_input_file): New function.
93 (lang_for_each_input_file): Define.
94 (PARSE_AND_LIST_PROLOGUE): Define.
95 (PARSE_AND_LIST_LONGOPTS): Define.
96 (PARSE_AND_LIST_OPTIONS): Define.
97 (PARSE_AND_LIST_ARGS_CASES): Define.
98 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
100 2002-04-30 Tom Rix <trix@redhat.com>
102 * emultempl/aix.em (gld*_parse_arge, gld*_before_allocation): Add
103 -blibpath, -bnolibpath support.
105 2002-04-30 Mark Mitchell <mark@codesourcery.com>
107 * Makefile.am (ALL_EMULATIONS): Add elf32ppcwindiss.o.
108 (eelf32ppcwindiss.c): New target.
109 * Makefile.in: Regenerated.
110 * configure.tgt: Add support for powerpc-*-windiss.
111 * emulparams/elf32ppcwindiss.sh: New file.
113 2002-04-30 Richard Sandiford <rsandifo@redhat.com>
115 * ldlang.c (print_assignment): Update print_dot for assignments to ".".
116 * ldexp.c (exp_print_token): Add "infix_p" argument.
117 (exp_print_tree): Update accordingly.
119 2002-04-28 Alan Modra <amodra@bigpond.net.au>
121 * Makefile.am (mpw): New maintainer mode rule to make mpw-*.c files.
122 * Makefile.in: Regenerate.
123 * mpw-elfmips.c: Delete.
124 * mpw-eppcmac.c: Delete.
126 * mpw-idtmips.c: Delete.
128 Wed Apr 17 19:23:14 2002 J"orn Rennecke <joern.rennecke@superh.com>
130 * emulparams/shelf32.sh (MACHINE): Now sh5.
132 2002-04-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
134 * ldgram.y: Fix syntax warning.
136 2002-04-11 Nick Clifton <nickc@cambridge.redhat.com>
138 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Add 'n' in order
139 to prevent "-n" from being taken as an abbreviation for
140 "--no-pipeline-knowledge".
142 2002-04-08 Alan Modra <amodra@bigpond.net.au>
144 * ldlang.c (lang_size_sections_1): Don't complain about
145 SEC_NEVER_LOAD sections having no memory region specified.
147 * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.
149 2002-04-07 matthew green <mrg@redhat.com>
151 * ld/configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
153 2002-04-04 Alan Modra <amodra@bigpond.net.au>
155 * dep-in.sed: Cope with absolute paths.
156 * Makefile.am (dep.sed): Subst TOPDIR and BFDDIR.
158 * Makefile.in: Regenerate.
160 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
162 * emulparams/elf64btsmip.sh: n64 replaces .reginfo with .MIPS.options.
164 2002-04-03 Jakub Jelinek <jakub@redhat.com>
166 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size
167 is smaller than maximum, round dot up to common page boundary.
169 2002-03-28 Alan Modra <amodra@bigpond.net.au>
171 * configure.host: Set up for generic hosts first, then tweak as
172 necessary in more specific targets.
173 (HOSTING_LIBS): Include libgcc_eh.a if found.
175 2002-03-23 Andreas Jaeger <aj@suse.de>
177 * emulparams/elf_x86_64.sh (COMMONPAGESIZE): Set it.
179 2002-03-21 Alan Modra <amodra@bigpond.net.au>
181 * Makefile.am: Run "make dep-am".
182 * Makefile.in: Regenerate.
184 2002-03-21 Albert Chin-A-Young <china@thewrittenword.com>
186 * genscripts.sh (LIB_SEARCH_DIRS): Quote path.
188 2002-03-20 Alan Modra <amodra@bigpond.net.au>
190 * ldlang.c (ldlang_add_undef): If the output bfd has been opened,
191 add the symbol to the linker hash table immediately.
192 (lang_place_undefineds): Split symbol creation out..
193 (insert_undefined): ..to here.
195 2002-03-18 David O'Brien <obrien@FreeBSD.org>
197 * emultempl/elf32.em: Use lbasename vs. basename to fix problem where
198 the contents of the buffer returned from basename function will are
199 getting overwritten while still being used.
201 Mon Mar 18 17:38:39 CET 2002 Jan Hubicka <jh@suse.cz>
202 Andreas Jaeger <aj@suse.de>
203 Andreas Schwab <schwab@suse.de>
205 * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native.
206 * elf_x86_64.sh (ARCH): Set to i386:x86-64
207 set libraries to default to lib64 paths.
209 2002-03-18 Tom Rix <trix@redhat.com>
211 * Makefile.am : Add eaix5ppc and eaix5rs6, AIX 5 support.
212 * configure.tgt : Same.
213 * emulparms/aix5ppc.sh : New file. For eaix5ppc.
214 * emulparms/aix5rs6.sh : New file. For eaix5rs6.
215 * emulparms/aixppc.sh : OUPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT
216 emulation parameters for better -b32, -b64 support.
217 * emulparms/aixrs6.sh : Same.
218 * emulparms/ppcmacos.sh : Same.
219 * emultempl/aix.em (choose_target) : Use new emulation parameters
220 OUTPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT.
221 * Makefile.in : Regenerate.
223 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
225 * po/fr.po: Updated version.
227 2002-03-18 Alan Modra <amodra@bigpond.net.au>
229 * ldmain.c (main): Move .text readonly flag fudges from here..
230 * ldlang.c (lang_process): ..to here.
232 2002-03-14 Alan Modra <amodra@bigpond.net.au>
234 * ldlang.c (lang_check): Remove the word size check added in last
235 change. Treat emitrelocations case as for relocatable links.
237 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
239 * po/fr.po: Updated version.
241 2002-03-13 Alan Modra <amodra@bigpond.net.au>
243 * ldlang.c (lang_check): Do relocatable link checks first, so that
244 warn_mismatch can't override. Check compatible and word size too.
246 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
248 * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
250 2002-03-05 Jakub Jelinek <jakub@redhat.com>
252 * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
255 2002-03-04 H.J. Lu <hjl@gnu.org>
257 * scripttempl/elf.sc: Put .preinit_array, .init_array and
258 .fini_array in the data segment.
260 2002-03-04 Alan Modra <amodra@bigpond.net.au>
262 * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
264 2002-03-01 David Mosberger <davidm@hpl.hp.com>
266 * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
267 .init_array, and .fini_array.
269 2002-02-20 Andreas Schwab <schwab@suse.de>
271 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
272 .IA64_unwind* in a relocatable link.
274 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
276 * NEWS: Mark 2.12 branch.
278 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
280 * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
281 * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
283 2002-02-18 Tom Rix <trix@redhat.com>
285 * emultempl/aix.em (gld*_parse_args): Add -brtl support.
286 (gld*_before_allocation): Same.
287 (gld*_create_output_section_statements): Generate
288 __rtinit if run time linking. Add librtl.a to the link.
289 (gld*_read_file): Clean.
291 2002-02-18 Alan Modra <amodra@bigpond.net.au>
293 * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
295 2002-02-18 David O'Brien <obrien@FreeBSD.org>
297 * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
298 eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
299 and eelf64alpha_fbsd.
300 * Makefile.in: Regenerate.
301 * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
302 x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
303 use a FreeBSD-specific emulation rather than the psABI one.
304 * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
305 for all FreeBSD ELF systems.
306 * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
308 * emulparams/elf32ppc_fbsd.sh: Likewise.
309 * emulparams/elf64_ia64_fbsd.sh: Likewise.
310 * emulparams/elf64_sparc_fbsd.sh: Likewise.
311 * emulparams/elf64alpha_fbsd.sh: Likewise.
312 * emulparams/elf_i386_fbsd.sh: Likewise.
313 * emulparams/elf_x86_64_fbsd.sh: Likewise.
315 2002-02-18 Nick Clifton <nickc@cambridge.redhat.com>
317 * po/tr.po: Updated version.
319 2002-02-18 Alan Modra <amodra@bigpond.net.au>
321 * ld.texinfo (Output Section Fill): Fix amateur texinfo.
324 2002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
326 * emultempl/mmo.em (mmo_after_open): Don't call
327 _bfd_mmix_check_all_relocs when producing ELF output.
329 2002-02-15 Richard Henderson <rth@redhat.com>
331 * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
332 definition. Emit a unop+nop pair.
334 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
336 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
337 for presence of .MMIX.reg_contents.linker_allocated before early
340 * NEWS: Mention support for MMIX.
342 2002-02-15 Alan Modra <amodra@bigpond.net.au>
344 Support arbitrary length fill patterns.
345 * ld.texinfo (Output Section Fill): Describe fill expressions.
346 (FILL): Refer to the above.
347 * ldexp.h (etree_value_type): Add "str" field.
348 (union etree_union): Add "str" to "value" struct.
349 (exp_bigintop): Declare.
350 (exp_get_fill): Declare.
351 * ldexp.c: Include "safe-ctype.h".
352 (exp_intop): Set value.str to NULL.
353 (exp_bigintop): New function.
354 (new_rel): Pass in "str", and set new.str from it.
355 (new_rel_from_section): Set new.str to NULL.
356 (fold_name): Adjust calls to new_rel.
357 (exp_fold_tree): Likewise.
358 (exp_get_fill): New function.
359 * ldgram.y (struct big_int bigint, fill_type *fill): New.
360 (INT): Returns a "bigint". Adjust all code handling INTs.
361 (fill_opt): Returns a "fill".
362 (fill_exp): Split out of fill_opt, use for FILL.
363 * ldlang.h (struct _fill_type): New.
364 (fill_type): Move typedef to ldexp.h.
365 (lang_output_section_statement_type): "fill" is now a pointer.
366 (lang_fill_statement_type): Likewise.
367 (lang_padding_statement_type): Likewise.
368 (lang_add_fill): Now takes a "fill_type *" param.
369 (lang_leave_output_section_statement): Likewise.
370 (lang_do_assignments): Likewise.
371 (lang_size_sections): Likewise.
372 (lang_leave_overlay_section): Likewise.
373 (lang_leave_overlay): Likewise.
374 * ldlang.c: Include ldgram.h after ldexp.h.
375 (lang_output_section_statement_lookup): Adjust for fill_type change.
376 (print_fill_statement): Likewise.
377 (print_padding_statement): Likewise.
378 (insert_pad): Now takes a "fill_type *" arg.
379 (size_input_section): Likewise.
380 (lang_size_sections_1): Likewise.
381 (lang_size_sections): Likewise.
382 (lang_do_assignments): Likewise.
383 (lang_add_fill): Likewise.
384 (lang_leave_output_section_statement): Likewise.
385 (lang_leave_overlay_section): Likewise.
386 (lang_leave_overlay): Likewise.
387 Adjust all callers of the above function.
388 * ldlex.l: Include ldgram.h after ldexp.h. Allow hex numbers
389 starting with "0X" as well as "0x". Return bigint.str for hex
390 numbers starting with "0x" or "0X", zero bigint.str otherwise.
391 Always use base 16 for numbers starting with "$".
392 * ldmain.c: Include ldgram.h after ldexp.h.
393 * ldwrite.c (build_link_order): Use bfd_data_link_order in place
394 of bfd_fill_link_order.
395 * pe-dll.c: Adjust lang_do_assignments calls.
396 * emultempl/elf32.em: Likewise.
397 * emultempl/hppaelf.em: Likewise.
398 * emultempl/ppc64elf.em: Likewise.
399 * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
400 lang_add_assignment call.
401 * emultempl/pe.em: Likewise.
403 2002-02-14 Phil Edwards <pme@gcc.gnu.org>
405 * ld.texinfo (VERSION scripts): Symbol names are globbing patterns.
406 * ldgram.y (lang_new_vers_regex): Rename to lang_new_vers_pattern;
407 the pattern in question is not a regexp.
408 * ldlang.c: Likewise.
409 * ldlang.h: Likewise.
410 * ldlex.l (V_IDENTIFIER): Allow '[', ']', '-', '!', and '^' also.
412 2002-02-12 Jakub Jelinek <jakub@redhat.com>
414 * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
415 * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
416 (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
417 * ldexp.c (exp_data_seg): New variable.
418 (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
419 (fold_binary): Handle DATA_SEGMENT_ALIGN.
420 (exp_fold_tree): Handle DATA_SEGMENT_END.
421 Pass allocation_done when recursing instead of hardcoding
422 lang_allocating_phase_enum.
423 * ldexp.h (exp_data_seg): New.
424 * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
425 (lang_size_sections): New.
426 * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
427 * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
428 if COMMONPAGESIZE is defined.
429 * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
430 * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
431 * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
432 * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
433 * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
436 2002-02-11 Alan Modra <amodra@bigpond.net.au>
438 * Makefile.in: Regenerate.
440 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
442 * lexsup.c: Remove strtoul declaration.
444 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
446 * ldmain.c: Add prototype for main ().
447 * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
448 * emultempl/lnk960.em (lnk960_choose_target): Function should
451 2002-02-10 Alan Modra <amodra@bigpond.net.au>
453 * ldlang.c (entry_section): New initialised variable.
454 (lang_finish): Use it.
455 * ldlang.h (entry_section): Declare.
456 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
457 entry_section to ".opd".
459 2002-02-09 Chris Demetriou <cgd@broadcom.com>
461 * ld.texinfo (Options): Add back in -nostdlib documentation,
462 which had been inadvertently removed.
464 2002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
466 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
467 register section vma to a sane value after emitting error. Make
468 fatal conditions cause program exit when emitting message.
470 2002-02-08 Ivan Guzvinec <ivang@opencores.org>
472 * configure.tgt: Add or32-*-rtems target.
474 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
477 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
478 * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
479 in OTHER_RELOCATABLE_SECTIONS.
480 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
481 * emulparams/shelf32.sh (STACK_ADDR): Define.
482 (OTHER_RELOCATABLE_SECTIONS): Renamed to...
483 (OTHER_SECTIONS): this. Removed stack settings.
484 * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
485 (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
486 2001-03-12 DJ Delorie <dj@redhat.com>
487 * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
488 relaxing if any shmedia or mixed sections are found.
489 2001-03-07 DJ Delorie <dj@redhat.com>
490 * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
491 einfo. Gracefully decline to output to non-elf formats.
492 2001-03-06 Hans-Peter Nilsson <hpn@redhat.com>
493 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
494 Default to _end aligned to next multiple of 0x40000, plus 0x40000.
495 * emulparams/shelf32.sh: Ditto.
496 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
497 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
499 2001-01-10 Ben Elliston <bje@redhat.com>
500 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
501 non-portable shell constructs. From Hans-Peter Nilsson.
502 2001-01-09 Hans-Peter Nilsson <hpn@cygnus.com>
503 * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
504 * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
505 dependencies to the shell script include chain.
506 * Makefile.in: Regenerate.
507 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
508 * emultempl/sh64elf.em: Update and tweak comments.
509 (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
510 make a .cranges section SEC_IN_MEMORY.
511 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
512 * emultempl/sh64elf.em
513 (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
514 .cranges section found to be necessary; continue and set stored
515 section contents flags for sections with non-mixed contents.
516 Use a struct sh64_section_data container and sh64_elf_section_data
517 to store contents-type flags.
518 Remove unused update of "isec".
519 (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
520 sections marked SHF_SH5_ISA32_MIXED. Use sh64_elf_section_data to
521 access contents-type flags. Assert that the associated container
522 is initialized. Use that container, not elf_gp_size, to hold size
523 of linker-generated cranges contents.
524 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
525 * emultempl/sh64elf.em
526 (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
527 there's already a .cranges section. When section flag difference
528 is found, don't NULL-check cranges a second time. Tweak comments.
529 (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
530 merging, not max size, as size of ld-generated .cranges contents.
531 Don't set ELF section flags in output section. When checking for
532 needed .cranges descriptors, don't use a variable; compare
533 incoming ELF section flags directly to SHF_SH5_ISA32_MIXED. Tweak
535 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
536 * emultempl/sh64elf.em: New file.
537 * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
538 * Makefile.in: Regenerate.
539 * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
540 (OTHER_RELOCATING_SECTIONS): Ditto.
541 (EXTRA_EM_FILE): New, set to sh64elf if not set.
542 * emulparams/shlelf32.sh: Stub out all settings except
543 OUTPUT_FORMAT. Source shelf32.sh.
544 * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
545 OTHER_RELOCATING_SECTIONS.
546 (OTHER_RELOCATING_SECTIONS): Remove .cranges.
547 * emulparams/shlelf64.sh: Stub out all settings except
548 OUTPUT_FORMAT. Source shelf64.sh.
549 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
550 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
552 (DATA_START_SYMBOLS): Define, provide ___data.
553 (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
554 for consecutive .data section.
555 (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
556 section after .data section.
557 * emulparams/shlelf64.sh: Ditto.
558 * emulparams/shelf32.sh: Ditto.
559 (ALIGNMENT): Define to 8.
560 * emulparams/shelf32.sh: Ditto.
561 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
562 * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
563 built-in linker scripts.
564 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
565 * emulparams/shlelf64.sh: New.
566 * emulparams/shelf64.sh: New.
567 * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
569 * Makefile.am: Add support for shlelf64 and shelf64.
570 * Makefile.in: Regenerate.
571 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
572 * configure.tgt (sh64-*-elf*): Add shelf as default.
573 Add shlelf to targ_extra_emuls.
574 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
575 * emulparams/shelf32.sh: New file.
576 * emulparams/shlelf32.sh: New file.
577 * Makefile.am: Add support for shlelf32 and shelf32.
578 * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
579 * Makefile.in: Regenerate.
581 2002-02-05 Hans-Peter Nilsson <hp@axis.com>
583 * ldlang.c (lang_reset_memory_regions): Rename from
584 reset_memory_regions. Change all callers. Make public.
585 * ldlang.h (lang_reset_memory_regions): Prototype.
586 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
587 lang_reset_memory_regions before lang_size_sections.
588 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
589 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
591 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
593 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
594 arithmetic when checking for too many global registers.
596 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
598 * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
599 (ehppanbsd.c): New rule.
600 * Makefile.in: Regenerate.
601 * configure.tgt (hppa*-*-netbsd*): New target.
602 * emulparams/hppalinux.sh: Add comment to check other files
603 that source this file it is modified, and list which
605 * emulparams/hppanbsd.sh: New file.
607 2002-02-01 Geoffrey Keating <geoffk@redhat.com>
609 * scripttempl/xstormy16.sc: Don't allocate extra space for the
612 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
614 Support on-demand global register allocation from
615 R_MMIX_BASE_PLUS_OFFSET relocs.
616 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
617 mmix_set_reg_section_vma. Call
618 _bfd_mmix_finalize_linker_allocated_gregs.
619 (mmix_before_allocation): New function.
620 (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
621 (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
622 * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
623 (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
624 before .MMIX.reg_contents.
625 * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
626 (mmo_after_open): New function.
627 (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
628 * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting. Add
629 .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
631 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
633 * emulparams/or32.sh: New file.
634 * emulparams/or32elf.sh: New file.
635 * scripttempl/or32.sc: New file.
636 * configure.tgt : Add support for or32.
637 * configure: Regenerate
638 * Makefile.am: Add support for or32.
639 * Makefile.in: Regenerate.
640 * NEWS: Mention support for or32.
641 * po/ld.pot: Regenerate.
643 2002-01-29 Chris Demetriou <cgd@broadcom.com>
644 Mitch Lichtenberg <mpl@broadcom.com>
646 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
647 * emultempl/mipself.em: New file to handle MIPS ELF embedded
648 reloc creation (ld --embedded-relocs).
650 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
652 * configure: Regenerated.
654 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
656 * Makefile.am (install): Depend on install-info.
657 * Makefile.in: Regenerate.
659 2002-01-26 Christian Rose <menthos@menthos.com>
661 * ldmain.c (main): Use full sentences to ease translation.
663 2002-01-26 Nick Clifton <nickc@cambridge.redhat.com>
665 * po/fr.po: Updated version.
667 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
669 * po/es.po: Updated version.
671 2002-01-25 Andreas Jaeger <aj@suse.de>
673 * ldlex.l (yy_input): Correct error check.
675 2002-01-25 Alan Modra <amodra@bigpond.net.au>
677 * ldmisc.c (demangle): Put back dots when string not demangled.
679 2002-01-22 Richard Henderson <rth@redhat.com>
681 * emulparams/elf64alpha.sh (NOP): Use unop.
683 2002-01-21 Andreas Jaeger <aj@suse.de>
685 * ldlex.l: Use fread instead of read.
687 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
689 * configure.tgt (ia64-*-netbsd*): New target.
691 2002-01-21 H.J. Lu <hjl@gnu.org>
693 * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
695 * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
697 2002-01-18 Andreas Jaeger <aj@suse.de>
699 * ldver.c (ldversion): Update year.
701 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
703 * po/ld.pot: Regenerate.
705 2002-01-16 Alan Modra <amodra@bigpond.net.au>
707 * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
708 * Makefile.in: Regenerate.
709 * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
710 * emultempl/ppc64elf.em: New file.
712 2002-01-15 DJ Delorie <dj@redhat.com>
714 * scripttempl/pe.sc: Add support for constructor priorities.
716 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
718 * emulparams/avr1200.sh (DATA_START): Define as 0x60.
719 * emulparams/avr23xx.sh: Likewise.
720 * emulparams/avr4433.sh: Likewise.
721 * emulparams/avr44x4.sh: Likewise.
722 * emulparams/avr85xx.sh: Likewise.
723 * emulparams/avrmega103.sh: Likewise.
724 * emulparams/avrmega161.sh: Likewise.
725 * emulparams/avrmega603.sh: Likewise.
726 * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
728 2002-01-08 Alexandre Oliva <aoliva@redhat.com>
730 * ldlang.c (walk_wild_section): Exclude object file if enclosing
733 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
735 * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
736 (eshelf_nbsd.c): New rule.
737 (eshlelf_nbsd.c): New rule.
738 * Makefile.in: Regenerate.
739 * configure.tgt (sh*le-*-netbsdelf*): New target.
740 (sh*-*-netbsdelf*): New target.
741 * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
742 * ld/emulparams/shelf_nbsd.sh: New emulation.
743 * ld/emulparams/shlelf_nbsd.sh: New emulation.
745 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
747 * po/es.po: New file: Spanish translation.
748 * configure.in (ALL_LINGUAS): Add es.
749 * configure: Regenerate.
751 2002-01-06 John Marshall <jmarshall@acm.org>
753 * ld.texinfo: Note that --emit-relocs is currently only
756 2002-01-05 Alan Modra <amodra@bigpond.net.au>
758 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
759 of bfd_section_list_remove and bfd_section_list_insert macros.
760 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
761 * emultempl/mmo.em (mmo_place_orphan): Likewise.
763 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
765 * configure.tgt (x86_64-*-netbsd*): New target.
767 2001-12-21 Tom Rix <trix@redhat.com>
769 (gld*_create_output_section_statements): New function.
770 For -binitfini support.
771 * emultempl/aix.em (gld*_before_parse): Fix comment.
772 * emultempl/aix.em (gld*_parse_args): Fix comment.
774 2001-12-20 Jason Thorpe <thorpej@wasabisystems.com>
776 * configure.tgt (mips*-dec-netbsd*): Delete alias for
778 (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
780 * configure.tgt (arm-*-netbsdelf*): Add target.
781 (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
782 * emulparams/armelf_nbsd.sh: Added.
783 * Makefile.am: Add rules for earmelf_nbsd.
784 * Makefile.in: Regenerate.
786 2001-12-19 Andreas Jaeger <aj@suse.de>,
787 Susanne Oberhauser <froh@suse.de>
789 * configure.host: Add rules for x86_64-*linux-gnu. Change
790 s390x-linux entry to use gcc to report configuration, replace gcc
791 with $CC in s390-linux
793 2001-12-19 Andreas Jaeger <aj@suse.de>
795 * ld.texinfo (VERSION): Fix markup.
797 2001-12-18 matthew green <mrg@eterna.com.au>
799 * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
800 (m68kelfnbsd.c): New rule.
801 * Makefile.in: Regenerate.
802 * configure.tgt (m68*-hp-netbsd*): Renamed to ..
803 (m68*-*-netbsd*4k*): .. this.
804 (m68*-*-netbsdelf*): New target.
805 (m68*-*-netbsd*): Also include ELF support.
806 (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
807 * emulparams/m68kelfnbsd.sh: New emulation.
809 2001-12-18 Jakub Jelinek <jakub@redhat.com>
811 * ldgram.y (vers_node): Support anonymous version tags.
812 * ldlang.c (lang_register_vers_node): Ensure anonymous version
813 tag is not defined together with non-anonymous versions.
814 * ld.texinfo: Document it.
816 2001-12-18 Nick Clifton <nickc@cambridge.redhat.com>
818 * po/tr.po: New file: Turkish translation.
819 * configure.in (ALL_LINGUAS): Add tr.
820 * configure: Regenerate.
822 2001-12-17 Jason Thorpe <thorpej@wasabisystems.com>
824 * Makefile.am: Add rules for eelf64alpha_nbsd.
825 * Makefile.in: Regenerate.
826 * configure.tgt (alpha*-*-netbsd*): Set
827 targ_emul to elf64alpha_nbsd.
828 * emulparams/elf64alpha_nbsd.sh: Added.
830 2001-12-17 Alan Modra <amodra@bigpond.net.au>
832 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
833 section_tail when fiddling with section list.
834 (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
835 broken into separate strings to make translation easier.
836 * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
837 fiddling with section list.
838 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
840 2001-12-16 Hans-Peter Nilsson <hp@bitrange.com>
842 * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
844 2001-12-15 Alan Modra <amodra@bigpond.net.au>
846 * ldmain.c (main): Initialise link_info.eh_frame_hdr.
848 2001-12-13 Jakub Jelinek <jakub@redhat.com>
850 * emultempl/elf32.em (finish): Supply output_bfd
851 to bfd_elf*_discard_info.
852 (OPTION_EH_FRAME_HDR): Define.
853 (longopts): Add --eh-frame-hdr.
854 (parse_args): Handle it.
855 (list_options): Add --eh-frame-hdr to help.
856 * emultempl/hppaelf.em (finish): Supply output_bfd
857 to bfd_elf*_discard_info.
858 * scripttempl/elf.sc (.eh_frame_hdr): Add.
860 2001-12-13 Alan Modra <amodra@bigpond.net.au>
862 * lexsup.c (parse_args): Don't pass shortopts to second call to
863 getopt functions. Restore optind rather than decrementing before
864 second call. Remove errind as it now duplicates last_optind.
866 2001-12-11 Christopher Faylor <cgf@redhat.com>
868 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
870 2001-12-07 Geoffrey Keating <geoffk@redhat.com>
871 Richard Henderson <rth@redhat.com>
873 * Makefile.am: Add support for xstormy16.
874 * configure.tgt: Add support for xstormy16.
875 * Makefile.in: Regenerate.
876 * emulparams/elf32xstormy16.sh: New file.
877 * scripttempl/xstormy16.sc: New file.
879 2001-10-01 Christopher Faylor <cgf@cygnus.com>
881 * Makefile.in (LIB_PATH): Make configurable.
882 (GENSCRIPTS): Set LIB_PATH in environment.
883 * configure.in: Substitute LIB_PATH.
884 * configure: Regenerate.
885 * configure.tgt (*cygwin): Set LIB_PATH for cross build.
886 * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
888 2001-12-07 Nick Clifton <nickc@cambridge.redhat.com>
890 * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
891 describing the -N option so that it is easier to translate into
894 2001-12-05 Nick Clifton <nickc@cambridge.redhat.com>
896 * emultempl/pe.em (..._list_options): Replace multiple fprintf
897 statements describing a single option with a single, newline
898 escaped fprintf. This allows better translation into other
901 * ldmain.c (add_archive_element): Combine multiple strings
902 into a single string to permit better translation into other
905 2001-12-05 Tom Rix <trix@redhat.com>
907 * Makefile.am: Remove eaixppc64.
908 * Makefile.in: Regenerate.
910 2001-12-04 Tom Rix <trix@redhat.com>
912 * emultempl/aix.em (choose_target): Change default target to
913 OUTPUT_FORMAT for ppcmacos. Add braces to remove compiler
915 (gld*_read_file): Fix typo.
916 (change_symbol_mode): Add prototype.
919 * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
920 * emulparams/aixrs6.sh : Same.
921 * emulparams/ppcmacos.sh : Same.
922 * emulparams/aixppc64.sh : Delete file.
923 * emultempl/aix.em : Formatting changes.
925 2001-12-04 Hans-Peter Nilsson <hp@axis.com>
927 * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
928 (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
930 (OTHER_END_SYMBOLS): Fix formatting.
931 * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
932 (OTHER_END_SYMBOLS): Fix formatting.
934 2001-12-04 Alan Modra <amodra@bigpond.net.au>
936 * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
938 2001-12-02 Tom Rix <trix@redhat.com>
940 * configure.tgt : Remove eaixppc64 emulations.
941 * Makefile.in : Remove eaixppc64.c
942 * ldemul.c (ldemul_choose_target): New parameters argc, argv.
943 (ldemul_default_target): Same.
944 * emultempl/gld960.em (gld960_choose_target): Same.
945 * emultempl/gld960c.em (gld960_choose_target): Same.
946 * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
947 * emultempl/aix.em (is_syscall): syscall_mask now a variable.
948 * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
949 * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
950 * emultempl/aix.em (choose_target): New function. Handle emulation of
953 2001-11-27 H.J. Lu <hjl@gnu.org>
955 * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
956 * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
957 * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
958 * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
959 * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
960 * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
961 * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
962 * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
964 * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
967 (REL_SDATA): Likewise.
968 (REL_SBSS): Likewise.
969 (REL_SDATA2): Likewise.
970 (REL_SBSS2): Likewise.
971 (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
974 2001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
976 * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
978 * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
980 2001-11-22 H.J. Lu <hjl@gnu.org>
982 * Makefile.in: Regenerated with automake based on automake
985 2001-11-22 Alan Modra <amodra@bigpond.net.au>
987 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
988 (config.status): Delete rule.
989 Add extra dependencies to cover sourced emulparams files.
990 * Makefile.in: Regenerate.
992 * scripttempl/elf.sc: Order <section>, <section>.* and
993 corresponding linkonce sections as seen in input files.
994 Formatting fixes. Zero vma of all sections if not relocating.
995 (STACK): Define and insert if STACK_ADDR defined.
996 (OTHER_RELOCATING_SECTIONS): Delete.
997 (OTHER_END_SYMBOLS): Define.
998 (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
999 (OTHER_READWRITE_SECTIONS): Likewise.
1000 (OTHER_GOT_SECTIONS): Likewise.
1001 (OTHER_SDATA_SECTIONS): Likewise.
1002 (OTHER_BSS_SECTIONS): Likewise.
1003 * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
1004 (OTHER_READWRITE_SECTIONS): Likewise.
1005 * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
1006 (OTHER_READWRITE_SECTIONS): Likewise
1008 * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
1009 (STACK_ADDR): Define.
1010 * emulparams/armelf_oabi.sh: As for armelf.sh.
1011 * emulparams/elf32mcore.sh: As for armelf.sh.
1012 * emulparams/h8300elf.sh: As for armelf.sh.
1013 * emulparams/mn10200.sh: As for armelf.sh.
1014 * emulparams/shelf.sh: As for armelf.sh.
1016 * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
1017 (OTHER_END_SYMBOLS): Define.
1018 * emulparams/m32relf.sh: As for elf32fr30.sh.
1019 * emulparams/h8300helf.sh: As for elf32fr30.sh.
1020 * emulparams/h8300self.sh: As for elf32fr30.sh.
1022 * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
1023 defines with RELOCATING test.
1024 (OTHER_SDATA_SECTIONS): Likewise.
1025 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
1026 (OTHER_END_SYMBOLS): ..this.
1027 * emulparams/crislinux.sh: As for criself.sh.
1029 * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
1031 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
1032 (OTHER_SECTIONS): ..this. Zero vma if not relocating. Order
1033 normal and linkonce sections as seen in input files.
1034 * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
1035 (TEXT_DYNAMIC): Likewise.
1036 (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
1037 (OTHER_SDATA_SECTIONS): Likewise.
1038 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
1039 * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
1040 * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
1041 * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
1042 * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
1043 (OTHER_PLT_RELOC_SECTIONS): Likewise.
1044 (OTHER_READONLY_SECTIONS): Likewise. Order normal and linkonce
1045 sections as seen in input files.
1046 * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
1047 * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
1049 (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
1050 (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
1051 * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
1052 (OTHER_SECTIONS): Instead, use this..
1053 (OTHER_END_SYMBOLS): ..and this.
1055 * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
1056 * emulparams/elf32bsmip.sh: Likewise.
1057 * emulparams/elf32btsmip.sh: Likewise.
1058 * emulparams/elf32ebmip.sh: Likewise.
1059 * emulparams/elf32lmip.sh: Likewise.
1060 * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
1061 * emulparams/elf32lsmip.sh: Likewise.
1062 * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
1063 * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
1064 * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
1065 * emulparams/elf64btsmip.sh: Likewise.
1066 * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
1067 * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
1068 * emulparams/elf32ppclinux.sh: Likewise.
1069 * emulparams/elf32ppcsim.sh: Likewise.
1070 * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
1071 * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
1072 * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
1073 * emulparams/h8300self.sh: Likewise.
1074 * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
1075 * emulparams/sh.sh: Comment.
1076 * emulparams/shl.sh: Source sh.sh, remove duplicates.
1077 * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
1078 * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
1080 2001-11-21 David Heine <dlheine@tensilica.com>
1081 Alan Modra <amodra@bigpond.net.au>
1083 * ldlang.c (map_input_to_output_sections): Replace "break"
1084 accidentally removed with 2001-08-03 change.
1085 (lang_gc_sections_1): Likewise.
1087 2001-11-21 Alan Modra <amodra@bigpond.net.au>
1089 * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
1091 2001-11-20 Angela Marie Thomas <angela@redhat.com>
1093 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
1094 of false when calling lang_size_sections.
1095 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
1097 2001-11-15 Alan Modra <amodra@bigpond.net.au>
1099 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
1100 function when LDEMUL_FINISH isn't set to the same name. Don't
1101 call ${LDEMUL_FINISH}.
1102 (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
1103 * emultempl/armelf.em (arm_elf_finish): Call
1104 gld${EMULATION_NAME}_finish.
1105 * emultempl/hppaelf.em (hppaelf_finish): Rename to
1106 gld${EMULATION_NAME}_finish. Call bfd_elf32_discard_info and
1107 hppaelf_layout_sections_again if necessary.
1108 (need_laying_out): New var.
1109 (hppaelf_layaout_sections_again): Rename to
1110 hppaelf_layout_sections_again. Clear need_laying_out.
1111 (PARSE_AND_LIST_OPTIONS): Format text.
1113 2001-11-14 H.J. Lu <hjl@gnu.org>
1115 * emultempl/armelf.em (arm_elf_finish): Renamed from
1116 gld${EMULATION_NAME}_finish.
1117 (LDEMUL_FINISH): Set to arm_elf_finish.
1119 2001-11-14 Daniel Jacobowitz <drow@mvista.com>
1121 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
1122 (struct ld_emulation_xfer_struct): Use it.
1124 2001-11-13 Ross Alexander <ross.alexander@uk.neceur.com>
1126 * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
1127 additional symbols referenced by newer crt0.o files from HP.
1129 2001-11-12 Anthony Green <green@redhat.com>
1131 * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
1133 2001-11-12 Alfred M. Szmidt <ams@kemisten.nu>
1135 * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
1136 * Makefile.in: Regenerate.
1138 2001-11-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1140 * ld.texinfo: Use @command for commands, @option for options.
1141 * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
1143 * Makefile.in: Rebuild.
1145 2001-11-04 Chris Demetriou <cgd@broadcom.com>
1147 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
1148 Add support for targets.
1150 2001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
1152 * configure.in (ALL_LINGUAS): Add "fr" and "sv"
1153 * configure: Regernate.
1154 * po/fr.po: New file.
1155 * po/sv.po: New file.
1157 2001-11-01 NIIBE Yutaka <gniibe@m17n.org>
1159 * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
1160 as little endian default and to support big endian.
1162 2001-11-01 Chris Demetriou <cgd@broadcom.com>
1164 * ld.texinfo (Options): Document new option, -nostdlib.
1165 * lexsup.c (OPTION_NOSTDLIB): New definition.
1166 (ld_options): Add entry for "nostdlib".
1167 (parse_args): Handle OPTIONS_NOSTDLIB.
1168 * ldfile.c (ldfile_add_library_path): Don't add directories
1169 to the search path if they weren't specified on the command line
1170 and -nostdlib was specified.
1171 * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
1173 2001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
1175 * lexsup.c (parse_args): Prevent infinite parsing loop when
1176 "-rpath.a" is specified on the command line.
1177 Replace calls to fprintf with calls to einfo.
1179 2001-10-31 John Marshall <jmarshall@acm.org>
1181 * ld.texinfo: A historical requirement that MEMORY and SECTIONS
1182 appear only once across all the linker scripts involved in a link
1183 invocation no longer applies. Make the documentation reflect
1186 2001-10-31 NIIBE Yutaka <gniibe@m17n.org>
1188 * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
1190 (sh-*-linux*): Added targ_extra_libpath.
1192 2001-10-31 David Heine <dlheine@tensilica.com>
1194 * ldlang.c (lang_size_sections): Keep a valid output_offset field
1195 for padding statements.
1197 2001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
1199 * configure.tgt (mmix-*-*): New target.
1200 * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
1201 Add dependencies to match.
1202 * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
1203 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
1204 scripttempl/mmo.sc: New files.
1205 * gen-doc.texi: @set MMIX.
1206 * ld.texinfo: Ditto.
1207 [MMIX] Add MMIX node.
1208 * Makefile.in: Regenerate.
1210 2001-10-29 Kazu Hirata <kazu@hxi.com>
1212 * ldlang.c: Fix a comment typo.
1214 2001-10-23 Alan Modra <amodra@bigpond.net.au>
1216 * configure.host: Move alpha*-*-linux-gnu* entry to generic
1217 entries, and match *-*-linux*.
1219 2001-10-20 Alan Modra <amodra@bigpond.net.au>
1221 * ldgram.y (mri_script_command): Surround processing of INCLUDE
1222 with ldlex_script, ldlex_popstate.
1223 (ifile_p1): Likewise.
1224 * ldlex.l (EOF): Don't BEGIN(SCRIPT). Restore lineno from the
1226 (lex_push_file): Save current lineno to lineno_stack. Set lineno
1227 to 1. Don't BEGIN(SCRIPT).
1228 (lex_redirect): Similarly.
1229 * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
1231 2001-10-20 Nick Clifton <nickc@cambridge.redhat.com>
1233 * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
1234 __EH_FRAME_END__ and accept eh frames into data section.
1235 Add ctor and dtor sections.
1237 2001-10-19 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1239 * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
1240 (auto-export): Fix indentation.
1242 2001-10-18 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1244 * pe-dll.c (autofilter_objectlist): Add startup objects
1246 (auto-export): Constify char * p.
1247 Extract file basename and use strcmp rather than ststr
1250 2001-10-18 Chris Demetriou <cgd@broadcom.com>
1252 * ldmain.c (get_emulation): Improve comment about the handling
1255 2001-10-17 Alan Modra <amodra@bigpond.net.au>
1257 * po/POTFILES.in: Regenerate.
1259 2001-10-16 Vassili Karpov <malc@pulsesoft.com>
1261 * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
1262 -z nocopyreloc and -z nocombreloc usage strings.
1264 2001-10-12 Vassili Karpov <malc@pulsesoft.com>
1266 * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
1269 2001-10-11 Aleksey Romanov <aromanov@ennovatenetworks.com>
1271 * scripttempl/armaout.sc: Place .bss section after end of aligned
1272 data section to match behaviour of aout code in constructrion of
1275 2001-10-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1277 * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
1278 startup files for mingw32 dlls to list.
1280 2001-10-10 Chris Demetriou <cgd@broadcom.com>
1282 * emultempl/elf32.em: Fix shell 'if' usage for portability.
1284 2001-10-08 Aldy Hernandez <aldyh@redhat.com>
1286 * configure.tgt (targ): Add arm9e-*-elf.
1288 2001-10-05 H.J. Lu <hjl@gnu.org>
1290 * genscripts.sh: Fix a typo in the last change.
1292 2001-10-05 Jakub Jelinek <jakub@redhat.com>
1294 * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
1295 -z nocombreloc in usage.
1297 2001-10-03 Jim Blandy <jimb@redhat.com>
1299 * genscripts.sh: Include a comment at the top of each generated
1300 script, explaining its purpose.
1302 2001-10-03 Vassili Karpov <malc@pulsesoft.com>
1304 * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
1305 * NEWS: Mention -z nocopyreloc.
1306 * ld.texinfo (Options): Describe nocopyreloc.
1308 2001-10-03 Alan Modra <amodra@bigpond.net.au>
1310 * configure: Regenerate.
1312 2001-10-02 Alan Modra <amodra@bigpond.net.au>
1314 * ldver.h (ld_program_version): Remove declaration.
1315 * lexsup.c (parse_args): Move printing of copyright message..
1316 * ldver.c (ldversion): .. to here.
1317 Use BFD_VERSION_STRING in place of BFD_VERSION.
1318 (ld_program_version): Remove.
1319 * Makefile.am (Makefile): Depend on bfd/configure.in.
1321 * Makefile.in: Regenerate.
1323 2001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
1325 * Makefile.am: Update dependencies with "make dep-am".
1326 * Makefile.in: Regenerate.
1328 2001-09-29 John Reiser <jreiser@BitWagon.com>
1330 * ldlang.c (lang_common): Conditionally inhibit Common allocation.
1331 * lexsup.c: Add --no-define-common commandline option.
1332 * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
1333 * ldlex.l: Likewise.
1334 * ld.h: Add command_line.inhibit_common_definition.
1335 * ldmain.c (main): Initialize.
1336 * ld.texinfo: Document.
1338 2001-09-26 Alan Modra <amodra@bigpond.net.au>
1340 * ldmisc.c (USE_STDARG): Remove.
1341 (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
1346 * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
1347 declarations. Update copyright.
1349 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
1351 * pe-dll.c: Remove obsoleted declaration of
1352 pe_get_data_import_dll_name.
1353 (pe_create_import_fixup): Fix thinko.
1355 * ld.texinfo(enable-auto-import): Clarify the explanation.
1357 2001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
1359 * pe-dll.c (pe_create_import_fixup): Revert previous patch.
1360 * emultemp/pe.em (pe_data_import_dll): Move definition outside of
1361 DLL_SUPPORT controlled code.
1363 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
1365 * emultempl/pe.em(pe_data_import_dll): Make static.
1366 (pe_get_data_import_dll_name): New accessor function.
1367 * pe-dll.c(pe_create_import_fixup): call
1368 pe_get_data_import_dll_name() from pe.em, instead of
1369 directly accessing pe_data_import_dll variable from pe.em.
1371 2001-09-18 Bruno Haible <haible@clisp.cons.org>
1373 * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
1374 (def_file_add_directive): Use ISSPACE instead of isspace.
1375 (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
1376 isdigit/isxdigit/isalpha/isalnum.
1377 * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
1378 (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
1379 * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
1380 (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
1382 * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
1383 (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
1385 * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
1386 (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
1387 * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
1388 (ctor_prio): Use ISDIGIT instead of isdigit.
1389 * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
1390 (ldfile_open_file_search): Use ISALPHA instead of isalpha.
1391 (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
1393 * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
1394 (stricpy): Use TOLOWER instead of isupper/tolower.
1395 (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
1396 * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
1397 (lex_warn_invalid): Use ISPRINT instead of isprint.
1398 * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
1399 (main): For gettext, also set the LC_CTYPE locate facet.
1400 (add_keepsyms_file): Use ISSPACE instead of isspace.
1401 * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
1402 (is_num, parse_args): Use ISDIGIT instead of isdigit.
1403 * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
1404 (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
1405 * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
1406 (gldppcmacos_read_file): Use ISSPACE instead of isspace.
1407 * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
1408 (quoteput): Use ISSPACE instead of isspace.
1409 (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
1412 2001-09-18 Alan Modra <amodra@bigpond.net.au>
1414 * deffilep.y (def_stash_module): Constify "name" param.
1416 * pe-dll.c: Replace CONST with const throughout.
1417 (quick_symbol): Constify "n1", "n2", "n3" params.
1418 (make_singleton_name_thunk): Constify "import" param. Make
1419 "buffer_len" a size_t.
1420 (make_import_fixup_entry): Constify "name", "fixup_name",
1421 "dll_symname" params.
1422 (pe_get16): Cast args of bfd_seek. Replace bfd_read with bfd_bread.
1423 (pe_get32): Likewise.
1424 (pe_implied_import_dll): Likewise.
1426 * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
1427 (sort_by_section_name): Likewise.
1429 * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
1430 (make_import_fixup): Cast printf arg, rel->address to long rather
1432 (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
1434 2001-09-15 Alan Modra <amodra@bigpond.net.au>
1436 * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
1437 defines BufferSize. Increase buffer size by one.
1439 2001-09-14 Ralf Habacker <Ralf.Habacker@freenet.de>
1441 * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
1443 2001-09-14 Kevin Lo <kevlo@openbsd.org>
1445 * configure.tgt: Add arm-openbsd target.
1447 2001-09-12 H.J. Lu <hjl@gnu.org>
1449 * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
1451 (ALL_64_EMULATIONS): Here.
1452 * Makefile.in: Regenerated.
1454 2001-09-12 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
1456 * emultempl/pe.em(make_import_fixup): change signature to
1457 take asection as well as arelec; we need this for proper
1458 error reporting. Only call pe_create_import_fixup() if
1459 there is no attempt to add a constant addend to the reloc;
1460 otherwise, report error condition.
1461 * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
1462 since final argument is a pointer to make_import_fixup().
1463 Change call to cb() to match make_import_fixup() signature.
1464 (make_import_fixup_mark): make buffer_len unsigned.
1465 * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
1467 2001-09-12 Charles Wilson <cwilson@ece.gatech.edu>
1469 * ld.texinfo: add verbose documentation for auto-import
1470 direct-addressing workaround, to compliment the terse
1473 2001-09-12 Andrew MacLeod <amacleod@redhat.com>
1475 * scripttempl/v850.sc: Add gcc_except_table sections.
1477 2001-09-11 Jeffrey A Law (law@cygnus.com)
1479 * emulparams/h8300helf.sh: Move stack to a much higher memory address.
1480 * emulparams/h8300self.sh: Similarly.
1482 2001-09-05 Danny Smith <dannysmith@users.souceforge.net>
1484 * ld.texinfo (Options, --stack): Correct default value for stack
1487 2001-09-05 Tom Rix <trix@redhat.com>
1489 * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
1491 2001-09-03 Andreas Jaeger <aj@suse.de>
1493 * emultempl/beos.em: Declare prototypes for comparions functions,
1496 2001-09-02 Andreas Jaeger <aj@suse.de>
1498 * emultempl/aix.em: Add missing prototype.
1499 * emultempl/lnk960.em: Likewise.
1500 * emultempl/vanilla.em: Likewise.
1501 * emultempl/armcoff.em: Likewise.
1502 * emultempl/armelf_oabi.em: Likewise.
1503 * emultempl/beos.em: Likewise.
1504 * emultempl/gld960c.em: Likewise.
1505 * emultempl/gld960.em: Likewise.
1507 * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
1508 for prototype declaration.
1510 2001-08-31 Eric Christopher <echristo@redhat.com>
1511 Jason Eckhardt <jle@redhat.com>
1513 * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
1515 2001-08-31 Andreas Jaeger <aj@suse.de>
1517 * emultempl/pe.em: Add missing prototypes.
1518 (gld_${EMULATION_NAME}_after_open): Remove extra args to
1519 pe_find_data_imports.
1520 (pr_sym): Add unused attribute.
1522 2001-08-29 Joel Sherrill <joel@OARcorp.com>
1524 * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
1525 default from coff to elf.
1527 2001-08-29 Jeff Law <law@redhat.com>
1529 * emulparams/h8300helf.sh: Resync with h8300elf.sh. Update
1531 * emulparams/h8300self.sh: Similarly.
1533 2001-08-28 J"orn Rennecke <amylaar@redhat.com>
1535 * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
1537 (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
1538 * configure.tgt (h8300-*-elf*): New case.
1539 * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
1540 * emulparams/h8300self.sh: New file.
1541 * Makefile.in: Regenerated.
1543 2001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
1545 * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
1548 2001-08-27 Linus Nordberg <linus@swox.com>
1549 Alan Modra <amodra@bigpond.net.au>
1551 * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
1552 (eelf64ppc.c, eelf64lppc.c): Add make targets.
1554 * Makefile.in: Regenerate.
1555 * configure.tgt: Add powerpc64 support. Move pdp11, pjl, pj
1556 entries to correct alphabetical position.
1557 * emulparams/elf64ppc.sh: New.
1558 * emulparams/elf64lppc.sh: New.
1560 2001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
1562 * ldmain.c (main): Declare BSIZE as static.
1564 2001-08-23 Jakub Jelinek <jakub@redhat.com>
1566 * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
1567 into .rel.dyn resp. .rela.dyn if combreloc.
1568 (get_script): If .x linker script is equal to .xn, only put it
1569 once into the binary.
1570 Add .xc and .xsc scripts.
1571 (parse_args): Handle -z combreloc and -z nocombreloc.
1572 * scripttempl/elf.sc (.rela.sbss): Fix a typo.
1573 For .xc and .xsc scripts put all .rel* or .rela* input sections
1574 but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
1575 * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
1577 Strip trailing whitespace from script.
1578 Generate .xc and .xsc scripts if requested.
1579 * ldmain.c (main): Initialize link_info.combreloc and
1580 link_info.spare_dynamic_tags.
1581 * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
1582 (ld_options): Add --spare-dynamic-tags option.
1583 (parse_args): Likewise.
1584 * ld.texinfo: Document -z combreloc and -z nocombreloc.
1585 * ldint.texinfo: Document .xc and .xsc linker scripts.
1586 * NEWS: Add notes about -z combreloc and SHF_MERGE.
1588 2001-08-22 H.J. Lu <hjl@gnu.org>
1590 * emulparams/elf32fr30.sh: Add a newline.
1592 2001-08-21 Andreas Jaeger <aj@suse.de>
1594 * deffilep.y: Add missing prototypes.
1595 * pe-dll.c: Likewise.
1597 2001-08-20 Alan Modra <amodra@bigpond.net.au>
1599 * ldlang.c (insert_pad): Fix typos in last patch.
1601 * ldlang.c: When traversing lang_statement_union_type lists,
1602 consistently use "header.next" rather than "next".
1603 * mpw-eppcmac.c: Likewise.
1604 * emultempl/beos.em: Likewise.
1605 * emultempl/hppaelf.em: Likewise.
1606 * emultempl/pe.em: Likewise.
1607 * ldlang.h (union lang_statement_union): Remove "next" field.
1609 * ldlang.c (insert_pad): Use offsetof macro.
1610 (lang_size_sections): Always neuter padding statements.
1611 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
1613 * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
1614 passed to lang_size_sections.
1615 (pe_exe_fill_sections): Likewise.
1616 * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
1617 (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
1619 2001-08-18 Alan Modra <amodra@bigpond.net.au>
1621 * emultempl/aix.em: Formatting fixes.
1623 2001-08-18 Alan Modra <amodra@bigpond.net.au>
1625 * ldlang.c (insert_pad): Make use of an existing pad statement if
1626 available. Move code calculating alignment, adjusting section
1627 alignment power, and adjusting dot to ..
1628 (size_input_section): .. here. Remove unused relax param.
1629 (lang_size_sections): Change boolean `relax' param to boolean *.
1630 Adjust call to size_input_section. Make use of insert_pad to
1631 place pad after the assignment statement. If relaxing, zap
1633 (reset_memory_regions): Reset output_bfd section sizes too.
1634 (relax_again): Move to..
1635 (lang_process): ..here. Adjust call to lang_size_sections, and
1636 remove duplicated code.
1637 * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
1639 2001-08-17 Alan Modra <amodra@bigpond.net.au>
1641 * ld.texinfo: Document that fill values now use the four least
1643 * emulparams/elf32fr30.sh (NOP): Update.
1644 * emulparams/elf32mcore.sh: Likewise.
1645 * emulparams/elf64_s390.sh: Likewise.
1646 * emulparams/elf_i386.sh: Likewise.
1647 * emulparams/elf_i386_be.sh: Likewise.
1648 * emulparams/elf_i386_chaos.sh: Likewise.
1649 * emulparams/elf_i386_ldso.sh: Likewise.
1650 * emulparams/elf_s390.sh: Likewise.
1651 * emulparams/elf_x86_64.sh: Likewise.
1652 * emulparams/i386moss.sh: Likewise.
1653 * emulparams/i386nw.sh: Likewise.
1654 * emulparams/m68kelf.sh: Likewise.
1655 * scripttempl/elf.sc: Update NOP comment.
1656 * scripttempl/elfi370.sc: Likewise.
1657 * scripttempl/elfm68hc11.sc: Likewise.
1658 * scripttempl/elfm68hc12.sc: Likewise.
1659 * scripttempl/nw.sc: Likewise.
1661 2001-08-15 Tom Rix <trix@redhat.com>
1663 * ldgram.y (saved_script_handle): Initialize to NULL.
1664 * ldmain.c (main): Change check on saved_script_handle.
1666 2001-08-14 Alan Modra <amodra@bigpond.net.au>
1668 * emultempl/elf32.em: Formatting fixes.
1669 (output_prev_sec_find): Test for bfd_ind_section too; do so by
1670 looking at sec->owner.
1671 (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
1672 (gld${EMULATION_NAME}_place_orphan): Add a few comments. Remove
1673 unused code, and reorganize orphan section placement code.
1675 * ldlang.c (wild_doit): Rename to lang_add_section.
1676 * ldlang.h: Here too.
1677 * mpw-elfmips.c: And here.
1678 * emultempl/beos.em: And here.
1679 * emultempl/elf32.em: And here.
1680 * emultempl/hppaelf.em: And here.
1681 * emultempl/pe.em: And here.
1683 2001-08-13 Richard Henderson <rth@redhat.com>
1685 * emultempl/needrelax.em: New file.
1686 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
1687 * Makefile.am (eelf64_ia64.c): Depend on it.
1688 * Makefile.in: Rebuild.
1690 2001-08-13 Alan Modra <amodra@bigpond.net.au>
1692 * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
1693 output_section is set non-NULL.
1695 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
1696 `true' for SEC_EXCLUDE sections so that the generic code doesn't
1697 needlessly create an output_section_statement. Treat a correctly
1698 named output_section_statement with NULL bfd_section as compatible.
1700 2001-08-13 Hans-Peter Nilsson <hp@bitrange.com>
1702 * emultempl/generic.em: Support EXTRA_EM_FILE.
1703 (ld_${EMULATION_NAME}_emulation): Support emulation parameters
1704 LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
1705 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
1706 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
1707 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
1708 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
1709 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
1710 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
1711 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
1712 LDEMUL_FIND_POTENTIAL_LIBRARIES.
1714 2001-08-12 Richard Henderson <rth@redhat.com>
1716 * scripttempl/elf.sc, scripttempl/elfd30v.sc,
1717 scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
1718 scripttempl/v850.sc: Keep .jcr data.
1720 2001-08-12 H.J. Lu <hjl@gnu.org>
1721 Andrew Haley <aph@cambridge.redhat.com>
1722 Nick Clifton <nickc@redhat.com>
1724 * ldgram.y (had_script): Change name to saved_script_handle.
1725 Change type to file handle.
1726 * ld.h (had_script): Rename and retype.
1727 * ldfile.c (ldfile_open_command_file): Save the file handle
1728 used in saved_script_handle.
1729 * lexsup.c (parse_args): Do not allow -c option to alter
1730 saved_script_handle.
1731 * ldmain.c (main): Print out the linker script used if
1732 --verbose is given. Check saved_script_handle to obtain the
1733 external linker script used, or if NULL, dump the builtin
1735 * ld.texinfo: Document that --verbose now dumps the linker
1736 script used, regardless of whether it was an internal or an
1739 2001-08-10 Andreas Jaeger <aj@suse.de>
1741 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
1743 * configure: Regenerate.
1745 2001-08-09 Alan Modra <amodra@bigpond.net.au>
1747 * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
1749 * scripttempl/elf.sc: Move non-text .dynamic section before
1750 .plt/.got/.sdata* group.
1751 (OTHER_GOT_SECTIONS): Move to immediately after .got.
1752 (OTHER_SDATA_SECTIONS): Add.
1753 * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
1755 * emulparams/crislinux.sh: Likewise.
1756 * emulparams/elf32b4300.sh: Likewise.
1757 * emulparams/elf32bmip.sh: Likewise.
1758 * emulparams/elf32bmipn32.sh: Likewise.
1759 * emulparams/elf32bsmip.sh: Likewise.
1760 * emulparams/elf32btsmip.sh: Likewise.
1761 * emulparams/elf32ebmip.sh: Likewise.
1762 * emulparams/elf32elmip.sh: Likewise.
1763 * emulparams/elf32l4300.sh: Likewise.
1764 * emulparams/elf32lmip.sh: Likewise.
1765 * emulparams/elf32lsmip.sh: Likewise.
1766 * emulparams/elf32ltsmip.sh: Likewise.
1767 * emulparams/elf64bmip.sh: Likewise.
1768 * emulparams/elf64btsmip.sh: Likewise.
1769 * emulparams/elf64ltsmip.sh: Likewise.
1771 2001-08-08 Alan Modra <amodra@bigpond.net.au>
1773 * genscripts.sh: Source the emulparams script before each output
1774 script is generated so that variables like `RELOCATING' may affect
1775 variables defined in the emulparams script.
1777 2001-08-04 Alan Modra <amodra@bigpond.net.au>
1779 * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
1782 * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
1783 ie. iterate over wild_statement.section_list.
1784 (gld${EMULATION_NAME}_place_orphan): Likewise.
1786 2001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1788 * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
1789 .fini[0-4] sections used by _exit
1790 (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
1791 (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
1792 * scripttempl/elfm68hc11.sc: Likewise.
1794 2001-08-03 H.J. Lu <hjl@gnu.org>
1796 * emultempl/beos.em (init): Add the missing initialization.
1798 2001-08-03 Alan Modra <amodra@bigpond.net.au>
1800 * ld.texinfo (Input Section Basics): Clarify ordering of output
1802 * ldlang.c (callback_t): Add wildcard_list param.
1803 (walk_wild_section): Remove "section" param. Rewrite for
1804 lang_wild_statement_type change. Remove unique_section_p test.
1805 (walk_wild_file): Remove "section" param.
1806 (walk_wild): Remove "section" and "file" params.
1807 (lang_gc_wild): Likewise.
1808 (wild): Likewise. Modify for lang_wild_statement_type change.
1809 (wild_sort): Likewise. Add "sec" param.
1810 (gc_section_callback): Likewise.
1811 (output_section_callback): Likewise. Do unique_section_p test.
1812 (map_input_to_output_sections): Modify call to wild.
1813 (lang_gc_sections_1): Likewise.
1814 (print_wild_statement): Modify for lang_wild_statement_type
1816 (lang_add_wild): Replace filename, filenames_sorted param with
1817 filespec. Replace section_name, sections_sorted,
1818 exclude_filename_list with section_list.
1819 * ldlang.h (lang_add_wild): Here too.
1820 (lang_wild_statement_type): Replace section_name, sections_sorted,
1821 and exclude_filename_list with section_list.
1822 * ldgram.y (current_file): Delete.
1823 (%union): Add wildcard_list.
1824 (file_NAME_list): Set type to wildcard_list. Build a linked list
1825 rather than calling lang_add_wild for each entry.
1826 (input_section_spec_no_keep): Call lang_add_wild here instead.
1827 * ld.h (struct wildcard_list): Declare.
1828 * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
1830 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
1832 * ldmain.c (main): initialize link_info.pei386_auto_import
1833 * pe-dll.c: new tables for auto-export filtering
1834 (auto_export): change API, pass abfd for contextual filtering.
1835 Loop thru tables of excluded symbols instead of comparing
1838 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
1840 * pe-dll.c: new variable pe_dll_enable_extra_debug. New
1841 static variable current_sec (static struct sec *). Add
1842 forward declaration for add_bfd_to_link.
1843 (process_def_file): Don't export undefined symbols. Do not
1844 export symbols starting with "_imp__". Call auto_export()
1846 (pe_walk_relocs_of_symbol): New function.
1847 (generate_reloc): add optional extra debugging
1848 (pe_dll_generate_def_file): eliminate extraneous initial blank
1850 (make_one): enlarge symtab to make room for __nm__ symbols
1851 (DATA auto-import support).
1852 (make_singleton_name_thunk): New function.
1853 (make_import_fixup_mark): New function.
1854 (make_import_fixup_entry): New function.
1855 (pe_create_import_fixup): New function.
1856 (add_bfd_to_link): Specify that 'name' argument is a CONST
1858 * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
1859 declare new functions pe_walk_relocs_of_symbol and
1860 pe_create_import_fixup.
1861 * emultempl/pe.em: add new options --enable-auto-import,
1862 --disable-auto-import, and --enable-extra-pe-debug.
1863 (make_import_fixup): New function.
1864 (pe_find_data_imports): New function.
1865 (pr_sym): New function.
1866 (gld_${EMULATION_NAME}_after_open): Add optional extra pe
1867 debugging. Call pe_find_data_imports. Mark .idata as DATA, not
1870 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
1872 * ld.texinfo: add additional documentation for
1873 --export-all-symbols. Document --out-implib,
1874 --enable-auto-image-base, --disable-auto-image-base,
1875 --dll-search-prefix, --enable-auto-import, and
1876 --disable-auto-import.
1877 * ldint.texinfo: Add detailed documentation on auto-import
1880 2001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
1882 * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
1885 2001-07-24 Alan Modra <amodra@bigpond.net.au>
1887 * Makefile.am: Update dependencies with "make dep-am".
1888 * Makefile.in: Regenerate
1890 2001-07-23 Alan Modra <amodra@bigpond.net.au>
1892 * ldcref.c (check_section_sym_xref): New function.
1893 (check_nocrossrefs): Call it.
1894 (check_nocrossref): Interate over h->refs here instead of..
1895 (check_refs): ..here. Pass in the symbol name, section, and bfd
1896 rather than hash_entry pointers.
1897 (struct check_refs_info): Keep symbol name rather than hash entry.
1899 (check_reloc_refs): Tweak for above changes in check_refs_info.
1900 Only report references to section syms when symname is NULL to
1901 prevent duplicate messages for the same reloc.
1903 2001-07-19 Nick Clifton <nickc@cambridge.redhat.com>
1905 * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
1906 available. Do not print NULL trees.
1907 (exp_print_token): Print unknown tokens with values > 126 as
1908 decimal values not ASCII characters.
1910 * ldlang.c (lang_leave_overlay): If a region is specified assign
1911 it to all sections inside the overlay unless they have been
1912 assigned to the own, non-default, memory region.
1914 * README: Add header for consistency with other README files.
1916 2001-07-14 H.J. Lu <hjl@gnu.org>
1918 * emultempl/elf32.em (output_prev_sec_find): Never return
1919 bfd_abs_section_ptr, bfd_com_section_ptr nor
1920 bfd_und_section_ptr.
1922 2001-07-14 Nick Clifton <nickc@cambridge.redhat.com>
1924 * Makefile.am (em32relf.c): Change dependency from generic.em to
1926 * Makefile.in: Regenerate.
1928 2001-07-14 matthew green <mrg@eterna.com.au>
1930 * configure.tgt (i386-*-netbsdelf*): New target.
1931 (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
1933 2001-07-13 Jakub Jelinek <jakub@redhat.com>
1935 * emultempl/elf32.em (output_prev_sec_find): New.
1936 (place_orphan): Use it.
1938 2001-07-11 H.J. Lu <hjl@gnu.org>
1940 * ldmain.c (main): Fix typos in the last change.
1942 2001-07-11 Jakub Jelinek <jakub@redhat.com>
1944 * ldmain.c (main): Disallow -F and -f without -shared.
1946 2001-07-11 Nick Clifton <nickc@cambridge.redhat.com>
1948 * emultempl/pe.em (after_open): Check for the output_bfd not
1949 having any coff_data structure allocated to it.
1951 2001-07-09 David O'Brien <obrien@FreeBSD.org>
1953 * emultempl/elf32.em: Do not assuming that contents of the buffer
1954 returned from basename function will remain unchanged accross other
1957 2001-07-03 H.J. Lu <hjl@gnu.org>
1959 * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
1960 2001-07-03. It creates dynamic entries even for static binaries.
1962 2001-07-03 Jakub Jelinek <jakub@redhat.com>
1964 * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
1965 (DYNAMIC): Use it to reserve few dynamic entries for
1968 2001-06-27 Alan Modra <amodra@bigpond.net.au>
1970 * emulparams/hppa64linux.sh: New file.
1971 * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
1972 * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
1973 (ehppa64linux.c): Add rule to make it.
1975 * Makefile.in: Regenerate.
1977 2001-06-21 Hans-Peter Nilsson <hp@axis.com>
1979 * ld.texinfo (Options, -r): Mention restrictions when using
1980 different object formats.
1982 2001-06-19 Hans-Peter Nilsson <hp@axis.com>
1984 * ldlang.c (lang_check): Emit fatal error if relocatable link
1985 between different object flavours with relocations in input.
1987 2001-06-19 H.J. Lu <hjl@gnu.org>
1989 * ld.texinfo (-E, --export-dynamic): Mention --version-script.
1990 (--version-script): Mention the language support.
1992 2001-06-19 H.J. Lu <hjl@gnu.org>
1994 * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
1996 2001-06-18 H.J. Lu <hjl@gnu.org>
1998 * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
1999 (diststuff): Add $(MANS).
2000 * Makefile.in: Regenerated.
2004 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
2006 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
2007 Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
2008 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
2009 * ld.h (args_type): Remove member export_dynamic. All users
2010 changed to use struct bfd_link_info member.
2012 * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
2013 $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
2014 * Makefile.in: Regenerate.
2016 2001-06-18 H.J. Lu <hjl@gnu.org>
2018 * ldlang.c (init_os): Add the newline to the einfo call.
2019 (lang_check): Likewise.
2020 (lang_do_version_exports_section): Likewise.
2022 2001-06-15 H.J. Lu <hjl@gnu.org>
2024 * lexsup.c (parse_args); Save optind to report unrecognized
2027 2001-06-15 Hans-Peter Nilsson <hp@axis.com>
2029 * ldlang.c (lang_check): Emit fatal error if relocatable link
2030 between different object flavours.
2032 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
2033 Set new link_info member export_dynamic.
2034 * ldmain.c (main): Initialize new link_info member export_dynamic.
2036 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
2038 * ldlang.c (walk_wild): Only call walk_wild_file if
2039 lookup_name returns something.
2040 (lookup_name): If load_symbols fails, return NULL.
2041 (load_symbols): Change to a boolean function.
2042 (open_input_bfds): If load_symbols fails then do not make the
2045 2001-06-08 Alan Modra <amodra@bigpond.net.au>
2047 * ldlang.c (record_bfd_errors): Remove.
2049 * emultempl/aix.em: Fix copyright dates.
2051 2001-06-07 Andreas Jaeger <aj@suse.de>
2053 * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
2054 (TEXT_START_ADDR): Likewise.
2056 2001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
2058 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
2060 2001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2062 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
2064 2001-05-31 H.J. Lu <hjl@gnu.org>
2066 * ldlang.c (open_input_bfds): Don't change the bfd error
2067 handler whilst loading symbols.
2069 2001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
2071 * configure.tgt: Remove i370-mvs architecture, it is not currently
2074 2001-05-25 H.J. Lu <hjl@gnu.org>
2076 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
2077 like emulparams/aixppc.sh.
2079 2001-05-25 H.J. Lu <hjl@gnu.org>
2081 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
2082 setting of output_filename after bfd_scan_arch.
2083 * emultempl/pe.em: Likewise.
2085 2001-05-25 H.J. Lu <hjl@gnu.org>
2087 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
2088 like emulparams/aixppc.sh.
2090 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
2091 instead of ${srcdir}/emultempl/stringify.sed.
2093 2001-05-25 Timothy Wall <twall@oculustech.com>
2095 * emulparams/elf64_aix.sh: Change settings to match IBM linker
2098 2001-05-25 Alan Modra <amodra@one.net.au>
2100 * configure.host: Replace linuxoldld with linux*oldld.
2101 * configure.tgt: Likewise.
2103 2001-05-24 H.J. Lu <hjl@gnu.org>
2105 * emultempl/stringify.sed: Removed again.
2107 2001-05-24 H.J. Lu <hjl@gnu.org>
2109 * emultempl/aix.em (OUTPUT_ARCH): Defined.
2110 (gld${EMULATION_NAME}_before_parse): Initialize
2111 ldfile_output_architecture, ldfile_output_machine and
2112 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
2113 * emultempl/beos.em: Likewise.
2114 * emultempl/elf32.em: Likewise.
2115 * emultempl/linux.em: Likewise.
2116 * emultempl/mipsecoff.em: Likewise.
2117 * emultempl/pe.em: Likewise.
2118 * emultempl/sunos.em: Likewise.
2120 2001-05-24 Tom Rix <trix@redhat.com>
2122 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
2123 udate import file format.
2124 (change_symbol_mode) New, same
2125 (is_syscall) New, same
2126 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
2127 * emulparams/aixppc64.sh : same
2128 * emulparams/aixrs6.sh : same
2129 * emulparams/ppcmacos.sh : same
2130 * emultempl/aix.em : use strtoull to parse options
2131 * Makefile.am : add eaixppc64 emulation for xcoff64
2132 * Makefile.in : same
2133 * configure.tgt : same
2135 * scripttempl/aix.sc : default text section offset to 0x10000000
2136 default data section offset to 0x20000000
2137 add .sv3264 and .sv64 pseudo sections
2138 loader and debug sections use the currect section offset.
2140 * emultempl/aix.em : Add xcoff64 support
2141 Add -binitfini support
2142 (gld${EMULATION_NAME}_before_parse) -binitfini
2143 (gld${EMULATION_NAME}_parse_args) same
2144 (gld${EMULATION_NAME}_before_allocation) format change for special
2147 * emulparams/aixppc64.sh : New file for xcoff64 support
2149 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
2151 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
2152 variable to avoid non-portable shell construct.
2154 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2156 * ldmain.c (get_emulation): Add -mips5 command line argument.
2158 2001-05-22 Alexandre Oliva <aoliva@redhat.com>
2160 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
2161 (ELF_INTERPRETER_NAME): Define it.
2162 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
2164 * configure.tgt (targ_emul, targ_extra_emuls)
2165 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
2166 as primary, elf_i386 as extra.
2167 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
2168 (eelf_i386_ldso.c): New rule.
2169 * Makefile.in: Rebuilt.
2171 2001-05-22 Nick Clifton <nickc@redhat.com>
2173 * lexsup.c (ld_options): Allow -I to be an alias for
2174 --dynamic-linker. This is for Solaris compatability.
2175 * ld.texinfo: Document that -I can be used.
2178 2001-05-16 Alan Modra <amodra@one.net.au>
2180 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
2181 whether an input section is the first one assigned to an output
2183 Assorted formatting fixes.
2185 2001-05-14 DJ Delorie <dj@delorie.com>
2187 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
2188 * Makefile.in: Ditto.
2190 2001-05-11 Jakub Jelinek <jakub@redhat.com>
2192 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
2193 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
2195 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
2197 2001-05-11 Jakub Jelinek <jakub@redhat.com>
2199 * ldlang.c (lang_process): Call bfd_merge_sections.
2201 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2203 * ldgram.y: Fix typo.
2205 2001-05-03 H.J. Lu <hjl@gnu.org>
2207 * emultempl/elf32.em: Include "libiberty.h".
2208 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
2209 basename of the bfd filename.
2210 (gld${EMULATION_NAME}_stat_needed): Likewise.
2211 (gld${EMULATION_NAME}_try_needed): Likewise.
2212 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
2214 2001-05-02 H.J. Lu <hjl@gnu.org>
2216 * emultempl/pe.em: Include <ctype.h>.
2218 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
2220 * emulparams/elf32openrisc.sh: New file.
2222 * Makefile.am: Add OpenRISC target.
2223 * Makefile.in: Regenerated.
2225 * configure.tgt: Add openrisc-*-* mapping.
2227 2001-05-02 Nick Clifton <nickc@redhat.com>
2229 * emultempl/aix.em: Replace buystring with xstrdup.
2230 * emultempl/beos.em: Replace buystring with xstrdup.
2232 2001-05-02 H.J. Lu <hjl@gnu.org>
2234 * ldfile.c: Include "libiberty.h".
2235 * ldlex.l: Likewise.
2237 * ldmisc.c (buystring): Removed.
2238 * ldmisc.h: Likewise.
2240 * ldfile.c: Replace buystring with xstrdup.
2241 * ldlang.c: Likewise.
2242 * ldlex.l: Likewise.
2243 * ldmain.c: Likewise.
2244 * ldmisc.c: Likewise.
2245 * lexsup.c: Likewise.
2246 * mpw-eppcmac.c: Likewise.
2248 2001-04-30 Andreas Jaeger <aj@suse.de>
2250 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
2252 2001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2254 * ldlang.c (load_symbols): Give emulation a chance
2255 to process unrecognized file before fatal error is
2256 reported, not after.
2258 2001-04-27 Sean McNeil <sean@mcneil.com>
2260 * configure.tgt: Add arm-vxworks target.
2261 * scripttempl/armcoff.sc: Support .text or .data as a section name
2265 2001-04-13 J.T. Conklin <jtc@redback.com>
2267 * ld.texinfo: Document --fatal-warnings.
2270 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
2271 warnings have been turned into errors.
2272 * lexsup.c (OPTION_WARN_FATAL): Define.
2273 (ld_options): Entry for --fatal-warnings.
2274 (parse_args): Handle OPTION_WARN_FATAL.
2275 * ld.h (ld_config_type): Add fatal_warnings field.
2277 2001-04-13 Jakub Jelinek <jakub@redhat.com>
2279 * ldmain.c (main): Default to discard_sec_merge.
2280 * lexsup.c (OPTION_DISCARD_NONE): Define.
2281 (ld_options): Add --discard-none.
2282 (parse_args): Handle OPTION_DISCARD_NONE.
2283 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
2284 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
2285 all its input sections match.
2287 2001-04-05 Steven J. Hill <sjhill@cotw.com>
2289 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
2290 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
2291 (eelf32ltsmip.c): New target.
2292 (eelf64btsmip.c): Likewise.
2293 (eelf64ltsmip.c): Likewise.
2294 * Makefile.in: Regenerated.
2296 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
2298 (mips*-*-linux-gnu*): Likewise.
2300 * emulparams/elf32ltsmip.sh: New. Traditional little endian
2302 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
2304 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
2307 2001-04-05 Hans-Peter Nilsson <hp@axis.com>
2309 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
2310 correct value of __Stext here.
2311 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
2314 * emulparams/crislinux.sh: Remove FIXME.
2316 2001-04-02 Alan Modra <alan@linuxcare.com.au>
2318 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
2319 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
2321 2001-03-27 Hans-Peter Nilsson <hp@axis.com>
2323 * configure.tgt (cris-*-*): Change default emulation to criself.
2324 (cris-*-*aout*): New rule.
2326 2001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
2328 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
2329 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
2331 2001-03-26 Andreas Jaeger <aj@suse.de>
2333 * ld.texinfo (Overview): Fix syntax in texi code.
2335 2001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2337 * ld.texinfo: Put @c man indications to generate the ld man page.
2338 When generating man, define all the variables. Define SEEALSO
2339 and SYNOPSIS. Re-organize some lines to avoid the cross references.
2340 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
2341 (ld.1): Generate from ld.texinfo.
2342 * Makefile.in: Regenerate.
2344 2001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
2346 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
2347 and '-fdata-sections'. Set the VMA of STABS sections to zero.
2349 2001-03-17 Ulrich Drepper <drepper@redhat.com>
2351 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
2352 is an absolute path look only for this file and not along the path.
2354 2001-03-17 Ulrich Drepper <drepper@redhat.com>
2356 * emultempl/elf32.em (OPTION_GROUP): New macro.
2357 Add new option Bgroup to longopts.
2358 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
2359 (gld*_list_options): Add -Bgroup and -z defs.
2360 * ld.1: Document -Bgroup and -z defs.
2361 * ld.texinfo: Likewise.
2363 2001-03-07 Michael Meissner <meissner@redhat.com>
2365 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
2366 with sections created by -fdata-sections.
2367 (.dynbss,.bss): Ditto.
2369 2001-03-05 Alan Modra <alan@linuxcare.com.au>
2371 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
2372 after_allocation_default, not gld..._before_allocation.
2374 2001-02-27 Alan Modra <alan@linuxcare.com.au>
2376 * configure.in (BFD_VERSION): New.
2377 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
2378 * configure: Regenerate.
2379 * Makefile.am: Run "make dep-am"
2380 * Makefile.in: Regenerate.
2382 2001-02-26 Timothy Wall <twall@cygnus.com>
2384 * emulparams/elf64_aix.sh: Add additional read-only sections;
2385 uncomment lines which are now required.
2387 2001-02-26 H.J. Lu <hjl@gnu.org>
2389 * ldlang.c (open_input_bfds): Set the bfd error handler so
2390 that problems can be caught whilst loading symbols.
2391 (record_bfd_errors): New function: Report BFD errors and mark
2392 the executable output as being invalid.
2394 2001-02-22 Timothy Wall <twall@cygnus.com>
2396 * configure.host: Add configuration for ia64-*-aix*.
2397 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
2398 Add dependencies for eelf64_aix.c.
2399 * Makefile.in: Regenerate.
2400 * configure.tgt: Add ia64-*-aix* mapping.
2401 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
2402 * testsuite/ld-bootstrap/bootstrap.exp: Exclude ia64 flavor from
2405 2001-02-20 H.J. Lu <hjl@gnu.org>
2407 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
2408 false if we found the file.
2410 2001-02-18 David O'Brien <obrien@FreeBSD.org>
2412 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
2413 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
2415 2001-02-18 lars brinkhoff <lars@nocrew.org>
2417 * Makefile.am: Add PDP-11 target.
2418 * configure.tgt: Likewise.
2419 * emulparams/pdp11.sh: New file.
2421 2001-02-17 David O'Brien <obrien@FreeBSD.org>
2423 * configure.host: Add a generic FreeBSD configuration entry such that
2424 all [modern] FreeBSD systems on all platforms will look the same.
2426 2001-02-14 H.J. Lu <hjl@gnu.org>
2428 * configure.tgt: Remove mention of earmelf_linux26.
2430 2001-02-13 Richard Henderson <rth@redhat.com>
2432 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
2434 2001-02-13 H.J. Lu <hjl@gnu.org>
2436 * ldexp.h (node_type): Add etree_provided.
2437 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
2438 type to etree_provided if defined by PROVIDE. Allow updating
2440 (exp_print_tree): Handle etree_provided.
2441 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
2444 2001-02-09 David Mosberger <davidm@hpl.hp.com>
2446 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
2447 .IA_64.unwind.* pattern to unwind table section and
2448 .IA_64.unwind_info* pattern to unwind info section.
2450 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
2452 * Makefile.am: Add linux target for S/390.
2453 * Makefile.in: Likewise.
2454 * configure.host: Likewise.
2455 * configure.tgt: Likewise.
2456 * emulparams/elf64_s390.sh: New file.
2457 * emulparams/elf_s390.sh: New file.
2459 2001-02-09 Jakub Jelinek <jakub@redhat.com>
2461 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
2463 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
2465 2001-02-06 Philip Blundell <philb@gnu.org>
2467 * Makefile.am: Remove mention of earmelf_linux26.
2468 * Makefile.in: Regenerate.
2470 2001-02-04 Philip Blundell <philb@gnu.org>
2472 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
2473 * emulparams/armelf_linux26.sh: Delete.
2474 * configure.tgt: Remove mention of armelf_linux26 emulation.
2476 2001-02-01 Nick Clifton <nickc@redhat.com>
2478 * ld.1: Replace occurances of -oformat with --oformat.
2480 2001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
2482 * ldlang.c (lang_leave_overlay): Don't set lma_region when
2483 load_base is specified.
2485 2001-01-24 Hans-Peter Nilsson <hp@axis.com>
2487 * emultempl/elf32.em: Correct spelling in comments and listed
2490 2001-01-23 Alan Modra <alan@linuxcare.com.au>
2492 * ldlang.c (lang_leave_overlay): Only set lma_region from the
2493 default for the first section of a group of overlay sections.
2495 2001-01-22 Alan Modra <alan@linuxcare.com.au>
2497 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
2498 * Makefile.in: Regenerate.
2499 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
2500 Check for null tool_dir.
2502 2001-01-16 Jim Wilson <wilson@redhat.com>
2504 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
2505 and IA_64.unwind.info.
2507 2001-01-16 H.J. Lu <hjl@gnu.org>
2509 * ldlang.c (lang_check): Merge the private data only if the
2510 input file has contents.
2512 2001-01-14 Alan Modra <alan@linuxcare.com.au>
2514 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
2516 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
2517 enabling search for libmilli. On a relocatable link, make .text
2519 (LDEMUL_AFTER_PARSE): Define.
2520 (hppaelf_finish): Correct spelling of relocatable in comments.
2522 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
2523 rummage through the script for sections on the unique list.
2524 Correct length of strncmp for ".note".
2525 (gld${EMULATION_NAME}_check_needed): Rearrange function.
2527 * ldlang.c (unique_section_list): New var.
2528 (unique_section_p): New function.
2529 (walk_wild_section): Don't match sections on unique_section_list.
2530 (lang_add_unique): New function.
2531 Correct spelling of relocatable in comments.
2533 * ldlang.h (struct unique_sections): Declare.
2534 (unique_section_list): Declare.
2535 (unique_section_p): Declare.
2536 (lang_add_unique): Declare.
2538 * lexsup.c (ld_options): Allow --unique to take an optional arg.
2539 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
2541 * ld.texinfo (--unique): Update.
2543 2001-01-13 Nick Clifton <nickc@redhat.com>
2545 * lexsup.c (parse_args): Remove spurious white space.
2547 2001-01-12 Nick Clifton <nickc@redhat.com>
2549 * lexsup.c (parse_args): Update copyright date.
2551 2001-01-12 Philip Blundell <pb@futuretv.com>
2553 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
2555 2001-01-10 Kazu Hirata <kazu@hxi.com>
2557 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
2558 * scripttempl/h8300h.sc: Fix formatting.
2559 * scripttempl/h8300s.sc: Likewise.
2560 * scripttempl/h8500.sc: Likewise.
2561 * scripttempl/h8500b.sc: Likewise.
2562 * scripttempl/h8500c.sc: Likewise.
2563 * scripttempl/h8500m.sc: Likewise.
2564 * scripttempl/h8500s.sc: Likewise.
2566 2000-01-07 David O'Brien <obrien@BSDi.com>
2568 * emultempl/elf32.em: Only perform Linux ld hints processing when
2571 2001-01-07 Philip Blundell <philb@gnu.org>
2573 * ld.texinfo (Bug Reporting): Update email address for reports.
2575 2000-12-31 Nick Clifton <nickc@redhat.com>
2577 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
2578 options by checking for a return value of '?' not -1.
2580 2000-12-28 Nick Clifton <nickc@redhat.com>
2582 * lexsup.c (struct ld_option): Add new enum value:
2584 (ld_options[]): Change -omagic, -output and -oformat options
2585 to be EXACTLY_TWO_DASHES.
2586 (OUTPUT_COUNT): Use ARRAY_SIZE.
2587 (parse_args): Change parameter 'argc' to unsigned.
2588 Place EXACTLY_TWO_DASHES options into new really_longopts
2590 If getopt_long_only fails, try calling getopt_long using the
2591 really_longopts array.
2592 (help): Print a double dash for both EXACTLY_TWO_DASHES and
2595 * ldlex.h: Fix prototype of parse_args.
2597 * ld.texinfo: Document that long options starting with 'o'
2598 must be preceeded by two dashes. Change example of a single
2599 dashed long option from -oformat to -trace-symbol.
2601 2000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2603 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
2604 (longopts[]): New --no-default-excludes option.
2605 (gld_${EMULATION_NAME}_list_options): Document.
2606 (gld_${EMULATION_NAME}_parse_args): Handle.
2608 2000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2610 * ldlang.c (new_stat): Revert the last beautification with "innocent"
2611 whitespace, it breaks the K&R C preprocessor.
2613 2000-12-11 DJ Delorie <dj@redhat.com>
2615 * ld.texinfo: Add notes about --whole-archive and gcc.
2617 2000-11-18 Fred Fish <fnf@be.com>
2619 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
2620 (ld_options): Entry for --allow-shlib-undefined.
2621 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
2622 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
2624 * ld.texinfo: Document new command line switch.
2626 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
2628 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
2629 .fixup is actually read/write.
2630 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
2631 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
2632 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
2634 2000-12-11 Jan Hubicka <jh@suse.cz>
2636 * NEWS: Add note about x86_64 architecture.
2638 2000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
2640 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
2641 Set DWARF2 sections to a VMA of zero.
2643 2000-12-01 Joel Sherrill <joel@OARcorp.com>
2645 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
2647 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
2648 (sparc*-*-rtems*): Switched from a.out to ELF.
2650 2000-11-30 Jan Hubicka <jh@suse.cz>
2652 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
2653 (eelf_x86_64.c): New.
2654 * Makefile.in: Regenerate.
2655 * configure.tgt: Add support for x86_64-*-linux-gnu*.
2656 * emulparams/elf_x86_64.sh: New.
2658 2000-11-30 Hans-Peter Nilsson <hp@axis.com>
2660 * emulparams/crislinux.sh (ENTRY): Change back to _start.
2661 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
2663 * scripttempl/crisaout.sc: Change all RELOCATING not related to
2664 merging non-a.out sections into CONSTRUCTING.
2666 2000-11-28 Nick Clifton <nickc@redhat.com>
2668 * ld.1 (COPYING): Mention that the GNU Free Documentation
2669 License is present in the sources, but not the output, and
2670 also available from the GNU website.
2671 (GNU Free Documentation License): Comment out this section.
2673 2000-11-28 David O'Brien <obrien@dragon.nuxi.com>
2675 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
2678 2000-11-25 David O'Brien <obrien@FreeBSD.org>
2680 * ld.1: Remove old date so it does not give the impression the manpage
2683 2000-11-24 Nick Clifton <nickc@redhat.com>
2685 * configure.tgt (xscale-coff): Add target.
2686 (xscale-elf): Add target.
2688 2000-11-24 Fred Fish <fnf@be.com>
2690 * ldmain.c (main): Remove redundant init of config.make_executable
2693 2000-11-15 Richard Henderson <rth@redhat.com>
2695 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
2697 2000-11-14 Kazu Hirata <kazu@hxi.com>
2699 * scripttempl/h8300.sc: Fix formatting.
2700 * scripttempl/h8300h.sc: Likewise.
2701 * scripttempl/h8300s.sc: Likewise.
2703 2000-11-14 Denis Chertykov <denisc@overta.ru>
2705 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
2707 2000-11-09 Philip Blundell <pb@futuretv.com>
2709 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
2710 around orphan sections whose names can be represented in C.
2712 2000-11-07 Jim Wilson <wilson@redhat.com>
2714 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
2715 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
2717 2000-11-06 Nick Clifton <nickc@redhat.com>
2719 * ld.texinfo: Add GNU Free Documentation License.
2720 * ldint.texinfo: Add GNU Free Documentation License.
2721 * ld.1: Add GNU Free Documentation License.
2723 2000-11-05 Alan Modra <alan@linuxcare.com.au>
2725 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
2726 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
2728 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
2729 Move 2000-11-02 Makefile.in changes to this file.
2730 * Makefile.in: Regenerate.
2732 2000-11-03 Nick Clifton <nickc@redhat.com>
2734 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
2735 constructors and destructors.
2736 * scripttempl/h8300h.sc: Ditto.
2737 * scripttempl/h8300s.sc: Ditto.
2738 * scripttempl/h8500.sc: Ditto.
2739 * scripttempl/h8500b.sc: Ditto.
2740 * scripttempl/h8500c.sc: Ditto.
2741 * scripttempl/h8500m.sc: Ditto.
2742 * scripttempl/h8500s.sc: Ditto.
2743 * scripttempl/v850.sc: Ditto.
2744 * scripttempl/w65.sc: Ditto.
2745 * scripttempl/z8000.sc: Ditto.
2747 2000-11-02 Per Lundberg <plundis@chaosdev.org>
2749 * Makefile.in (e_i386_chaos.c): New rule.
2750 (ALL_EMULATIONS): Added e_i386_chaos.o.
2751 * emulparams/elf_i386_chaos.sh: New file.
2752 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
2754 2000-10-20 Jakub Jelinek <jakub@redhat.com>
2756 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
2757 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
2758 Fix sed invocation, so that it coped with '/' in Solaris 64bit
2759 library path suffix.
2760 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
2762 2000-10-18 Hans-Peter Nilsson <hp@axis.com>
2764 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
2765 for consecutive sections.
2767 2000-10-17 Chandrakala Chavva <cchavva@redhat.com>
2769 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
2771 * ld.texinfo: Added notes about this new option.
2773 2000-10-16 Nick Clifton <nickc@redhat.com>
2775 * emultempl/pe.em (_after_open): Add tests of return values from
2776 bfd functions. Emit appropriate error messages if necessary.
2778 2000-10-13 Nick Clifton <nickc@redhat.com>
2780 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
2781 local variables - they are not used, but leave in the call to
2782 bfd_canonicalize_symtab.
2783 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
2784 pe_dll_search_prefix.
2786 2000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
2788 * emultempl/pe.em (pe_dll_search_prefix): New variable,
2789 (longopts): New --dll-search-prefix option.
2790 (gld_${EMULATION_NAME}_list_options): Document.
2791 (gld_${EMULATION_NAME}_parse_args): Handle.
2792 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
2793 dynamically, search for a dll named '<prefix><basename>.dll'
2794 in preference to 'lib<basename>.dll' if --dll-search-prefix
2797 2000-10-12 Alan Modra <alan@linuxcare.com.au>
2799 * ldlang.c (section_already_linked): Set kept_section instead of
2802 2000-10-10 Kazu Hirata <kazu@hxi.com>
2804 * deffile.h: Fix formatting.
2805 * lexsup.c: Likewise.
2808 2000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2810 * pe-dll.c (make_one): Do not generate code thunk for DATA
2812 (process_def_file): deduce DATA flag for auto-export sumbols.
2814 2000-10-09 Kazu Hirata <kazu@hxi.com>
2816 * ld.h: Fix formatting.
2817 * ldcref.c: Likewise.
2818 * ldctor.h: Likewise.
2819 * ldemul.c: Likewise.
2820 * ldemul.h: Likewise.
2821 * ldexp.c: Likewise.
2822 * ldexp.h: Likewise.
2823 * ldfile.c: Likewise.
2824 * ldfile.h: Likewise.
2825 * ldlang.c: Likewise.
2826 * ldlang.h: Likewise.
2827 * ldmain.c: Likewise.
2828 * pe-dll.c: Likewise.
2830 * pe-dll.c: Revert some formatting fixes.
2832 2000-10-08 Kazu Hirata <kazu@hxi.com>
2834 * pe-dll.c: Fix formatting.
2836 2000-10-05 Kazu Hirata <kazu@hxi.com>
2838 * ldlang.c: Fix formatting.
2840 2000-10-03 DJ Delorie <dj@redhat.com>
2842 * pe-dll.c (fill_edata): initialize entire block
2843 (make_one): fill in correct section.
2845 2000-10-03 Kazu Hirata <kazu@hxi.com>
2847 * ldexp.c: Fix formatting.
2849 2000-10-02 DJ Delorie <dj@redhat.com>
2851 * emultempl/pe.em (gld_*_after_open): detect case where there two
2852 import libraries for same dll; rename one to ensure proper link
2855 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
2857 (generate_edata): fix typo
2859 2000-09-29 Hans-Peter Nilsson <hp@axis.com>
2861 * scripttempl/crisaout.sc (ENTRY): Now __start.
2862 (.text): Add default setting for __start.
2863 Remove CONSTRUCTORS handling.
2864 (/DISCARD/): Add .gnu.warning.*.
2865 * emulparams/crislinux.sh (ENTRY): Now __start.
2866 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
2867 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
2868 (ENTRY): Now __start.
2869 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
2870 (EXECUTABLE_SYMBOLS): Add default setting for __start.
2872 2000-09-29 Kazu Hirata <kazu@hxi.com>
2874 * deffile.h: Fix formatting.
2876 * ldcref.c: Likewise.
2877 * ldctor.c: Likewise.
2878 * ldctor.h: Likewise.
2879 * ldemul.c: Likewise.
2880 * ldemul.h: Likewise.
2881 * ldexp.c: Likewise.
2882 * ldexp.h: Likewise.
2883 * ldfile.c: Likewise.
2884 * ldfile.h: Likewise.
2885 * ldlang.c: Likewise.
2886 * ldlang.h: Likewise.
2887 * lexsup.c: Likewise.
2889 * pe-dll.c: Likewise.
2891 2000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2893 * pe-dll.c (process_def_file): Uninitialized data wasn't
2894 exported with --export-all-symbols switch.
2896 2000-09-28 DJ Delorie <dj@redhat.com>
2898 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
2899 noname work properly.
2901 2000-09-28 Alan Modra <alan@linuxcare.com.au>
2903 * ld.texinfo (HPPA ELF32): New section.
2905 * emultempl/hppaelf.em (group_size): New.
2906 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
2907 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
2908 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
2909 options to prevent abbreviations matching.
2910 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
2911 (PARSE_AND_LIST_ARGS_CASES): Handle it.
2913 2000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2915 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
2916 on the m68*-*-elf target. Make it support COFF input objects.
2918 2000-09-21 Kazu Hirata <kazu@hxi.com>
2920 * ldmain.c: Fix formatting.
2921 * ldmisc.c: Likewise.
2922 * ldver.c: Likewise.
2923 * ldwrite.c: Likewise.
2925 2000-09-21 Alan Modra <alan@linuxcare.com.au>
2927 * ldwrite.c (clone_section): Silence gcc warnings.
2929 2000-09-20 Alan Modra <alan@linuxcare.com.au>
2931 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
2932 out of memory failure.
2934 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
2935 (clone_section): Handle out of memory failures. Rename var to
2936 avoid c++ reserved word.
2938 2000-09-18 Alan Modra <alan@linuxcare.com.au>
2940 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
2941 stub_name param to stub_sec_name.
2942 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
2944 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2946 * emultempl/m68kelf.em: New file.
2947 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
2948 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
2949 * Makefile.in: Regenerate.
2951 2000-09-15 Alan Modra <alan@linuxcare.com.au>
2953 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
2956 2000-09-13 Nick Clifton <nickc@redhat.com>
2958 * ldmain.c (multiple_definition): Disable relaxation if
2959 multiple symbol definitions are encountered - otherwise the
2960 linker could abort with an assertion failure.
2962 2000-09-10 Nick Clifton <nickc@redhat.com>
2964 * mri.c: Fix formatting.
2966 2000-09-07 H.J. Lu <hjl@gnu.org>
2968 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
2969 * configure: Rebuild.
2971 2000-09-07 H.J. Lu <hjl@gnu.org>
2973 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
2974 * Makefile.in: Rebuild.
2976 2000-09-07 Alan Modra <alan@linuxcare.com.au>
2978 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
2979 broken list handling. Create __start_SECNAME and __stop_SECNAME
2980 when no place-holder. Add some comments. Test both SEC_CODE and
2981 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
2982 Handle case where no output section statement created.
2984 2000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
2986 * configure.tgt (sh-*-linux*): Added.
2987 * Makefile.am: Added eshelf_linux and eshlelf_linux.
2988 * Makefile.in: Rebuilt.
2989 * emulparams/shelf_linux.sh: New file.
2990 * emulparams/shlelf_linux.sh: New file.
2992 2000-09-06 Alan Modra <alan@linuxcare.com.au>
2994 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
2995 try shuffling sections when the orphan happens to be the place
2996 holder. Keep count of unique section names generated so we speed
2997 the search for a new name.
2999 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
3001 * configure: Rebuilt with new libtool.m4.
3003 2000-09-05 Nick Clifton <nickc@redhat.com>
3005 * Makefile.in: Regenerate.
3006 * aclocal.m4: Regenerate.
3007 * configure: Regenerate.
3008 * config.in: Regenerate.
3009 * po/ld.pot: Regenerate.
3011 * ldint.texinfo: Remove CVS revision marker - it foils local
3014 * emultempl/ticoff.em: Remove extraneous comma.
3016 2000-09-05 Alan Modra <alan@linuxcare.com.au>
3018 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
3019 to stub section flags.
3020 (hppa_for_each_input_file_wrapper): New.
3021 (hppa_lang_for_each_input_file): New.
3022 (lang_for_each_input_file): Define to call above.
3023 (multi_subspace): New.
3024 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
3025 (PARSE_AND_LIST_PROLOGUE): Define.
3026 (PARSE_AND_LIST_LONGOPTS): Define.
3027 (PARSE_AND_LIST_OPTIONS): Define.
3028 (PARSE_AND_LIST_ARGS_CASES): Define.
3029 (hppaelf_finish): Call elf32_hppa_set_gp.
3030 (hppaelf_set_output_arch): Remove.
3031 (LDEMUL_SET_OUTPUT_ARCH): Remove.
3033 * emulparams/hppalinux.sh (ELFSIZE): Define.
3035 (OTHER_READONLY_SECTIONS): Define.
3037 (GENERATE_SHLIB_SCRIPT): Define.
3039 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
3040 to const throughout. Change `void *' to `PTR' throughout.
3041 (lang_memory_default): Function is local to file, add `static'.
3043 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
3044 (ehppalinux.c): Likewise.
3045 (earmelf.c): Likewise.
3046 (earmelf_linux.c): Likewise.
3047 (earmelf_linux26.c): Likewise.
3048 * Makefile.in: Regenerate.
3050 * ld.h (ld_config_type): Add unique_orphan_sections.
3051 * lexsup.c (OPTION_UNIQUE): Define.
3052 (ld_options): Add "--unique".
3053 (parse_args): Handle it.
3054 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3055 search for an existing output section if unique_orphan_sections is
3056 set. Make use of bfd_get_unique_section_name rather than
3057 duplicating code here.
3058 * ld.texinfo: Describe --unique.
3060 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
3061 optional arg to split-by-file.
3062 (parse_args): Handle them.
3063 * ld.texinfo: Update description of these options.
3064 * ldwrite.c (clone_section): Pass in the section name. Replace
3065 local code with bfd_get_unique_section_name.
3066 (split_sections): Tidy code and comments. Use a list traversal
3067 more appropriate to the list construction. Handle cooked section
3068 sizes. Split when split_by_reloc reached rather than exceeded.
3069 Track section size and split when split_by_file reached. Fix
3070 link_order_tail (even though it's not used).
3071 (ldwrite): Modify condition for calling split_sections to suit
3072 changed split_by_reloc and split_by_file.
3073 * ldmain.c (main): Init config.split_by_reloc and
3074 config.split_by_file to -1.
3075 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
3076 Change split_by_file to bfd_size_type.
3078 2000-09-02 Nick Clifton <nickc@redhat.com>
3080 * configure.in: Increase version number to 2.10.91.
3081 * NEWS: Mention new ability to support removal of duplicate DWARF2
3083 * configure: Regenerate.
3084 * aclocal.m4: Regenerate.
3085 * config.in: Regenerate.
3087 2000-09-02 Daniel Berlin <dberlin@redhat.com>
3089 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
3091 * scripttempl/elf32avr.sc: Ditto.
3092 * scripttempl/elfd10v.sc: Ditto.
3093 * scripttempl/elfd30v.sc: Ditto.
3094 * scripttempl/elfi370.sc: Ditto.
3095 * scripttempl/elfm68hc11.sc: Ditto.
3096 * scripttempl/elfm68hc12.sc: Ditto.
3097 * scripttempl/elfi386beos.sc: Ditto.
3098 * scripttempl/v850.sc: Ditto.
3100 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
3102 * acinclude.m4: Include libtool and gettext macros from the
3104 * aclocal.m4, configure: Rebuilt.
3106 2000-08-25 Nick Clifton <nickc@redhat.com>
3108 * ldlang.c (open_output): When choosing the target for a
3109 particular endianness, do nothing if the target is not
3112 2000-08-25 H.J. Lu <hjl@gnu.org>
3114 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
3115 check -rpath nor LD_RUN_PATH for cross link.
3116 * ld.texinfo: Document the change.
3118 2000-08-24 Hans-Peter Nilsson <hp@axis.com>
3120 * NEWS: Mention support for CRIS.
3122 2000-08-23 H.J. Lu <hjl@gnu.org>
3124 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
3125 the current runpath list from bfd_elf_get_runpath_list ()
3128 2000-08-22 H.J. Lu <hjl@gnu.org>
3130 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
3131 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
3132 LD_LIBRARY_PATH for native linker. Display the needed DSO if
3133 trace_file_tries is non-zero.
3134 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
3135 if trace_file_tries is non-zero.
3137 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
3140 2000-08-14 Jason Eckhardt <jle@cygnus.com>
3142 * NEWS: Mention i860 support.
3144 2000-08-14 Andreas Schwab <schwab@suse.de>
3146 * scripttempl/elf.sc: Fix last change to use correct comment
3149 2000-08-10 Geoff Keating <geoffk@cygnus.com>
3151 * scripttempl/elf.sc: Add a comment giving the correspondence
3152 between sections, per-datum sections, and linkonce sections. Make
3153 the comment true even for .bss, .sdata, .sdata2, .sbss, and
3156 2000-08-10 Jason Eckhardt <jle@cygnus.com>
3158 * emulparams/elf32_i860.sh: New file.
3159 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
3160 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
3161 (eelf32_i860.c): New rule.
3162 * Makefile.in: Regenerate.
3164 2000-08-10 Nick Clifton <nickc@cygnus.com>
3166 * emulparams/mipspe.sh (ENTRY): Add definition.
3168 2000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
3170 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
3173 2000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3175 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
3176 the final size of .bss section.
3177 * scripttempl/elfm68hc12.sc: Likewise.
3179 2000-08-04 Alan Modra <alan@linuxcare.com.au>
3181 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
3182 gld${EMULATION_NAME}_parse_args for consistency. Combine
3183 lastoptind and prevoptind vars, and keep track of last optind.
3184 (gld_${EMULATION_NAME}_list_options): Rename to
3185 gld${EMULATION_NAME}_list_options.
3187 2000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
3189 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
3190 (i586-sco-sysv5uw7.1.0).
3192 2000-07-27 H.J. Lu <hjl@gnu.org>
3194 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
3195 (PARSE_AND_LIST_PROLOGUE): New.
3196 (PARSE_AND_LIST_LONGOPTS): Likewise.
3197 (PARSE_AND_LIST_OPTIONS): Likewise.
3198 (PARSE_AND_LIST_ARGS_CASES): Likewise.
3199 (PARSE_AND_LIST_EPILOGUE): Likewise.
3201 2000-07-28 Alan Modra <alan@linuxcare.com.au>
3203 * emultempl/armelf.em: Elide functions common to elf32.em,
3204 ie. most of the file.
3205 (arm_elf_after_open): New. Do arm specific things then call
3206 gld${EMULATION_NAME}_after_open.
3207 (arm_elf_before_allocation): New. Call
3208 gld${EMULATION_NAME}_before_allocation then do arm specifics.
3209 (PARSE_AND_LIST_PROLOGUE): Define.
3210 (PARSE_AND_LIST_SHORTOPTS): Define.
3211 (PARSE_AND_LIST_LONGOPTS): Define.
3212 (PARSE_AND_LIST_OPTIONS): Define.
3213 (PARSE_AND_LIST_ARGS_CASES): Define.
3214 (LDEMUL_AFTER_OPEN): Define.
3215 (LDEMUL_BEFORE_ALLOCATION): Define.
3216 (LDEMUL_BEFORE_PARSE): Define.
3217 (LDEMUL_FINISH): Define.
3219 * emultempl/hppaelf.em: Similarly zap most of this file.
3220 (hppaelf_add_stub_section): Prototype.
3221 (hppaelf_layaout_sections_again): Prototype.
3222 (hook_in_stub): Prototype.
3223 (LDEMUL_SET_OUTPUT_ARCH): Define.
3224 (LDEMUL_FINISH): Define.
3225 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
3227 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
3228 (EXTRA_EM_FILE): New.
3229 * emulparams/armelf_linux.sh: Likewise.
3230 * emulparams/armelf_linux26.sh: Likewise.
3231 * emulparams/hppalinux.sh: Likewise.
3232 * emulparams/hppaelf.sh: Likewise.
3235 * emultempl/elf32.em: Fix formatting.
3236 (EXTRA_EM_FILE): Source it.
3237 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
3238 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
3239 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
3240 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
3241 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
3242 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
3243 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
3244 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
3245 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
3246 allow functions in this file to be overridden.
3247 (PARSE_AND_LIST_SHORTOPTS): Handle it.
3249 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
3251 * emultempl/elf32.em: Reorganize file.
3253 2000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
3255 * emulparams/elf64alpha.sh: Implement "-taso" emulation
3256 specific option to fit 64-bit executable in the lower
3257 31-bit address range. This is done by changing start
3258 address of .interp (the very first section of executable)
3259 and then setting EF_ALPHA_32BIT elf header flag.
3261 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3263 * emultempl/m68kcoff.em: New file.
3264 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
3265 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
3267 * Makefile.in: Regenerate.
3269 2000-07-20 H.J. Lu <hjl@gnu.org>
3271 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
3272 and "disable-new-dtags" to stop getopt from treating -d/-e as
3273 abbreviations for these options.
3275 2000-07-20 H.J. Lu <hjl@gnu.org>
3277 * ld.texinfo: Add documentation for --disable-new-dtags and
3280 * ldmain.c (main): Initialize link_info.new_dtags to false.
3282 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
3283 --disable-new-dtags and --enable-new-dtags.
3284 (gld_${EMULATION_NAME}_list_options): Likewise.
3286 2000-07-05 Kenneth Block <krblock@computer.org>
3288 * lexsup.c: Add optional style to demangle switch
3289 * ld.texinfo: Document optional style to demangle switch.
3291 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
3293 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
3295 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
3296 Regenerate dependencies.
3297 * Makefile.in: Rebuild.
3298 * configure.tgt (cris-*-*): New target.
3299 * emulparams/crisaout.sh, emulparams/criself.sh,
3300 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
3301 * po/POTFILES.in, po/ld.pot: Regenerate.
3303 2000-07-20 H.J. Lu <hjl@gnu.org>
3305 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
3306 Print out ignored -z options.
3308 2000-07-19 H.J. Lu <hjl@gnu.org>
3310 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
3311 (PARSE_AND_LIST_PROLOGUE): New.
3312 (PARSE_AND_LIST_LONGOPTS): Likewise.
3313 (PARSE_AND_LIST_OPTIONS): Likewise.
3314 (PARSE_AND_LIST_ARGS_CASES): Likewise.
3316 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
3318 * lexsup.c (ld_options): Comment out 'z'.
3319 (parse_args): Likewise.
3321 * emultempl/elf32.em: Include "elf/common.h".
3322 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
3324 (gld_${EMULATION_NAME}_list_options): Likewise.
3326 * ld.texinfo: Add documentation for the recognized -z options.
3328 2000-07-19 H.J. Lu <hjl@gnu.org>
3330 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
3331 bfd_elf_set_dt_needed_soname ().
3333 2000-07-18 DJ Delorie <dj@cygnus.com>
3335 * pe-dll.c (pe_dll_id_target): check object target name also
3337 2000-07-18 Hans-Peter Nilsson <hp@axis.com>
3339 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
3340 ${INIT_END} if relocating.
3341 (.fini): Likewise ${FINI_START} and ${FINI_END}.
3343 2000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
3345 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
3346 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
3347 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
3348 errors introduced by the old dynamic lib search order.
3350 2000-07-17 DJ Delorie <dj@cygnus.com>
3352 * pe-dll.c (process_def_file): auto-export data items also
3353 (pe_process_import_defs): also see if _imp_ form needed
3355 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
3357 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
3358 for dll import libraries
3360 2000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
3362 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
3363 gcc 2.95.2 and later.
3365 2000-07-11 Kazu Hirata <kazu@hxi.com>
3367 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
3370 2000-07-10 Alan Modra <alan@linuxcare.com.au>
3372 * ldemul.h (struct lang_input_statement_struct): Remove forward
3374 (struct search_dirs): Likewise.
3375 * ldfile.h (struct lang_input_statement_struct): Likewise.
3376 Protect file from multiple inclusion.
3377 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
3378 declaration from macro to file scope.
3380 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
3381 * ldgram.y: Likewise here.
3382 * ldlang.c: And here.
3383 * ldmain.c: And here.
3384 * mpw-elfmips.c: And here.
3385 * mpw-eppcmac.c: And here.
3386 * emultempl/aix.em: And here.
3387 * emultempl/armcoff.em: And here.
3388 * emultempl/armelf.em: And here.
3389 * emultempl/armelf_oabi.em: And here.
3390 * emultempl/beos.em: And here.
3391 * emultempl/elf32.em: And here.
3392 * emultempl/hppaelf.em: And here.
3393 * emultempl/linux.em: And here.
3394 * emultempl/lnk960.em: And here.
3395 * emultempl/pe.em: And here.
3396 * emultempl/sunos.em: And here.
3397 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
3398 * mpw-idtmips.c: Ditto.
3399 * emultempl/generic.em: Ditto.
3400 * emultempl/gld960.em: Ditto.
3401 * emultempl/gld960c.em: Ditto.
3402 * emultempl/mipsecoff.em: Ditto.
3403 * emultempl/ticoff.em: Ditto.
3404 * emultempl/vanilla.em: Ditto.
3406 * pe-dll.c: Include ldfile.h
3407 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
3409 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
3410 arguments to bfd_elf32_size_dynamic_sections call.
3411 (gldelf32ebmip_place_orphan): Add missing arguments to
3412 lang_leave_output_section_statement call.
3414 2000-07-10 H.J. Lu <hjl@gnu.org>
3416 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
3418 (strhash): Likewise.
3419 (compute_dll_image_base): Likewise.
3420 (pe_undef_found_sym): Likewise.
3421 (pe_undef_cdecl_match): Likewise.
3422 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
3423 argument "arch" with ATTRIBUTE_UNUSED.
3425 2000-07-10 Alan Modra <alan@linuxcare.com.au>
3427 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
3429 From Ryan Bradetich <rbradetich@uswest.net>
3430 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
3432 2000-07-09 Alan Modra <alan@linuxcare.com.au>
3434 Changes to create multiple linker stubs, positioned immediately
3435 before the section where they are required.
3436 * emultempl/hppaelf.em: Include elf32-hppa.h.
3437 (stub_sec, file_chain): Delete.
3438 (hppaelf_create_output_section_statements): Don't make a stub
3440 (hook_stub_info): New struct.
3441 (hook_in_stub): New function.
3442 (hppaelf_add_stub_section): New function.
3443 (hppaelf_finish): Do nothing for relocateable links. Modify the
3444 call to elf32_hppa_size_stubs. Move code for updating section
3446 (hppaelf_layaout_sections_again): ..to here, a new function.
3448 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
3449 broken list handling. Pass in a pointer to the list.
3450 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
3452 (hppaelf_before_parse): Prototype.
3453 (hppaelf_set_output_arch): Prototype.
3454 (hppaelf_create_output_section_statements): Prototype.
3455 (hppaelf_delete_padding_statements): Prototype.
3456 (hppaelf_finish): Prototype.
3459 * emultempl/hppaelf.em: Include ctype.h.
3460 (struct orphan_save): New.
3461 (gld${EMULATION_NAME}_place_orphan): New.
3462 (output_rel_find): New.
3463 (hppaelf_get_script): Update from elf32.em.
3464 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
3465 Change emulation_name field to "${EMULATION_NAME}". Add
3466 gld${EMULATION_NAME}_place_orphan.
3468 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
3469 ehppalinux.o, sort it. Regenerate dependencies.
3470 (ehppalinux.c): Depend on hppaelf.em
3471 * Makefile.in: Regenerate.
3473 * configure.tgt: targ_emul=hppalinux for hppa*linux
3475 * emulparams/hppalinux.sh: New.
3476 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
3478 2000-07-08 Alan Modra <alan@linuxcare.com.au>
3480 * lexsup.c (parse_args): Copy section name.
3482 2000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
3484 * emultempl/pe.em: institute the following search order for
3485 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
3486 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
3487 static lib (libfoo.a) if none of the above are found.
3489 2000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
3491 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
3492 (longopts): New --{enable,disable}-auto-image-base options.
3493 (gld_${EMULATION_NAME}_list_options): Document.
3494 (gld_${EMULATION_NAME}_parse): Handle.
3495 (strhash): New static function.
3496 (compute_dll_image_base): New static function.
3497 (gld_${EMULATION_NAME}_set_symbols): Use.
3499 2000-07-05 DJ Delorie <dj@redhat.com>
3503 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
3505 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
3506 * emulparams/elf32btsmip.sh: New file.
3507 * Makefile.am: Add traditional mips target.
3508 * Makefile.in: Rebuild.
3510 2000-07-01 H.J. Lu <hjl@gnu.org>
3512 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
3513 automake to use YLWRAP.
3514 * Makefile.in: Rebuild.
3516 2000-07-01 Alan Modra <alan@linuxcare.com.au>
3518 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
3519 (CLEANFILES): Add DEPA.
3520 * Makefile.in: Regenerate.
3522 2000-06-30 Timothy Wall <twall@ppc>
3524 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
3525 the page in the upper octet of the address.
3527 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
3529 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
3531 2000-06-24 Alan Modra <alan@linuxcare.com.au>
3533 * NEWS: arm-elf does --gc-sections too.
3535 2000-06-22 Alan Modra <alan@linuxcare.com.au>
3537 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
3539 * Makefile.in: Regenerate.
3541 2000-06-21 H.J. Lu <hjl@gnu.org>
3543 * Makefile.am: Rebuild dependency.
3544 * Makefile.in: Rebuild.
3546 2000-06-20 H.J. Lu <hjl@gnu.org>
3548 * Makefile.am: Rebuild dependency.
3549 * Makefile.in: Rebuild.
3551 2000-06-20 Timothy Wall <twall@cygnus.com>
3553 * scripttempl/tic54xcoff.sc: New.
3554 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
3555 * gen-doc.texi: Add flag for TI COFF.
3556 * ld.texinfo: Add documentation for TI COFF handling switches.
3557 * emultempl/ticoff.em: New. TI COFF handling.
3558 * configure.tgt: Add tic54x target.
3559 * Makefile.am: Add tic54x target.
3560 * Makefile.in: Ditto.
3562 2000-06-20 Alan Modra <alan@linuxcare.com.au>
3564 * ldmain.c (set_scripts_dir): Correct pointer comparison when
3565 checking for backslashes.
3567 2000-06-19 Alan Modra <alan@linuxcare.com.au>
3569 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
3571 2000-06-18 Alan Modra <alan@linuxcare.com.au>
3573 * NEWS: Update list of targets supporting --gc-sections.
3575 * scripttempl/elf.sc: KEEP .eh_frame contents.
3576 * scripttempl/elfd30v.sc: Same here.
3578 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
3580 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
3582 * Makefile.in: Rebuild.
3583 * configure.tgt: Recognize m68hc12 and m68hc11.
3584 * scripttempl/elfm68hc12.sc: New file.
3585 * emulparams/m68hc12elfb: New emulation.
3586 * emulparams/m68hc12elf: New emulation.
3587 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
3588 (includes a memory.x script to define the ROM and RAM banks).
3589 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
3590 New configuration files for support of Motorola 68hc11
3592 2000-06-15 Alan Modra <alan@linuxcare.com.au>
3594 * ldmain.c (main): Only change SEC_READONLY for final link.
3596 2000-06-13 H.J. Lu <hjl@gnu.org>
3598 * configure: Regenerate.
3600 2000-06-08 David O'Brien <obrien@FreeBSD.org>
3602 * configure.in (VERSION): Update to show this is the CVS mainline.
3604 2000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3606 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
3607 input objects to be ECOFF.
3608 (check_sections): einfo takes %B, not %P, to print a BFD name.
3610 2000-06-05 Michael Matz <matz@ifh.de>
3612 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
3615 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
3617 2000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
3619 * emulparams/avr1200.sh (STACK): Define as 0.
3620 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
3621 * emulparams/avr4433.sh (STACK): Likewise.
3622 * emulparams/avr44x4.sh (STACK): Likewise.
3623 * emulparams/avr85xx.sh (STACK): Likewise.
3624 * emulparams/avrmega103.sh (STACK): Likewise.
3625 * emulparams/avrmega161.sh (STACK): Likewise.
3626 * emulparams/avrmega603.sh (STACK): Likewise.
3627 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
3628 (__stack): Define from ${STACK} for main().
3630 2000-05-26 Alan Modra <alan@linuxcare.com.au>
3632 * Makefile.am: Update dependencies with "make dep-am"
3633 * Makefile.in: Regenerate.
3635 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
3637 * ldmain.c: Include filenames.h.
3638 (set_scripts_dir): Support backslashes in program name.
3640 2000-05-22 Igor Shevlyakov <igor@windriver.com>
3642 * ldmain.c (main): When deciding if ".text" section should be
3643 read-only, don't forget to reset SEC_READONLY because it
3644 could be already set.
3646 2000-05-22 Thomas de Lellis <tdel@windriver.com>
3648 * ld.1: Add documentation for new command line option:
3649 --section-start <sectionname>=<sectionorg>
3650 This is a generic version of -Ttext etc. which accepts
3651 any section name as a parameter instead of just text/data/
3653 * ld.texinfo: More docs.
3655 * lexsup.c: (parse_args): Recognize new command line option.
3656 (ld_options): Add new option.
3658 2000-05-18 H.J. Lu <hjl@gnu.org>
3660 * lexsup.c (parse_args): `i' == `r', not `q'.
3662 2000-05-18 Jeffrey A Law (law@cygnus.com)
3664 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
3666 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
3667 Rick Gorton <gorton@scrugs.lkg.dec.com>
3669 Add support for '-q' == '--emit-relocs' switch.
3670 * ldmain.c (main): Default to false.
3671 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
3672 * NEWS: Describe the emitrelocations switch.
3673 * ld.texinfo: Describe the emitrelocations switch.
3675 2000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
3677 * emultempl/pe.em (_open_dynamic_archive): New function: Search
3678 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
3679 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
3682 2000-05-15 David O'Brien <obrien@FreeBSD.org>
3684 * lexsup.c (parse_args): Update the year in the copyright notice.
3686 2000-05-13 Alan Modra <alan@linuxcare.com.au>
3688 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
3689 Replace defines with those from intl/libgettext.h to quieten gcc
3692 2000-05-10 H.J. Lu <hjl@gnu.org>
3694 * ldlang.c (open_input_bfds): Don't load the same file within
3695 a group again if the whole archive has been loaded already.
3697 2000-05-03 Alan Modra <alan@linuxcare.com.au>
3699 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
3700 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
3703 2000-05-01 Jim Wilson <wilson@cygnus.com>
3705 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
3707 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
3708 host "ia64-*-linux-gnu*".
3710 2000-04-29 Andreas Jaeger <aj@suse.de>
3712 * ld.h: Correctly check GCC version.
3714 2000-04-25 Jeffrey A Law (law@cygnus.com)
3716 * Makefile.am: Add PA64 support. Add missing dependencies for
3718 * Makefile.in: Rebuilt.
3719 * configure.tgt: Add PA64 support (currently disabled).
3721 2000-04-25 Alan Modra <alan@linuxcare.com.au>
3723 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
3724 (output_rel_find): New function.
3725 (hold_section, hold_use): Delete.
3726 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
3727 hold_interp): Make local to place_orphan.
3728 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
3729 rather than place_section to find possible previous use of orphan.
3730 Similarly find the place-holder output sections. Use returned
3731 value from lang_enter_output_section_statement rather than calling
3732 lang_output_section_statement_lookup.
3733 * emultempl/armelf.em: Same here.
3734 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
3736 * ldlang.c (lang_enter_output_section_statement): Return output
3738 * ldlang.h (lang_enter_output_section_statement): Change
3741 * ldlang.h (lang_output_section_statement): Export it.
3742 * ldlang.c (lang_output_section_statement): Ditto.
3744 2000-04-24 Nick Clifton <nickc@cygnus.com>
3746 * ld.texinfo (Output Section Data): Add note that section data
3747 commands cannot appear outside of section directives.
3749 2000-04-2 Matthew Green <mrg@cygnus.com>
3751 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
3753 2000-04-21 Richard Henderson <rth@cygnus.com>
3754 David Mosberger <davidm@hpl.hp.com>
3756 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
3757 (eelf64_ia64.c): New rule.
3758 * Makefile.in: Rebuild.
3759 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
3760 * emulparams/elf64_ia64.sh: New file.
3762 2000-04-21 Richard Henderson <rth@cygnus.com>
3764 * scripttempl/elfd30v.sc: Place .gcc_except_table.
3766 2000-04-19 Alan Modra <alan@linuxcare.com.au>
3768 * dep-in.sed: Match space at start of file name, not at end.
3770 2000-04-18 H.J. Lu <hjl@gnu.org>
3772 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
3773 lang_leave_output_section_statement () after calling
3774 lang_enter_output_section_statement ().
3775 * emultempl/armelf.em: Likewise.
3777 2000-04-18 Alan Modra <alan@linuxcare.com.au>
3779 * emultempl/elf32.em (struct orphan_save): Add section field.
3780 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
3781 better order, and place first orphan section as we did before the
3782 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
3783 Don't call make_bfd_section here, let wild_doit do the job for us.
3784 Don't build a statement list when we'll only throw it away.
3785 * emultempl/armelf.em: Ditto.
3786 * emultempl/pe.em: Similarly.
3788 2000-04-14 Geoff Keating <geoffk@cygnus.com>
3790 * scripttempl/elfppc.sc: Remove.
3791 * emulparams/elf32ppc.sh: Use elf.sc.
3792 * emulparams/elf32lppc.sh: Use elf.sc.
3793 * emulparams/elf32ppclinux.sh: Use elf.sc.
3794 * emulparams/elf32ppcsim.sh: New file.
3795 * emulparams/elf32lppcsim.sh: New file.
3796 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
3797 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
3798 * Makefile.in: Regenerate.
3799 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
3801 2000-04-14 Alan Modra <alan@linuxcare.com.au>
3803 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
3804 ~SEC_ALLOC sections too. Init start address of debug sections.
3805 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
3806 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
3807 Also set all relocateable section start addresses.
3809 2000-04-13 Geoff Keating <geoffk@cygnus.com>
3811 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
3812 Add new BSS_PLT variable for when .plt need not be contained in
3813 the file. Move _etext so that it is also after .fini, and provide
3814 both etext and _etext with a leading underscore. Mark the start
3817 2000-04-12 Alan Modra <alan@linuxcare.com.au>
3819 * emultempl/elf32.em (struct orphan_save): New.
3820 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
3821 hold_interp): Make them struct orphan_save.
3822 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
3823 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
3824 the end of the relevant section list. Also add associated section
3825 statements to the end of any previous orphan statements.
3826 * emultempl/armelf.em: Similarly.
3827 * emultempl/pe.em: Similarly.
3829 2000-04-11 Alan Modra <alan@linuxcare.com.au>
3831 * ld.texinfo (Simple Example): Remove extraneous paragraph.
3833 2000-04-07 Andrew Cagney <cagney@b1.cygnus.com>
3835 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
3836 --enable-build-warnings option.
3837 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
3838 * Makefile.in, configure: Re-generate.
3840 2000-04-04 Alan Modra <alan@linuxcare.com.au>
3842 * po/ld.pot: Regenerate.
3844 * lexsup.c (help): Restore translated part of bug string.
3846 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
3847 (DEP): Quote when passing vars to sub-make. Add warning message
3849 (DEP1): Rewrite for "gcc -MM".
3850 (CLEANFILES): Add DEP2.
3851 Update dependencies.
3852 * Makefile.in: Regenerate.
3854 2000-04-03 Alan Modra <alan@linuxcare.com.au>
3856 * ld.h: #include "bin-bugs.h"
3857 * lexsup.c (help): Use REPORT_BUGS_TO.
3859 2000-03-27 Denis Chertykov <denisc@overta.ru>
3861 * configure.tgt (avr-*-*): New target support.
3862 * Makefile.am: Likewise.
3863 * scripttempl/elf32avr.sc: New script file.
3864 * emulparams/avr1200.sh: New file.
3865 * emulparams/avr23xx.sh: New file.
3866 * emulparams/avr4433.sh New file.
3867 * emulparams/avr44x4.sh New file.
3868 * emulparams/avr85xx.sh New file.
3869 * emulparams/avrmega103.sh New file.
3870 * emulparams/avrmega161.sh New file.
3871 * emulparams/avrmega603.sh New file.
3872 * Makefile.in: Regenerate.
3874 2000-03-09 Andreas Jaeger <aj@suse.de>
3876 * Makefile.am (check-DEJAGNU): Also unset LANG.
3877 * Makefile.in: Rebuild.
3879 2000-03-06 Ian Lance Taylor <ian@zembu.com>
3881 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
3884 2000-03-02 H.J. Lu <hjl@gnu.org>
3886 * emulparams/elf32mcore.sh: Include "getopt.h".
3888 2000-03-01 Ian Lance Taylor <ian@zembu.com>
3890 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
3892 2000-03-01 H.J. Lu <hjl@gnu.org>
3894 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
3895 * emulparams/shpe.sh: Likewise.
3897 2000-03-01 Nick Clifton <nickc@cygnus.com>
3899 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
3900 to unused parameters.
3902 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
3903 functions only used by DLL code.
3904 (_place_orphan): Initialise 'dollar'.
3906 2000-03-01 H.J. Lu <hjl@gnu.org>
3908 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
3909 indicate if the undefined symbol is a fatal error or not.
3910 Don't delete the output file if "fatal" is false.
3912 2000-02-29 H.J. Lu <hjl@gnu.org>
3914 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
3915 Set LC_COLLATE and LC_ALL to null and export them. It is for
3916 sort which expects the C locale.
3917 Add $(LIBS) to all $(HOSTING_LIBS).
3918 * Makefile.in: Rebuild.
3920 2000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
3922 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
3923 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
3924 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
3925 (ld_emulation_xfer_struct): Add missing NULL initialiser for
3926 find_potential_libraries.
3928 2000-02-28 Jim Blandy <jimb@redhat.com>
3930 * ldgram.y (exclude_name_list): Don't require a comma to separate
3931 list entries; the lexer considers commas to be valid part of a
3932 filename, so in something like `foo, bar' the comma is considered
3933 part of the first filename, `foo,'.
3934 * ld.texinfo: Update section on EXCLUDE_FILE lists.
3936 2000-02-27 Loren J. Rittle <ljrittle@acm.org>
3938 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
3939 host "i[3456]86-*-freebsdelf*".
3941 2000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
3943 * scripttempl/i386go32.sc: Move misplaced semicolons.
3945 2000-02-25 Ian Lance Taylor <ian@zembu.com>
3947 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
3948 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
3949 (eelf64hppa.c, ehppaelf.c): Remove targets.
3950 * Makefile.in: Rebuild.
3952 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
3954 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
3955 GNU/Linux/sparc, but keep the default as 32.
3957 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
3958 it default if sparcv9 or sparc64.
3960 2000-02-24 Nick Clifton <nickc@cygnus.com>
3962 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
3963 * Makefile.in: Regenerate.
3964 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
3966 * ldemul.h (ld_emulation_xfer_struct): Add new field:
3967 find_potential_libraries.
3968 * ldemul.c (ldemul_find_potential_libraries): New function.
3970 * ldfile.c (ldfile_open_file_search): Allow function to be
3972 (ldfile_open_file): Call ldemul_find_potential_libraries.
3973 * ldfile.h: Add prototype for ldfile_open_file_search.
3975 * pe-dll.c: Add support for ARM, MIPS and SH targets.
3977 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
3978 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
3980 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
3981 (gld_X_find_potential_libraries): New function. Search for
3982 libraries called "*.lib".
3984 * scripttempl/pe.sc: Add .pdata section.
3986 2000-02-23 Richard Henderson <rth@cygnus.com>
3988 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
3989 Add and use memory regions.
3991 2000-02-23 Linas Vepstas (linas@linas.org)
3993 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
3995 * Makefile.am: Add support for Linux/IBM 370.
3996 * configure.tgt: Likewise.
3998 * Makefile.in: Regenerate.
4000 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
4002 * ldlang.c (print_input_section, print_data_statement,
4003 print_reloc_statement, print_padding_statement, insert_pad,
4004 size_input_section, lang_check_section_addresses,
4005 lang_size_sections, lang_do_assignments, lang_set_startof,
4006 lang_one_common): Change `opb' to unsigned.
4007 (lang_do_assignments): Also change `size' to unsigned.
4009 2000-02-16 Richard Henderson <rth@cygnus.com>
4011 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
4013 2000-02-16 Timothy Wall <twall@cygnus.com>
4015 * mri.c (mri_draw_tree): Add default LMA region argument to call
4016 to lang_leave_output_section_statement.
4017 * ldlang.h: Update prototypes with LMA region arguments.
4018 * ldlang.c (lang_size_sections): Encapsulate region bounds
4019 checking in os_check_region call.
4020 (os_check_region): New function.
4021 (lang_output_section_statement_lookup): Initialize lma_region.
4022 (lang_leave_output_section_statement): Add LMA region argument.
4023 (lang_leave_overlay): Ditto.
4024 * ldgram.y: Handle LMA region syntax.
4025 * ld.texinfo (Output Section Description): Describe LMA region usage.
4026 * emultempl/armelf.em (gld$place_orphan): Add default value for
4027 lma region in call to lang_leave_output_section_statement.
4028 * emultempl/elf32.em (gld$place_orphan): Add default value for
4029 lma region in call to lang_leave_output_section_statement.
4030 * emultempl/pe.em (gld$place_orphan): Add default value for
4031 lma region in call to lang_leave_output_section_statement.
4034 2000-02-04 Timothy Wall <twall@redhat.com>
4036 * ldlang.c (lang_check_section_addresses): Use bytes instead of
4037 octets when calculating section end addresses.
4039 2000-02-04 Timothy Wall <twall@redhat.com>
4041 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
4043 2000-02-03 Timothy Wall <twall@redhat.com>
4045 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
4047 * ldlang.c (print_input_section, print_data_statement,
4048 print_reloc_statement, print_padding_statement): Print target
4049 address values and section sizes as bytes, not octets.
4050 (insert_pad) Calculate padding size in octets, and adjust "dot"
4052 (size_input_section) Always adjust "dot" by bytes, not octets.
4053 (lang_check_section_addresses, lang_do_assignments) Adjust
4054 "dot" by bytes, not octets. Use the larger of the directive size
4055 or octets_per_byte for the number of octets actually allocated in
4057 (lang_set_startof) Make sure STARTOF returns a target address.
4058 (lang_one_common) Record size changes in octets.
4059 (lang_abs_symbol_at_end_of) Section end symbol's value is
4060 recorded in target bytes.
4061 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
4062 to be clear about behavior when an octet is smaller than one byte.
4064 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
4066 * ldcref.c (output_cref): Don't pass message strings to printf
4070 * ldmisc.c (vfinfo): Same here.
4073 2000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
4075 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
4076 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
4077 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
4078 Add missing NULL initialisers, and comments.
4080 * testsuite/ld-srec/sr3.cc (__rethrow): New.
4082 2000-01-21 Nick Clifton <nickc@cygnus.com>
4084 * ldlang.c (lang_size_sections): Fix typo in comment.
4086 2000-01-18 H.J. Lu <hjl@gnu.org>
4088 * ldlang.c (lang_size_sections): Also update the current
4089 address of a region if the SEC_NEVER_LOAD bit is not set.
4091 2000-01-10 Philip Blundell <pb@futuretv.com>
4093 * configure.tgt (arm*-*-conix*): New target.
4095 2000-01-07 Nick Clifton <nickc@cygnus.com>
4097 * ld.texinfo (Options): Remind users to preceed linker command
4098 line switches with -Wl, (or whatever is appropriate) if it is
4099 being invoked by a comnpiler driver program.
4100 Fix description of the behaviour of the -n command line switch.
4102 2000-01-05 Catherine Moore <clm@cygnus.com>
4104 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
4106 * ld.texinfo (EXCLUDE_FILE): Update documentation.
4107 * ldgram.y (wildcard_spec): Support a list of excluded_files.
4108 (exclude_name_list): New.
4109 ldlang.c (walk_wild_section): Support list of excluded files.
4110 (print_wild_statement): Likewise.
4111 (lang_add_wild): Likewise.
4112 * ldlang.h (lang_wild_statement_type): Likewise.
4113 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
4115 2000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
4117 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
4118 (process_def_file): Use.
4119 (pe_dll_compat_implib): New variable.
4122 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
4123 pe_dll_compat_implib.
4125 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
4126 compat-implib options.
4127 (gld_${EMULATION_NAME}_list_options): List new options.
4128 (gld_${EMULATION_NAME}_parse_args): Handle.
4130 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
4133 * deffilep.y (opt_name): Allow "." in name.
4135 For older changes see ChangeLog-9899
4141 version-control: never