1 2002-05-07 Richard Sandiford <rsandifo@redhat.com>
3 * ldlang.h (lang_output_section_statement_type): Add update_dot_tree.
4 (lang_enter_overlay): Remove the last two parameters.
5 (lang_leave_overlay): Take them here instead.
6 * ldgram.y (memspec_at_opt): Set $$ to null if no region is given.
7 (section): Pass LMA and crossref flag to lang_leave_overlay rather
8 than lang_enter_overlay.
9 * ldlang.c (lang_memory_region_lookup): Return null for null names.
10 (lang_output_section_statement_lookup): Initialize update_dot_tree.
11 (lang_size_sections_1): Evaluate it.
12 (lang_leave_output_section_statement): Rework LMA lookup.
13 (overlay_lma, overlay_nocrossrefs): Remove.
14 (lang_enter_overlay): Remove LMA and corssref arguments.
15 (lang_enter_overlay_section): Don't set the LMA here.
16 (lang_leave_overlay): Take LMA and crossref arguments. Move the '.'
17 assignment to the last section's update_dot_tree. Unconditionally
18 use the load and run-time regions specified in the OVERLAY statement.
19 Likewise the first section's LMA. Only set the other sections' LMAs
20 when no load region is given.
22 2002-05-06 Nick Clifton <nickc@redhat.com>
24 * po/sv.po: New translation.
26 2002-05-04 Alan Modra <amodra@bigpond.net.au>
28 * emultempl/hppaelf.em (build_section_lists): New function.
29 (gld${EMULATION_NAME}_finish): Call elf32_hppa_setup_section_lists
30 and build_section_lists.
32 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
34 * ld.h: Fix formatting.
42 2002-05-02 Alan Modra <amodra@bigpond.net.au>
44 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
45 Adjust for ppc64_elf_set_toc change. #include libbfd.h.
46 (build_section_lists): Do output_section tests here.
48 2002-04-30 Tom Rix <trix@redhat.com>
50 * emultempl/aix.em : (gld*_parse_arge): Formatting changes.
52 2002-05-01 Alan Modra <amodra@bigpond.net.au>
54 Long branch stubs, multiple stub sections.
55 * emultempl/ppc64elf.em: Include ldctor.h.
57 (group_size): New var.
58 (ppc_create_output_section_statements): New function.
59 (struct hook_stub_info): New.
60 (hook_in_stub): New function.
61 (ppc_add_stub_section): New function.
62 (ppc_layout_sections_again): New function.
63 (build_section_lists): New function.
64 (gld${EMULATION_NAME}_finish): Rewrite.
66 (ppc_for_each_input_file_wrapper): New function.
67 (ppc_lang_for_each_input_file): New function.
68 (lang_for_each_input_file): Define.
69 (PARSE_AND_LIST_PROLOGUE): Define.
70 (PARSE_AND_LIST_LONGOPTS): Define.
71 (PARSE_AND_LIST_OPTIONS): Define.
72 (PARSE_AND_LIST_ARGS_CASES): Define.
73 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
75 2002-04-30 Tom Rix <trix@redhat.com>
77 * emultempl/aix.em (gld*_parse_arge, gld*_before_allocation): Add
78 -blibpath, -bnolibpath support.
80 2002-04-30 Mark Mitchell <mark@codesourcery.com>
82 * Makefile.am (ALL_EMULATIONS): Add elf32ppcwindiss.o.
83 (eelf32ppcwindiss.c): New target.
84 * Makefile.in: Regenerated.
85 * configure.tgt: Add support for powerpc-*-windiss.
86 * emulparams/elf32ppcwindiss.sh: New file.
88 2002-04-30 Richard Sandiford <rsandifo@redhat.com>
90 * ldlang.c (print_assignment): Update print_dot for assignments to ".".
91 * ldexp.c (exp_print_token): Add "infix_p" argument.
92 (exp_print_tree): Update accordingly.
94 2002-04-28 Alan Modra <amodra@bigpond.net.au>
96 * Makefile.am (mpw): New maintainer mode rule to make mpw-*.c files.
97 * Makefile.in: Regenerate.
98 * mpw-elfmips.c: Delete.
99 * mpw-eppcmac.c: Delete.
101 * mpw-idtmips.c: Delete.
103 Wed Apr 17 19:23:14 2002 J"orn Rennecke <joern.rennecke@superh.com>
105 * emulparams/shelf32.sh (MACHINE): Now sh5.
107 2002-04-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
109 * ldgram.y: Fix syntax warning.
111 2002-04-11 Nick Clifton <nickc@cambridge.redhat.com>
113 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Add 'n' in order
114 to prevent "-n" from being taken as an abbreviation for
115 "--no-pipeline-knowledge".
117 2002-04-08 Alan Modra <amodra@bigpond.net.au>
119 * ldlang.c (lang_size_sections_1): Don't complain about
120 SEC_NEVER_LOAD sections having no memory region specified.
122 * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.
124 2002-04-07 matthew green <mrg@redhat.com>
126 * ld/configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
128 2002-04-04 Alan Modra <amodra@bigpond.net.au>
130 * dep-in.sed: Cope with absolute paths.
131 * Makefile.am (dep.sed): Subst TOPDIR and BFDDIR.
133 * Makefile.in: Regenerate.
135 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
137 * emulparams/elf64btsmip.sh: n64 replaces .reginfo with .MIPS.options.
139 2002-04-03 Jakub Jelinek <jakub@redhat.com>
141 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size
142 is smaller than maximum, round dot up to common page boundary.
144 2002-03-28 Alan Modra <amodra@bigpond.net.au>
146 * configure.host: Set up for generic hosts first, then tweak as
147 necessary in more specific targets.
148 (HOSTING_LIBS): Include libgcc_eh.a if found.
150 2002-03-23 Andreas Jaeger <aj@suse.de>
152 * emulparams/elf_x86_64.sh (COMMONPAGESIZE): Set it.
154 2002-03-21 Alan Modra <amodra@bigpond.net.au>
156 * Makefile.am: Run "make dep-am".
157 * Makefile.in: Regenerate.
159 2002-03-21 Albert Chin-A-Young <china@thewrittenword.com>
161 * genscripts.sh (LIB_SEARCH_DIRS): Quote path.
163 2002-03-20 Alan Modra <amodra@bigpond.net.au>
165 * ldlang.c (ldlang_add_undef): If the output bfd has been opened,
166 add the symbol to the linker hash table immediately.
167 (lang_place_undefineds): Split symbol creation out..
168 (insert_undefined): ..to here.
170 2002-03-18 David O'Brien <obrien@FreeBSD.org>
172 * emultempl/elf32.em: Use lbasename vs. basename to fix problem where
173 the contents of the buffer returned from basename function will are
174 getting overwritten while still being used.
176 Mon Mar 18 17:38:39 CET 2002 Jan Hubicka <jh@suse.cz>
177 Andreas Jaeger <aj@suse.de>
178 Andreas Schwab <schwab@suse.de>
180 * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native.
181 * elf_x86_64.sh (ARCH): Set to i386:x86-64
182 set libraries to default to lib64 paths.
184 2002-03-18 Tom Rix <trix@redhat.com>
186 * Makefile.am : Add eaix5ppc and eaix5rs6, AIX 5 support.
187 * configure.tgt : Same.
188 * emulparms/aix5ppc.sh : New file. For eaix5ppc.
189 * emulparms/aix5rs6.sh : New file. For eaix5rs6.
190 * emulparms/aixppc.sh : OUPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT
191 emulation parameters for better -b32, -b64 support.
192 * emulparms/aixrs6.sh : Same.
193 * emulparms/ppcmacos.sh : Same.
194 * emultempl/aix.em (choose_target) : Use new emulation parameters
195 OUTPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT.
196 * Makefile.in : Regenerate.
198 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
200 * po/fr.po: Updated version.
202 2002-03-18 Alan Modra <amodra@bigpond.net.au>
204 * ldmain.c (main): Move .text readonly flag fudges from here..
205 * ldlang.c (lang_process): ..to here.
207 2002-03-14 Alan Modra <amodra@bigpond.net.au>
209 * ldlang.c (lang_check): Remove the word size check added in last
210 change. Treat emitrelocations case as for relocatable links.
212 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
214 * po/fr.po: Updated version.
216 2002-03-13 Alan Modra <amodra@bigpond.net.au>
218 * ldlang.c (lang_check): Do relocatable link checks first, so that
219 warn_mismatch can't override. Check compatible and word size too.
221 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
223 * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
225 2002-03-05 Jakub Jelinek <jakub@redhat.com>
227 * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
230 2002-03-04 H.J. Lu <hjl@gnu.org>
232 * scripttempl/elf.sc: Put .preinit_array, .init_array and
233 .fini_array in the data segment.
235 2002-03-04 Alan Modra <amodra@bigpond.net.au>
237 * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
239 2002-03-01 David Mosberger <davidm@hpl.hp.com>
241 * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
242 .init_array, and .fini_array.
244 2002-02-20 Andreas Schwab <schwab@suse.de>
246 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
247 .IA64_unwind* in a relocatable link.
249 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
251 * NEWS: Mark 2.12 branch.
253 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
255 * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
256 * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
258 2002-02-18 Tom Rix <trix@redhat.com>
260 * emultempl/aix.em (gld*_parse_args): Add -brtl support.
261 (gld*_before_allocation): Same.
262 (gld*_create_output_section_statements): Generate
263 __rtinit if run time linking. Add librtl.a to the link.
264 (gld*_read_file): Clean.
266 2002-02-18 Alan Modra <amodra@bigpond.net.au>
268 * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
270 2002-02-18 David O'Brien <obrien@FreeBSD.org>
272 * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
273 eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
274 and eelf64alpha_fbsd.
275 * Makefile.in: Regenerate.
276 * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
277 x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
278 use a FreeBSD-specific emulation rather than the psABI one.
279 * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
280 for all FreeBSD ELF systems.
281 * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
283 * emulparams/elf32ppc_fbsd.sh: Likewise.
284 * emulparams/elf64_ia64_fbsd.sh: Likewise.
285 * emulparams/elf64_sparc_fbsd.sh: Likewise.
286 * emulparams/elf64alpha_fbsd.sh: Likewise.
287 * emulparams/elf_i386_fbsd.sh: Likewise.
288 * emulparams/elf_x86_64_fbsd.sh: Likewise.
290 2002-02-18 Nick Clifton <nickc@cambridge.redhat.com>
292 * po/tr.po: Updated version.
294 2002-02-18 Alan Modra <amodra@bigpond.net.au>
296 * ld.texinfo (Output Section Fill): Fix amateur texinfo.
299 2002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
301 * emultempl/mmo.em (mmo_after_open): Don't call
302 _bfd_mmix_check_all_relocs when producing ELF output.
304 2002-02-15 Richard Henderson <rth@redhat.com>
306 * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
307 definition. Emit a unop+nop pair.
309 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
311 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
312 for presence of .MMIX.reg_contents.linker_allocated before early
315 * NEWS: Mention support for MMIX.
317 2002-02-15 Alan Modra <amodra@bigpond.net.au>
319 Support arbitrary length fill patterns.
320 * ld.texinfo (Output Section Fill): Describe fill expressions.
321 (FILL): Refer to the above.
322 * ldexp.h (etree_value_type): Add "str" field.
323 (union etree_union): Add "str" to "value" struct.
324 (exp_bigintop): Declare.
325 (exp_get_fill): Declare.
326 * ldexp.c: Include "safe-ctype.h".
327 (exp_intop): Set value.str to NULL.
328 (exp_bigintop): New function.
329 (new_rel): Pass in "str", and set new.str from it.
330 (new_rel_from_section): Set new.str to NULL.
331 (fold_name): Adjust calls to new_rel.
332 (exp_fold_tree): Likewise.
333 (exp_get_fill): New function.
334 * ldgram.y (struct big_int bigint, fill_type *fill): New.
335 (INT): Returns a "bigint". Adjust all code handling INTs.
336 (fill_opt): Returns a "fill".
337 (fill_exp): Split out of fill_opt, use for FILL.
338 * ldlang.h (struct _fill_type): New.
339 (fill_type): Move typedef to ldexp.h.
340 (lang_output_section_statement_type): "fill" is now a pointer.
341 (lang_fill_statement_type): Likewise.
342 (lang_padding_statement_type): Likewise.
343 (lang_add_fill): Now takes a "fill_type *" param.
344 (lang_leave_output_section_statement): Likewise.
345 (lang_do_assignments): Likewise.
346 (lang_size_sections): Likewise.
347 (lang_leave_overlay_section): Likewise.
348 (lang_leave_overlay): Likewise.
349 * ldlang.c: Include ldgram.h after ldexp.h.
350 (lang_output_section_statement_lookup): Adjust for fill_type change.
351 (print_fill_statement): Likewise.
352 (print_padding_statement): Likewise.
353 (insert_pad): Now takes a "fill_type *" arg.
354 (size_input_section): Likewise.
355 (lang_size_sections_1): Likewise.
356 (lang_size_sections): Likewise.
357 (lang_do_assignments): Likewise.
358 (lang_add_fill): Likewise.
359 (lang_leave_output_section_statement): Likewise.
360 (lang_leave_overlay_section): Likewise.
361 (lang_leave_overlay): Likewise.
362 Adjust all callers of the above function.
363 * ldlex.l: Include ldgram.h after ldexp.h. Allow hex numbers
364 starting with "0X" as well as "0x". Return bigint.str for hex
365 numbers starting with "0x" or "0X", zero bigint.str otherwise.
366 Always use base 16 for numbers starting with "$".
367 * ldmain.c: Include ldgram.h after ldexp.h.
368 * ldwrite.c (build_link_order): Use bfd_data_link_order in place
369 of bfd_fill_link_order.
370 * pe-dll.c: Adjust lang_do_assignments calls.
371 * emultempl/elf32.em: Likewise.
372 * emultempl/hppaelf.em: Likewise.
373 * emultempl/ppc64elf.em: Likewise.
374 * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
375 lang_add_assignment call.
376 * emultempl/pe.em: Likewise.
378 2002-02-14 Phil Edwards <pme@gcc.gnu.org>
380 * ld.texinfo (VERSION scripts): Symbol names are globbing patterns.
381 * ldgram.y (lang_new_vers_regex): Rename to lang_new_vers_pattern;
382 the pattern in question is not a regexp.
383 * ldlang.c: Likewise.
384 * ldlang.h: Likewise.
385 * ldlex.l (V_IDENTIFIER): Allow '[', ']', '-', '!', and '^' also.
387 2002-02-12 Jakub Jelinek <jakub@redhat.com>
389 * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
390 * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
391 (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
392 * ldexp.c (exp_data_seg): New variable.
393 (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
394 (fold_binary): Handle DATA_SEGMENT_ALIGN.
395 (exp_fold_tree): Handle DATA_SEGMENT_END.
396 Pass allocation_done when recursing instead of hardcoding
397 lang_allocating_phase_enum.
398 * ldexp.h (exp_data_seg): New.
399 * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
400 (lang_size_sections): New.
401 * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
402 * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
403 if COMMONPAGESIZE is defined.
404 * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
405 * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
406 * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
407 * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
408 * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
411 2002-02-11 Alan Modra <amodra@bigpond.net.au>
413 * Makefile.in: Regenerate.
415 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
417 * lexsup.c: Remove strtoul declaration.
419 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
421 * ldmain.c: Add prototype for main ().
422 * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
423 * emultempl/lnk960.em (lnk960_choose_target): Function should
426 2002-02-10 Alan Modra <amodra@bigpond.net.au>
428 * ldlang.c (entry_section): New initialised variable.
429 (lang_finish): Use it.
430 * ldlang.h (entry_section): Declare.
431 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
432 entry_section to ".opd".
434 2002-02-09 Chris Demetriou <cgd@broadcom.com>
436 * ld.texinfo (Options): Add back in -nostdlib documentation,
437 which had been inadvertently removed.
439 2002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
441 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
442 register section vma to a sane value after emitting error. Make
443 fatal conditions cause program exit when emitting message.
445 2002-02-08 Ivan Guzvinec <ivang@opencores.org>
447 * configure.tgt: Add or32-*-rtems target.
449 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
452 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
453 * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
454 in OTHER_RELOCATABLE_SECTIONS.
455 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
456 * emulparams/shelf32.sh (STACK_ADDR): Define.
457 (OTHER_RELOCATABLE_SECTIONS): Renamed to...
458 (OTHER_SECTIONS): this. Removed stack settings.
459 * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
460 (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
461 2001-03-12 DJ Delorie <dj@redhat.com>
462 * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
463 relaxing if any shmedia or mixed sections are found.
464 2001-03-07 DJ Delorie <dj@redhat.com>
465 * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
466 einfo. Gracefully decline to output to non-elf formats.
467 2001-03-06 Hans-Peter Nilsson <hpn@redhat.com>
468 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
469 Default to _end aligned to next multiple of 0x40000, plus 0x40000.
470 * emulparams/shelf32.sh: Ditto.
471 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
472 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
474 2001-01-10 Ben Elliston <bje@redhat.com>
475 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
476 non-portable shell constructs. From Hans-Peter Nilsson.
477 2001-01-09 Hans-Peter Nilsson <hpn@cygnus.com>
478 * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
479 * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
480 dependencies to the shell script include chain.
481 * Makefile.in: Regenerate.
482 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
483 * emultempl/sh64elf.em: Update and tweak comments.
484 (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
485 make a .cranges section SEC_IN_MEMORY.
486 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
487 * emultempl/sh64elf.em
488 (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
489 .cranges section found to be necessary; continue and set stored
490 section contents flags for sections with non-mixed contents.
491 Use a struct sh64_section_data container and sh64_elf_section_data
492 to store contents-type flags.
493 Remove unused update of "isec".
494 (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
495 sections marked SHF_SH5_ISA32_MIXED. Use sh64_elf_section_data to
496 access contents-type flags. Assert that the associated container
497 is initialized. Use that container, not elf_gp_size, to hold size
498 of linker-generated cranges contents.
499 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
500 * emultempl/sh64elf.em
501 (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
502 there's already a .cranges section. When section flag difference
503 is found, don't NULL-check cranges a second time. Tweak comments.
504 (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
505 merging, not max size, as size of ld-generated .cranges contents.
506 Don't set ELF section flags in output section. When checking for
507 needed .cranges descriptors, don't use a variable; compare
508 incoming ELF section flags directly to SHF_SH5_ISA32_MIXED. Tweak
510 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
511 * emultempl/sh64elf.em: New file.
512 * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
513 * Makefile.in: Regenerate.
514 * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
515 (OTHER_RELOCATING_SECTIONS): Ditto.
516 (EXTRA_EM_FILE): New, set to sh64elf if not set.
517 * emulparams/shlelf32.sh: Stub out all settings except
518 OUTPUT_FORMAT. Source shelf32.sh.
519 * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
520 OTHER_RELOCATING_SECTIONS.
521 (OTHER_RELOCATING_SECTIONS): Remove .cranges.
522 * emulparams/shlelf64.sh: Stub out all settings except
523 OUTPUT_FORMAT. Source shelf64.sh.
524 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
525 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
527 (DATA_START_SYMBOLS): Define, provide ___data.
528 (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
529 for consecutive .data section.
530 (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
531 section after .data section.
532 * emulparams/shlelf64.sh: Ditto.
533 * emulparams/shelf32.sh: Ditto.
534 (ALIGNMENT): Define to 8.
535 * emulparams/shelf32.sh: Ditto.
536 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
537 * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
538 built-in linker scripts.
539 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
540 * emulparams/shlelf64.sh: New.
541 * emulparams/shelf64.sh: New.
542 * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
544 * Makefile.am: Add support for shlelf64 and shelf64.
545 * Makefile.in: Regenerate.
546 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
547 * configure.tgt (sh64-*-elf*): Add shelf as default.
548 Add shlelf to targ_extra_emuls.
549 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
550 * emulparams/shelf32.sh: New file.
551 * emulparams/shlelf32.sh: New file.
552 * Makefile.am: Add support for shlelf32 and shelf32.
553 * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
554 * Makefile.in: Regenerate.
556 2002-02-05 Hans-Peter Nilsson <hp@axis.com>
558 * ldlang.c (lang_reset_memory_regions): Rename from
559 reset_memory_regions. Change all callers. Make public.
560 * ldlang.h (lang_reset_memory_regions): Prototype.
561 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
562 lang_reset_memory_regions before lang_size_sections.
563 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
564 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
566 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
568 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
569 arithmetic when checking for too many global registers.
571 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
573 * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
574 (ehppanbsd.c): New rule.
575 * Makefile.in: Regenerate.
576 * configure.tgt (hppa*-*-netbsd*): New target.
577 * emulparams/hppalinux.sh: Add comment to check other files
578 that source this file it is modified, and list which
580 * emulparams/hppanbsd.sh: New file.
582 2002-02-01 Geoffrey Keating <geoffk@redhat.com>
584 * scripttempl/xstormy16.sc: Don't allocate extra space for the
587 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
589 Support on-demand global register allocation from
590 R_MMIX_BASE_PLUS_OFFSET relocs.
591 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
592 mmix_set_reg_section_vma. Call
593 _bfd_mmix_finalize_linker_allocated_gregs.
594 (mmix_before_allocation): New function.
595 (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
596 (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
597 * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
598 (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
599 before .MMIX.reg_contents.
600 * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
601 (mmo_after_open): New function.
602 (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
603 * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting. Add
604 .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
606 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
608 * emulparams/or32.sh: New file.
609 * emulparams/or32elf.sh: New file.
610 * scripttempl/or32.sc: New file.
611 * configure.tgt : Add support for or32.
612 * configure: Regenerate
613 * Makefile.am: Add support for or32.
614 * Makefile.in: Regenerate.
615 * NEWS: Mention support for or32.
616 * po/ld.pot: Regenerate.
618 2002-01-29 Chris Demetriou <cgd@broadcom.com>
619 Mitch Lichtenberg <mpl@broadcom.com>
621 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
622 * emultempl/mipself.em: New file to handle MIPS ELF embedded
623 reloc creation (ld --embedded-relocs).
625 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
627 * configure: Regenerated.
629 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
631 * Makefile.am (install): Depend on install-info.
632 * Makefile.in: Regenerate.
634 2002-01-26 Christian Rose <menthos@menthos.com>
636 * ldmain.c (main): Use full sentences to ease translation.
638 2002-01-26 Nick Clifton <nickc@cambridge.redhat.com>
640 * po/fr.po: Updated version.
642 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
644 * po/es.po: Updated version.
646 2002-01-25 Andreas Jaeger <aj@suse.de>
648 * ldlex.l (yy_input): Correct error check.
650 2002-01-25 Alan Modra <amodra@bigpond.net.au>
652 * ldmisc.c (demangle): Put back dots when string not demangled.
654 2002-01-22 Richard Henderson <rth@redhat.com>
656 * emulparams/elf64alpha.sh (NOP): Use unop.
658 2002-01-21 Andreas Jaeger <aj@suse.de>
660 * ldlex.l: Use fread instead of read.
662 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
664 * configure.tgt (ia64-*-netbsd*): New target.
666 2002-01-21 H.J. Lu <hjl@gnu.org>
668 * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
670 * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
672 2002-01-18 Andreas Jaeger <aj@suse.de>
674 * ldver.c (ldversion): Update year.
676 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
678 * po/ld.pot: Regenerate.
680 2002-01-16 Alan Modra <amodra@bigpond.net.au>
682 * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
683 * Makefile.in: Regenerate.
684 * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
685 * emultempl/ppc64elf.em: New file.
687 2002-01-15 DJ Delorie <dj@redhat.com>
689 * scripttempl/pe.sc: Add support for constructor priorities.
691 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
693 * emulparams/avr1200.sh (DATA_START): Define as 0x60.
694 * emulparams/avr23xx.sh: Likewise.
695 * emulparams/avr4433.sh: Likewise.
696 * emulparams/avr44x4.sh: Likewise.
697 * emulparams/avr85xx.sh: Likewise.
698 * emulparams/avrmega103.sh: Likewise.
699 * emulparams/avrmega161.sh: Likewise.
700 * emulparams/avrmega603.sh: Likewise.
701 * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
703 2002-01-08 Alexandre Oliva <aoliva@redhat.com>
705 * ldlang.c (walk_wild_section): Exclude object file if enclosing
708 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
710 * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
711 (eshelf_nbsd.c): New rule.
712 (eshlelf_nbsd.c): New rule.
713 * Makefile.in: Regenerate.
714 * configure.tgt (sh*le-*-netbsdelf*): New target.
715 (sh*-*-netbsdelf*): New target.
716 * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
717 * ld/emulparams/shelf_nbsd.sh: New emulation.
718 * ld/emulparams/shlelf_nbsd.sh: New emulation.
720 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
722 * po/es.po: New file: Spanish translation.
723 * configure.in (ALL_LINGUAS): Add es.
724 * configure: Regenerate.
726 2002-01-06 John Marshall <jmarshall@acm.org>
728 * ld.texinfo: Note that --emit-relocs is currently only
731 2002-01-05 Alan Modra <amodra@bigpond.net.au>
733 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
734 of bfd_section_list_remove and bfd_section_list_insert macros.
735 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
736 * emultempl/mmo.em (mmo_place_orphan): Likewise.
738 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
740 * configure.tgt (x86_64-*-netbsd*): New target.
742 2001-12-21 Tom Rix <trix@redhat.com>
744 (gld*_create_output_section_statements): New function.
745 For -binitfini support.
746 * emultempl/aix.em (gld*_before_parse): Fix comment.
747 * emultempl/aix.em (gld*_parse_args): Fix comment.
749 2001-12-20 Jason Thorpe <thorpej@wasabisystems.com>
751 * configure.tgt (mips*-dec-netbsd*): Delete alias for
753 (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
755 * configure.tgt (arm-*-netbsdelf*): Add target.
756 (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
757 * emulparams/armelf_nbsd.sh: Added.
758 * Makefile.am: Add rules for earmelf_nbsd.
759 * Makefile.in: Regenerate.
761 2001-12-19 Andreas Jaeger <aj@suse.de>,
762 Susanne Oberhauser <froh@suse.de>
764 * configure.host: Add rules for x86_64-*linux-gnu. Change
765 s390x-linux entry to use gcc to report configuration, replace gcc
766 with $CC in s390-linux
768 2001-12-19 Andreas Jaeger <aj@suse.de>
770 * ld.texinfo (VERSION): Fix markup.
772 2001-12-18 matthew green <mrg@eterna.com.au>
774 * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
775 (m68kelfnbsd.c): New rule.
776 * Makefile.in: Regenerate.
777 * configure.tgt (m68*-hp-netbsd*): Renamed to ..
778 (m68*-*-netbsd*4k*): .. this.
779 (m68*-*-netbsdelf*): New target.
780 (m68*-*-netbsd*): Also include ELF support.
781 (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
782 * emulparams/m68kelfnbsd.sh: New emulation.
784 2001-12-18 Jakub Jelinek <jakub@redhat.com>
786 * ldgram.y (vers_node): Support anonymous version tags.
787 * ldlang.c (lang_register_vers_node): Ensure anonymous version
788 tag is not defined together with non-anonymous versions.
789 * ld.texinfo: Document it.
791 2001-12-18 Nick Clifton <nickc@cambridge.redhat.com>
793 * po/tr.po: New file: Turkish translation.
794 * configure.in (ALL_LINGUAS): Add tr.
795 * configure: Regenerate.
797 2001-12-17 Jason Thorpe <thorpej@wasabisystems.com>
799 * Makefile.am: Add rules for eelf64alpha_nbsd.
800 * Makefile.in: Regenerate.
801 * configure.tgt (alpha*-*-netbsd*): Set
802 targ_emul to elf64alpha_nbsd.
803 * emulparams/elf64alpha_nbsd.sh: Added.
805 2001-12-17 Alan Modra <amodra@bigpond.net.au>
807 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
808 section_tail when fiddling with section list.
809 (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
810 broken into separate strings to make translation easier.
811 * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
812 fiddling with section list.
813 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
815 2001-12-16 Hans-Peter Nilsson <hp@bitrange.com>
817 * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
819 2001-12-15 Alan Modra <amodra@bigpond.net.au>
821 * ldmain.c (main): Initialise link_info.eh_frame_hdr.
823 2001-12-13 Jakub Jelinek <jakub@redhat.com>
825 * emultempl/elf32.em (finish): Supply output_bfd
826 to bfd_elf*_discard_info.
827 (OPTION_EH_FRAME_HDR): Define.
828 (longopts): Add --eh-frame-hdr.
829 (parse_args): Handle it.
830 (list_options): Add --eh-frame-hdr to help.
831 * emultempl/hppaelf.em (finish): Supply output_bfd
832 to bfd_elf*_discard_info.
833 * scripttempl/elf.sc (.eh_frame_hdr): Add.
835 2001-12-13 Alan Modra <amodra@bigpond.net.au>
837 * lexsup.c (parse_args): Don't pass shortopts to second call to
838 getopt functions. Restore optind rather than decrementing before
839 second call. Remove errind as it now duplicates last_optind.
841 2001-12-11 Christopher Faylor <cgf@redhat.com>
843 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
845 2001-12-07 Geoffrey Keating <geoffk@redhat.com>
846 Richard Henderson <rth@redhat.com>
848 * Makefile.am: Add support for xstormy16.
849 * configure.tgt: Add support for xstormy16.
850 * Makefile.in: Regenerate.
851 * emulparams/elf32xstormy16.sh: New file.
852 * scripttempl/xstormy16.sc: New file.
854 2001-10-01 Christopher Faylor <cgf@cygnus.com>
856 * Makefile.in (LIB_PATH): Make configurable.
857 (GENSCRIPTS): Set LIB_PATH in environment.
858 * configure.in: Substitute LIB_PATH.
859 * configure: Regenerate.
860 * configure.tgt (*cygwin): Set LIB_PATH for cross build.
861 * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
863 2001-12-07 Nick Clifton <nickc@cambridge.redhat.com>
865 * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
866 describing the -N option so that it is easier to translate into
869 2001-12-05 Nick Clifton <nickc@cambridge.redhat.com>
871 * emultempl/pe.em (..._list_options): Replace multiple fprintf
872 statements describing a single option with a single, newline
873 escaped fprintf. This allows better translation into other
876 * ldmain.c (add_archive_element): Combine multiple strings
877 into a single string to permit better translation into other
880 2001-12-05 Tom Rix <trix@redhat.com>
882 * Makefile.am: Remove eaixppc64.
883 * Makefile.in: Regenerate.
885 2001-12-04 Tom Rix <trix@redhat.com>
887 * emultempl/aix.em (choose_target): Change default target to
888 OUTPUT_FORMAT for ppcmacos. Add braces to remove compiler
890 (gld*_read_file): Fix typo.
891 (change_symbol_mode): Add prototype.
894 * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
895 * emulparams/aixrs6.sh : Same.
896 * emulparams/ppcmacos.sh : Same.
897 * emulparams/aixppc64.sh : Delete file.
898 * emultempl/aix.em : Formatting changes.
900 2001-12-04 Hans-Peter Nilsson <hp@axis.com>
902 * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
903 (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
905 (OTHER_END_SYMBOLS): Fix formatting.
906 * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
907 (OTHER_END_SYMBOLS): Fix formatting.
909 2001-12-04 Alan Modra <amodra@bigpond.net.au>
911 * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
913 2001-12-02 Tom Rix <trix@redhat.com>
915 * configure.tgt : Remove eaixppc64 emulations.
916 * Makefile.in : Remove eaixppc64.c
917 * ldemul.c (ldemul_choose_target): New parameters argc, argv.
918 (ldemul_default_target): Same.
919 * emultempl/gld960.em (gld960_choose_target): Same.
920 * emultempl/gld960c.em (gld960_choose_target): Same.
921 * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
922 * emultempl/aix.em (is_syscall): syscall_mask now a variable.
923 * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
924 * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
925 * emultempl/aix.em (choose_target): New function. Handle emulation of
928 2001-11-27 H.J. Lu <hjl@gnu.org>
930 * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
931 * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
932 * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
933 * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
934 * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
935 * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
936 * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
937 * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
939 * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
942 (REL_SDATA): Likewise.
943 (REL_SBSS): Likewise.
944 (REL_SDATA2): Likewise.
945 (REL_SBSS2): Likewise.
946 (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
949 2001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
951 * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
953 * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
955 2001-11-22 H.J. Lu <hjl@gnu.org>
957 * Makefile.in: Regenerated with automake based on automake
960 2001-11-22 Alan Modra <amodra@bigpond.net.au>
962 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
963 (config.status): Delete rule.
964 Add extra dependencies to cover sourced emulparams files.
965 * Makefile.in: Regenerate.
967 * scripttempl/elf.sc: Order <section>, <section>.* and
968 corresponding linkonce sections as seen in input files.
969 Formatting fixes. Zero vma of all sections if not relocating.
970 (STACK): Define and insert if STACK_ADDR defined.
971 (OTHER_RELOCATING_SECTIONS): Delete.
972 (OTHER_END_SYMBOLS): Define.
973 (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
974 (OTHER_READWRITE_SECTIONS): Likewise.
975 (OTHER_GOT_SECTIONS): Likewise.
976 (OTHER_SDATA_SECTIONS): Likewise.
977 (OTHER_BSS_SECTIONS): Likewise.
978 * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
979 (OTHER_READWRITE_SECTIONS): Likewise.
980 * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
981 (OTHER_READWRITE_SECTIONS): Likewise
983 * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
984 (STACK_ADDR): Define.
985 * emulparams/armelf_oabi.sh: As for armelf.sh.
986 * emulparams/elf32mcore.sh: As for armelf.sh.
987 * emulparams/h8300elf.sh: As for armelf.sh.
988 * emulparams/mn10200.sh: As for armelf.sh.
989 * emulparams/shelf.sh: As for armelf.sh.
991 * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
992 (OTHER_END_SYMBOLS): Define.
993 * emulparams/m32relf.sh: As for elf32fr30.sh.
994 * emulparams/h8300helf.sh: As for elf32fr30.sh.
995 * emulparams/h8300self.sh: As for elf32fr30.sh.
997 * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
998 defines with RELOCATING test.
999 (OTHER_SDATA_SECTIONS): Likewise.
1000 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
1001 (OTHER_END_SYMBOLS): ..this.
1002 * emulparams/crislinux.sh: As for criself.sh.
1004 * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
1006 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
1007 (OTHER_SECTIONS): ..this. Zero vma if not relocating. Order
1008 normal and linkonce sections as seen in input files.
1009 * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
1010 (TEXT_DYNAMIC): Likewise.
1011 (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
1012 (OTHER_SDATA_SECTIONS): Likewise.
1013 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
1014 * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
1015 * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
1016 * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
1017 * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
1018 (OTHER_PLT_RELOC_SECTIONS): Likewise.
1019 (OTHER_READONLY_SECTIONS): Likewise. Order normal and linkonce
1020 sections as seen in input files.
1021 * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
1022 * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
1024 (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
1025 (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
1026 * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
1027 (OTHER_SECTIONS): Instead, use this..
1028 (OTHER_END_SYMBOLS): ..and this.
1030 * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
1031 * emulparams/elf32bsmip.sh: Likewise.
1032 * emulparams/elf32btsmip.sh: Likewise.
1033 * emulparams/elf32ebmip.sh: Likewise.
1034 * emulparams/elf32lmip.sh: Likewise.
1035 * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
1036 * emulparams/elf32lsmip.sh: Likewise.
1037 * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
1038 * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
1039 * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
1040 * emulparams/elf64btsmip.sh: Likewise.
1041 * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
1042 * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
1043 * emulparams/elf32ppclinux.sh: Likewise.
1044 * emulparams/elf32ppcsim.sh: Likewise.
1045 * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
1046 * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
1047 * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
1048 * emulparams/h8300self.sh: Likewise.
1049 * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
1050 * emulparams/sh.sh: Comment.
1051 * emulparams/shl.sh: Source sh.sh, remove duplicates.
1052 * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
1053 * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
1055 2001-11-21 David Heine <dlheine@tensilica.com>
1056 Alan Modra <amodra@bigpond.net.au>
1058 * ldlang.c (map_input_to_output_sections): Replace "break"
1059 accidentally removed with 2001-08-03 change.
1060 (lang_gc_sections_1): Likewise.
1062 2001-11-21 Alan Modra <amodra@bigpond.net.au>
1064 * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
1066 2001-11-20 Angela Marie Thomas <angela@redhat.com>
1068 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
1069 of false when calling lang_size_sections.
1070 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
1072 2001-11-15 Alan Modra <amodra@bigpond.net.au>
1074 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
1075 function when LDEMUL_FINISH isn't set to the same name. Don't
1076 call ${LDEMUL_FINISH}.
1077 (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
1078 * emultempl/armelf.em (arm_elf_finish): Call
1079 gld${EMULATION_NAME}_finish.
1080 * emultempl/hppaelf.em (hppaelf_finish): Rename to
1081 gld${EMULATION_NAME}_finish. Call bfd_elf32_discard_info and
1082 hppaelf_layout_sections_again if necessary.
1083 (need_laying_out): New var.
1084 (hppaelf_layaout_sections_again): Rename to
1085 hppaelf_layout_sections_again. Clear need_laying_out.
1086 (PARSE_AND_LIST_OPTIONS): Format text.
1088 2001-11-14 H.J. Lu <hjl@gnu.org>
1090 * emultempl/armelf.em (arm_elf_finish): Renamed from
1091 gld${EMULATION_NAME}_finish.
1092 (LDEMUL_FINISH): Set to arm_elf_finish.
1094 2001-11-14 Daniel Jacobowitz <drow@mvista.com>
1096 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
1097 (struct ld_emulation_xfer_struct): Use it.
1099 2001-11-13 Ross Alexander <ross.alexander@uk.neceur.com>
1101 * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
1102 additional symbols referenced by newer crt0.o files from HP.
1104 2001-11-12 Anthony Green <green@redhat.com>
1106 * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
1108 2001-11-12 Alfred M. Szmidt <ams@kemisten.nu>
1110 * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
1111 * Makefile.in: Regenerate.
1113 2001-11-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1115 * ld.texinfo: Use @command for commands, @option for options.
1116 * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
1118 * Makefile.in: Rebuild.
1120 2001-11-04 Chris Demetriou <cgd@broadcom.com>
1122 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
1123 Add support for targets.
1125 2001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
1127 * configure.in (ALL_LINGUAS): Add "fr" and "sv"
1128 * configure: Regernate.
1129 * po/fr.po: New file.
1130 * po/sv.po: New file.
1132 2001-11-01 NIIBE Yutaka <gniibe@m17n.org>
1134 * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
1135 as little endian default and to support big endian.
1137 2001-11-01 Chris Demetriou <cgd@broadcom.com>
1139 * ld.texinfo (Options): Document new option, -nostdlib.
1140 * lexsup.c (OPTION_NOSTDLIB): New definition.
1141 (ld_options): Add entry for "nostdlib".
1142 (parse_args): Handle OPTIONS_NOSTDLIB.
1143 * ldfile.c (ldfile_add_library_path): Don't add directories
1144 to the search path if they weren't specified on the command line
1145 and -nostdlib was specified.
1146 * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
1148 2001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
1150 * lexsup.c (parse_args): Prevent infinite parsing loop when
1151 "-rpath.a" is specified on the command line.
1152 Replace calls to fprintf with calls to einfo.
1154 2001-10-31 John Marshall <jmarshall@acm.org>
1156 * ld.texinfo: A historical requirement that MEMORY and SECTIONS
1157 appear only once across all the linker scripts involved in a link
1158 invocation no longer applies. Make the documentation reflect
1161 2001-10-31 NIIBE Yutaka <gniibe@m17n.org>
1163 * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
1165 (sh-*-linux*): Added targ_extra_libpath.
1167 2001-10-31 David Heine <dlheine@tensilica.com>
1169 * ldlang.c (lang_size_sections): Keep a valid output_offset field
1170 for padding statements.
1172 2001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
1174 * configure.tgt (mmix-*-*): New target.
1175 * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
1176 Add dependencies to match.
1177 * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
1178 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
1179 scripttempl/mmo.sc: New files.
1180 * gen-doc.texi: @set MMIX.
1181 * ld.texinfo: Ditto.
1182 [MMIX] Add MMIX node.
1183 * Makefile.in: Regenerate.
1185 2001-10-29 Kazu Hirata <kazu@hxi.com>
1187 * ldlang.c: Fix a comment typo.
1189 2001-10-23 Alan Modra <amodra@bigpond.net.au>
1191 * configure.host: Move alpha*-*-linux-gnu* entry to generic
1192 entries, and match *-*-linux*.
1194 2001-10-20 Alan Modra <amodra@bigpond.net.au>
1196 * ldgram.y (mri_script_command): Surround processing of INCLUDE
1197 with ldlex_script, ldlex_popstate.
1198 (ifile_p1): Likewise.
1199 * ldlex.l (EOF): Don't BEGIN(SCRIPT). Restore lineno from the
1201 (lex_push_file): Save current lineno to lineno_stack. Set lineno
1202 to 1. Don't BEGIN(SCRIPT).
1203 (lex_redirect): Similarly.
1204 * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
1206 2001-10-20 Nick Clifton <nickc@cambridge.redhat.com>
1208 * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
1209 __EH_FRAME_END__ and accept eh frames into data section.
1210 Add ctor and dtor sections.
1212 2001-10-19 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1214 * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
1215 (auto-export): Fix indentation.
1217 2001-10-18 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1219 * pe-dll.c (autofilter_objectlist): Add startup objects
1221 (auto-export): Constify char * p.
1222 Extract file basename and use strcmp rather than ststr
1225 2001-10-18 Chris Demetriou <cgd@broadcom.com>
1227 * ldmain.c (get_emulation): Improve comment about the handling
1230 2001-10-17 Alan Modra <amodra@bigpond.net.au>
1232 * po/POTFILES.in: Regenerate.
1234 2001-10-16 Vassili Karpov <malc@pulsesoft.com>
1236 * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
1237 -z nocopyreloc and -z nocombreloc usage strings.
1239 2001-10-12 Vassili Karpov <malc@pulsesoft.com>
1241 * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
1244 2001-10-11 Aleksey Romanov <aromanov@ennovatenetworks.com>
1246 * scripttempl/armaout.sc: Place .bss section after end of aligned
1247 data section to match behaviour of aout code in constructrion of
1250 2001-10-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1252 * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
1253 startup files for mingw32 dlls to list.
1255 2001-10-10 Chris Demetriou <cgd@broadcom.com>
1257 * emultempl/elf32.em: Fix shell 'if' usage for portability.
1259 2001-10-08 Aldy Hernandez <aldyh@redhat.com>
1261 * configure.tgt (targ): Add arm9e-*-elf.
1263 2001-10-05 H.J. Lu <hjl@gnu.org>
1265 * genscripts.sh: Fix a typo in the last change.
1267 2001-10-05 Jakub Jelinek <jakub@redhat.com>
1269 * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
1270 -z nocombreloc in usage.
1272 2001-10-03 Jim Blandy <jimb@redhat.com>
1274 * genscripts.sh: Include a comment at the top of each generated
1275 script, explaining its purpose.
1277 2001-10-03 Vassili Karpov <malc@pulsesoft.com>
1279 * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
1280 * NEWS: Mention -z nocopyreloc.
1281 * ld.texinfo (Options): Describe nocopyreloc.
1283 2001-10-03 Alan Modra <amodra@bigpond.net.au>
1285 * configure: Regenerate.
1287 2001-10-02 Alan Modra <amodra@bigpond.net.au>
1289 * ldver.h (ld_program_version): Remove declaration.
1290 * lexsup.c (parse_args): Move printing of copyright message..
1291 * ldver.c (ldversion): .. to here.
1292 Use BFD_VERSION_STRING in place of BFD_VERSION.
1293 (ld_program_version): Remove.
1294 * Makefile.am (Makefile): Depend on bfd/configure.in.
1296 * Makefile.in: Regenerate.
1298 2001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
1300 * Makefile.am: Update dependencies with "make dep-am".
1301 * Makefile.in: Regenerate.
1303 2001-09-29 John Reiser <jreiser@BitWagon.com>
1305 * ldlang.c (lang_common): Conditionally inhibit Common allocation.
1306 * lexsup.c: Add --no-define-common commandline option.
1307 * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
1308 * ldlex.l: Likewise.
1309 * ld.h: Add command_line.inhibit_common_definition.
1310 * ldmain.c (main): Initialize.
1311 * ld.texinfo: Document.
1313 2001-09-26 Alan Modra <amodra@bigpond.net.au>
1315 * ldmisc.c (USE_STDARG): Remove.
1316 (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
1321 * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
1322 declarations. Update copyright.
1324 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
1326 * pe-dll.c: Remove obsoleted declaration of
1327 pe_get_data_import_dll_name.
1328 (pe_create_import_fixup): Fix thinko.
1330 * ld.texinfo(enable-auto-import): Clarify the explanation.
1332 2001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
1334 * pe-dll.c (pe_create_import_fixup): Revert previous patch.
1335 * emultemp/pe.em (pe_data_import_dll): Move definition outside of
1336 DLL_SUPPORT controlled code.
1338 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
1340 * emultempl/pe.em(pe_data_import_dll): Make static.
1341 (pe_get_data_import_dll_name): New accessor function.
1342 * pe-dll.c(pe_create_import_fixup): call
1343 pe_get_data_import_dll_name() from pe.em, instead of
1344 directly accessing pe_data_import_dll variable from pe.em.
1346 2001-09-18 Bruno Haible <haible@clisp.cons.org>
1348 * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
1349 (def_file_add_directive): Use ISSPACE instead of isspace.
1350 (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
1351 isdigit/isxdigit/isalpha/isalnum.
1352 * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
1353 (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
1354 * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
1355 (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
1357 * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
1358 (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
1360 * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
1361 (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
1362 * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
1363 (ctor_prio): Use ISDIGIT instead of isdigit.
1364 * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
1365 (ldfile_open_file_search): Use ISALPHA instead of isalpha.
1366 (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
1368 * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
1369 (stricpy): Use TOLOWER instead of isupper/tolower.
1370 (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
1371 * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
1372 (lex_warn_invalid): Use ISPRINT instead of isprint.
1373 * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
1374 (main): For gettext, also set the LC_CTYPE locate facet.
1375 (add_keepsyms_file): Use ISSPACE instead of isspace.
1376 * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
1377 (is_num, parse_args): Use ISDIGIT instead of isdigit.
1378 * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
1379 (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
1380 * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
1381 (gldppcmacos_read_file): Use ISSPACE instead of isspace.
1382 * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
1383 (quoteput): Use ISSPACE instead of isspace.
1384 (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
1387 2001-09-18 Alan Modra <amodra@bigpond.net.au>
1389 * deffilep.y (def_stash_module): Constify "name" param.
1391 * pe-dll.c: Replace CONST with const throughout.
1392 (quick_symbol): Constify "n1", "n2", "n3" params.
1393 (make_singleton_name_thunk): Constify "import" param. Make
1394 "buffer_len" a size_t.
1395 (make_import_fixup_entry): Constify "name", "fixup_name",
1396 "dll_symname" params.
1397 (pe_get16): Cast args of bfd_seek. Replace bfd_read with bfd_bread.
1398 (pe_get32): Likewise.
1399 (pe_implied_import_dll): Likewise.
1401 * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
1402 (sort_by_section_name): Likewise.
1404 * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
1405 (make_import_fixup): Cast printf arg, rel->address to long rather
1407 (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
1409 2001-09-15 Alan Modra <amodra@bigpond.net.au>
1411 * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
1412 defines BufferSize. Increase buffer size by one.
1414 2001-09-14 Ralf Habacker <Ralf.Habacker@freenet.de>
1416 * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
1418 2001-09-14 Kevin Lo <kevlo@openbsd.org>
1420 * configure.tgt: Add arm-openbsd target.
1422 2001-09-12 H.J. Lu <hjl@gnu.org>
1424 * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
1426 (ALL_64_EMULATIONS): Here.
1427 * Makefile.in: Regenerated.
1429 2001-09-12 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
1431 * emultempl/pe.em(make_import_fixup): change signature to
1432 take asection as well as arelec; we need this for proper
1433 error reporting. Only call pe_create_import_fixup() if
1434 there is no attempt to add a constant addend to the reloc;
1435 otherwise, report error condition.
1436 * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
1437 since final argument is a pointer to make_import_fixup().
1438 Change call to cb() to match make_import_fixup() signature.
1439 (make_import_fixup_mark): make buffer_len unsigned.
1440 * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
1442 2001-09-12 Charles Wilson <cwilson@ece.gatech.edu>
1444 * ld.texinfo: add verbose documentation for auto-import
1445 direct-addressing workaround, to compliment the terse
1448 2001-09-12 Andrew MacLeod <amacleod@redhat.com>
1450 * scripttempl/v850.sc: Add gcc_except_table sections.
1452 2001-09-11 Jeffrey A Law (law@cygnus.com)
1454 * emulparams/h8300helf.sh: Move stack to a much higher memory address.
1455 * emulparams/h8300self.sh: Similarly.
1457 2001-09-05 Danny Smith <dannysmith@users.souceforge.net>
1459 * ld.texinfo (Options, --stack): Correct default value for stack
1462 2001-09-05 Tom Rix <trix@redhat.com>
1464 * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
1466 2001-09-03 Andreas Jaeger <aj@suse.de>
1468 * emultempl/beos.em: Declare prototypes for comparions functions,
1471 2001-09-02 Andreas Jaeger <aj@suse.de>
1473 * emultempl/aix.em: Add missing prototype.
1474 * emultempl/lnk960.em: Likewise.
1475 * emultempl/vanilla.em: Likewise.
1476 * emultempl/armcoff.em: Likewise.
1477 * emultempl/armelf_oabi.em: Likewise.
1478 * emultempl/beos.em: Likewise.
1479 * emultempl/gld960c.em: Likewise.
1480 * emultempl/gld960.em: Likewise.
1482 * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
1483 for prototype declaration.
1485 2001-08-31 Eric Christopher <echristo@redhat.com>
1486 Jason Eckhardt <jle@redhat.com>
1488 * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
1490 2001-08-31 Andreas Jaeger <aj@suse.de>
1492 * emultempl/pe.em: Add missing prototypes.
1493 (gld_${EMULATION_NAME}_after_open): Remove extra args to
1494 pe_find_data_imports.
1495 (pr_sym): Add unused attribute.
1497 2001-08-29 Joel Sherrill <joel@OARcorp.com>
1499 * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
1500 default from coff to elf.
1502 2001-08-29 Jeff Law <law@redhat.com>
1504 * emulparams/h8300helf.sh: Resync with h8300elf.sh. Update
1506 * emulparams/h8300self.sh: Similarly.
1508 2001-08-28 J"orn Rennecke <amylaar@redhat.com>
1510 * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
1512 (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
1513 * configure.tgt (h8300-*-elf*): New case.
1514 * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
1515 * emulparams/h8300self.sh: New file.
1516 * Makefile.in: Regenerated.
1518 2001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
1520 * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
1523 2001-08-27 Linus Nordberg <linus@swox.com>
1524 Alan Modra <amodra@bigpond.net.au>
1526 * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
1527 (eelf64ppc.c, eelf64lppc.c): Add make targets.
1529 * Makefile.in: Regenerate.
1530 * configure.tgt: Add powerpc64 support. Move pdp11, pjl, pj
1531 entries to correct alphabetical position.
1532 * emulparams/elf64ppc.sh: New.
1533 * emulparams/elf64lppc.sh: New.
1535 2001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
1537 * ldmain.c (main): Declare BSIZE as static.
1539 2001-08-23 Jakub Jelinek <jakub@redhat.com>
1541 * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
1542 into .rel.dyn resp. .rela.dyn if combreloc.
1543 (get_script): If .x linker script is equal to .xn, only put it
1544 once into the binary.
1545 Add .xc and .xsc scripts.
1546 (parse_args): Handle -z combreloc and -z nocombreloc.
1547 * scripttempl/elf.sc (.rela.sbss): Fix a typo.
1548 For .xc and .xsc scripts put all .rel* or .rela* input sections
1549 but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
1550 * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
1552 Strip trailing whitespace from script.
1553 Generate .xc and .xsc scripts if requested.
1554 * ldmain.c (main): Initialize link_info.combreloc and
1555 link_info.spare_dynamic_tags.
1556 * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
1557 (ld_options): Add --spare-dynamic-tags option.
1558 (parse_args): Likewise.
1559 * ld.texinfo: Document -z combreloc and -z nocombreloc.
1560 * ldint.texinfo: Document .xc and .xsc linker scripts.
1561 * NEWS: Add notes about -z combreloc and SHF_MERGE.
1563 2001-08-22 H.J. Lu <hjl@gnu.org>
1565 * emulparams/elf32fr30.sh: Add a newline.
1567 2001-08-21 Andreas Jaeger <aj@suse.de>
1569 * deffilep.y: Add missing prototypes.
1570 * pe-dll.c: Likewise.
1572 2001-08-20 Alan Modra <amodra@bigpond.net.au>
1574 * ldlang.c (insert_pad): Fix typos in last patch.
1576 * ldlang.c: When traversing lang_statement_union_type lists,
1577 consistently use "header.next" rather than "next".
1578 * mpw-eppcmac.c: Likewise.
1579 * emultempl/beos.em: Likewise.
1580 * emultempl/hppaelf.em: Likewise.
1581 * emultempl/pe.em: Likewise.
1582 * ldlang.h (union lang_statement_union): Remove "next" field.
1584 * ldlang.c (insert_pad): Use offsetof macro.
1585 (lang_size_sections): Always neuter padding statements.
1586 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
1588 * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
1589 passed to lang_size_sections.
1590 (pe_exe_fill_sections): Likewise.
1591 * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
1592 (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
1594 2001-08-18 Alan Modra <amodra@bigpond.net.au>
1596 * emultempl/aix.em: Formatting fixes.
1598 2001-08-18 Alan Modra <amodra@bigpond.net.au>
1600 * ldlang.c (insert_pad): Make use of an existing pad statement if
1601 available. Move code calculating alignment, adjusting section
1602 alignment power, and adjusting dot to ..
1603 (size_input_section): .. here. Remove unused relax param.
1604 (lang_size_sections): Change boolean `relax' param to boolean *.
1605 Adjust call to size_input_section. Make use of insert_pad to
1606 place pad after the assignment statement. If relaxing, zap
1608 (reset_memory_regions): Reset output_bfd section sizes too.
1609 (relax_again): Move to..
1610 (lang_process): ..here. Adjust call to lang_size_sections, and
1611 remove duplicated code.
1612 * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
1614 2001-08-17 Alan Modra <amodra@bigpond.net.au>
1616 * ld.texinfo: Document that fill values now use the four least
1618 * emulparams/elf32fr30.sh (NOP): Update.
1619 * emulparams/elf32mcore.sh: Likewise.
1620 * emulparams/elf64_s390.sh: Likewise.
1621 * emulparams/elf_i386.sh: Likewise.
1622 * emulparams/elf_i386_be.sh: Likewise.
1623 * emulparams/elf_i386_chaos.sh: Likewise.
1624 * emulparams/elf_i386_ldso.sh: Likewise.
1625 * emulparams/elf_s390.sh: Likewise.
1626 * emulparams/elf_x86_64.sh: Likewise.
1627 * emulparams/i386moss.sh: Likewise.
1628 * emulparams/i386nw.sh: Likewise.
1629 * emulparams/m68kelf.sh: Likewise.
1630 * scripttempl/elf.sc: Update NOP comment.
1631 * scripttempl/elfi370.sc: Likewise.
1632 * scripttempl/elfm68hc11.sc: Likewise.
1633 * scripttempl/elfm68hc12.sc: Likewise.
1634 * scripttempl/nw.sc: Likewise.
1636 2001-08-15 Tom Rix <trix@redhat.com>
1638 * ldgram.y (saved_script_handle): Initialize to NULL.
1639 * ldmain.c (main): Change check on saved_script_handle.
1641 2001-08-14 Alan Modra <amodra@bigpond.net.au>
1643 * emultempl/elf32.em: Formatting fixes.
1644 (output_prev_sec_find): Test for bfd_ind_section too; do so by
1645 looking at sec->owner.
1646 (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
1647 (gld${EMULATION_NAME}_place_orphan): Add a few comments. Remove
1648 unused code, and reorganize orphan section placement code.
1650 * ldlang.c (wild_doit): Rename to lang_add_section.
1651 * ldlang.h: Here too.
1652 * mpw-elfmips.c: And here.
1653 * emultempl/beos.em: And here.
1654 * emultempl/elf32.em: And here.
1655 * emultempl/hppaelf.em: And here.
1656 * emultempl/pe.em: And here.
1658 2001-08-13 Richard Henderson <rth@redhat.com>
1660 * emultempl/needrelax.em: New file.
1661 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
1662 * Makefile.am (eelf64_ia64.c): Depend on it.
1663 * Makefile.in: Rebuild.
1665 2001-08-13 Alan Modra <amodra@bigpond.net.au>
1667 * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
1668 output_section is set non-NULL.
1670 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
1671 `true' for SEC_EXCLUDE sections so that the generic code doesn't
1672 needlessly create an output_section_statement. Treat a correctly
1673 named output_section_statement with NULL bfd_section as compatible.
1675 2001-08-13 Hans-Peter Nilsson <hp@bitrange.com>
1677 * emultempl/generic.em: Support EXTRA_EM_FILE.
1678 (ld_${EMULATION_NAME}_emulation): Support emulation parameters
1679 LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
1680 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
1681 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
1682 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
1683 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
1684 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
1685 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
1686 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
1687 LDEMUL_FIND_POTENTIAL_LIBRARIES.
1689 2001-08-12 Richard Henderson <rth@redhat.com>
1691 * scripttempl/elf.sc, scripttempl/elfd30v.sc,
1692 scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
1693 scripttempl/v850.sc: Keep .jcr data.
1695 2001-08-12 H.J. Lu <hjl@gnu.org>
1696 Andrew Haley <aph@cambridge.redhat.com>
1697 Nick Clifton <nickc@redhat.com>
1699 * ldgram.y (had_script): Change name to saved_script_handle.
1700 Change type to file handle.
1701 * ld.h (had_script): Rename and retype.
1702 * ldfile.c (ldfile_open_command_file): Save the file handle
1703 used in saved_script_handle.
1704 * lexsup.c (parse_args): Do not allow -c option to alter
1705 saved_script_handle.
1706 * ldmain.c (main): Print out the linker script used if
1707 --verbose is given. Check saved_script_handle to obtain the
1708 external linker script used, or if NULL, dump the builtin
1710 * ld.texinfo: Document that --verbose now dumps the linker
1711 script used, regardless of whether it was an internal or an
1714 2001-08-10 Andreas Jaeger <aj@suse.de>
1716 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
1718 * configure: Regenerate.
1720 2001-08-09 Alan Modra <amodra@bigpond.net.au>
1722 * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
1724 * scripttempl/elf.sc: Move non-text .dynamic section before
1725 .plt/.got/.sdata* group.
1726 (OTHER_GOT_SECTIONS): Move to immediately after .got.
1727 (OTHER_SDATA_SECTIONS): Add.
1728 * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
1730 * emulparams/crislinux.sh: Likewise.
1731 * emulparams/elf32b4300.sh: Likewise.
1732 * emulparams/elf32bmip.sh: Likewise.
1733 * emulparams/elf32bmipn32.sh: Likewise.
1734 * emulparams/elf32bsmip.sh: Likewise.
1735 * emulparams/elf32btsmip.sh: Likewise.
1736 * emulparams/elf32ebmip.sh: Likewise.
1737 * emulparams/elf32elmip.sh: Likewise.
1738 * emulparams/elf32l4300.sh: Likewise.
1739 * emulparams/elf32lmip.sh: Likewise.
1740 * emulparams/elf32lsmip.sh: Likewise.
1741 * emulparams/elf32ltsmip.sh: Likewise.
1742 * emulparams/elf64bmip.sh: Likewise.
1743 * emulparams/elf64btsmip.sh: Likewise.
1744 * emulparams/elf64ltsmip.sh: Likewise.
1746 2001-08-08 Alan Modra <amodra@bigpond.net.au>
1748 * genscripts.sh: Source the emulparams script before each output
1749 script is generated so that variables like `RELOCATING' may affect
1750 variables defined in the emulparams script.
1752 2001-08-04 Alan Modra <amodra@bigpond.net.au>
1754 * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
1757 * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
1758 ie. iterate over wild_statement.section_list.
1759 (gld${EMULATION_NAME}_place_orphan): Likewise.
1761 2001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1763 * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
1764 .fini[0-4] sections used by _exit
1765 (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
1766 (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
1767 * scripttempl/elfm68hc11.sc: Likewise.
1769 2001-08-03 H.J. Lu <hjl@gnu.org>
1771 * emultempl/beos.em (init): Add the missing initialization.
1773 2001-08-03 Alan Modra <amodra@bigpond.net.au>
1775 * ld.texinfo (Input Section Basics): Clarify ordering of output
1777 * ldlang.c (callback_t): Add wildcard_list param.
1778 (walk_wild_section): Remove "section" param. Rewrite for
1779 lang_wild_statement_type change. Remove unique_section_p test.
1780 (walk_wild_file): Remove "section" param.
1781 (walk_wild): Remove "section" and "file" params.
1782 (lang_gc_wild): Likewise.
1783 (wild): Likewise. Modify for lang_wild_statement_type change.
1784 (wild_sort): Likewise. Add "sec" param.
1785 (gc_section_callback): Likewise.
1786 (output_section_callback): Likewise. Do unique_section_p test.
1787 (map_input_to_output_sections): Modify call to wild.
1788 (lang_gc_sections_1): Likewise.
1789 (print_wild_statement): Modify for lang_wild_statement_type
1791 (lang_add_wild): Replace filename, filenames_sorted param with
1792 filespec. Replace section_name, sections_sorted,
1793 exclude_filename_list with section_list.
1794 * ldlang.h (lang_add_wild): Here too.
1795 (lang_wild_statement_type): Replace section_name, sections_sorted,
1796 and exclude_filename_list with section_list.
1797 * ldgram.y (current_file): Delete.
1798 (%union): Add wildcard_list.
1799 (file_NAME_list): Set type to wildcard_list. Build a linked list
1800 rather than calling lang_add_wild for each entry.
1801 (input_section_spec_no_keep): Call lang_add_wild here instead.
1802 * ld.h (struct wildcard_list): Declare.
1803 * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
1805 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
1807 * ldmain.c (main): initialize link_info.pei386_auto_import
1808 * pe-dll.c: new tables for auto-export filtering
1809 (auto_export): change API, pass abfd for contextual filtering.
1810 Loop thru tables of excluded symbols instead of comparing
1813 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
1815 * pe-dll.c: new variable pe_dll_enable_extra_debug. New
1816 static variable current_sec (static struct sec *). Add
1817 forward declaration for add_bfd_to_link.
1818 (process_def_file): Don't export undefined symbols. Do not
1819 export symbols starting with "_imp__". Call auto_export()
1821 (pe_walk_relocs_of_symbol): New function.
1822 (generate_reloc): add optional extra debugging
1823 (pe_dll_generate_def_file): eliminate extraneous initial blank
1825 (make_one): enlarge symtab to make room for __nm__ symbols
1826 (DATA auto-import support).
1827 (make_singleton_name_thunk): New function.
1828 (make_import_fixup_mark): New function.
1829 (make_import_fixup_entry): New function.
1830 (pe_create_import_fixup): New function.
1831 (add_bfd_to_link): Specify that 'name' argument is a CONST
1833 * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
1834 declare new functions pe_walk_relocs_of_symbol and
1835 pe_create_import_fixup.
1836 * emultempl/pe.em: add new options --enable-auto-import,
1837 --disable-auto-import, and --enable-extra-pe-debug.
1838 (make_import_fixup): New function.
1839 (pe_find_data_imports): New function.
1840 (pr_sym): New function.
1841 (gld_${EMULATION_NAME}_after_open): Add optional extra pe
1842 debugging. Call pe_find_data_imports. Mark .idata as DATA, not
1845 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
1847 * ld.texinfo: add additional documentation for
1848 --export-all-symbols. Document --out-implib,
1849 --enable-auto-image-base, --disable-auto-image-base,
1850 --dll-search-prefix, --enable-auto-import, and
1851 --disable-auto-import.
1852 * ldint.texinfo: Add detailed documentation on auto-import
1855 2001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
1857 * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
1860 2001-07-24 Alan Modra <amodra@bigpond.net.au>
1862 * Makefile.am: Update dependencies with "make dep-am".
1863 * Makefile.in: Regenerate
1865 2001-07-23 Alan Modra <amodra@bigpond.net.au>
1867 * ldcref.c (check_section_sym_xref): New function.
1868 (check_nocrossrefs): Call it.
1869 (check_nocrossref): Interate over h->refs here instead of..
1870 (check_refs): ..here. Pass in the symbol name, section, and bfd
1871 rather than hash_entry pointers.
1872 (struct check_refs_info): Keep symbol name rather than hash entry.
1874 (check_reloc_refs): Tweak for above changes in check_refs_info.
1875 Only report references to section syms when symname is NULL to
1876 prevent duplicate messages for the same reloc.
1878 2001-07-19 Nick Clifton <nickc@cambridge.redhat.com>
1880 * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
1881 available. Do not print NULL trees.
1882 (exp_print_token): Print unknown tokens with values > 126 as
1883 decimal values not ASCII characters.
1885 * ldlang.c (lang_leave_overlay): If a region is specified assign
1886 it to all sections inside the overlay unless they have been
1887 assigned to the own, non-default, memory region.
1889 * README: Add header for consistency with other README files.
1891 2001-07-14 H.J. Lu <hjl@gnu.org>
1893 * emultempl/elf32.em (output_prev_sec_find): Never return
1894 bfd_abs_section_ptr, bfd_com_section_ptr nor
1895 bfd_und_section_ptr.
1897 2001-07-14 Nick Clifton <nickc@cambridge.redhat.com>
1899 * Makefile.am (em32relf.c): Change dependency from generic.em to
1901 * Makefile.in: Regenerate.
1903 2001-07-14 matthew green <mrg@eterna.com.au>
1905 * configure.tgt (i386-*-netbsdelf*): New target.
1906 (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
1908 2001-07-13 Jakub Jelinek <jakub@redhat.com>
1910 * emultempl/elf32.em (output_prev_sec_find): New.
1911 (place_orphan): Use it.
1913 2001-07-11 H.J. Lu <hjl@gnu.org>
1915 * ldmain.c (main): Fix typos in the last change.
1917 2001-07-11 Jakub Jelinek <jakub@redhat.com>
1919 * ldmain.c (main): Disallow -F and -f without -shared.
1921 2001-07-11 Nick Clifton <nickc@cambridge.redhat.com>
1923 * emultempl/pe.em (after_open): Check for the output_bfd not
1924 having any coff_data structure allocated to it.
1926 2001-07-09 David O'Brien <obrien@FreeBSD.org>
1928 * emultempl/elf32.em: Do not assuming that contents of the buffer
1929 returned from basename function will remain unchanged accross other
1932 2001-07-03 H.J. Lu <hjl@gnu.org>
1934 * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
1935 2001-07-03. It creates dynamic entries even for static binaries.
1937 2001-07-03 Jakub Jelinek <jakub@redhat.com>
1939 * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
1940 (DYNAMIC): Use it to reserve few dynamic entries for
1943 2001-06-27 Alan Modra <amodra@bigpond.net.au>
1945 * emulparams/hppa64linux.sh: New file.
1946 * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
1947 * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
1948 (ehppa64linux.c): Add rule to make it.
1950 * Makefile.in: Regenerate.
1952 2001-06-21 Hans-Peter Nilsson <hp@axis.com>
1954 * ld.texinfo (Options, -r): Mention restrictions when using
1955 different object formats.
1957 2001-06-19 Hans-Peter Nilsson <hp@axis.com>
1959 * ldlang.c (lang_check): Emit fatal error if relocatable link
1960 between different object flavours with relocations in input.
1962 2001-06-19 H.J. Lu <hjl@gnu.org>
1964 * ld.texinfo (-E, --export-dynamic): Mention --version-script.
1965 (--version-script): Mention the language support.
1967 2001-06-19 H.J. Lu <hjl@gnu.org>
1969 * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
1971 2001-06-18 H.J. Lu <hjl@gnu.org>
1973 * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
1974 (diststuff): Add $(MANS).
1975 * Makefile.in: Regenerated.
1979 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
1981 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
1982 Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
1983 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
1984 * ld.h (args_type): Remove member export_dynamic. All users
1985 changed to use struct bfd_link_info member.
1987 * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
1988 $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
1989 * Makefile.in: Regenerate.
1991 2001-06-18 H.J. Lu <hjl@gnu.org>
1993 * ldlang.c (init_os): Add the newline to the einfo call.
1994 (lang_check): Likewise.
1995 (lang_do_version_exports_section): Likewise.
1997 2001-06-15 H.J. Lu <hjl@gnu.org>
1999 * lexsup.c (parse_args); Save optind to report unrecognized
2002 2001-06-15 Hans-Peter Nilsson <hp@axis.com>
2004 * ldlang.c (lang_check): Emit fatal error if relocatable link
2005 between different object flavours.
2007 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
2008 Set new link_info member export_dynamic.
2009 * ldmain.c (main): Initialize new link_info member export_dynamic.
2011 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
2013 * ldlang.c (walk_wild): Only call walk_wild_file if
2014 lookup_name returns something.
2015 (lookup_name): If load_symbols fails, return NULL.
2016 (load_symbols): Change to a boolean function.
2017 (open_input_bfds): If load_symbols fails then do not make the
2020 2001-06-08 Alan Modra <amodra@bigpond.net.au>
2022 * ldlang.c (record_bfd_errors): Remove.
2024 * emultempl/aix.em: Fix copyright dates.
2026 2001-06-07 Andreas Jaeger <aj@suse.de>
2028 * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
2029 (TEXT_START_ADDR): Likewise.
2031 2001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
2033 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
2035 2001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2037 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
2039 2001-05-31 H.J. Lu <hjl@gnu.org>
2041 * ldlang.c (open_input_bfds): Don't change the bfd error
2042 handler whilst loading symbols.
2044 2001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
2046 * configure.tgt: Remove i370-mvs architecture, it is not currently
2049 2001-05-25 H.J. Lu <hjl@gnu.org>
2051 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
2052 like emulparams/aixppc.sh.
2054 2001-05-25 H.J. Lu <hjl@gnu.org>
2056 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
2057 setting of output_filename after bfd_scan_arch.
2058 * emultempl/pe.em: Likewise.
2060 2001-05-25 H.J. Lu <hjl@gnu.org>
2062 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
2063 like emulparams/aixppc.sh.
2065 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
2066 instead of ${srcdir}/emultempl/stringify.sed.
2068 2001-05-25 Timothy Wall <twall@oculustech.com>
2070 * emulparams/elf64_aix.sh: Change settings to match IBM linker
2073 2001-05-25 Alan Modra <amodra@one.net.au>
2075 * configure.host: Replace linuxoldld with linux*oldld.
2076 * configure.tgt: Likewise.
2078 2001-05-24 H.J. Lu <hjl@gnu.org>
2080 * emultempl/stringify.sed: Removed again.
2082 2001-05-24 H.J. Lu <hjl@gnu.org>
2084 * emultempl/aix.em (OUTPUT_ARCH): Defined.
2085 (gld${EMULATION_NAME}_before_parse): Initialize
2086 ldfile_output_architecture, ldfile_output_machine and
2087 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
2088 * emultempl/beos.em: Likewise.
2089 * emultempl/elf32.em: Likewise.
2090 * emultempl/linux.em: Likewise.
2091 * emultempl/mipsecoff.em: Likewise.
2092 * emultempl/pe.em: Likewise.
2093 * emultempl/sunos.em: Likewise.
2095 2001-05-24 Tom Rix <trix@redhat.com>
2097 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
2098 udate import file format.
2099 (change_symbol_mode) New, same
2100 (is_syscall) New, same
2101 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
2102 * emulparams/aixppc64.sh : same
2103 * emulparams/aixrs6.sh : same
2104 * emulparams/ppcmacos.sh : same
2105 * emultempl/aix.em : use strtoull to parse options
2106 * Makefile.am : add eaixppc64 emulation for xcoff64
2107 * Makefile.in : same
2108 * configure.tgt : same
2110 * scripttempl/aix.sc : default text section offset to 0x10000000
2111 default data section offset to 0x20000000
2112 add .sv3264 and .sv64 pseudo sections
2113 loader and debug sections use the currect section offset.
2115 * emultempl/aix.em : Add xcoff64 support
2116 Add -binitfini support
2117 (gld${EMULATION_NAME}_before_parse) -binitfini
2118 (gld${EMULATION_NAME}_parse_args) same
2119 (gld${EMULATION_NAME}_before_allocation) format change for special
2122 * emulparams/aixppc64.sh : New file for xcoff64 support
2124 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
2126 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
2127 variable to avoid non-portable shell construct.
2129 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2131 * ldmain.c (get_emulation): Add -mips5 command line argument.
2133 2001-05-22 Alexandre Oliva <aoliva@redhat.com>
2135 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
2136 (ELF_INTERPRETER_NAME): Define it.
2137 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
2139 * configure.tgt (targ_emul, targ_extra_emuls)
2140 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
2141 as primary, elf_i386 as extra.
2142 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
2143 (eelf_i386_ldso.c): New rule.
2144 * Makefile.in: Rebuilt.
2146 2001-05-22 Nick Clifton <nickc@redhat.com>
2148 * lexsup.c (ld_options): Allow -I to be an alias for
2149 --dynamic-linker. This is for Solaris compatability.
2150 * ld.texinfo: Document that -I can be used.
2153 2001-05-16 Alan Modra <amodra@one.net.au>
2155 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
2156 whether an input section is the first one assigned to an output
2158 Assorted formatting fixes.
2160 2001-05-14 DJ Delorie <dj@delorie.com>
2162 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
2163 * Makefile.in: Ditto.
2165 2001-05-11 Jakub Jelinek <jakub@redhat.com>
2167 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
2168 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
2170 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
2172 2001-05-11 Jakub Jelinek <jakub@redhat.com>
2174 * ldlang.c (lang_process): Call bfd_merge_sections.
2176 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2178 * ldgram.y: Fix typo.
2180 2001-05-03 H.J. Lu <hjl@gnu.org>
2182 * emultempl/elf32.em: Include "libiberty.h".
2183 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
2184 basename of the bfd filename.
2185 (gld${EMULATION_NAME}_stat_needed): Likewise.
2186 (gld${EMULATION_NAME}_try_needed): Likewise.
2187 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
2189 2001-05-02 H.J. Lu <hjl@gnu.org>
2191 * emultempl/pe.em: Include <ctype.h>.
2193 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
2195 * emulparams/elf32openrisc.sh: New file.
2197 * Makefile.am: Add OpenRISC target.
2198 * Makefile.in: Regenerated.
2200 * configure.tgt: Add openrisc-*-* mapping.
2202 2001-05-02 Nick Clifton <nickc@redhat.com>
2204 * emultempl/aix.em: Replace buystring with xstrdup.
2205 * emultempl/beos.em: Replace buystring with xstrdup.
2207 2001-05-02 H.J. Lu <hjl@gnu.org>
2209 * ldfile.c: Include "libiberty.h".
2210 * ldlex.l: Likewise.
2212 * ldmisc.c (buystring): Removed.
2213 * ldmisc.h: Likewise.
2215 * ldfile.c: Replace buystring with xstrdup.
2216 * ldlang.c: Likewise.
2217 * ldlex.l: Likewise.
2218 * ldmain.c: Likewise.
2219 * ldmisc.c: Likewise.
2220 * lexsup.c: Likewise.
2221 * mpw-eppcmac.c: Likewise.
2223 2001-04-30 Andreas Jaeger <aj@suse.de>
2225 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
2227 2001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2229 * ldlang.c (load_symbols): Give emulation a chance
2230 to process unrecognized file before fatal error is
2231 reported, not after.
2233 2001-04-27 Sean McNeil <sean@mcneil.com>
2235 * configure.tgt: Add arm-vxworks target.
2236 * scripttempl/armcoff.sc: Support .text or .data as a section name
2240 2001-04-13 J.T. Conklin <jtc@redback.com>
2242 * ld.texinfo: Document --fatal-warnings.
2245 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
2246 warnings have been turned into errors.
2247 * lexsup.c (OPTION_WARN_FATAL): Define.
2248 (ld_options): Entry for --fatal-warnings.
2249 (parse_args): Handle OPTION_WARN_FATAL.
2250 * ld.h (ld_config_type): Add fatal_warnings field.
2252 2001-04-13 Jakub Jelinek <jakub@redhat.com>
2254 * ldmain.c (main): Default to discard_sec_merge.
2255 * lexsup.c (OPTION_DISCARD_NONE): Define.
2256 (ld_options): Add --discard-none.
2257 (parse_args): Handle OPTION_DISCARD_NONE.
2258 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
2259 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
2260 all its input sections match.
2262 2001-04-05 Steven J. Hill <sjhill@cotw.com>
2264 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
2265 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
2266 (eelf32ltsmip.c): New target.
2267 (eelf64btsmip.c): Likewise.
2268 (eelf64ltsmip.c): Likewise.
2269 * Makefile.in: Regenerated.
2271 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
2273 (mips*-*-linux-gnu*): Likewise.
2275 * emulparams/elf32ltsmip.sh: New. Traditional little endian
2277 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
2279 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
2282 2001-04-05 Hans-Peter Nilsson <hp@axis.com>
2284 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
2285 correct value of __Stext here.
2286 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
2289 * emulparams/crislinux.sh: Remove FIXME.
2291 2001-04-02 Alan Modra <alan@linuxcare.com.au>
2293 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
2294 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
2296 2001-03-27 Hans-Peter Nilsson <hp@axis.com>
2298 * configure.tgt (cris-*-*): Change default emulation to criself.
2299 (cris-*-*aout*): New rule.
2301 2001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
2303 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
2304 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
2306 2001-03-26 Andreas Jaeger <aj@suse.de>
2308 * ld.texinfo (Overview): Fix syntax in texi code.
2310 2001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2312 * ld.texinfo: Put @c man indications to generate the ld man page.
2313 When generating man, define all the variables. Define SEEALSO
2314 and SYNOPSIS. Re-organize some lines to avoid the cross references.
2315 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
2316 (ld.1): Generate from ld.texinfo.
2317 * Makefile.in: Regenerate.
2319 2001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
2321 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
2322 and '-fdata-sections'. Set the VMA of STABS sections to zero.
2324 2001-03-17 Ulrich Drepper <drepper@redhat.com>
2326 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
2327 is an absolute path look only for this file and not along the path.
2329 2001-03-17 Ulrich Drepper <drepper@redhat.com>
2331 * emultempl/elf32.em (OPTION_GROUP): New macro.
2332 Add new option Bgroup to longopts.
2333 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
2334 (gld*_list_options): Add -Bgroup and -z defs.
2335 * ld.1: Document -Bgroup and -z defs.
2336 * ld.texinfo: Likewise.
2338 2001-03-07 Michael Meissner <meissner@redhat.com>
2340 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
2341 with sections created by -fdata-sections.
2342 (.dynbss,.bss): Ditto.
2344 2001-03-05 Alan Modra <alan@linuxcare.com.au>
2346 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
2347 after_allocation_default, not gld..._before_allocation.
2349 2001-02-27 Alan Modra <alan@linuxcare.com.au>
2351 * configure.in (BFD_VERSION): New.
2352 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
2353 * configure: Regenerate.
2354 * Makefile.am: Run "make dep-am"
2355 * Makefile.in: Regenerate.
2357 2001-02-26 Timothy Wall <twall@cygnus.com>
2359 * emulparams/elf64_aix.sh: Add additional read-only sections;
2360 uncomment lines which are now required.
2362 2001-02-26 H.J. Lu <hjl@gnu.org>
2364 * ldlang.c (open_input_bfds): Set the bfd error handler so
2365 that problems can be caught whilst loading symbols.
2366 (record_bfd_errors): New function: Report BFD errors and mark
2367 the executable output as being invalid.
2369 2001-02-22 Timothy Wall <twall@cygnus.com>
2371 * configure.host: Add configuration for ia64-*-aix*.
2372 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
2373 Add dependencies for eelf64_aix.c.
2374 * Makefile.in: Regenerate.
2375 * configure.tgt: Add ia64-*-aix* mapping.
2376 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
2377 * testsuite/ld-bootstrap/bootstrap.exp: Exclude ia64 flavor from
2380 2001-02-20 H.J. Lu <hjl@gnu.org>
2382 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
2383 false if we found the file.
2385 2001-02-18 David O'Brien <obrien@FreeBSD.org>
2387 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
2388 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
2390 2001-02-18 lars brinkhoff <lars@nocrew.org>
2392 * Makefile.am: Add PDP-11 target.
2393 * configure.tgt: Likewise.
2394 * emulparams/pdp11.sh: New file.
2396 2001-02-17 David O'Brien <obrien@FreeBSD.org>
2398 * configure.host: Add a generic FreeBSD configuration entry such that
2399 all [modern] FreeBSD systems on all platforms will look the same.
2401 2001-02-14 H.J. Lu <hjl@gnu.org>
2403 * configure.tgt: Remove mention of earmelf_linux26.
2405 2001-02-13 Richard Henderson <rth@redhat.com>
2407 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
2409 2001-02-13 H.J. Lu <hjl@gnu.org>
2411 * ldexp.h (node_type): Add etree_provided.
2412 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
2413 type to etree_provided if defined by PROVIDE. Allow updating
2415 (exp_print_tree): Handle etree_provided.
2416 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
2419 2001-02-09 David Mosberger <davidm@hpl.hp.com>
2421 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
2422 .IA_64.unwind.* pattern to unwind table section and
2423 .IA_64.unwind_info* pattern to unwind info section.
2425 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
2427 * Makefile.am: Add linux target for S/390.
2428 * Makefile.in: Likewise.
2429 * configure.host: Likewise.
2430 * configure.tgt: Likewise.
2431 * emulparams/elf64_s390.sh: New file.
2432 * emulparams/elf_s390.sh: New file.
2434 2001-02-09 Jakub Jelinek <jakub@redhat.com>
2436 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
2438 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
2440 2001-02-06 Philip Blundell <philb@gnu.org>
2442 * Makefile.am: Remove mention of earmelf_linux26.
2443 * Makefile.in: Regenerate.
2445 2001-02-04 Philip Blundell <philb@gnu.org>
2447 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
2448 * emulparams/armelf_linux26.sh: Delete.
2449 * configure.tgt: Remove mention of armelf_linux26 emulation.
2451 2001-02-01 Nick Clifton <nickc@redhat.com>
2453 * ld.1: Replace occurances of -oformat with --oformat.
2455 2001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
2457 * ldlang.c (lang_leave_overlay): Don't set lma_region when
2458 load_base is specified.
2460 2001-01-24 Hans-Peter Nilsson <hp@axis.com>
2462 * emultempl/elf32.em: Correct spelling in comments and listed
2465 2001-01-23 Alan Modra <alan@linuxcare.com.au>
2467 * ldlang.c (lang_leave_overlay): Only set lma_region from the
2468 default for the first section of a group of overlay sections.
2470 2001-01-22 Alan Modra <alan@linuxcare.com.au>
2472 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
2473 * Makefile.in: Regenerate.
2474 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
2475 Check for null tool_dir.
2477 2001-01-16 Jim Wilson <wilson@redhat.com>
2479 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
2480 and IA_64.unwind.info.
2482 2001-01-16 H.J. Lu <hjl@gnu.org>
2484 * ldlang.c (lang_check): Merge the private data only if the
2485 input file has contents.
2487 2001-01-14 Alan Modra <alan@linuxcare.com.au>
2489 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
2491 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
2492 enabling search for libmilli. On a relocatable link, make .text
2494 (LDEMUL_AFTER_PARSE): Define.
2495 (hppaelf_finish): Correct spelling of relocatable in comments.
2497 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
2498 rummage through the script for sections on the unique list.
2499 Correct length of strncmp for ".note".
2500 (gld${EMULATION_NAME}_check_needed): Rearrange function.
2502 * ldlang.c (unique_section_list): New var.
2503 (unique_section_p): New function.
2504 (walk_wild_section): Don't match sections on unique_section_list.
2505 (lang_add_unique): New function.
2506 Correct spelling of relocatable in comments.
2508 * ldlang.h (struct unique_sections): Declare.
2509 (unique_section_list): Declare.
2510 (unique_section_p): Declare.
2511 (lang_add_unique): Declare.
2513 * lexsup.c (ld_options): Allow --unique to take an optional arg.
2514 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
2516 * ld.texinfo (--unique): Update.
2518 2001-01-13 Nick Clifton <nickc@redhat.com>
2520 * lexsup.c (parse_args): Remove spurious white space.
2522 2001-01-12 Nick Clifton <nickc@redhat.com>
2524 * lexsup.c (parse_args): Update copyright date.
2526 2001-01-12 Philip Blundell <pb@futuretv.com>
2528 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
2530 2001-01-10 Kazu Hirata <kazu@hxi.com>
2532 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
2533 * scripttempl/h8300h.sc: Fix formatting.
2534 * scripttempl/h8300s.sc: Likewise.
2535 * scripttempl/h8500.sc: Likewise.
2536 * scripttempl/h8500b.sc: Likewise.
2537 * scripttempl/h8500c.sc: Likewise.
2538 * scripttempl/h8500m.sc: Likewise.
2539 * scripttempl/h8500s.sc: Likewise.
2541 2000-01-07 David O'Brien <obrien@BSDi.com>
2543 * emultempl/elf32.em: Only perform Linux ld hints processing when
2546 2001-01-07 Philip Blundell <philb@gnu.org>
2548 * ld.texinfo (Bug Reporting): Update email address for reports.
2550 2000-12-31 Nick Clifton <nickc@redhat.com>
2552 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
2553 options by checking for a return value of '?' not -1.
2555 2000-12-28 Nick Clifton <nickc@redhat.com>
2557 * lexsup.c (struct ld_option): Add new enum value:
2559 (ld_options[]): Change -omagic, -output and -oformat options
2560 to be EXACTLY_TWO_DASHES.
2561 (OUTPUT_COUNT): Use ARRAY_SIZE.
2562 (parse_args): Change parameter 'argc' to unsigned.
2563 Place EXACTLY_TWO_DASHES options into new really_longopts
2565 If getopt_long_only fails, try calling getopt_long using the
2566 really_longopts array.
2567 (help): Print a double dash for both EXACTLY_TWO_DASHES and
2570 * ldlex.h: Fix prototype of parse_args.
2572 * ld.texinfo: Document that long options starting with 'o'
2573 must be preceeded by two dashes. Change example of a single
2574 dashed long option from -oformat to -trace-symbol.
2576 2000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2578 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
2579 (longopts[]): New --no-default-excludes option.
2580 (gld_${EMULATION_NAME}_list_options): Document.
2581 (gld_${EMULATION_NAME}_parse_args): Handle.
2583 2000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2585 * ldlang.c (new_stat): Revert the last beautification with "innocent"
2586 whitespace, it breaks the K&R C preprocessor.
2588 2000-12-11 DJ Delorie <dj@redhat.com>
2590 * ld.texinfo: Add notes about --whole-archive and gcc.
2592 2000-11-18 Fred Fish <fnf@be.com>
2594 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
2595 (ld_options): Entry for --allow-shlib-undefined.
2596 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
2597 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
2599 * ld.texinfo: Document new command line switch.
2601 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
2603 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
2604 .fixup is actually read/write.
2605 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
2606 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
2607 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
2609 2000-12-11 Jan Hubicka <jh@suse.cz>
2611 * NEWS: Add note about x86_64 architecture.
2613 2000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
2615 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
2616 Set DWARF2 sections to a VMA of zero.
2618 2000-12-01 Joel Sherrill <joel@OARcorp.com>
2620 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
2622 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
2623 (sparc*-*-rtems*): Switched from a.out to ELF.
2625 2000-11-30 Jan Hubicka <jh@suse.cz>
2627 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
2628 (eelf_x86_64.c): New.
2629 * Makefile.in: Regenerate.
2630 * configure.tgt: Add support for x86_64-*-linux-gnu*.
2631 * emulparams/elf_x86_64.sh: New.
2633 2000-11-30 Hans-Peter Nilsson <hp@axis.com>
2635 * emulparams/crislinux.sh (ENTRY): Change back to _start.
2636 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
2638 * scripttempl/crisaout.sc: Change all RELOCATING not related to
2639 merging non-a.out sections into CONSTRUCTING.
2641 2000-11-28 Nick Clifton <nickc@redhat.com>
2643 * ld.1 (COPYING): Mention that the GNU Free Documentation
2644 License is present in the sources, but not the output, and
2645 also available from the GNU website.
2646 (GNU Free Documentation License): Comment out this section.
2648 2000-11-28 David O'Brien <obrien@dragon.nuxi.com>
2650 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
2653 2000-11-25 David O'Brien <obrien@FreeBSD.org>
2655 * ld.1: Remove old date so it does not give the impression the manpage
2658 2000-11-24 Nick Clifton <nickc@redhat.com>
2660 * configure.tgt (xscale-coff): Add target.
2661 (xscale-elf): Add target.
2663 2000-11-24 Fred Fish <fnf@be.com>
2665 * ldmain.c (main): Remove redundant init of config.make_executable
2668 2000-11-15 Richard Henderson <rth@redhat.com>
2670 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
2672 2000-11-14 Kazu Hirata <kazu@hxi.com>
2674 * scripttempl/h8300.sc: Fix formatting.
2675 * scripttempl/h8300h.sc: Likewise.
2676 * scripttempl/h8300s.sc: Likewise.
2678 2000-11-14 Denis Chertykov <denisc@overta.ru>
2680 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
2682 2000-11-09 Philip Blundell <pb@futuretv.com>
2684 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
2685 around orphan sections whose names can be represented in C.
2687 2000-11-07 Jim Wilson <wilson@redhat.com>
2689 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
2690 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
2692 2000-11-06 Nick Clifton <nickc@redhat.com>
2694 * ld.texinfo: Add GNU Free Documentation License.
2695 * ldint.texinfo: Add GNU Free Documentation License.
2696 * ld.1: Add GNU Free Documentation License.
2698 2000-11-05 Alan Modra <alan@linuxcare.com.au>
2700 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
2701 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
2703 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
2704 Move 2000-11-02 Makefile.in changes to this file.
2705 * Makefile.in: Regenerate.
2707 2000-11-03 Nick Clifton <nickc@redhat.com>
2709 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
2710 constructors and destructors.
2711 * scripttempl/h8300h.sc: Ditto.
2712 * scripttempl/h8300s.sc: Ditto.
2713 * scripttempl/h8500.sc: Ditto.
2714 * scripttempl/h8500b.sc: Ditto.
2715 * scripttempl/h8500c.sc: Ditto.
2716 * scripttempl/h8500m.sc: Ditto.
2717 * scripttempl/h8500s.sc: Ditto.
2718 * scripttempl/v850.sc: Ditto.
2719 * scripttempl/w65.sc: Ditto.
2720 * scripttempl/z8000.sc: Ditto.
2722 2000-11-02 Per Lundberg <plundis@chaosdev.org>
2724 * Makefile.in (e_i386_chaos.c): New rule.
2725 (ALL_EMULATIONS): Added e_i386_chaos.o.
2726 * emulparams/elf_i386_chaos.sh: New file.
2727 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
2729 2000-10-20 Jakub Jelinek <jakub@redhat.com>
2731 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
2732 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
2733 Fix sed invocation, so that it coped with '/' in Solaris 64bit
2734 library path suffix.
2735 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
2737 2000-10-18 Hans-Peter Nilsson <hp@axis.com>
2739 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
2740 for consecutive sections.
2742 2000-10-17 Chandrakala Chavva <cchavva@redhat.com>
2744 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
2746 * ld.texinfo: Added notes about this new option.
2748 2000-10-16 Nick Clifton <nickc@redhat.com>
2750 * emultempl/pe.em (_after_open): Add tests of return values from
2751 bfd functions. Emit appropriate error messages if necessary.
2753 2000-10-13 Nick Clifton <nickc@redhat.com>
2755 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
2756 local variables - they are not used, but leave in the call to
2757 bfd_canonicalize_symtab.
2758 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
2759 pe_dll_search_prefix.
2761 2000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
2763 * emultempl/pe.em (pe_dll_search_prefix): New variable,
2764 (longopts): New --dll-search-prefix option.
2765 (gld_${EMULATION_NAME}_list_options): Document.
2766 (gld_${EMULATION_NAME}_parse_args): Handle.
2767 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
2768 dynamically, search for a dll named '<prefix><basename>.dll'
2769 in preference to 'lib<basename>.dll' if --dll-search-prefix
2772 2000-10-12 Alan Modra <alan@linuxcare.com.au>
2774 * ldlang.c (section_already_linked): Set kept_section instead of
2777 2000-10-10 Kazu Hirata <kazu@hxi.com>
2779 * deffile.h: Fix formatting.
2780 * lexsup.c: Likewise.
2783 2000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2785 * pe-dll.c (make_one): Do not generate code thunk for DATA
2787 (process_def_file): deduce DATA flag for auto-export sumbols.
2789 2000-10-09 Kazu Hirata <kazu@hxi.com>
2791 * ld.h: Fix formatting.
2792 * ldcref.c: Likewise.
2793 * ldctor.h: Likewise.
2794 * ldemul.c: Likewise.
2795 * ldemul.h: Likewise.
2796 * ldexp.c: Likewise.
2797 * ldexp.h: Likewise.
2798 * ldfile.c: Likewise.
2799 * ldfile.h: Likewise.
2800 * ldlang.c: Likewise.
2801 * ldlang.h: Likewise.
2802 * ldmain.c: Likewise.
2803 * pe-dll.c: Likewise.
2805 * pe-dll.c: Revert some formatting fixes.
2807 2000-10-08 Kazu Hirata <kazu@hxi.com>
2809 * pe-dll.c: Fix formatting.
2811 2000-10-05 Kazu Hirata <kazu@hxi.com>
2813 * ldlang.c: Fix formatting.
2815 2000-10-03 DJ Delorie <dj@redhat.com>
2817 * pe-dll.c (fill_edata): initialize entire block
2818 (make_one): fill in correct section.
2820 2000-10-03 Kazu Hirata <kazu@hxi.com>
2822 * ldexp.c: Fix formatting.
2824 2000-10-02 DJ Delorie <dj@redhat.com>
2826 * emultempl/pe.em (gld_*_after_open): detect case where there two
2827 import libraries for same dll; rename one to ensure proper link
2830 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
2832 (generate_edata): fix typo
2834 2000-09-29 Hans-Peter Nilsson <hp@axis.com>
2836 * scripttempl/crisaout.sc (ENTRY): Now __start.
2837 (.text): Add default setting for __start.
2838 Remove CONSTRUCTORS handling.
2839 (/DISCARD/): Add .gnu.warning.*.
2840 * emulparams/crislinux.sh (ENTRY): Now __start.
2841 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
2842 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
2843 (ENTRY): Now __start.
2844 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
2845 (EXECUTABLE_SYMBOLS): Add default setting for __start.
2847 2000-09-29 Kazu Hirata <kazu@hxi.com>
2849 * deffile.h: Fix formatting.
2851 * ldcref.c: Likewise.
2852 * ldctor.c: Likewise.
2853 * ldctor.h: Likewise.
2854 * ldemul.c: Likewise.
2855 * ldemul.h: Likewise.
2856 * ldexp.c: Likewise.
2857 * ldexp.h: Likewise.
2858 * ldfile.c: Likewise.
2859 * ldfile.h: Likewise.
2860 * ldlang.c: Likewise.
2861 * ldlang.h: Likewise.
2862 * lexsup.c: Likewise.
2864 * pe-dll.c: Likewise.
2866 2000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2868 * pe-dll.c (process_def_file): Uninitialized data wasn't
2869 exported with --export-all-symbols switch.
2871 2000-09-28 DJ Delorie <dj@redhat.com>
2873 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
2874 noname work properly.
2876 2000-09-28 Alan Modra <alan@linuxcare.com.au>
2878 * ld.texinfo (HPPA ELF32): New section.
2880 * emultempl/hppaelf.em (group_size): New.
2881 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
2882 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
2883 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
2884 options to prevent abbreviations matching.
2885 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
2886 (PARSE_AND_LIST_ARGS_CASES): Handle it.
2888 2000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2890 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
2891 on the m68*-*-elf target. Make it support COFF input objects.
2893 2000-09-21 Kazu Hirata <kazu@hxi.com>
2895 * ldmain.c: Fix formatting.
2896 * ldmisc.c: Likewise.
2897 * ldver.c: Likewise.
2898 * ldwrite.c: Likewise.
2900 2000-09-21 Alan Modra <alan@linuxcare.com.au>
2902 * ldwrite.c (clone_section): Silence gcc warnings.
2904 2000-09-20 Alan Modra <alan@linuxcare.com.au>
2906 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
2907 out of memory failure.
2909 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
2910 (clone_section): Handle out of memory failures. Rename var to
2911 avoid c++ reserved word.
2913 2000-09-18 Alan Modra <alan@linuxcare.com.au>
2915 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
2916 stub_name param to stub_sec_name.
2917 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
2919 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2921 * emultempl/m68kelf.em: New file.
2922 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
2923 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
2924 * Makefile.in: Regenerate.
2926 2000-09-15 Alan Modra <alan@linuxcare.com.au>
2928 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
2931 2000-09-13 Nick Clifton <nickc@redhat.com>
2933 * ldmain.c (multiple_definition): Disable relaxation if
2934 multiple symbol definitions are encountered - otherwise the
2935 linker could abort with an assertion failure.
2937 2000-09-10 Nick Clifton <nickc@redhat.com>
2939 * mri.c: Fix formatting.
2941 2000-09-07 H.J. Lu <hjl@gnu.org>
2943 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
2944 * configure: Rebuild.
2946 2000-09-07 H.J. Lu <hjl@gnu.org>
2948 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
2949 * Makefile.in: Rebuild.
2951 2000-09-07 Alan Modra <alan@linuxcare.com.au>
2953 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
2954 broken list handling. Create __start_SECNAME and __stop_SECNAME
2955 when no place-holder. Add some comments. Test both SEC_CODE and
2956 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
2957 Handle case where no output section statement created.
2959 2000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
2961 * configure.tgt (sh-*-linux*): Added.
2962 * Makefile.am: Added eshelf_linux and eshlelf_linux.
2963 * Makefile.in: Rebuilt.
2964 * emulparams/shelf_linux.sh: New file.
2965 * emulparams/shlelf_linux.sh: New file.
2967 2000-09-06 Alan Modra <alan@linuxcare.com.au>
2969 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
2970 try shuffling sections when the orphan happens to be the place
2971 holder. Keep count of unique section names generated so we speed
2972 the search for a new name.
2974 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
2976 * configure: Rebuilt with new libtool.m4.
2978 2000-09-05 Nick Clifton <nickc@redhat.com>
2980 * Makefile.in: Regenerate.
2981 * aclocal.m4: Regenerate.
2982 * configure: Regenerate.
2983 * config.in: Regenerate.
2984 * po/ld.pot: Regenerate.
2986 * ldint.texinfo: Remove CVS revision marker - it foils local
2989 * emultempl/ticoff.em: Remove extraneous comma.
2991 2000-09-05 Alan Modra <alan@linuxcare.com.au>
2993 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
2994 to stub section flags.
2995 (hppa_for_each_input_file_wrapper): New.
2996 (hppa_lang_for_each_input_file): New.
2997 (lang_for_each_input_file): Define to call above.
2998 (multi_subspace): New.
2999 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
3000 (PARSE_AND_LIST_PROLOGUE): Define.
3001 (PARSE_AND_LIST_LONGOPTS): Define.
3002 (PARSE_AND_LIST_OPTIONS): Define.
3003 (PARSE_AND_LIST_ARGS_CASES): Define.
3004 (hppaelf_finish): Call elf32_hppa_set_gp.
3005 (hppaelf_set_output_arch): Remove.
3006 (LDEMUL_SET_OUTPUT_ARCH): Remove.
3008 * emulparams/hppalinux.sh (ELFSIZE): Define.
3010 (OTHER_READONLY_SECTIONS): Define.
3012 (GENERATE_SHLIB_SCRIPT): Define.
3014 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
3015 to const throughout. Change `void *' to `PTR' throughout.
3016 (lang_memory_default): Function is local to file, add `static'.
3018 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
3019 (ehppalinux.c): Likewise.
3020 (earmelf.c): Likewise.
3021 (earmelf_linux.c): Likewise.
3022 (earmelf_linux26.c): Likewise.
3023 * Makefile.in: Regenerate.
3025 * ld.h (ld_config_type): Add unique_orphan_sections.
3026 * lexsup.c (OPTION_UNIQUE): Define.
3027 (ld_options): Add "--unique".
3028 (parse_args): Handle it.
3029 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3030 search for an existing output section if unique_orphan_sections is
3031 set. Make use of bfd_get_unique_section_name rather than
3032 duplicating code here.
3033 * ld.texinfo: Describe --unique.
3035 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
3036 optional arg to split-by-file.
3037 (parse_args): Handle them.
3038 * ld.texinfo: Update description of these options.
3039 * ldwrite.c (clone_section): Pass in the section name. Replace
3040 local code with bfd_get_unique_section_name.
3041 (split_sections): Tidy code and comments. Use a list traversal
3042 more appropriate to the list construction. Handle cooked section
3043 sizes. Split when split_by_reloc reached rather than exceeded.
3044 Track section size and split when split_by_file reached. Fix
3045 link_order_tail (even though it's not used).
3046 (ldwrite): Modify condition for calling split_sections to suit
3047 changed split_by_reloc and split_by_file.
3048 * ldmain.c (main): Init config.split_by_reloc and
3049 config.split_by_file to -1.
3050 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
3051 Change split_by_file to bfd_size_type.
3053 2000-09-02 Nick Clifton <nickc@redhat.com>
3055 * configure.in: Increase version number to 2.10.91.
3056 * NEWS: Mention new ability to support removal of duplicate DWARF2
3058 * configure: Regenerate.
3059 * aclocal.m4: Regenerate.
3060 * config.in: Regenerate.
3062 2000-09-02 Daniel Berlin <dberlin@redhat.com>
3064 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
3066 * scripttempl/elf32avr.sc: Ditto.
3067 * scripttempl/elfd10v.sc: Ditto.
3068 * scripttempl/elfd30v.sc: Ditto.
3069 * scripttempl/elfi370.sc: Ditto.
3070 * scripttempl/elfm68hc11.sc: Ditto.
3071 * scripttempl/elfm68hc12.sc: Ditto.
3072 * scripttempl/elfi386beos.sc: Ditto.
3073 * scripttempl/v850.sc: Ditto.
3075 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
3077 * acinclude.m4: Include libtool and gettext macros from the
3079 * aclocal.m4, configure: Rebuilt.
3081 2000-08-25 Nick Clifton <nickc@redhat.com>
3083 * ldlang.c (open_output): When choosing the target for a
3084 particular endianness, do nothing if the target is not
3087 2000-08-25 H.J. Lu <hjl@gnu.org>
3089 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
3090 check -rpath nor LD_RUN_PATH for cross link.
3091 * ld.texinfo: Document the change.
3093 2000-08-24 Hans-Peter Nilsson <hp@axis.com>
3095 * NEWS: Mention support for CRIS.
3097 2000-08-23 H.J. Lu <hjl@gnu.org>
3099 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
3100 the current runpath list from bfd_elf_get_runpath_list ()
3103 2000-08-22 H.J. Lu <hjl@gnu.org>
3105 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
3106 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
3107 LD_LIBRARY_PATH for native linker. Display the needed DSO if
3108 trace_file_tries is non-zero.
3109 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
3110 if trace_file_tries is non-zero.
3112 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
3115 2000-08-14 Jason Eckhardt <jle@cygnus.com>
3117 * NEWS: Mention i860 support.
3119 2000-08-14 Andreas Schwab <schwab@suse.de>
3121 * scripttempl/elf.sc: Fix last change to use correct comment
3124 2000-08-10 Geoff Keating <geoffk@cygnus.com>
3126 * scripttempl/elf.sc: Add a comment giving the correspondence
3127 between sections, per-datum sections, and linkonce sections. Make
3128 the comment true even for .bss, .sdata, .sdata2, .sbss, and
3131 2000-08-10 Jason Eckhardt <jle@cygnus.com>
3133 * emulparams/elf32_i860.sh: New file.
3134 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
3135 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
3136 (eelf32_i860.c): New rule.
3137 * Makefile.in: Regenerate.
3139 2000-08-10 Nick Clifton <nickc@cygnus.com>
3141 * emulparams/mipspe.sh (ENTRY): Add definition.
3143 2000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
3145 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
3148 2000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3150 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
3151 the final size of .bss section.
3152 * scripttempl/elfm68hc12.sc: Likewise.
3154 2000-08-04 Alan Modra <alan@linuxcare.com.au>
3156 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
3157 gld${EMULATION_NAME}_parse_args for consistency. Combine
3158 lastoptind and prevoptind vars, and keep track of last optind.
3159 (gld_${EMULATION_NAME}_list_options): Rename to
3160 gld${EMULATION_NAME}_list_options.
3162 2000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
3164 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
3165 (i586-sco-sysv5uw7.1.0).
3167 2000-07-27 H.J. Lu <hjl@gnu.org>
3169 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
3170 (PARSE_AND_LIST_PROLOGUE): New.
3171 (PARSE_AND_LIST_LONGOPTS): Likewise.
3172 (PARSE_AND_LIST_OPTIONS): Likewise.
3173 (PARSE_AND_LIST_ARGS_CASES): Likewise.
3174 (PARSE_AND_LIST_EPILOGUE): Likewise.
3176 2000-07-28 Alan Modra <alan@linuxcare.com.au>
3178 * emultempl/armelf.em: Elide functions common to elf32.em,
3179 ie. most of the file.
3180 (arm_elf_after_open): New. Do arm specific things then call
3181 gld${EMULATION_NAME}_after_open.
3182 (arm_elf_before_allocation): New. Call
3183 gld${EMULATION_NAME}_before_allocation then do arm specifics.
3184 (PARSE_AND_LIST_PROLOGUE): Define.
3185 (PARSE_AND_LIST_SHORTOPTS): Define.
3186 (PARSE_AND_LIST_LONGOPTS): Define.
3187 (PARSE_AND_LIST_OPTIONS): Define.
3188 (PARSE_AND_LIST_ARGS_CASES): Define.
3189 (LDEMUL_AFTER_OPEN): Define.
3190 (LDEMUL_BEFORE_ALLOCATION): Define.
3191 (LDEMUL_BEFORE_PARSE): Define.
3192 (LDEMUL_FINISH): Define.
3194 * emultempl/hppaelf.em: Similarly zap most of this file.
3195 (hppaelf_add_stub_section): Prototype.
3196 (hppaelf_layaout_sections_again): Prototype.
3197 (hook_in_stub): Prototype.
3198 (LDEMUL_SET_OUTPUT_ARCH): Define.
3199 (LDEMUL_FINISH): Define.
3200 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
3202 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
3203 (EXTRA_EM_FILE): New.
3204 * emulparams/armelf_linux.sh: Likewise.
3205 * emulparams/armelf_linux26.sh: Likewise.
3206 * emulparams/hppalinux.sh: Likewise.
3207 * emulparams/hppaelf.sh: Likewise.
3210 * emultempl/elf32.em: Fix formatting.
3211 (EXTRA_EM_FILE): Source it.
3212 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
3213 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
3214 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
3215 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
3216 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
3217 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
3218 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
3219 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
3220 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
3221 allow functions in this file to be overridden.
3222 (PARSE_AND_LIST_SHORTOPTS): Handle it.
3224 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
3226 * emultempl/elf32.em: Reorganize file.
3228 2000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
3230 * emulparams/elf64alpha.sh: Implement "-taso" emulation
3231 specific option to fit 64-bit executable in the lower
3232 31-bit address range. This is done by changing start
3233 address of .interp (the very first section of executable)
3234 and then setting EF_ALPHA_32BIT elf header flag.
3236 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3238 * emultempl/m68kcoff.em: New file.
3239 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
3240 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
3242 * Makefile.in: Regenerate.
3244 2000-07-20 H.J. Lu <hjl@gnu.org>
3246 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
3247 and "disable-new-dtags" to stop getopt from treating -d/-e as
3248 abbreviations for these options.
3250 2000-07-20 H.J. Lu <hjl@gnu.org>
3252 * ld.texinfo: Add documentation for --disable-new-dtags and
3255 * ldmain.c (main): Initialize link_info.new_dtags to false.
3257 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
3258 --disable-new-dtags and --enable-new-dtags.
3259 (gld_${EMULATION_NAME}_list_options): Likewise.
3261 2000-07-05 Kenneth Block <krblock@computer.org>
3263 * lexsup.c: Add optional style to demangle switch
3264 * ld.texinfo: Document optional style to demangle switch.
3266 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
3268 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
3270 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
3271 Regenerate dependencies.
3272 * Makefile.in: Rebuild.
3273 * configure.tgt (cris-*-*): New target.
3274 * emulparams/crisaout.sh, emulparams/criself.sh,
3275 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
3276 * po/POTFILES.in, po/ld.pot: Regenerate.
3278 2000-07-20 H.J. Lu <hjl@gnu.org>
3280 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
3281 Print out ignored -z options.
3283 2000-07-19 H.J. Lu <hjl@gnu.org>
3285 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
3286 (PARSE_AND_LIST_PROLOGUE): New.
3287 (PARSE_AND_LIST_LONGOPTS): Likewise.
3288 (PARSE_AND_LIST_OPTIONS): Likewise.
3289 (PARSE_AND_LIST_ARGS_CASES): Likewise.
3291 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
3293 * lexsup.c (ld_options): Comment out 'z'.
3294 (parse_args): Likewise.
3296 * emultempl/elf32.em: Include "elf/common.h".
3297 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
3299 (gld_${EMULATION_NAME}_list_options): Likewise.
3301 * ld.texinfo: Add documentation for the recognized -z options.
3303 2000-07-19 H.J. Lu <hjl@gnu.org>
3305 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
3306 bfd_elf_set_dt_needed_soname ().
3308 2000-07-18 DJ Delorie <dj@cygnus.com>
3310 * pe-dll.c (pe_dll_id_target): check object target name also
3312 2000-07-18 Hans-Peter Nilsson <hp@axis.com>
3314 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
3315 ${INIT_END} if relocating.
3316 (.fini): Likewise ${FINI_START} and ${FINI_END}.
3318 2000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
3320 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
3321 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
3322 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
3323 errors introduced by the old dynamic lib search order.
3325 2000-07-17 DJ Delorie <dj@cygnus.com>
3327 * pe-dll.c (process_def_file): auto-export data items also
3328 (pe_process_import_defs): also see if _imp_ form needed
3330 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
3332 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
3333 for dll import libraries
3335 2000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
3337 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
3338 gcc 2.95.2 and later.
3340 2000-07-11 Kazu Hirata <kazu@hxi.com>
3342 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
3345 2000-07-10 Alan Modra <alan@linuxcare.com.au>
3347 * ldemul.h (struct lang_input_statement_struct): Remove forward
3349 (struct search_dirs): Likewise.
3350 * ldfile.h (struct lang_input_statement_struct): Likewise.
3351 Protect file from multiple inclusion.
3352 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
3353 declaration from macro to file scope.
3355 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
3356 * ldgram.y: Likewise here.
3357 * ldlang.c: And here.
3358 * ldmain.c: And here.
3359 * mpw-elfmips.c: And here.
3360 * mpw-eppcmac.c: And here.
3361 * emultempl/aix.em: And here.
3362 * emultempl/armcoff.em: And here.
3363 * emultempl/armelf.em: And here.
3364 * emultempl/armelf_oabi.em: And here.
3365 * emultempl/beos.em: And here.
3366 * emultempl/elf32.em: And here.
3367 * emultempl/hppaelf.em: And here.
3368 * emultempl/linux.em: And here.
3369 * emultempl/lnk960.em: And here.
3370 * emultempl/pe.em: And here.
3371 * emultempl/sunos.em: And here.
3372 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
3373 * mpw-idtmips.c: Ditto.
3374 * emultempl/generic.em: Ditto.
3375 * emultempl/gld960.em: Ditto.
3376 * emultempl/gld960c.em: Ditto.
3377 * emultempl/mipsecoff.em: Ditto.
3378 * emultempl/ticoff.em: Ditto.
3379 * emultempl/vanilla.em: Ditto.
3381 * pe-dll.c: Include ldfile.h
3382 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
3384 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
3385 arguments to bfd_elf32_size_dynamic_sections call.
3386 (gldelf32ebmip_place_orphan): Add missing arguments to
3387 lang_leave_output_section_statement call.
3389 2000-07-10 H.J. Lu <hjl@gnu.org>
3391 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
3393 (strhash): Likewise.
3394 (compute_dll_image_base): Likewise.
3395 (pe_undef_found_sym): Likewise.
3396 (pe_undef_cdecl_match): Likewise.
3397 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
3398 argument "arch" with ATTRIBUTE_UNUSED.
3400 2000-07-10 Alan Modra <alan@linuxcare.com.au>
3402 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
3404 From Ryan Bradetich <rbradetich@uswest.net>
3405 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
3407 2000-07-09 Alan Modra <alan@linuxcare.com.au>
3409 Changes to create multiple linker stubs, positioned immediately
3410 before the section where they are required.
3411 * emultempl/hppaelf.em: Include elf32-hppa.h.
3412 (stub_sec, file_chain): Delete.
3413 (hppaelf_create_output_section_statements): Don't make a stub
3415 (hook_stub_info): New struct.
3416 (hook_in_stub): New function.
3417 (hppaelf_add_stub_section): New function.
3418 (hppaelf_finish): Do nothing for relocateable links. Modify the
3419 call to elf32_hppa_size_stubs. Move code for updating section
3421 (hppaelf_layaout_sections_again): ..to here, a new function.
3423 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
3424 broken list handling. Pass in a pointer to the list.
3425 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
3427 (hppaelf_before_parse): Prototype.
3428 (hppaelf_set_output_arch): Prototype.
3429 (hppaelf_create_output_section_statements): Prototype.
3430 (hppaelf_delete_padding_statements): Prototype.
3431 (hppaelf_finish): Prototype.
3434 * emultempl/hppaelf.em: Include ctype.h.
3435 (struct orphan_save): New.
3436 (gld${EMULATION_NAME}_place_orphan): New.
3437 (output_rel_find): New.
3438 (hppaelf_get_script): Update from elf32.em.
3439 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
3440 Change emulation_name field to "${EMULATION_NAME}". Add
3441 gld${EMULATION_NAME}_place_orphan.
3443 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
3444 ehppalinux.o, sort it. Regenerate dependencies.
3445 (ehppalinux.c): Depend on hppaelf.em
3446 * Makefile.in: Regenerate.
3448 * configure.tgt: targ_emul=hppalinux for hppa*linux
3450 * emulparams/hppalinux.sh: New.
3451 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
3453 2000-07-08 Alan Modra <alan@linuxcare.com.au>
3455 * lexsup.c (parse_args): Copy section name.
3457 2000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
3459 * emultempl/pe.em: institute the following search order for
3460 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
3461 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
3462 static lib (libfoo.a) if none of the above are found.
3464 2000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
3466 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
3467 (longopts): New --{enable,disable}-auto-image-base options.
3468 (gld_${EMULATION_NAME}_list_options): Document.
3469 (gld_${EMULATION_NAME}_parse): Handle.
3470 (strhash): New static function.
3471 (compute_dll_image_base): New static function.
3472 (gld_${EMULATION_NAME}_set_symbols): Use.
3474 2000-07-05 DJ Delorie <dj@redhat.com>
3478 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
3480 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
3481 * emulparams/elf32btsmip.sh: New file.
3482 * Makefile.am: Add traditional mips target.
3483 * Makefile.in: Rebuild.
3485 2000-07-01 H.J. Lu <hjl@gnu.org>
3487 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
3488 automake to use YLWRAP.
3489 * Makefile.in: Rebuild.
3491 2000-07-01 Alan Modra <alan@linuxcare.com.au>
3493 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
3494 (CLEANFILES): Add DEPA.
3495 * Makefile.in: Regenerate.
3497 2000-06-30 Timothy Wall <twall@ppc>
3499 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
3500 the page in the upper octet of the address.
3502 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
3504 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
3506 2000-06-24 Alan Modra <alan@linuxcare.com.au>
3508 * NEWS: arm-elf does --gc-sections too.
3510 2000-06-22 Alan Modra <alan@linuxcare.com.au>
3512 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
3514 * Makefile.in: Regenerate.
3516 2000-06-21 H.J. Lu <hjl@gnu.org>
3518 * Makefile.am: Rebuild dependency.
3519 * Makefile.in: Rebuild.
3521 2000-06-20 H.J. Lu <hjl@gnu.org>
3523 * Makefile.am: Rebuild dependency.
3524 * Makefile.in: Rebuild.
3526 2000-06-20 Timothy Wall <twall@cygnus.com>
3528 * scripttempl/tic54xcoff.sc: New.
3529 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
3530 * gen-doc.texi: Add flag for TI COFF.
3531 * ld.texinfo: Add documentation for TI COFF handling switches.
3532 * emultempl/ticoff.em: New. TI COFF handling.
3533 * configure.tgt: Add tic54x target.
3534 * Makefile.am: Add tic54x target.
3535 * Makefile.in: Ditto.
3537 2000-06-20 Alan Modra <alan@linuxcare.com.au>
3539 * ldmain.c (set_scripts_dir): Correct pointer comparison when
3540 checking for backslashes.
3542 2000-06-19 Alan Modra <alan@linuxcare.com.au>
3544 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
3546 2000-06-18 Alan Modra <alan@linuxcare.com.au>
3548 * NEWS: Update list of targets supporting --gc-sections.
3550 * scripttempl/elf.sc: KEEP .eh_frame contents.
3551 * scripttempl/elfd30v.sc: Same here.
3553 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
3555 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
3557 * Makefile.in: Rebuild.
3558 * configure.tgt: Recognize m68hc12 and m68hc11.
3559 * scripttempl/elfm68hc12.sc: New file.
3560 * emulparams/m68hc12elfb: New emulation.
3561 * emulparams/m68hc12elf: New emulation.
3562 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
3563 (includes a memory.x script to define the ROM and RAM banks).
3564 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
3565 New configuration files for support of Motorola 68hc11
3567 2000-06-15 Alan Modra <alan@linuxcare.com.au>
3569 * ldmain.c (main): Only change SEC_READONLY for final link.
3571 2000-06-13 H.J. Lu <hjl@gnu.org>
3573 * configure: Regenerate.
3575 2000-06-08 David O'Brien <obrien@FreeBSD.org>
3577 * configure.in (VERSION): Update to show this is the CVS mainline.
3579 2000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3581 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
3582 input objects to be ECOFF.
3583 (check_sections): einfo takes %B, not %P, to print a BFD name.
3585 2000-06-05 Michael Matz <matz@ifh.de>
3587 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
3590 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
3592 2000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
3594 * emulparams/avr1200.sh (STACK): Define as 0.
3595 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
3596 * emulparams/avr4433.sh (STACK): Likewise.
3597 * emulparams/avr44x4.sh (STACK): Likewise.
3598 * emulparams/avr85xx.sh (STACK): Likewise.
3599 * emulparams/avrmega103.sh (STACK): Likewise.
3600 * emulparams/avrmega161.sh (STACK): Likewise.
3601 * emulparams/avrmega603.sh (STACK): Likewise.
3602 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
3603 (__stack): Define from ${STACK} for main().
3605 2000-05-26 Alan Modra <alan@linuxcare.com.au>
3607 * Makefile.am: Update dependencies with "make dep-am"
3608 * Makefile.in: Regenerate.
3610 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
3612 * ldmain.c: Include filenames.h.
3613 (set_scripts_dir): Support backslashes in program name.
3615 2000-05-22 Igor Shevlyakov <igor@windriver.com>
3617 * ldmain.c (main): When deciding if ".text" section should be
3618 read-only, don't forget to reset SEC_READONLY because it
3619 could be already set.
3621 2000-05-22 Thomas de Lellis <tdel@windriver.com>
3623 * ld.1: Add documentation for new command line option:
3624 --section-start <sectionname>=<sectionorg>
3625 This is a generic version of -Ttext etc. which accepts
3626 any section name as a parameter instead of just text/data/
3628 * ld.texinfo: More docs.
3630 * lexsup.c: (parse_args): Recognize new command line option.
3631 (ld_options): Add new option.
3633 2000-05-18 H.J. Lu <hjl@gnu.org>
3635 * lexsup.c (parse_args): `i' == `r', not `q'.
3637 2000-05-18 Jeffrey A Law (law@cygnus.com)
3639 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
3641 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
3642 Rick Gorton <gorton@scrugs.lkg.dec.com>
3644 Add support for '-q' == '--emit-relocs' switch.
3645 * ldmain.c (main): Default to false.
3646 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
3647 * NEWS: Describe the emitrelocations switch.
3648 * ld.texinfo: Describe the emitrelocations switch.
3650 2000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
3652 * emultempl/pe.em (_open_dynamic_archive): New function: Search
3653 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
3654 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
3657 2000-05-15 David O'Brien <obrien@FreeBSD.org>
3659 * lexsup.c (parse_args): Update the year in the copyright notice.
3661 2000-05-13 Alan Modra <alan@linuxcare.com.au>
3663 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
3664 Replace defines with those from intl/libgettext.h to quieten gcc
3667 2000-05-10 H.J. Lu <hjl@gnu.org>
3669 * ldlang.c (open_input_bfds): Don't load the same file within
3670 a group again if the whole archive has been loaded already.
3672 2000-05-03 Alan Modra <alan@linuxcare.com.au>
3674 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
3675 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
3678 2000-05-01 Jim Wilson <wilson@cygnus.com>
3680 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
3682 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
3683 host "ia64-*-linux-gnu*".
3685 2000-04-29 Andreas Jaeger <aj@suse.de>
3687 * ld.h: Correctly check GCC version.
3689 2000-04-25 Jeffrey A Law (law@cygnus.com)
3691 * Makefile.am: Add PA64 support. Add missing dependencies for
3693 * Makefile.in: Rebuilt.
3694 * configure.tgt: Add PA64 support (currently disabled).
3696 2000-04-25 Alan Modra <alan@linuxcare.com.au>
3698 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
3699 (output_rel_find): New function.
3700 (hold_section, hold_use): Delete.
3701 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
3702 hold_interp): Make local to place_orphan.
3703 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
3704 rather than place_section to find possible previous use of orphan.
3705 Similarly find the place-holder output sections. Use returned
3706 value from lang_enter_output_section_statement rather than calling
3707 lang_output_section_statement_lookup.
3708 * emultempl/armelf.em: Same here.
3709 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
3711 * ldlang.c (lang_enter_output_section_statement): Return output
3713 * ldlang.h (lang_enter_output_section_statement): Change
3716 * ldlang.h (lang_output_section_statement): Export it.
3717 * ldlang.c (lang_output_section_statement): Ditto.
3719 2000-04-24 Nick Clifton <nickc@cygnus.com>
3721 * ld.texinfo (Output Section Data): Add note that section data
3722 commands cannot appear outside of section directives.
3724 2000-04-2 Matthew Green <mrg@cygnus.com>
3726 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
3728 2000-04-21 Richard Henderson <rth@cygnus.com>
3729 David Mosberger <davidm@hpl.hp.com>
3731 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
3732 (eelf64_ia64.c): New rule.
3733 * Makefile.in: Rebuild.
3734 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
3735 * emulparams/elf64_ia64.sh: New file.
3737 2000-04-21 Richard Henderson <rth@cygnus.com>
3739 * scripttempl/elfd30v.sc: Place .gcc_except_table.
3741 2000-04-19 Alan Modra <alan@linuxcare.com.au>
3743 * dep-in.sed: Match space at start of file name, not at end.
3745 2000-04-18 H.J. Lu <hjl@gnu.org>
3747 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
3748 lang_leave_output_section_statement () after calling
3749 lang_enter_output_section_statement ().
3750 * emultempl/armelf.em: Likewise.
3752 2000-04-18 Alan Modra <alan@linuxcare.com.au>
3754 * emultempl/elf32.em (struct orphan_save): Add section field.
3755 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
3756 better order, and place first orphan section as we did before the
3757 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
3758 Don't call make_bfd_section here, let wild_doit do the job for us.
3759 Don't build a statement list when we'll only throw it away.
3760 * emultempl/armelf.em: Ditto.
3761 * emultempl/pe.em: Similarly.
3763 2000-04-14 Geoff Keating <geoffk@cygnus.com>
3765 * scripttempl/elfppc.sc: Remove.
3766 * emulparams/elf32ppc.sh: Use elf.sc.
3767 * emulparams/elf32lppc.sh: Use elf.sc.
3768 * emulparams/elf32ppclinux.sh: Use elf.sc.
3769 * emulparams/elf32ppcsim.sh: New file.
3770 * emulparams/elf32lppcsim.sh: New file.
3771 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
3772 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
3773 * Makefile.in: Regenerate.
3774 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
3776 2000-04-14 Alan Modra <alan@linuxcare.com.au>
3778 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
3779 ~SEC_ALLOC sections too. Init start address of debug sections.
3780 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
3781 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
3782 Also set all relocateable section start addresses.
3784 2000-04-13 Geoff Keating <geoffk@cygnus.com>
3786 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
3787 Add new BSS_PLT variable for when .plt need not be contained in
3788 the file. Move _etext so that it is also after .fini, and provide
3789 both etext and _etext with a leading underscore. Mark the start
3792 2000-04-12 Alan Modra <alan@linuxcare.com.au>
3794 * emultempl/elf32.em (struct orphan_save): New.
3795 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
3796 hold_interp): Make them struct orphan_save.
3797 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
3798 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
3799 the end of the relevant section list. Also add associated section
3800 statements to the end of any previous orphan statements.
3801 * emultempl/armelf.em: Similarly.
3802 * emultempl/pe.em: Similarly.
3804 2000-04-11 Alan Modra <alan@linuxcare.com.au>
3806 * ld.texinfo (Simple Example): Remove extraneous paragraph.
3808 2000-04-07 Andrew Cagney <cagney@b1.cygnus.com>
3810 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
3811 --enable-build-warnings option.
3812 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
3813 * Makefile.in, configure: Re-generate.
3815 2000-04-04 Alan Modra <alan@linuxcare.com.au>
3817 * po/ld.pot: Regenerate.
3819 * lexsup.c (help): Restore translated part of bug string.
3821 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
3822 (DEP): Quote when passing vars to sub-make. Add warning message
3824 (DEP1): Rewrite for "gcc -MM".
3825 (CLEANFILES): Add DEP2.
3826 Update dependencies.
3827 * Makefile.in: Regenerate.
3829 2000-04-03 Alan Modra <alan@linuxcare.com.au>
3831 * ld.h: #include "bin-bugs.h"
3832 * lexsup.c (help): Use REPORT_BUGS_TO.
3834 2000-03-27 Denis Chertykov <denisc@overta.ru>
3836 * configure.tgt (avr-*-*): New target support.
3837 * Makefile.am: Likewise.
3838 * scripttempl/elf32avr.sc: New script file.
3839 * emulparams/avr1200.sh: New file.
3840 * emulparams/avr23xx.sh: New file.
3841 * emulparams/avr4433.sh New file.
3842 * emulparams/avr44x4.sh New file.
3843 * emulparams/avr85xx.sh New file.
3844 * emulparams/avrmega103.sh New file.
3845 * emulparams/avrmega161.sh New file.
3846 * emulparams/avrmega603.sh New file.
3847 * Makefile.in: Regenerate.
3849 2000-03-09 Andreas Jaeger <aj@suse.de>
3851 * Makefile.am (check-DEJAGNU): Also unset LANG.
3852 * Makefile.in: Rebuild.
3854 2000-03-06 Ian Lance Taylor <ian@zembu.com>
3856 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
3859 2000-03-02 H.J. Lu <hjl@gnu.org>
3861 * emulparams/elf32mcore.sh: Include "getopt.h".
3863 2000-03-01 Ian Lance Taylor <ian@zembu.com>
3865 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
3867 2000-03-01 H.J. Lu <hjl@gnu.org>
3869 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
3870 * emulparams/shpe.sh: Likewise.
3872 2000-03-01 Nick Clifton <nickc@cygnus.com>
3874 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
3875 to unused parameters.
3877 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
3878 functions only used by DLL code.
3879 (_place_orphan): Initialise 'dollar'.
3881 2000-03-01 H.J. Lu <hjl@gnu.org>
3883 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
3884 indicate if the undefined symbol is a fatal error or not.
3885 Don't delete the output file if "fatal" is false.
3887 2000-02-29 H.J. Lu <hjl@gnu.org>
3889 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
3890 Set LC_COLLATE and LC_ALL to null and export them. It is for
3891 sort which expects the C locale.
3892 Add $(LIBS) to all $(HOSTING_LIBS).
3893 * Makefile.in: Rebuild.
3895 2000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
3897 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
3898 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
3899 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
3900 (ld_emulation_xfer_struct): Add missing NULL initialiser for
3901 find_potential_libraries.
3903 2000-02-28 Jim Blandy <jimb@redhat.com>
3905 * ldgram.y (exclude_name_list): Don't require a comma to separate
3906 list entries; the lexer considers commas to be valid part of a
3907 filename, so in something like `foo, bar' the comma is considered
3908 part of the first filename, `foo,'.
3909 * ld.texinfo: Update section on EXCLUDE_FILE lists.
3911 2000-02-27 Loren J. Rittle <ljrittle@acm.org>
3913 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
3914 host "i[3456]86-*-freebsdelf*".
3916 2000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
3918 * scripttempl/i386go32.sc: Move misplaced semicolons.
3920 2000-02-25 Ian Lance Taylor <ian@zembu.com>
3922 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
3923 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
3924 (eelf64hppa.c, ehppaelf.c): Remove targets.
3925 * Makefile.in: Rebuild.
3927 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
3929 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
3930 GNU/Linux/sparc, but keep the default as 32.
3932 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
3933 it default if sparcv9 or sparc64.
3935 2000-02-24 Nick Clifton <nickc@cygnus.com>
3937 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
3938 * Makefile.in: Regenerate.
3939 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
3941 * ldemul.h (ld_emulation_xfer_struct): Add new field:
3942 find_potential_libraries.
3943 * ldemul.c (ldemul_find_potential_libraries): New function.
3945 * ldfile.c (ldfile_open_file_search): Allow function to be
3947 (ldfile_open_file): Call ldemul_find_potential_libraries.
3948 * ldfile.h: Add prototype for ldfile_open_file_search.
3950 * pe-dll.c: Add support for ARM, MIPS and SH targets.
3952 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
3953 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
3955 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
3956 (gld_X_find_potential_libraries): New function. Search for
3957 libraries called "*.lib".
3959 * scripttempl/pe.sc: Add .pdata section.
3961 2000-02-23 Richard Henderson <rth@cygnus.com>
3963 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
3964 Add and use memory regions.
3966 2000-02-23 Linas Vepstas (linas@linas.org)
3968 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
3970 * Makefile.am: Add support for Linux/IBM 370.
3971 * configure.tgt: Likewise.
3973 * Makefile.in: Regenerate.
3975 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
3977 * ldlang.c (print_input_section, print_data_statement,
3978 print_reloc_statement, print_padding_statement, insert_pad,
3979 size_input_section, lang_check_section_addresses,
3980 lang_size_sections, lang_do_assignments, lang_set_startof,
3981 lang_one_common): Change `opb' to unsigned.
3982 (lang_do_assignments): Also change `size' to unsigned.
3984 2000-02-16 Richard Henderson <rth@cygnus.com>
3986 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
3988 2000-02-16 Timothy Wall <twall@cygnus.com>
3990 * mri.c (mri_draw_tree): Add default LMA region argument to call
3991 to lang_leave_output_section_statement.
3992 * ldlang.h: Update prototypes with LMA region arguments.
3993 * ldlang.c (lang_size_sections): Encapsulate region bounds
3994 checking in os_check_region call.
3995 (os_check_region): New function.
3996 (lang_output_section_statement_lookup): Initialize lma_region.
3997 (lang_leave_output_section_statement): Add LMA region argument.
3998 (lang_leave_overlay): Ditto.
3999 * ldgram.y: Handle LMA region syntax.
4000 * ld.texinfo (Output Section Description): Describe LMA region usage.
4001 * emultempl/armelf.em (gld$place_orphan): Add default value for
4002 lma region in call to lang_leave_output_section_statement.
4003 * emultempl/elf32.em (gld$place_orphan): Add default value for
4004 lma region in call to lang_leave_output_section_statement.
4005 * emultempl/pe.em (gld$place_orphan): Add default value for
4006 lma region in call to lang_leave_output_section_statement.
4009 2000-02-04 Timothy Wall <twall@redhat.com>
4011 * ldlang.c (lang_check_section_addresses): Use bytes instead of
4012 octets when calculating section end addresses.
4014 2000-02-04 Timothy Wall <twall@redhat.com>
4016 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
4018 2000-02-03 Timothy Wall <twall@redhat.com>
4020 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
4022 * ldlang.c (print_input_section, print_data_statement,
4023 print_reloc_statement, print_padding_statement): Print target
4024 address values and section sizes as bytes, not octets.
4025 (insert_pad) Calculate padding size in octets, and adjust "dot"
4027 (size_input_section) Always adjust "dot" by bytes, not octets.
4028 (lang_check_section_addresses, lang_do_assignments) Adjust
4029 "dot" by bytes, not octets. Use the larger of the directive size
4030 or octets_per_byte for the number of octets actually allocated in
4032 (lang_set_startof) Make sure STARTOF returns a target address.
4033 (lang_one_common) Record size changes in octets.
4034 (lang_abs_symbol_at_end_of) Section end symbol's value is
4035 recorded in target bytes.
4036 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
4037 to be clear about behavior when an octet is smaller than one byte.
4039 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
4041 * ldcref.c (output_cref): Don't pass message strings to printf
4045 * ldmisc.c (vfinfo): Same here.
4048 2000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
4050 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
4051 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
4052 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
4053 Add missing NULL initialisers, and comments.
4055 * testsuite/ld-srec/sr3.cc (__rethrow): New.
4057 2000-01-21 Nick Clifton <nickc@cygnus.com>
4059 * ldlang.c (lang_size_sections): Fix typo in comment.
4061 2000-01-18 H.J. Lu <hjl@gnu.org>
4063 * ldlang.c (lang_size_sections): Also update the current
4064 address of a region if the SEC_NEVER_LOAD bit is not set.
4066 2000-01-10 Philip Blundell <pb@futuretv.com>
4068 * configure.tgt (arm*-*-conix*): New target.
4070 2000-01-07 Nick Clifton <nickc@cygnus.com>
4072 * ld.texinfo (Options): Remind users to preceed linker command
4073 line switches with -Wl, (or whatever is appropriate) if it is
4074 being invoked by a comnpiler driver program.
4075 Fix description of the behaviour of the -n command line switch.
4077 2000-01-05 Catherine Moore <clm@cygnus.com>
4079 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
4081 * ld.texinfo (EXCLUDE_FILE): Update documentation.
4082 * ldgram.y (wildcard_spec): Support a list of excluded_files.
4083 (exclude_name_list): New.
4084 ldlang.c (walk_wild_section): Support list of excluded files.
4085 (print_wild_statement): Likewise.
4086 (lang_add_wild): Likewise.
4087 * ldlang.h (lang_wild_statement_type): Likewise.
4088 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
4090 2000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
4092 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
4093 (process_def_file): Use.
4094 (pe_dll_compat_implib): New variable.
4097 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
4098 pe_dll_compat_implib.
4100 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
4101 compat-implib options.
4102 (gld_${EMULATION_NAME}_list_options): List new options.
4103 (gld_${EMULATION_NAME}_parse_args): Handle.
4105 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
4108 * deffilep.y (opt_name): Allow "." in name.
4110 For older changes see ChangeLog-9899
4116 version-control: never