* more static'ing.
[binutils.git] / ld / ChangeLog
blob80536ca603124a47408ff8b8ed13bae69c36bb29
1 2005-04-29  Ben Elliston  <bje@au.ibm.com>
3         * ldgram.y (lang_memory_region_type): Make static.
4         (ldgram_want_filename): Likewise.
5         * ldemul.c (ld_emulation): Make static.
6         * ldfile.h (ldfile_find_command_file): Remove extern.
7         * ldfile.c (ldfile_find_command_file): Make static.
8         * ldlang.h (unique_section_list): Remove extern declaration.
9         * ldlang.c (unique_section_list): Make static.
10         * mri.h (symbol_truncate): Remove extern declaration.
11         * mri.c (symbol_truncate): Make static.
12         (order, only_load, address, alias): Likewise.
13         (alignment, subalignment): Likewise.
15 2005-04-27  H.J. Lu  <hongjiu.lu@intel.com>
17         * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
18         Use the first SEC_ALLOC section which isn't SEC_READONLY or the
19         last SEC_ALLOC section if such a section doesn't exist.
21 2005-04-24  Mark Kettenis  <kettenis@gnu.org>
23         * configure.host: Add *-*-openbsd support.
25 2005-04-15  Julian Brown  <julian@codesourcery.com>
27         * ld.texinfo: Document --use-blx.
28         * emultempl/armelf.em (use_blx): New variable.
29         (arm_elf_create_output_section_statements): Communicate value of
30         use_blx to bfd.
31         (PARSE_AND_LIST_PROLOGUE): Add OPTION_USE_BLX.
32         (PARSE_AND_LIST_OPTIONS): Add --use-blx option.
33         (PARSE_AND_LIST_ARGS_CASES): Add OPTION_USE_BLX case.
35 2005-04-14  Alan Modra  <amodra@bigpond.net.au>
37         * Makefile.am (NO_WERROR): Define.  Use instead of -Wno-error.
38         * configure.in: Include ../bfd/warning.m4 contents.
39         * Makefile.in: Regenerate.
40         * configure: Regenerate.
42 2005-04-12  Alan Modra  <amodra@bigpond.net.au>
44         * Makefile.am: Run "make dep-am".
45         (ldgram.o, ldlex.o, deffilep.o): Add -Wno-error to command.
46         * Makefile.in: Regenerate.
47         * config.in: Regenerate.
49 2005-04-11  Alan Modra  <amodra@bigpond.net.au>
51         * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed): Ignore
52         as_needed libs that were not needed.
53         (gld${EMULATION_NAME}_check_needed): Likewise.
55 2005-04-07  Nick Clifton  <nickc@redhat.com>
57         * emultempl/m68kcoff.em: Include ldexp.h and ldlang.h so that
58         ldfile.h can use the lang_input_statement type. 
60 2005-04-06  Jakub Jelinek  <jakub@redhat.com>
62         * ldlang.c: Formatting.
63         (walk_wild_consider_section): Remember return value from wildcardp.
64         (is_simple_wild): Use strcspn instead of 2 strpbrk calls and strlen.
65         (wild_spec_can_overlap): Use strcspn instead of strpbrk and strlen.
67 2005-04-06  Robert O'Callahan  <rocallahan@novell.com>
69         * ld.h (lean_section_userdata_type): Remove.
70         (fat_section_userdata_type): Remove file field.
71         (SECTION_USERDATA_SIZE): Remove.
72         * ldlang.c (init_os): Eliminate initialization of unused
73         lean_section_userdata_type.
75         * ldlang.h (callback_t, walk_wild_section_handler_t): New
76         typedefs.
77         (struct lang_wild_statement_struct): Add walk_wild_section_handler
78         and handler_data fields.
79         * ldlang.c (callback_t): Removed.
80         (walk_wild_consider_section, walk_wild_section_general,
81         section_iterator_callback, find_section, is_simple_wild,
82         match_simple_wild, walk_wild_section_specs1_wild0,
83         walk_wild_section_specs1_wild1, walk_wild_section_specs2_wild1,
84         walk_wild_section_specs3_wild2, walk_wild_section_specs4_wild2,
85         wild_spec_can_overlap, analyze_walk_wild_section_handler): New
86         functions.
87         (lang_add_wild): Call analyze_walk_wild_section_handler.
88         (walk_wild_section): Renamed to walk_wild_section_general and
89         created a wrapper function.
90         (section_iterator_callback_data): New typedef.
92 2005-04-04  Nick Clifton  <nickc@redhat.com>
94         * configure.in: Add a check for <unistd.h> providing a prototype
95         for getopt() which is compatible with the one in
96         include/getopt.h.  If so then define HAVE_DECL_GETOPT.
97         * configure: Regenerate.
98         * config.in (HAVE_DECL_GETOPT): Add.
99         * ldemul.c: Include config.h
100         * lexsup.c: Likewise.
101         * emultempl/elf32.sc: Likewise.
103 2005-03-29  Alan Modra  <amodra@bigpond.net.au>
105         * emultempl/elf32.em (gld${EMULATION_NAME}_layout_sections_again):
106         New function, extracted from static void gld${EMULATION_NAME}_finish.
107         (gld${EMULATION_NAME}_strip_empty_sections): Likewise.
108         (gld${EMULATION_NAME}_provide_init_fini_syms): Likewise.
109         * emultempl/ppc64elf.em: Revert last change.
110         (ppc_layout_sections_again): Use
111         gld${EMULATION_NAME}_layout_sections_again.
112         (ppc_finish): Don't call gld${EMULATION_NAME}_finish.  Instead call
113         gld${EMULATION_NAME}_strip_empty_sections and
114         gld${EMULATION_NAME}_provide_init_fini_syms.
115         * emultempl/hppaelf.em: Similarly.
117 2005-03-29  Alan Modra  <amodra@bigpond.net.au>
119         * emultempl/ppc64elf.em (need_laying_out): Delete.  Remove all refs.
120         (ppc_finish): Don't call bfd_elf_discard_info.
121         * emultempl/hppaelf.em: Similarly.
123 2005-03-24  Nick Clifton  <nickc@redhat.com>
125         * po/fr.po: Updated French translation.
127 2005-03-23  Mike Frysinger  <vapier@gentoo.org>
128             Nick Clifton  <nickc@redhat.com>
130         * configure.host: Accept any C library to accompany a GNU Linux
131         implementation, not just the GNU C library.
132         * configure.tgt: Likewise.
133         * emultempl/elf32.em: Likewise.
135 2005-03-22  H.J. Lu  <hongjiu.lu@intel.com>
137         * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols): New
138         (gld${EMULATION_NAME}_finish): Call
139         gld${EMULATION_NAME}_provide_bound_symbols to provide
140         __preinit_array_start, __preinit_array_end, __init_array_start,
141         __init_array_end, __fini_array_start and __fini_array_end.
143         * scripttempl/elf.sc: Don't provide __preinit_array_start,
144         __preinit_array_end, __init_array_start, __init_array_end,
145         __fini_array_start nor __fini_array_end.
147 2005-03-23  Alan Modra  <amodra@bigpond.net.au>
149         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Set
150         SEC_EXCLUDE on .gnu.warning sections.
152 2005-03-22  Alan Modra  <amodra@bigpond.net.au>
154         * scripttempl/elf.sc (SBSS): Don't provide sbss start and end syms.
156 2005-03-21  Alan Modra  <amodra@bigpond.net.au>
158         * emultempl/ppc32elf.em (gld${EMULATION_NAME}_after_allocation): New
159         function.
160         (LDEMUL_AFTER_ALLOCATION): Define.
162 2005-03-21  Alan Modra  <amodra@bigpond.net.au>
164         * emultempl/ppc64elf.em (ppc_finish): Rename from
165         gld${EMULATION_NAME}_finish.  Call gld${EMULATION_NAME}_finish.
166         (LDEMUL_FINISH): Update.
167         * emultempl/hppaelf.em (hppaelf_finish, LDEMUL_FINISH): Likewise.
168         * emultempl/m68hc1xelf.em (m68hc11elf_finish, LDEMUL_FINISH): Likewise.
170 2005-03-18  Julian Brown  <julian@codesourcery.com>
172         * scripttempl/armbpapi.sc (.rel.dyn): Add .rel.init_array,
173         .rel.fini_array.
174         (.rela.dyn): Add .rela.init_array, .rela.fini_array.
175         (SECTIONS): Add .rel.other, .rela.other, .reli.other after PLT relocs.
177 2005-03-18  H.J. Lu  <hongjiu.lu@intel.com>
179         * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Don't set
180         bfd_section when removing unused empty output sections for
181         non-relocatable link.
183 2005-03-19  Alan Modra  <amodra@bigpond.net.au>
185         * ldlang.c (lang_insert_orphan): Use old section_tail rather than
186         traversing the bfd section list to find pointer to new section.
188 2005-03-18  Alan Modra  <amodra@bigpond.net.au>
190         * scripttempl/elf.sc: When CREATE_SHLIB, put .sdata2 and .sbss2
191         input sections into .sdata and .sbss output respectively.
193 2005-03-16  David Heine  <dlheine@tensilica.com>
194             Bob Wilson  <bob.wilson@acm.org>
196         * ldlang.c (IGNORE_SECTION): Remove check for zero size.
197         (lang_check_section_addresses): Ignore zero size sections here.
199 2005-03-16  H.J. Lu  <hongjiu.lu@intel.com>
201         * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Remove
202         unused empty output sections for non-relocatable link.
204         * ld.h (args_type): Remove gc_sections.
206         * ldlang.c (lang_mark_used_section): New.
207         (lang_gc_sections): Use link_info.gc_sections instead of
208         command_line.gc_sections.
209         * ldmain.c (main): Likewise.
210         * lexsup.c (parse_args): Likewise.
211         * ldlang.c (lang_process): Call lang_mark_used_section.
213         * ldmain.c (main): Initialize link_info.gc_sections to FALSE.
215 2005-03-16  Nick Clifton  <nickc@redhat.com>
216             Ben Elliston  <bje@au.ibm.com>
218         * configure.in (werror): New switch: Add -Werror to the
219         compiler command line.  Enabled by default.  Disable via
220         --disable-werror.
221         * configure: Regenerate.
223 2005-03-16  Alan Modra  <amodra@bigpond.net.au>
225         * emulparams/elf32ppclinux.sh (OTHER_READWRITE_SECTION): Delete.
226         (OTHER_RELRO_SECTIONS): Set this instead.
228 2005-03-15  Nick Clifton  <nickc@redhat.com>
230         * NEWS: Add cutoff for changes in 2.16 release.
232 2005-03-15  Mikkel Krautz  <krautz@gmail.com>
234         * configure.tgt (x86_64-elf): Add target.
236 2005-03-15  Alan Modra  <amodra@bigpond.net.au>
238         * po/es.po: Commit new Spanish translation.
240 2005-03-14  Alan Modra  <amodra@bigpond.net.au>
242         * ldexp.c (exp_fold_tree): Ensure return value is initialized.
243         Tidy etree_assert case.
245 2005-03-14  Alan Modra  <amodra@bigpond.net.au>
247         * po/tr.po: Commit new Turkish translation.
249 2005-03-11  Daniel Jacobowitz  <dan@codesourcery.com>
251         * Makefile.am: Remove references to em68klynx.o and esparclynx.o.
252         * Makefile.in: Regenerated.
253         * emulparams/m68klynx.sh, emulparams/sparclynx.sh: Remove.
255 2005-03-07  Nick Clifton  <nickc@redhat.com>
257         * po/fr.po: Updated translation.
259 2005-03-05  Alan Modra  <amodra@bigpond.net.au>
261         * po/ld.pot: Regenerate.
263 2005-03-02  Jan Beulich  <jbeulich@novell.com>
265         * ldmain.c (remove_output): Use unlink_if_ordinary instead of unlink.
266         * pe-dll.c (pe_dll_generate_implib): Likewise.
268 2005-02-24  Ben Elliston  <bje@au.ibm.com>
270         * ldfile.c: Remove GNU960 conditional code.
271         * emultempl/gld960.em: Likewise.
272         * emultempl/gld960c.em: Likewise.
273         * emultempl/lnk960.em: Likewise.
275 2005-02-24  Nick Clifton  <nickc@redhat.com>
277         * emultempl/lnk960.em (lnk960_before_parse): Remove redundant
278         empty string from calls to concat.
280 2005-02-23  Nick Clifton  <nickc@redhat.com>
282         * emultempl/lnk960.em (lnk960_before_parse): Terminate list of
283         arguments passed to concat() with a NULL.
285         * emultempl/m68kcoff.em: Include ldexp.h and ldlang.h because they
286         define types needed by ldfile.h
288 2005-02-23  Alan Modra  <amodra@bigpond.net.au>
290         * pe-dll.c: Warning fixes.
291         * emultempl/sunos.em: Likewise.
293 2005-02-22  Daniel Jacobowitz  <dan@codesourcery.com>
295         * ldlang.c (section_already_linked): Don't call
296         bfd_section_already_linked for dynamic objects.
298 2005-02-22  Alan Modra  <amodra@bigpond.net.au>
300         * ldexp.c: Warning fixes.
301         * ldwrite.c: Likewise.
302         * emultempl/elf32.em: Likewise.
304 2005-02-21  H.J. Lu  <hongjiu.lu@intel.com>
306         * ldlang.c (lang_add_section): Check SEC_TIC54X_BLOCK for TI
307         tic54x input only.
308         (lang_size_sections_1): Check SEC_COFF_SHARED_LIBRARY for COFF
309         and ECOFF output only.
311 2005-02-21  Alan Modra  <amodra@bigpond.net.au>
313         * config.in: Regenerate.
314         * configure: Regenerate.
316 2005-02-17  Zack Weinberg  <zack@codesourcery.com>
318         * ldexp.c (assigning_to_dot): New global flag.
319         (fold_name): If assigning_to_dot is true, object immediately to
320         an undefined symbol.
321         (exp_fold_tree): Set and clear assigning_to_dot around the
322         recursive call to exp_fold_tree to process the right-hand side
323         of an assignment to the location counter.
325 2005-02-17  Paul Brook  <paul@codesourcery.com>
327         * scripttempl/armbpabi.sc: Add dummy name to version block.
329 2005-02-17  Alan Modra  <amodra@bigpond.net.au>
331         * ldexp.c (new_abs): Init new.str.
333 2005-02-15  Mark Mitchell  <mark@codesourcery.com>
335         * configure.in (AC_CHECK_FUNCS): Add glob.
336         * configure: Regenerated.
337         * emultempl/elf32.em (<glob.h>): Do not include if HAVE_GLOB is
338         not defined.
339         (gld${EMULATION_NAME}_parse_ld_so_conf_include): Do not use glob
340         if HAVE_GLOB is not defined.
342 2005-02-16  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
344         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Define
345         lib_path if NATIVE is yes.
347 2005-02-16  Alan Modra  <amodra@bigpond.net.au>
349         * emultempl/ppc64elf.em (ppc_create_output_section_statements): Make
350         an error creating fake bfd fatal.
351         (ppc_before_allocation): Continue on after errors.
352         (gld${EMULATION_NAME}_finish): Likewise.
354 2005-02-15  Nick Clifton  <nickc@redhat.com>
356         * ldlex.l (YY_NO_UNPUT): Define so that the yy_unput function is
357         not declared.  It is not used and its presence causes a compile
358         time warning.
360 2005-02-11  Zack Weinberg  <zack@codesourcery.com>
362         * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed):
363         If st.st_ino is zero, do not treat the library as a duplicate.
365 2005-02-10  Jakub Jelinek  <jakub@redhat.com>
367         * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
368         Set BFD_LINKER_CREATED on the stubs bfd.
369         * emultempl/ppc64elf.em (ppc_create_output_section_statements):
370         Likewise.
372 2005-02-08  Mark Mitchell  <mark@codesourcery.com>
374         * scripttempl/armbpabi.sc (VERSION): Make special section symbols
375         local.
376         (Image$$ER_RO$$Base): Define whenever RELOCATING.
377         (Image$$ER_RO$$Limit): Likewise.
378         (SHT$$INIT_ARRAY$$Base): Likewise.
379         (SHT$$INIT_ARRAY$$Limit): Likeise.
381 2005-02-10  Ben Elliston  <bje@au.ibm.com>
383         * emultempl/beos.em: Remove #if 0 and #if 1 blocks.
385 2005-02-08  Richard Sandiford  <rsandifo@redhat.com>
387         * configure.tgt (mips64*el-*-linux-gnu*): Define targ_extra_libpath
388         to include o32 and n64 emulations.
389         (mips64*-*-linux-gnu*): Likewise.
391 2005-02-08  Hans-Peter Nilsson  <hp@axis.com>
393         * ldmain.c (warning_callback, warning_find_reloc): Prepend
394         "warning: " to warning messages.
396 2005-02-04  Alan Modra  <amodra@bigpond.net.au>
398         * emultempl/elf32.em (gld${EMULATION_NAME}_find_exp_assignment): Don't
399         look up symbol for etree_provide here.
401 2005-02-02  Daniel Jacobowitz  <dan@codesourcery.com>
403         * emulparams/elf32bmip.sh (TEXT_DYNAMIC): Always set.
405 2005-02-01  Edward Welbourne  <eddy@opera.com>
406             Nick Clifton  <nickc@redhat.com>
408         * ld.texinfo (Source Code Reference): New node describing how to
409         access linker script defined variables from source code.
411 2005-02-01  Alan Modra  <amodra@bigpond.net.au>
413         * ld.texinfo: Clarify --as-needed operation.
415 2005-01-31  Andrew Cagney  <cagney@gnu.org>
417         * configure: Regenerate to track ../gettext.m4.
419 2005-01-31  Nick Clifton  <nickc@redhat.com>
421         * ldver.c (ldversion): Bump reported copyright date to 2005.
423 2005-01-31  Nick Clifton  <nickc@redhat.com>
425         * configure.tgt: Remove obsolete targets m68k-lynxos and
426         sparc-lynxos.
428 2005-01-28  Julian Brown  <julian@codesourcery.com>
430         * emultempl/armelf.em (fix_v4bx): New variable.
431         (arm_elf_create_output_section_statements): Communicate fix_v4bx flag
432         value to bfd.
433         (PARSE_AND_LIST_PROLOGUE): Add option token OPTION_FIX_V4BX.
434         (PARSE_AND_LIST_LONGOPTS): Add option --fix-v4bx.
435         (PARSE_AND_LIST_OPTIONS): Add option --fix-v4bx.
436         (PARSE_AND_LIST_ARGS_CASES): Add option OPTION_FIX_V4BX.
437         * NEWS: Mention --fix-v4bx.
438         * ld.texinfo: Document --fix-v4bx.
440 2005-01-25  Mark Mitchell  <mark@codesourcery.com>
442         * emulparams/armsymbian.sh (OTHER_READONLY_SECTIONS): Define, so
443         as to include .ARM.exidx$${Base,Limit}.
444         * ld/scripttempl/armbpabi.sc: Move .plt to end of text segment.
445         Define IMAGE$$ER_RO$${Base,Limit} and SHT$$INIT_ARRAY$${Base,Limit}.
446         Put .init_array, .fini_array, etc. into the read-only data
447         segment.
449 2005-01-25  Alan Modra  <amodra@bigpond.net.au>
451         * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Formatting.
452         (gld${EMULATION_NAME}_after_open): Ignore needed libs if they were
453         only needed by an as-needed lib that didn't get linked.
455 2005-01-23  Alan Modra  <amodra@bigpond.net.au>
457         * ld.texinfo (Output Section Keywords <CONSTRUCTORS>): Correct
458         __DTOR_LIST__ description.
460 2005-01-23  Alan Modra  <amodra@bigpond.net.au>
462         * ld.texinfo (Location Counter <dot outside sections>): Document
463         effects of orphan section placement, and ". = ." workaround.
464         * Makefile.in: Regenerate.
466 2005-01-22  Richard Sandiford  <rsandifo@redhat.com>
468         * emulparams/elf32bmip.sh (OTHER_GOT_SECTIONS): Add ". = .;".
469         * emulparams/elf32bmipn32-defs.sh (OTHER_GOT_SECTIONS): Likewise.
471 2005-01-21  Jakub Jelinek  <jakub@redhat.com>
473         * ldgram.y (AS_NEEDED): New token.
474         (input_list): Handle AS_NEEDED ( input_list ).
475         * ldlex.l (AS_NEEDED): Add.
476         * ld.texinfo: Document AS_NEEDED ().
477         * NEWS: Mention AS_NEEDED ().
479 2005-01-21  Ben Elliston  <bje@au.ibm.com>
481         * ldlang.c (lang_reasonable_defaults): Remove.
482         (lang_process): Don't call lang_reasonable_defaults.
484         * ldexp.c (exp_assop): Remove #if 0'd code.
485         (exp_print_tree): Likewise.
486         * ldlang.c (lang_memory_region_lookup): Likewise.
487         (open_output): Likewise.
488         (lang_do_assignments_1): Likewise.
489         (lang_place_orphans): Likewise.
490         (lang_enter_output_section_statement): Likewise.
491         (lang_reasonable_defaults): Likewise.
492         * ldlang.h (struct lang_input_statement_struct): Likewise.
493         * mri.c (mri_draw_tree): Likewise.
494         (mri_load): Likewise.
495         * pe-dll.c (generate_reloc): Likewise.
496         (make_import_fixup_entry): Likewise.
497         (pe_as16): Likewise.
498         * emultempl/beos.em (set_pe_subsystem): Likewise.
499         * emultempl/hppaelf.em (hppaelf_after_parse): Likewise.
500         * emultempl/pe.em: Likewise.
501         * emultempl/xtensaelf.em (xtensa_colocate_literals): Likewise.
503 2005-01-20  Daniel Jacobowitz  <dan@codesourcery.com>
505         * Makefile.am (ALL_EMULATIONS): Add earmelfb_linux_eabi.o.
506         (earmelfb_linux_eabi.c): New target.
507         * Makefile.in: Regenerated.
508         * configure.tgt (arm*b-*-linux-gnueabi): New target.
509         * emulparams/armelfb_linux_eabi.sh: New file.
511 2005-01-20  Nick Hudson  <skrll@netbsd.org>
513         PR ld/676
514         * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
515         Handle bfd_elf32_hppa_nbsd_vec.
517 2005-01-19  Richard Sandiford  <rsandifo@redhat.com>
519         * ldmain.h (ld_sysroot): Change type to a constant string.
520         * ldmain.c (ld_sysroot): Likewise.
521         (get_relative_sysroot, get_sysroot): New functions, adding command-line
522         support for changing the sysroot.
523         (main): Call the new functions.
524         * lexsup.c (OPTION_SYSROOT): New.
525         (ld_options): Add --sysroot.
526         (parse_args): Add a dummy handler for it.
527         * ld.texinfo (--sysroot): Document.
528         * NEWS: Mention the new --sysroot option.
530 2005-01-18  Alan Modra  <amodra@bigpond.net.au>
532         * ldlang.c (section_already_linked): Adjust bfd_link_just_syms call.
533         (lang_place_orphans): Don't abort on just_syms_flag, instead call
534         bfd_link_just_syms.
536 2005-01-16  Danny Smith  <dannysmith@users.sourceforge.net>
538         * defilep.y (def_name, def_library): Combine into...
539         (def_image_name): New function.  Strip name to basename,
540         with warning.
542 2005-01-12  Mark Kettenis  <kettenis@gnu.org>
544         * configure.in: Be sure to invoke config.sub using the shell.
545         * configure: Regenerate.
547 2005-01-11  Alan Modra  <amodra@bigpond.net.au>
549         * configure.host: Correct sed patterns for last change.
551 2005-01-10  Nick Clifton  <nickc@redhat.com>
553         PR binutils/609
554         * ldmisc.c (vfinfo): Add an extra argument: is_warning.  Use this
555         to determine whether config.make_executable should be set to FALSE in
556         conjunction with config.fatal_warnings.
557         (info_msg, minfo, lfinof): Pass FALSE as the extra argument.
558         (einfo): Pass TRUE as the extra argument.
560 2005-01-10  Greg Schaffer  <gschafer@zip.com.au>
562         * configure.host (linux targets): Use "${CC} -dumpspecs" instead
563         of "${CC} --print-file-name=specs" to appease GCC versions >= 4.0.
564         (ia64-*-aix): Delete - this target is obsolete, and would be
565         broken by this patch.
567 2005-01-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
569         * configure.host (sparc*-*-solaris2*): Rename into sparc-*-solaris2*.
570         (sparc64-sun-solaris2*): New host.
572 2005-01-06  Paul Brook  <paul@codesourcery.com>
574         * Makefie.am: Add earmelf_vxworks.
575         * Makefile.in: Regenerate.
576         * configure.tgt: Make arm-*-vxworks a separate case.
577         * emulparams/armelf_vxworks.sh: New function.
579 2005-01-06  Alan Modra  <amodra@bigpond.net.au>
581         * emultempl/ppc64elf.em (no_multi_toc): New var.
582         (gld${EMULATION_NAME}_finish): Pass to ppc64_elf_setup_section_lists.
583         (OPTION_NO_MULTI_TOC): Define.
584         (PARSE_AND_LIST_LONGOPTS): Add --no-multi-toc support.
585         (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Likewise.
587 2005-01-05  Nick Clifton  <nickc@redhat.com>
589         PR binutils/614
590         * ldmisc.c (vfinfo): Alter output to conform to the GNU Coding
591         Standard's specification for parsable error messages.
593 2005-01-04  Paul Brook  <paul@codesourcery.com>
595         * Makefile.am: Correct dependency for earmsymbian.c.
596         * Makefile.in: Regenerate.
598 2004-12-28  Danny Smith  <dannysmith@users.sourceforge.net>
600         * emultempl/pe.em (set_pe_subsystem): Change second arg to
601         lang_add_entry to FALSE.
603 2004-12-23  Nick Clifton  <nickc@redhat.com>
605         PR 600
606         * emulparams/shelf.sh (.stack): Increase stack start address to
607         0x300000.
609 2004-12-20  Nick Clifton  <nickc@redhat.com>
611         * ldmain.c (main): Issue an error message if -static and -shared
612         are used together.
614 2004-12-17  Jakub Jelinek  <jakub@redhat.com>
616         * ldexp.h (exp_data_seg): Add min_base and maxpagesize fields.
617         * ldexp.c (fold_binary) <case DATA_SEGMENT_ALIGN>: Initialize them.
618         * ldlang.c (lang_size_sections): Use them to avoid wasting virtual
619         address space at DATA_SEGMENT_ALIGN.  Fix computation of expected
620         PT_GNU_RELRO segment end.
622 2004-12-14  P.J. Darcy  <darcypj@us.ibm.com>
624         * configure.tgt: Add s390x-ibm-tpf support.
626 2004-12-16  Martin Kögler  <mkoegler@auto.tuwien.ac.at>
628         * ldmisc.c (vfinfo): Handle the case where %B is passed a NULL
629         BFD.
631 2004-12-07  Ben Elliston  <bje@gnu.org>
633         * ldemul.h: Forward declare struct option.
635 2004-12-01  Danny Smith  <dannysmith@users.sourceforge.net>
637         * scripttempl/pe.sc (.data): Add .jcr subsection.
639 2004-11-30  Paul Brook  <paul@codesourcery.com>
641         * emultempl/armelf.em: Ignore -p and -no-pipeline-knowledge.
643 2004-11-30  Tero Niemela  <tero_niemela@yahoo.com>
645         * Makefile.am: Change LOCALEDIR to $(datadir)/share.
646         * Makefile.in: Regenerate.
648 2004-11-26  Melissa Mears  <asterisk@graces.dricas.com>
650         * emultempl/pe.em: Add --subsystem:xbox as well as
651         --subsystem:%d.
652         * ld.texinfo: (ld_options): Document acceptance of subsystem xbox
653         and numeric subsystems.
655 2004-11-24  Alan Modra  <amodra@bigpond.net.au>
657         * ldexp.c (fold_name): Correct PR 338 fix.
659 2004-11-19  Mark Mitchell  <mark@codesourcery.com>
661         * Makefile.am (ALL_EMULATIONS): Add earmelf_linux_eabi.o.
662         (earmelf_linux_eabi.c): New target.
663         * configure.tgt (arm*-*-linux-gnueabi): Handle it.
664         * emulparams/armelf_linux_eabi.sh: New file.
665         * Makefile.in: Regenerated.
667 2004-11-19  Nick Clifton  <nickc@redhat.com>
669         PR 518
670         * ld.texinfo (MEMORY): Update the descriptions of the ORIGIN and
671         LENGTH fields in the MEMORY command, to explicitly state that
672         symbols cannot be used in their expressions.
674 2004-11-19  Jon Beniston <jon@beniston.com>
676         * ld/ldlex.l: Allow ORIGIN and LENGTH in EXPRESSION.
677         * ld/ldgram.y: Add ORIGIN and LENGTH expressions.
678         * ld/ldexp.c (fold_name): Implement LENGTH() and ORIGIN() functions
679         which return the length and origin of a memory.
680         * ld/ld.texinfo: Document LENGTH() and ORIGIN() functions.
681         * NEWS: Mention support for ORIGIN and LENGTH operators.
683 2004-11-17  Daniel Jacobowitz  <dan@codesourcery.com>
685         * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Don't use
686         a dynamic object for stubs.
688 2004-11-04  Paul Brook  <paul@codesourcery.com>
690         * ld.texinfo: Document --default-imported-symver.
691         * ldmain.c (main): Set link_info.default_imported_symver.
692         * lexsup.c (option_values): Add OPTION_DEFAULT_IMPORTED_SYMVER.
693         (ld_options): Add --default-imported-symver.
694         (parse_args): Handle OPTION_DEFAULT_IMPORTED_SYMVER.
696 2004-11-08  Inderpreet Singh   <inderpreetb@nioda.hcltech.com>
697             Vineet Sharma      <vineets@noida.hcltech.com>
699         * Makefile.am: Add entries for new maxq-coff target.
700         * Makefile.in: Regenerate.
701         * configure.tgt: Add support for maxq.
702         * emulparams/maxqcoff.sh: New File.
703         * scripttempl/maxqcoff.sc: New linker script for target maxq.
704         * NEWS: Mention the new target.
706 2004-11-08  Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
708         * testsuite/ld-scripts/weak.exp: Enable test on PE,
709         XFAIL non-i386 PE.
710         * testsuite/ld-undefined/weak-undef.exp: Enable test on PE,
711         XFAIL non-i386 PE.
712         * testsuite/lib/ld-lib.exp (is_pecoff_format): New.
714 2004-11-04  Daniel Jacobowitz  <dan@debian.org>
716         * Makefile.am (ALL_EMULATIONS): Remove earmelf_oabi.o.
717         (earmelf_oabi.c): Remove rule.
718         * configure.tgt: Remove arm-*-oabi and thumb-*-oabi.
719         * emulparams/armelf_oabi.sh, emultempl/armelf_oabi.em: Delete files.
720         * Makefile.in: Regenerated.
722 2004-11-04  Hans-Peter Nilsson  <hp@axis.com>
724         * configure.tgt (crisv32-*-*): Handle like cris-*-* for non-aout.
725         * emulparams/criself.sh (INIT_START): Remove emitted "push srp".
726         (FINI_START): Ditto.
727         (INIT_END): Remove emitted "jump [sp+]".
728         (FINI_END): Ditto.
730 2004-11-04  Alan Modra  <amodra@bigpond.net.au>
732         * emultempl/ppc64elf.em (no_tls_opt): Rename from notlsopt.
733         (no_opd_opt, no_toc_opt): New static vars.
734         (ppc_before_allocation): Don't edit opt if no_opd_opt.  Call
735         ppc64_elf_edit_toc.
736         (OPTION_NO_OPD_OPT, OPTION_NO_TOC_OPT): Define.
737         (PARSE_AND_LIST_LONGOPTS): Add no-opd-optimize and no-toc-optimize.
738         (PARSE_AND_LIST_OPTIONS): Describe new options.
739         (PARSE_AND_LIST_ARGS_CASES): Handle them.
741 2004-10-27  Nick Clifton  <nickc@redhat.com>
743         * emultempl/alphaelf.em (alpha_after_parse): Add extra, NULL,
744         parameter to invocation of lang_section_start.
745         * emultempl/aix.em (_handle_option): Likewise.
747         * Makefile.am (eelf64alpha.c, eelf64alpha_fbsd.c,
748         eelf64alpha_nbsd.c): Add dependency upon emultempl/alphaelf.em.
749         * Makefile.in: Regenerate.
751 2004-10-26  Mark Mitchell  <mark@codesourcery.com>
753         * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Do not emit
754         __exidx_{start,end} when not relocating.
756 2004-10-25  Mark Mitchell  <mark@codesourcery.com>
758         * Makefile.in (earmsymbian.c): Depend on armbpabi.sc, not elf.sc.
759         * ldexp.h (segment_type): New type.
760         (segments): New variable.
761         * ldexp.c (segments): New variable.
762         (exp_print_token): Handle SEGMENT_START.
763         (fold_binary): Likewise.
764         * ldgram.y (SEGMENT_START): Declare it as a token.
765         (exp): Handle SEGMENT_START.
766         * ldlang.h (lang_address_statement_type): Add segment field.
767         (lang_section_start): Change prototype.
768         * ldlang.c (map_input_to_output_sections): Do not process section
769         assignments if a corresponding SEGMENT_START has already been
770         seen.
771         (lang_section_start): Add segment parameter.
772         * ldlex.l (SEGMENT_START): Add it.
773         * lexsup.c (seg_segment_start): New function.
774         (parse_args): Use it for -Tbss, -Tdata, and -Ttext.
775         * ld.texinfo (SEGMENT_START): Document it.
776         * emulparams/armsymbian.sh (EMBEDDED): Set it.
777         * scripttempl/armbpabi.sc: Use SEGMENT_START to control segment
778         base addresses.  Do not map relocations.
779         * NEWS: Mention SEGMENT_START.
781 2004-10-26  Paul Brook  <paul@codesourcery.com>
783         * ld.texinfo: Document --default-symver.
784         * ldmain.c (main): Set link_info.create_default_symver.
785         * lexsup.c (enum option_values): Add OPTION_DEFAULT_SYMVER.
786         (ld_options): Add default-symver.
787         (parse_args): Handle OPTION_DEFAULT_SYMVER.
789 2004-10-24 Danny Smith  <dannysmith@users.sourceforge.net>
791         * pe-dll.c (process_def_file): Don't export all symbols by default if
792         building a position-independent executable.
794 2004-10-21  H.J. Lu  <hongjiu.lu@intel.com>
796         PR 463
797         * ldmain.c (reloc_overflow): Accept a pointer to struct
798         bfd_link_hash_entry. Report symbol location for relocation
799         overflow.
801 2004-10-21  H.J. Lu  <hongjiu.lu@intel.com>
803         * genscripts.sh (libpath.exp): Really generate for first
804         emulation only.
806 2004-10-19  Danny Smith  <dannysmith@users.sourceforge.net>
808         * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Simplify
809         comparison and replacement of filenames.
811 2004-10-19  H.J. Lu  <hongjiu.lu@intel.com>
813         PR 459
814         * ldlang.c (load_symbols): Use the same -Bdynamic/-Bstatic
815         option on linker script as the one for linker script.
817 2004-10-16  Daniel Jacobowitz  <dan@debian.org>
819         * ldlang.c (struct excluded_lib, excluded_libs, add_excluded_libs)
820         (check_excluded_libs): New.
821         (load_symbols): Call check_excluded_libs.
822         * ldlang.h (add_excluded_libs): New prototype.
823         * emultempl/elf32.em (OPTION_EXCLUDED_LIBS): Define.
824         (gld${EMULATION_NAME}_add_options): Add --exclude-libs.
825         (gld${EMULATION_NAME}_handle_option): Handle --exclude-libs.
826         * ld.texinfo (Command Line Variables): Document --exclude-libs.
827         (Options Specific to i386 PE Targets): Remove --exclude-libs.
829 2004-10-15  Alan Modra  <amodra@bigpond.net.au>
831         * ldexp.c (exp_fold_tree): Don't immediately exit ld on a
832         failing link script assert.
834         * ldctor.c (ldctor_add_set_entry): Fix comment typo.
836 2004-10-14  H.J. Lu  <hongjiu.lu@intel.com>
838         PR 445
839         * emulparams/elf64_ia64.sh (SMALL_DATA_CTOR): Set.
840         (SMALL_DATA_DTOR): Set.
841         * emulparams/elf64_ia64_fbsd.sh (SMALL_DATA_CTOR): Unset.
842         (SMALL_DATA_DTOR): Unset.
843         * scripttempl/elf.sc: If SMALL_DATA_CTOR is set, move .ctors
844         after .data. If SMALL_DATA_DTOR is set, move .dtors after
845         .data.
847 2004-10-14  Alan Modra  <amodra@bigpond.net.au>
849         PR 63
850         * ldlang.h (lang_output_section_statement_type): Make "next" a
851         struct lang_output_section_statement_struct *.
852         (struct orphan_save): Move from elf32.em.  Add "name" and "flags".
853         (lang_output_section_find_by_flags, lang_insert_orphan): Declare.
854         * ldlang.c (lang_output_section_find_1): Adjust for changed
855         output_section_statement "next".
856         (strip_excluded_output_sections): Likewise.
857         (lang_record_phdrs): Likewise.
858         (lang_output_section_find_by_flags): New function.
859         (output_prev_sec_find): Move from pe.em.  Adjust iterator.
860         (lang_insert_orphan): New function.  Tail end of elf32.em's
861         place_orphan merged with that from pe.em.  Allow bfd_section to
862         be placed first.  New heuristic for placing new output section
863         statement in existing script, and accompanying split of __start
864         symbol alignment into a separate assignment to dot.
865         (lang_add_section): Consistently use output->bfd_section rather than
866         an alias, section->output_section.
867         (map_input_to_output_sections): Rename overly long arg.  Move
868         initialization of data_statement output section to here..
869         (lang_check_section_addresses): ..from here.
870         (print_assignment): Correct printing of etree_assert.
871         (print_all_symbols): Don't bomb if userdata is NULL.
872         (IGNORE_SECTION): Rearrange.
873         * emultempl/elf32.em (output_rel_find): Adjust interator.
874         (output_prev_sec_find): Delete.
875         (struct orphan_save): Delete.
876         (gld${EMULATION_NAME}_place_orphan): Cater for zero bfd_section
877         flags without creating a duplicate output section statement.
878         Revise code holding history of various orphan section placements.
879         Allow orphan sections to place before script specified output
880         sections.  Call lang_output_section_find_by_flags when placement
881         by name fails.  Use lang_insert_orphan.
882         * emultempl/mmo.em (output_prev_sec_find): Delete.
883         (struct orphan_save): Delete.
884         (mmo_place_orphan): Revise code holding history of orphan placement.
885         Allow orphans to place before existing output sections.  Use
886         lang_insert_orphan.
887         * emultempl/pe.em (output_prev_sec_find): Delete.
888         (struct orphan_save): Delete.
889         (gld_${EMULATION_NAME}_place_orphan): Revise to suit use of
890         lang_insert_orphan.
892 2004-10-13  Mark Mitchell  <mark@codesourcery.com>
894         * scripttempl/armbpabi.sc: Do not put .gnu.version.* into a
895         loadable segment.
897 2004-10-13  Alan Modra  <amodra@bigpond.net.au>
899         PR 44
900         * ldcref.c (check_section_sym_xref): Delete.
901         (check_local_sym_xref): New function.
902         (check_nocrossrefs): Adjust call.
903         * emultempl/pe.em (struct orphan_save): Add os_tail.
904         (place_orphan): Backport assorted fixes from elf32.em.
906 2004-10-12  Bob Wilson  <bob.wilson@acm.org>
908         * emultempl/xtensaelf.em: Use ISO C90 formatting.
910 2004-10-11  Jakub Jelinek  <jakub@redhat.com>
912         * emultempl/elf32.em (gld${EMULATION_NAME}_parse_ld_so_conf): Avoid
913         getline for portability.
915         * emultempl/elf32.em (gld${EMULATION_NAME}_ld_so_conf): New structure.
916         (gld${EMULATION_NAME}_parse_ld_so_conf,
917         gld${EMULATION_NAME}_parse_ld_so_conf_include): New functions.
918         (gld${EMULATION_NAME}_check_ld_so_conf): Use them.
920 2004-10-11  Alan Modra  <amodra@bigpond.net.au>
922         PR 423
923         * ldfile.c (ldfile_try_open_bfd): Ensure dynamic objects are
924         rejected when linking statically.
926 2004-10-08  Daniel Jacobowitz  <dan@debian.org>
928         * configure.tgt: Include elf_x86_64 for i[3-7]86-*-solaris2*.
930 2004-10-07  Bob Wilson  <bob.wilson@acm.org>
932         * ld.texinfo (Xtensa): Describe new linker relaxation to optimize
933         assembler-generated longcall sequences.  Describe new --size-opt
934         option.
935         * emulparams/elf32xtensa.sh (OTHER_SECTIONS): Add .xt.prop section.
936         * emultempl/xtensaelf.em (remove_section,
937         replace_insn_sec_with_prop_sec, replace_instruction_table_sections,
938         elf_xtensa_after_open): New.
939         (OPTION_OPT_SIZEOPT, OPTION_LITERAL_MOVEMENT,
940         OPTION_NO_LITERAL_MOVEMENT): Define.
941         (elf32xtensa_size_opt, elf32xtensa_no_literal_movement): New globals.
942         (PARSE_AND_LIST_LONGOPTS): Add size-opt and [no-]literal-movement.
943         (PARSE_AND_LIST_OPTIONS): Add --size-opt.
944         (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_OPT_SIZEOPT,
945         OPTION_LITERAL_MOVEMENT, and OPTION_NO_LITERAL_MOVEMENT.
946         (LDEMUL_AFTER_OPEN): Set to elf_xtensa_after_open.
947         * scripttempl/elfxtensa.sc: Update with changes from elf.sc.
948         * Makefile.am (eelf32xtensa.c): Update dependencies.
949         * Makefile.in: Regenerate.
951 2004-10-07  Jeff Baker  <jbaker@qnx.com>
953         * lexsup.c: Handle --warn-shared-textrel option.
954         (ld_options): Restore alpha sorting of options.
955         * ldmain.c (main): Initialise warn_shared_info field to FALSE.
956         * ld.texinfo: Add documentation for --warn-shared-textrel.
957         * NEWS: Added mention of --warn-shared-textrel option.
959 2004-10-05  Tomer Levi  <Tomer.Levi@nsc.com>
961         * emultempl/crxelf.em (disable_relaxation): Add.
962         (crxelf_before_allocation): Enable --relax option by default.
963         (PARSE_AND_LIST_PROLOGUE): Add OPTION_NO_RELAX.
964         (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --no-relax.
965         (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_NO_RELAX.
967 2004-10-04  H.J. Lu  <hongjiu.lu@intel.com>
969         * NEWS: Mention SORT_BY_NAME, SORT_BY_ALIGNMENT and
970         --sort-section name|alignment.
972         * ld.texinfo: Document SORT_BY_NAME, SORT_BY_ALIGNMENT and
973         --sort-section name|alignment.
975         * ld.h (sort_type): New enum.
976         (wildcard_spec): Change the type of `sorted' to sort_type.
978         * ldgram.y (SORT): Removed.
979         (SORT_BY_NAME): Added.
980         (SORT_BY_ALIGNMENT): Added.
981         (wildcard_spec): Updated `sorted'. Handle SORT_BY_NAME and
982         SORT_BY_ALIGNMENT.
983         (input_section_spec_no_keep): Updated `sorted'.
984         (statement): Replace SORT with SORT_BY_NAME.
986         * ldlang.c (compare_section): New function to compare 2
987         sections with different sorting schemes.
988         (wild_sort): Updated. Use compare_section.
989         (update_wild_statements): New function.
990         (lang_process): Call update_wild_statements before
991         map_input_to_output_sections.
993         * ldlex.l (SORT_BY_NAME): New.
994         (SORT_BY_ALIGNMENT): New.
995         (SORT): Return SORT_BY_NAME.
997         * ldmain.c (sort_section): New. Defined.
998         (main): Initialize it to none.
1000         * lexsup.c (option_values): Add OPTION_SORT_SECTION.
1001         (ld_options): Add an entry for OPTION_SORT_SECTION.
1002         (parse_args): Handle OPTION_SORT_SECTION.
1004         * mri.c (mri_draw_tree): Updated `sorted'.
1006 2004-10-04  Jakub Jelinek  <jakub@redhat.com>
1008         * ldgram.y (DATA_SEGMENT_RELRO_END): Add one argument.
1009         * scripttempl/elf.sc (DATA_SEGMENT_RELRO_END): Add 0 as first
1010         argument.
1011         (DATA_SEGMENT_RELRO_GOTPLT_END): Pass $SEPARATE_GOTPLT as first
1012         and . as second argument.
1013         (GOTPLT): Move $DATA_SEGMENT_RELRO_GOTPLT_END before the section.
1014         * ldexp.c (fold_unary): Remove DATA_SEGMENT_RELRO_END handling here.
1015         (fold_binary): Add it here.  Insert padding to make relro_end
1016         COMMONPAGESIZE bytes aligned.  For DATA_SEGMENT_ALIGN in
1017         exp_dataseg_relro_adjust phase just use previously computed
1018         exp_data_seg.base.
1019         * ldlang.c (lang_size_sections): Set exp_data_seg.base for
1020         relro_adjust here.  Call lang_size_sections_1 once more if there
1021         was too big padding at DATA_SEGMENT_RELRO_END.
1022         * ld.texinfo (DATA_SEGMENT_RELRO_END): Add documentation.
1024 2004-10-01  Paul Brook  <paul@codesourcery.com>
1026         * emulparams/armelf.sh: Add unwinding table sections.
1028 2004-09-30  Filip Navara  <navaraf@reactos.com>
1030         * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Generate
1031         correct base address for position independant executables.
1032         * pe-dll.c (pe_dll_fill_sections): Don't mark position independant
1033         executables as DLLs.
1035 2004-09-30  Paul Brook  <paul@codesourcery.com>
1037         * ld.texinfo: Document --target2=abs.
1038         * emulparms/armsymbian.sh (TARGET2_TYPE): Set.
1040 2004-09-29  Nick Clifton  <nickc@redhat.com>
1042         * scripttempl/xstormy16.sc: Only perform the assignments to the
1043         ROM region when not performing a relocatable link.  The ROM region
1044         does not start at address 0, but the sections will.
1045         * Makefile.am: Fix linker script dependency for the generation of
1046         eelf32xstormy16.c.
1047         * Makefile.in: Regenerate.
1049 2004-09-18  Filip Navara  <navaraf@reactos.com>
1051         * emulparams/arm_epoc_pe.sh, emulparams/armpe.sh, emulparams/i386pe.sh,
1052         emulparams/i386pe_posix.sh, emulparams/mcorepe.sh,
1053         emulparams/mipspe.sh, emulparams/ppcpe.sh, scripttempl/pe.sc: Define
1054         TARGET_PAGE_SIZE.
1055         * scripttempl/pe.sc: Make the virtual address and file offset synced if
1056         the alignment is lower than the target page size.
1058 2004-09-27  Filip Navara  <navaraf@reactos.com>
1060         * emultempl/pe.em (gld_${EMULATION_NAME}_unrecognized_file): Allow
1061         def_file_parse to handle pe_def_file if NULL and prevent crash with
1062         invalid .def files.
1064 2004-09-27  Alan Modra  <amodra@bigpond.net.au>
1066         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Enable
1067         --emit-stub-syms automatically when --emit-relocs.
1069 2004-09-24  Paul Brook  <paul@codeosurcery.com>
1071         * scripttempl/elf.sc: Keep .preinit_array, .init_array and
1072         .fini_array sections.
1074 2004-09-19  Andreas Schwab  <schwab@suse.de>
1076         * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Adjust data segment
1077         base so that relro end is suitably aligned.
1079 2004-09-17  Paul Brook  <paul@codesourcery.com>
1081         * ld.texinfo: Rename arm-specific section.  Document --target*
1082         * emulparams/armelf_fbsd.sh: Set TARGET2_TYPE.
1083         * emulparams/armelf_linux.sh: Ditto.
1084         * emulparams/armelf_nbsd.sh: Ditto.
1085         * emultempl/armelf.em: Set default for TARGET2_TYPE.
1086         (target2_type): New variable.
1087         (arm_elf_before_allocation): Don't pass target1_type.
1088         (arm_elf_create_output_section_statements): New function.
1089         (PARSE_AND_LIST_PROLOGUE): Add OPTION_TARGET2.
1090         (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --target=.
1091         (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_TARGET2.
1092         (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Set.
1093         * emultempl/armelf_oabi.em (_before_allocation): Remove extra
1094         argument to bfd_elf32_arm_process_before_allocation.
1096 2004-09-17  Alan Modra  <amodra@bigpond.net.au>
1098         * ldexp.c (fold_name): Update u.undef.next refs.
1099         * emultempl/pe.em: Likewise.
1100         * emultempl/sunos.em: Likewise.
1102 2004-09-17  Alan Modra  <amodra@bigpond.net.au>
1104         * Makefile.am: Run "make dep-am".
1105         * Makefile.in: Regenerate.
1106         * config.in: Regenerate.
1107         * configure: Regenerate.
1108         * aclocal.m4: Regenerate.
1109         * po/ld.pot: Regenerate.
1111 2004-09-16  Tomer Levi  <Tomer.Levi@nsc.com>
1113         * scripttempl/elf32crx.sc (.init): Add KEEP for section's *personality*.
1114         (.fini): Likewise.
1115         (.jcr): Likewise.
1117 2004-09-16  Alan Modra  <amodra@bigpond.net.au>
1119         * emultempl/armelf_oabi.em (before_allocation): Add extra zero param
1120         to bfd_elf32_arm_process_before_allocation call.
1122 2004-09-13  Paul Brook  <paul@codesourcery.com>
1124         * emulparams/armsymbian.sh: Set TARGET1_IS_REL.
1125         * emultempl/armelf.em: Use TARGET1_IS_REL.  Add --target1-{rel,abs}.
1127 2004-09-07  H.J. Lu  <hongjiu.lu@intel.com>
1129         * configure: Regenerated with autconfig 2.13.
1131 2004-09-07  Andreas Schwab  <schwab@suse.de>
1133         * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Apply data segment
1134         alignment before adjusting DATA_SEGMENT_RELRO_END.
1136 2004-09-06  Mark Mitchell  <mark@codesourcery.com>
1138         * emulparams/armsymbian.sh: Use armbpabi script.
1139         * scripttempl/armbpabi.sc: New script.
1141 2004-09-02  Mark Mitchell  <mark@codesourcery.com>
1143         * Makefile.am (ALL_EMULATIONS): Add earmsymbian.o.
1144         (earmsymbian.c): New target.
1145         * configure.tgt: Use armsymbian emulation for arm*-*-symbianelf*.
1146         * Makefile.in: Regenerated.
1147         * aclocal.m4: Likewise.
1148         * configure: Likewise.
1149         * emulparams/armsymbian.sh: New file.
1151 2004-09-03  Tomer Levi  <Tomer.Levi@nsc.com>
1153         * scripttempl/elf32crx.sc: Edit file with comments.
1154         (.init): Add new section.
1155         (.fini): Likewise.
1156         (.ctor): Control the linkage order.
1157         (.dtor): Likewise.
1159 2004-08-27  Nick Clifton  <nickc@redhat.com>
1161         * emultempl/pe.em (after_open): Do not assume that either bfd is
1162         an archive.
1164 2004-08-26  Alan Modra  <amodra@bigpond.net.au>
1166         * ldlang.c (lang_init): Don't compare with TRUE.
1168 2004-08-25  Dmitry Diky  <diwil@spec.ru>
1170         * emulparams/msp430all.sh: Fix RAM sizes for all targets.
1171         * scripttempl/elf32msp430.sc: Add .profiler section definition.
1173 2004-08-24  H.J. Lu  <hongjiu.lu@intel.com>
1175         * ldlang.c (wildcardp): Defined as a macro with strpbrk.
1177 2004-08-19  Mark Mitchell  <mark@codesourcery.com>
1179         * configure.tgt (arm*-*-symbianelf*): New target.
1180         (arm*-*-eabi*): Likewise.
1182 2004-08-19  Jakub Jelinek  <jakub@redhat.com>
1184         * emultempl/ppc64elf.em (non_overlapping_opd): New variable.
1185         (ppc_before_allocation): Pass it to ppc64_elf_edit_opd).
1186         (OPTION_NON_OVERLAPPING_OPD): Define.
1187         (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Add
1188         --non-overlapping-opd option.
1190 2004-08-18  Alan Modra  <amodra@bigpond.net.au>
1192         PR 338
1193         * ldexp.c (fold_name): Don't call bfd_link_add_undef if the symbol
1194         was already on the undefs list.
1196 2004-08-17  Alan Modra  <amodra@bigpond.net.au>
1198         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern): Dot
1199         prefix the symbol field too.
1201 2004-08-13  Alan Modra  <amodra@bigpond.net.au>
1203         * ldmain.c (link_callbacks): Remove "error_handler".
1204         * ldmisc.c: Include elf-bfd.h.
1205         (vfinfo): Sort comment.  Handle %A.  Use %A instead of
1206         bfd_get_section_indent.
1207         (error_handler): Delete.
1208         * ldmisc.h (error_handler): Delete declaration.
1210 2004-08-10  Alan Modra  <amodra@bigpond.net.au>
1212         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Call
1213         ppc64_elf_restore_symbols.
1215 2004-08-09  Alan Modra  <amodra@bigpond.net.au>
1217         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Error if
1218         .toc is too large on relocatable linking.
1220 2004-08-09  Alan Modra  <amodra@bigpond.net.au>
1222         * emultempl/ppc64elf.em (ppc_after_open): Delete.
1223         (LDEMUL_AFTER_OPEN): Don't define.
1225 2004-08-02  Stephane Carrez  <stcarrez@nerim.fr>
1227         * ld.texinfo (Top): Document specific options of 68HC11 and 68HC12.
1229 2004-08-01  Stephane Carrez  <stcarrez@nerim.fr>
1231         * scripttempl/elfm68hc12.sc: Align text, rodata and data section
1232         on power of 2.
1234 2004-07-27  Jason Thorpe  <thorpej@wasabisystems.com>
1236         * emulparams/hppanbsd.sh (OUTPUT_FORMAT): Set to "elf32-hppa-netbsd".
1238 2004-07-26  Dmitry Diky  <diwil@spec.ru>
1240         * Makefile.am: Add new subtargets: msp430x1610, msp430x1611,
1241         msp430x1612, msp430x415, msp430x417, msp430xG437, msp430xG438,
1242         msp430xG439.
1243         * configure.tgt: Likewise.
1244         * emulparams/msp430all.sh: Likewise.
1245         * Makefile.in: Regenerate.
1247 2004-07-23  Nick Clifton  <nickc@redhat.com>
1249         * emultempl/elf32.em (_place_orphan): Use an already existing
1250         section name if that section does not have any flags set.
1252 2004-07-21  H.J. Lu  <hongjiu.lu@intel.com>
1254         * ldlang.c (already_linked_hash_entry): Removed.
1255         (already_linked): Likewise.
1256         (already_linked_table): Likewise.
1257         (section_already_linked): Call bfd_section_already_linked.
1258         (lang_process): Replace already_linked_table_init with
1259         bfd_section_already_linked_table_init and check return. Replace
1260         already_linked_table_free with bfd_section_already_linked_table_free.
1262 2004-07-21  Nick Clifton  <nickc@redhat.com>
1264         * ldlang.c (init_os): Make sure that the newly allocated userdata
1265         structure is zeroed out.
1267 2004-07-19  H.J. Lu  <hongjiu.lu@intel.com>
1269         * NEWS: Mention the new --add-needed/--no-add-needed and
1270         --as-needed/--no-as-needed options.
1272 2004-07-19  H.J. Lu  <hongjiu.lu@intel.com>
1274         * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): Also
1275         check the add_needed field.
1276         (dt_needed): New struct.
1277         (gld${EMULATION_NAME}_try_needed): Change the first argument
1278         to a pointer to struct dt_needed. Check the DYN_NO_ADD_NEEDED
1279         bit in the file where the DT_NEEDED entry comes from.
1280         (gld${EMULATION_NAME}_search_needed): Change the second
1281         argument to a pointer to struct dt_needed.
1282         (gld${EMULATION_NAME}_check_ld_so_conf): Updated.
1283         (gld${EMULATION_NAME}_after_open): Likewise.
1285         * ld.texinfo: Add --add-needed document.
1286         * ldlang.c (new_afile): Set p->add_needed.
1287         * ldlang.h (lang_input_statement_type): Add add_needed field.
1288         * ldmain.h (add_needed): Declare.
1289         * ldmain.c (add_needed): New global var.
1290         * lexsup.c (option_values): Add OPTION_ADD_NEEDED and
1291         OPTION_NO_ADD_NEEDED.
1292         (ld_options): Likewise.
1293         (parse_args): Handle them.
1295 2004-07-13  Christof Petig  <christof@petig-baender.de>
1297         * emultempl/pe.em (make_import_fixup): Use bfd_get_32 to correct
1298         for endian-ness of extracted addend.
1300 2004-07-13  Danny Smith  <dannysmith@usesr.sourceforge.net>
1302         * pe-dll.c (auto_export):  Filter on just the import prefix,
1303         "_imp_", not "_imp__".
1305 2004-07-09  Nick Clifton  <nickc@redhat.com>
1307         * configure.tgt: Change sh-sybmian-elf to sh-*-symbianelf.
1309 2004-07-06  Tomer Levi  <Tomer.Levi@nsc.com>
1311         * Makefile.am (ALL_EMULATIONS): Add eelf32crx.o.
1312         (eelf32crx.c): New target.
1313         * Makefile.in: Regenerate.
1314         * configure.tgt: Handle crx-*-elf*.
1315         * emulparams/elf32crx.sh: New file.
1316         * emultempl/crxelf.em: New file.
1317         * scripttempl/elf32crx.sc: New file.
1318         * NEWS: Mention new target.
1320 2004-07-06  Nick Clifton  <nickc@redhat.com>
1322         * Makefile.am: Add eshlsymbian.c.
1323         * Makefile.in: Regenerate.
1324         * configure.tgt: Add sh*-symbian-elf target.
1325         * emulparams/shlsymbian.sh: New file.  Configure the
1326         sh-symbian-elf linker scripts.
1327         * scripttemp/elf32sh-symbian.sc: New file.  Linker script
1328         template for the sh-symbian-elf target.
1330 2004-07-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1332         * emulparams/hppa64linux.sh: Define PLT_BEFORE_GOT.
1333         * emulparams/hppalinux.sh: Likewise.
1334         * scripttempl/elf.sc: Place .plt just before .got when .plt is in
1335         data segment and PLT_BEFORE_GOT is defined.
1337 2004-07-03  Aaron W. LaFramboise  <aaron98wiridge9@aaronwl.com>
1339         * ld.texinfo (WIN32): Document PE weak symbols.
1341 2004-07-02  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1343         * emulparams/shlelf32_linux.sh (COMMONPAGESIZE): Set to 4KB.
1345 2004-07-01  H.J. Lu  <hongjiu.lu@intel.com>
1347         * ldmisc.c (vfinfo): Call bfd_get_section_ident to identify
1348         the section.
1350 2004-06-29  Alan Modra  <amodra@bigpond.net.au>
1352         * ldlang.c (lang_reset_memory_regions): Save last relax pass section
1353         size in rawsize.
1355 2004-06-24  Alan Modra  <amodra@bigpond.net.au>
1357         * ldlang.c (print_output_section_statement): Don't print size before
1358         relaxation.
1359         (IGNORE_SECTION): Remove bfd arg.  Update all callers.
1361         * ldexp.c (fold_name): .. See below.
1362         * ldlang.c (section_already_linked, print_output_section_statement,
1363         print_input_section, insert_pad, size_input_section,
1364         lang_check_section_addresses, lang_size_sections_1,
1365         lang_size_sections, lang_do_assignments_1, lang_set_startof,
1366         lang_one_common, lang_reset_memory_regions, lang_process,
1367         lang_abs_symbol_at_end_of, lang_do_version_exports_section): ..
1368         * ldwrite.c (build_link_order, clone_section, ds, split_sections): ..
1369         * pe-dll.c (process_def_file, generate_reloc): ..
1370         * emultempl/elf32.em (gld${EMULATION_NAME}_find_statement_assignment,
1371         gld${EMULATION_NAME}_before_allocation): ..
1372         * emultempl/mmix-elfnmmo.em (mmix_after_allocation): ..
1373         * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_before_allocation,
1374         sh64_elf_${EMULATION_NAME}_after_allocation): ..
1375         * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): ..
1376         * emultempl/xtensaelf.em (ld_assign_relative_paged_dot,
1377         ld_local_file_relocations_fit, ld_xtensa_insert_page_offsets): Use
1378         "size" instead of "_raw_size" and "_cooked_size".  Expand
1379         bfd_section_size macro invocations.
1381 2004-06-22  Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
1383         * ld/scripttemp/pe.sc (.CRT): Define ___crt_xc_start__,
1384         ___crt_xc_end__, ___crt_xi_start__, ___crt_xi_end__, ___crt_xl_start__,
1385         ___crt_xp_start__, ___crt_xp_end__, ___crt_xt_start__ and
1386         ___crt_xt_end__.
1387         (.tls): Define ___tls_start__ and ___tls_end__.
1389 2004-06-21  Alexandre Oliva  <aoliva@redhat.com>
1391         * emulparams/elf32frvfd.sh (GENERATE_PIE_SCRIPT): Set to yes.
1393 2004-06-18  Adam Nemet  <anemet@lnxw.com>
1395         * configure.in: Set EXTRA_SHLIB_EXTENSION to .a for LynxOS.
1396         * configure: Regenerate.
1398 2004-06-15  Jakub Jelinek  <jakub@redhat.com>
1400         * scripttempl/elf.sc: Readd KEEP and .gcc_except_table.* to
1401         .gcc_except_table output sections lost accidentally with
1402         -z relro patch.
1404 2004-06-15  Alan Modra  <amodra@bigpond.net.au>
1406         * ldwrite.c (build_link_order): Use bfd_get_section_size
1407         instead of bfd_get_section_size_before_reloc or _raw_size.
1408         * pe-dll.c (process_def_file): Likewise.
1410 2004-06-14  Alan Modra  <amodra@bigpond.net.au>
1412         From Richard Wirth <r.wirth@wirthware.de>
1413         * ldlang.c (lang_finish): Don't free lang_definedness_table.
1415 2004-05-29  Alan Modra  <amodra@bigpond.net.au>
1417         * ldlang.c (gc_section_callback): Move SEC_EXCLUDE twiddles..
1418         (lang_gc_sections): .. to a LANG_FOR_EACH_INPUT_STATEMENT loop here.
1420 2004-05-28  Andrew Stubbs <andrew.stubbs@superh.com>
1422         * testsuite/ld-sh/arch/arch.exp: New test script.
1423         * testsuite/ld-sh/arch/arch_expected.txt: New file.
1424         * testsuite/ld-sh/arch/sh.s: New file.
1425         * testsuite/ld-sh/arch/sh2.s: New file.
1426         * testsuite/ld-sh/arch/sh-dsp.s: New file.
1427         * testsuite/ld-sh/arch/sh2e.s: New file.
1428         * testsuite/ld-sh/arch/sh3-nommu.s: New file.
1429         * testsuite/ld-sh/arch/sh3.s: New file.
1430         * testsuite/ld-sh/arch/sh3-dsp.s: New file.
1431         * testsuite/ld-sh/arch/sh3e.s: New file.
1432         * testsuite/ld-sh/arch/sh4-nommu-nofpu.s: New file.
1433         * testsuite/ld-sh/arch/sh4-nofpu.s: New file.
1434         * testsuite/ld-sh/arch/sh4.s: New file.
1435         * testsuite/ld-sh/arch/sh4a-nofpu.s: New file.
1436         * testsuite/ld-sh/arch/sh4al-dsp.s: New file.
1437         * testsuite/ld-sh/arch/sh4a.s: New file.
1439 2004-05-28  Alan Modra  <amodra@bigpond.net.au>
1441         * ldlang.c: Formatting.  Wrap long lines, expand bfd_get_section_flags
1442         throughout file.
1443         * lexsup.c: Formatting.  Wrap long lines.
1444         * ldwrite.c: Update copyright date.
1446         * ldlang.c (lang_add_section): Don't twidlle SEC_EXCLUDE here.
1447         (output_section_callback): Nor SEC_KEEP here.
1448         (gc_section_callback): Twiddle SEC_EXCLUDE here.
1449         (lang_gc_wild): Delete.  Fold into..
1450         (lang_gc_sections_1): ..here.  Only call bfd_gc_sections when garbage
1451         collecting.
1452         (lang_process): Always call lang_gc_sections.
1453         (lang_place_orphans): Handle SEC_EXCLUDE sections.
1454         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Remove
1455         SEC_EXCLUDE code.
1457 2004-05-26  H.J. Lu  <hongjiu.lu@intel.com>
1459         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Clear
1460         SEC_EXCLUDE on non-SEC_DEBUGGING sections for relocatable link.
1461         * ldlang.c (lang_add_section): Likewise.
1463 2004-05-26  Alan Modra  <amodra@bigpond.net.au>
1465         * ldlang.c (lang_add_section): Set SEC_EXCLUDE for SEC_GROUP
1466         sections when doing a final link.  Clear SEC_EXCLUDE when doing
1467         a relocable link, except for SEC_DEBUGGING sections.
1468         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Use the
1469         same condition here to drop SEC_EXCLUDE orphan sections.
1471 2004-05-25  Alan Modra  <amodra@bigpond.net.au>
1473         * ldlang.c (lang_process): Call bfd_merge_sections later, and
1474         only when not a relocatable link.
1475         (print_input_section): Handle SEC_EXCLUDE sections.
1476         (size_input_section): Don't update dot on SEC_EXCLUDE sections.
1477         (lang_do_assignments_1): Likewise.
1478         * ldwrite.c (build_link_order): Ignore SEC_EXCLUDE input sections.
1479         * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Likewise.
1480         * emultempl/hppaelf.em (build_section_lists): Likewise.
1481         * emultempl/ppc64elf.em (build_toc_list): Likewise.
1482         (build_section_lists): Likewise.
1484 2004-05-23  Andreas Schwab  <schwab@suse.de>
1486         * ld.texinfo (Options): Fix typo in last change.
1488 2004-05-21  Andy Chittenden  <achittenden@bluearc.com>
1490         * ld.h (ld_config_type): Add new field: hash_table_size.
1491         * ldmain.c: Initialise the new field to zero.  If it is non-zero
1492         after parsing the linker's command line call
1493         bfd_hash_set_default_size.
1494         * lexsup.c (option_values): Add OPTION_HASH_SIZE.
1495         (ld_options): Add hash-size.
1496         (parse_args): Parse --hash-size option.  Allow
1497         --reduce-memory-overheads to set the default hash table size as
1498         well.
1499         * ld.texinfo: Document the new switch.  Also mention that
1500         --reduce-memory-overheads can affect the hash table size.
1501         * NEWS: Mention the new feature.
1503 2004-05-19  J"orn Rennecke <joern.rennecke@superh.com>
1505         * NEWS: Mention new linker map file generation and the
1506         --reduce-memory-overheads option.
1507         * ld.texinfo: Document --reduce-memory-overheads option.
1508         * ld.h (map_symbol_def): New struct.
1509         (struct user_section_struct, section_userdata_type): Rename to:
1510         (struct lean_user_section_struct, lean_section_userdata_type).
1511         (struct fat_user_section_struct, fat_section_userdata_type): New.
1512         (SECTION_USERDATA_SIZE): Define.
1513         (args_type): New member reduce_memory_overheads.
1514         * ldlang.c (map_obstack): New static variable.
1515         (init_map_userdata, print_all_symbols, sort_def_symbol): New functions.
1516         (lang_map): Unless command_line.reduce_memory_overheads is set,
1517         initialize lists of defined symbols for each section.
1518         (print_input_section): Unless command_line.reduce_memory_overheads
1519         is set, use print_all_symbols.
1520         (init_os): Use lean_section_userdata_type / SECTION_USERDATA_SIZE.
1521         * ldmain.c (main): Initialize command_line.reduce_memory_overheads.
1522         * lexsup.c (enum option_values): Add OPTION_REDUCE_MEMORY_OVERHEADS.
1523         (ld_options): Add entry for --reduce-memory-overheads.
1524         (parse_args): Handle OPTION_REDUCE_MEMORY_OVERHEADS.
1526 2004-05-19  Jakub Jelinek  <jakub@redhat.com>
1528         * ldgram.y (sect_constraint): New.
1529         (ONLY_IF_RO, ONLY_IF_RW): New tokens.
1530         (section): Add sect_constraint.  Pass additional argument
1531         to lang_enter_output_section_statement.
1532         * mri.c (mri_draw_tree): Pass additional argument to
1533         lang_enter_output_section_statement.
1534         * emultempl/pe.em (place_orphan): Likewise.
1535         (output_prev_sec_find): Disregard output section statements with
1536         constraint == -1.
1537         * emultempl/mmo.em (output_prev_sec_find): Likewise.
1538         (mmo_place_orphan): Pass additional argument to
1539         lang_enter_output_section_statement.
1540         * emultempl/elf32.em (output_prev_sec_find): Disregard output section
1541         statements with constraint == -1.
1542         (place_orphan): Pass additional argument to
1543         lang_enter_output_section_statement.
1544         * ldlang.c (lang_enter_overlay_section): Likewise.
1545         (lang_output_section_find_1): New.
1546         (lang_output_section_find): Use it.
1547         (lang_output_section_statement_lookup_1): New.
1548         (lang_output_section_statement_lookup): Use it.
1549         (check_section_callback, check_input_sections): New.
1550         (map_input_to_output_sections): Check if all input sections
1551         are readonly if ONLY_IF_RO or ONLY_IF_RW was seen.
1552         (strip_excluded_output_sections): Disregard output section statements
1553         with constraint == -1.
1554         (lang_record_phdrs): Likewise.
1555         (lang_enter_output_section_statement): Add constraint argument.
1556         Use lang_output_section_statement_lookup_1.
1557         * ldlang.h (lang_output_section_statement_type): Add constraint
1558         and all_input_readonly fields.
1559         (lang_enter_output_section_statement): Adjust prototype.
1560         * ldlex.l (ONLY_IF_RO, ONLY_IF_RW): New tokens.
1561         * scripttempl/elf.sc (.eh_frame, .gcc_except_table): Move into text
1562         segment if all input sections are readonly.
1564 2004-05-19  Adam Nemet  <anemet@lnxw.com>
1566         * scripttempl/i386lynx.sc: Remove file.
1568 2004-05-17  Bob Wilson  <bob.wilson@acm.org>
1570         * ld.texinfo (Output Section Address): Correct subsection name.
1572 2004-05-17  Adam Nemet  <anemet@lnxw.com>
1574         * configure.tgt (powerpc-*-lynxos* case): New case.
1575         * configure.host (i[3-7]86-*-lynxos* case): Remove case.
1576         * emulparams/ppclynx.sh: New file.
1577         * emulparams/i386lynx.sh (SCRIPT_NAME): Update to LynxOS 4.0.
1578         * Makefile.am (ALL_EMULATIONS): Add eppclynx.o
1579         (ei386lynx.c): Update rule to LynxOS 4.0 ELF.
1580         (eppclynx.c): New rule.
1581         * Makefile.in: Regenerate.
1583 2004-05-13  Joel Sherrill <joel@oarcorp.com>
1585         * configure.tgt (or32-*-rtems*): Switch to elf and
1586         support versioned targets.
1588 2004-05-13  Nick Clifton  <nickc@redhat.com>
1590         * po/fr.po: Updated French translation.
1592 2004-05-11  Jakub Jelinek  <jakub@redhat.com>
1594         * genscripts.sh: Generate -z combreloc -z now -z relro scripts
1595         for binaries, -shared and -pie.
1596         * emulparams/elf_i386.sh (SEPARATE_GOTPLT): Set.
1597         * emulparams/elf_x86_64.sh (SEPARATE_GOTPLT): Set.
1598         * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Rename to...
1599         (OTHER_RELRO_SECTIONS): ... this.
1600         * ldlex.l (DATA_SEGMENT_RELRO_END): Add.
1601         * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Handle
1602         -z relro and -z norelro.
1603         (gld${EMULATION_NAME}_list_options): Add it to usage.
1604         (gld${EMULATION_NAME}_get_script): Return -z combreloc -z now
1605         -z relro scripts when appropriate.
1606         * scripttempl/elf.sc: Unset SEPARATE_GOTPLT if RELRO_NOW is set.
1607         Create separate .got.plt section if SEPARATE_GOTPLT.
1608         Move sections which are only written during relocation handling
1609         to the beginning of RW segment.  If NO_SMALL_DATA, move .got
1610         before .data.  Add DATA_SEGMENT_RELRO_END directive.
1611         Include OTHER_RELRO_SECTIONS.
1612         * ldgram.y (DATA_SEGMENT_RELRO_END): Add.
1613         * ldexp.c (exp_print_token): Handle DATA_SEGMENT_RELRO_END.
1614         (fold_unary): Likewise.
1615         (fold_binary): Handle -z relro.
1616         * ldexp.h (struct exp_data_seg): Add exp_dataseg_relro_seen and
1617         exp_dataseg_relro_adjust phases.  Add relro_end field.
1618         * ldmain.c (main): Initialize link_info.relro to FALSE.
1619         * ldlang.c (lang_size_sections): Handle -z relro.
1621 2004-05-08  Marek Michalkiewicz  <marekm@amelek.gda.pl>
1623         * scripttempl/avr.sc: Do not set LMA for "eeprom" section.
1625 2004-05-07  J"orn Rennecke <joern.rennecke@superh.com>
1627         * ldlang.c (print_padding_statement): Cast size_t to bfd_vma
1628         before printing it with %W.
1630 2004-05-07  Brian Ford  <ford@vss.fsi.com>
1631             DJ Delorie  <dj@redhat.com>
1633         * emultempl/pe.em (real_flags): New static.
1634         (OPTION_LARGE_ADDRESS_AWARE): New define.
1635         (gld${EMULATION_NAME}_add_options): Add --large-address-aware option.
1636         (gld_${EMULATION_NAME}_list_options): Likewise.
1637         (gld${EMULATION_NAME}_handle_option): Likewise.
1638         (gld_${EMULATION_NAME}_after_open): Pass real_flags to PE private data.
1639         * ld.texinfo: Document it.
1640         * NEWS: Mention it.
1642 2004-05-07  Brian Ford  <ford@vss.fsi.com>
1644         * NEWS: Mention DWARF 2 support for i386pe.
1646 2004-05-05  Alexandre Oliva  <aoliva@redhat.com>
1648         * emulparams/elf32frvfd.sh (OUTPUT_FORMAT): Switch to new
1649         elf32-frvfdpic.
1651 2004-04-30  Alan Modra  <amodra@bigpond.net.au>
1653         * ldlang.c (unique_section_p): Pass section parm, return true on
1654         group sections.
1655         (output_section_callback): Adjust.
1656         * ldlang.h (unique_section_p): Update prototype.
1657         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust.
1659 2004-04-30  Eric Botcazou  <ebotcazou@act-europe.fr>
1661         * ld.texinfo (--gc-sections): Remove restriction for
1662         dynamic linking.
1664 2004-04-29  Brian Ford  <ford@vss.fsi.com>
1666         * scripttempl/pe.sc: Handle .debug* and .gnu.linkonce.wi.* sections
1667         for DWARF 2/3.  Update stab section's syntax.
1669 2004-04-29  Alan Modra  <amodra@bigpond.net.au>
1671         * pe-dll.c: Revert changes accidentally committed 2004-03-08.
1672         (fill_edata): Correct pointer arithmetic.
1674 2004-04-21  Chris Demetriou  <cgd@broadcom.com>
1676         * ld.texinfo: Remove MIPS --embedded-relocs documentation.
1677         * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Remove definition.
1678         * emulparams/mipsidt.sh (TEMPLATE_NAME): Use generic.em.
1679         (EXTRA_EM_FILE): Use mipsecoff.em
1680         * emulparams/mipsidtl.sh (TEMPLATE_NAME): Use generic.em.
1681         (EXTRA_EM_FILE): Use mipsecoff.em
1682         * emultempl/mipsecoff.em: Restructure to be included as an
1683         extra emulation file.
1684         (check_sections, gld${EMULATION_NAME}_after_open)
1685         (gld${EMULATION_NAME}_after_allocation)
1686         (gld${EMULATION_NAME}_get_script)
1687         (ld_${EMULATION_NAME}_emulation): Remove
1688         (gld${EMULATION_NAME}_before_parse): Rename to...
1689         (mipsecoff_before_parse): This.
1690         (LDEMUL_BEFORE_PARSE): Define.
1691         * emultempl/mipself.em: Remove file.
1692         * scripttempl/mips.sc (.rel.sdata): Do not include in output.
1693         (__runtime_reloc_start, __runtime_reloc_stop): Stop providing
1694         these symbols.
1695         * Makefile.am: Remove dependencies on emultempl/mipself.em.
1696         * Makefile.in: Regenerate.
1698 2004-04-21      Anil Paranjpe   <anilp1@kpitcummins.com>
1700         * ld.texinfo (synthesizing on H8/300): Information about linker
1701         relaxation support for bit manipulation instructions and system
1702         control instructions is added.
1704 2004-04-21  Hans-Peter Nilsson  <hp@axis.com>
1706         * NEWS: Mention change in DEFINED semantics.
1708 2004-04-21  Eric Botcazou  <ebotcazou@act-europe.fr>
1710         * scripttempl/elf.sc (.text): Add KEEP for .text.*personality*.
1711         (.data): Add KEEP for .gnu.linkonce.d.*personality*.
1712         (.gcc_except_table): Add KEEP for self and accept .gcc_except_table.*.
1714 2004-04-21  Ben Elliston  <bje@au.ibm.com>
1716         * ld.texinfo (Simple Example): Add missing punctuation.
1718 2004-04-20  Chris Demetriou  <cgd@broadcom.com>
1720         * NEWS: Note that MIPS --embedded-relocs option is deprecated.
1722 2004-04-19  Jakub Jelinek  <jakub@redhat.com>
1724         * ldlang.c (lang_do_assignments_1): Handle .tbss output section
1725         specially.
1727 2004-04-18  Danny Smith  <dannysmith@users.sourceforge.net>
1729         * scriptempl/pe.sc:  Put numbered .ctors.* after .ctors
1730         with default priority. Likewise for dtors.
1732 2004-04-11  Thiemo Seufer  <seufer@csv.ica.uni-stuttgart.de>
1734         * configure.host: Remove mips*-dec-bsd* target.
1735         * configure.tgt: Likewise.
1737 2004-04-08  Richard Sandiford  <rsandifo@redhat.com>
1739         * emulparams/elf32bsmip.sh (EXTRA_EM_FILE): Define to irix.
1740         * emulparams/elf64bmip.sh (EXTRA_EM_FILE): Likewise.
1741         * emulparams/elf32bmipn32.sh (EXTRA_EM_FILE): Likewise.
1742         * emultempl/irix.em: New file.
1743         * Makefile.am (eelf32bsmip.c, eelf32bmipn32.c, eelf64bmip.c): Update
1744         dependencies.
1745         * Makefile.in: Regenerate.
1747 2004-04-01  Paul Brook  <paul@codesourcery.com>
1749         * emultempl/armelf.em (byteswap_code): Add.
1750         (arm_elf_before_allocation): Pass extra parameter.
1751         (PARSE_AND_LIST_PROLOGUE): Add OPTION_BE8.
1752         (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add be8.
1753         (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_BE8.
1754         * emultempl/armelf_oabi.em: Pass extra parameter.
1755         * ld.texinfo: Document --be8.
1757 2004-03-30  Stan Shebs  <shebs@apple.com>
1759         Remove long-obsolete MPW support.
1760         * mpw-config.in, mpw-make.sed, mac-ld.r: Remove files.
1761         * Makefile.am (mpw): Remove file-presynthesizing actions.
1762         * Makefile.in: Likewise.
1763         * ldfile.c (slash): Remove MPW case.
1764         * ldlex.l [MPW]: Remove unused definition.
1766 2004-03-30  Galit Heller  <Galit.Heller@nsc.com>
1768         * Makefile.am (ALL_EMULATIONS): Add eelf32cr16c.o.
1769         (eelf32cr16c.c): New target.
1770         * Makefile.in: Regenerate.
1771         * configure.tgt: Handle cr16c-*-elf*.
1772         * emulparams/elf32cr16c.sh: New file.
1773         * scripttempl/elfcr16c.sc: Likewise
1774         * NEWS: Mention support for new target.
1776 2004-03-30  Nick Clifton  <nickc@redhat.com>
1778         * po/sv.po: Updated Swedish translation.
1780 2004-03-27  Alan Modra  <amodra@bigpond.net.au>
1782         * emultempl/elf32.em: Update new bfd_elf_discard_info name.
1783         * emultempl/hppaelf.em: Likewise.
1784         * emultempl/ppc64elf.em: Likewise.
1785         * emultempl/sh64elf.em: Likewise.
1787 2004-03-25  Alan Modra  <amodra@bigpond.net.au>
1789         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Update
1790         size_dynamic_sections call.
1792 2004-03-23  Alan Modra  <amodra@bigpond.net.au>
1794         PR 51.
1795         * emultempl/ppc64elf.em (ppc_create_output_section_statements): Set
1796         link_info.wrap_char.
1798 2004-03-20  H.J. Lu  <hongjiu.lu@intel.com>
1800         * lexsup.c (parse_args): Don't set unresolved_syms_in_objects
1801         or unresolved_syms_in_shared_libs for -Bdynamic and -Bstatic.
1803 2004-03-20  Alexandre Oliva  <aoliva@redhat.com>
1805         * emulparams/elf32frvfd.sh (MAXPAGESIZE): Change to 16Kb.
1807 2004-03-19  Alan Modra  <amodra@bigpond.net.au>
1809         * config.in: Regenerate.
1810         * po/ld.pot: Regenerate.
1812 2004-03-18  Alan Modra  <amodra@bigpond.net.au>
1814         * ld.texinfo: Add --as-needed doco.
1815         * ldmain.c (as_needed): New global var.
1816         * ldmain.h (as_needed): Declare.
1817         * lexsup.c (option_values): Add OPTION_AS_NEEDED and
1818         OPTION_NO_AS_NEEDED.
1819         (ld_options): Likewise.
1820         (parse_args): Handle them.
1821         * ldlang.h (lang_input_statement_type): Add as_needed field.
1822         * ldlang.c (new_afile): Set p->as_needed.
1823         * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): New function.
1824         (gld${EMULATION_NAME}_try_needed): Use bfd_elf_set_dyn_lib_class.
1825         (ld_${EMULATION_NAME}_emulation): Set LDEMUL_RECOGNIZED_FILE entry.
1827         * ldlang.c (open_input_bfds): Remove useless cast.
1828         (lang_do_assignments_1): Likewise.
1829         (lang_for_each_input_section): Delete.
1831 2004-03-17  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
1833         * configure.tgt: Switch sh-*-rtems* to ELF.  Add sh-*-rtemscoff*.
1835 2004-03-08  Danny Smith  <dannysmith@users.sourceforge.net>
1837         * pe-dll.c (pe_dll_generate_implib): Skip sections marked as
1838         private when building implib.
1840 2004-03-05  Nathan Sidwell  <nathan@codesourcery.com>
1842         * ldlang.c (lang_add_section): Don't force SEC_LOAD on
1843         SEC_THREAD_LOCAL.
1844         (IGNORE_SECTION): Ignore .tbss sections too.
1845         (lang_size_sections_1): .tbss sections do not advance dot.
1847 2004-03-01  Andreas Schwab  <schwab@suse.de>
1849         * ld.texinfo (Options): Fix example for --wrap.
1851 2004-02-25  Danny Smith  <dannysmith@users.sourceforge.net>
1853         * pe-dll.c (fill_edata): Check that exported_symbol_sections is
1854         not NULL.
1856 2004-02-23  Ian Lance Taylor  <ian@wasabisystems.com>
1858         * ldlang.c (lang_check): Use %P, not %E, in error message.
1860 2004-02-23  Nathan Sidwell  <nathan@codesourcery.com>
1862         * ldlang.h (struct lang_output_section_state): Change processed
1863         field's type.
1864         * ldexp.c (check, invalid): Remove.
1865         (fold_name): Move valid_p assignments. Create undefined symbol
1866         when needed. Directly exampine section's processd flag.
1867         * ldlang.c (lang_output_section_statement_lookup): Adjust
1868         processed field init.
1869         (lang_size_sections_1): Allow LOADADDR when determining section's
1870         VMA. Adjust error message. Fold data statement's expr.
1871         (lang_size_sections): Correctly increment lang_statement_iteration.
1873 2004-02-23  Alan Modra <amodra@bigpond.net.au>
1875         * ldexp.c (fold_tree): Follow indirect symbols.
1877 2004-02-20  Nathan Sidwell  <nathan@codesourcery.com>
1879         * ldgram.y (exp): Add two operand ALIGN.
1880         * ldexp.c (fold_binary): Add ALIGN_K case.
1881         * ld.texinfo (ALIGN): Document two operand version.
1883 2004-02-19  Nathan Sidwell  <nathan@codesourcery.com>
1885         * ldlang.c (map_input_to_output_sections): Initialize sections
1886         mentioned in a data statement expression.
1887         (lang_do_assignments_1): Add data statement's expression's
1888         section's vma.
1890 2004-02-18  Nathan Sidwell  <nathan@codesourcery.com>
1892         * ldgram.y (statement_anywhere): Add assert rule.
1893         * ldlang.c (exp_init_os): Add assert case.
1895 2004-02-14  Andrew Cagney  <cagney@redhat.com>
1897         * ldmain.c (remove_output): Call bfd_cache_close.
1899 2004-02-14  Richard Sandiford  <rsandifo@redhat.com>
1901         * emulparams/elf32bmipn32-defs.sh (OTHER_SECTIONS): Discard
1902         .MIPS.content* and .MIPS.events* sections.
1904 2004-02-09  Daniel Jacobowitz  <drow@mvista.com>
1906         * emulparams/armelf.sh, emulparams/armelf_linux.sh: Move
1907         .note.gnu.arm.ident to after allocated sections.  Mark its
1908         address as 0.
1910 2004-02-09  Daniel Jacobowitz  <drow@mvista.com>
1912         * emulparams/armelf_linux.sh (COMMONPAGESIZE): Set to 4KB.
1913         * emulparams/elf32bmip.sh (COMMONPAGESIZE): Likewise.
1914         * emulparams/elf32bmipn32.sh (COMMONPAGESIZE): Likewise.
1915         * emulparams/elf32btsmipn32.sh (COMMONPAGESIZE): Likewise.
1916         * emulparams/shlelf_linux.sh (COMMONPAGESIZE): Likewise.
1918 2004-02-05  Nick Clifton  <nickc@redhat.com>
1920         * emultempl/pe.em (_after_open): Fix typo in previous delta.
1922 2004-02-04  Danny Smith  <dannysmith@users.sourceforge.net>
1924         * emultempl/pe.em (_after_open): Fix thinko in 2003-12-18 patch.
1926 2004-01-28  Alan Modra  <amodra@bigpond.net.au>
1928         * genscripts.sh: Fix typo.
1930         * genscripts.sh: Apply $LIBPATH_SUFFIX to $tool_lib and $libdir too.
1932 2004-01-24  Jakub Jelinek  <jakub@redhat.com>
1934         * emulparams/elf64_ia64.sh: Put .rela.opd into
1935         OTHER_GOT_RELOC_SECTIONS instead of OTHER_PLT_RELOC_SECTIONS.
1937 2004-01-20  Danny Smith  <dannysmith@users.sourceforge.net>
1939         * pe-dll.c (pe_create_import_fixup): Clear WP_TEXT flag.
1940         * ld.texinfo (--omagic): Note that writable text section
1941         does not conform to published PE-COFF specs.
1942         (--enable-auto-import): Likewise.
1944 2004-01-15  Alan Modra  <amodra@bigpond.net.au>
1946         * emulparams/elf32ppc.sh (COMMONPAGESIZE): Define.
1948 2004-01-13  Nick Clifton  <nickc@redhat.com>
1950         * ldlang.c (lang_get_regions): Add extra parameter 'have_vma'
1951         which if true will prevent the LMA region being used as a
1952         replacement for a default VMA region.
1953         (lang_leave_output_section_statement): Pass extra parameter.
1954         (lang_leave_overlay): Likewise.
1955         * ld.texinfo (Output Section LMA): Document that the LMA
1956         region can be set to the VMA region if no VMA has been set.
1957         * ldlang.h (struct lang_output_section_phdr_list): Create a
1958         typedef for this type.  Minor formatting fixes.
1960 2004-01-13  Nick Clifton  <nickc@redhat.com>
1962         * ldlang.c (lang_size_sections_1): If dot is advanced, then
1963         assume that the section should be allocated.
1965 2004-01-13  Alan Modra  <amodra@bigpond.net.au>
1967         * ldlang.c (IGNORE_SECTION): Don't ignore SEC_ALLOC && !SEC_LOAD
1968         sections.  Do ignore SEC_NEVER_LOAD sections.
1969         (lang_size_sections_1): Remove test made redundant with the above.
1971 2004-01-09  Alan Modra  <amodra@bigpond.net.au>
1973         * emultempl/ppc64elf.em (ppc_before_allocation): Clear cached
1974         program_header_size.
1976 2004-01-06  Alexandre Oliva  <aoliva@redhat.com>
1978         2003-11-28  Alexandre Oliva  <aoliva@redhat.com>
1979         * emulparams/elf32frvfd.sh (EMBEDDED): Clear.
1980         2003-11-05  Alexandre Oliva  <aoliva@redhat.com>
1981         * emulparams/elf32frvfd.sh (STACK_ADDR): Unset.
1982         (MAXPAGESIZE): Set to 64Kb.
1983         (OTHER_READONLY_SECTIONS): Define __ROFIXUP_LIST__ and
1984         __ROFIXUP_END__.  Don't map .rofixup.got any more.
1985         * emulparams/elf32frv.sh (NOP): Set.
1986         2003-10-31  Alexandre Oliva  <aoliva@redhat.com>
1987         * configure.tgt: Add frv-*-*linux*.
1988         2003-09-30  Alexandre Oliva  <aoliva@redhat.com>
1989         * Makefile.am (ALL_EMULATIONS): Added eelf32frvfd.o.
1990         (eelf32frvfd.c): New.
1991         * configure.tgt <frv-*-*>: Added it to targ_extra_emuls.
1992         * emulparams/elf32frv.sh: Reverted previous two patches.
1993         * emulparams/elf32frvfd.sh: New.
1994         * Makefile.in: Rebuilt.
1995         2003-09-18  Alexandre Oliva  <aoliva@redhat.com>
1996         * emulparams/elf32frv.sh (OTHER_READONLY_SECTIONS): Added
1997         .rofixup.got to .rofixup.
1998         2003-09-15  Alexandre Oliva  <aoliva@redhat.com>
1999         * emulparams/elf32frv.sh (MAXPAGESIZE): Make it 256KiB, not 256B.
2000         (TEMPLATE_NAME, GENERATE_SHLIB_SCRIPT): Set.
2002 2004-01-05  Jakub Jelinek  <jakub@redhat.com>
2004         * emulparams/elf_s390.sh (NO_SMALL_DATA): Set to yes.
2005         * emulparams/elf64_s390.sh (NO_SMALL_DATA): Set to yes.
2007 2004-01-03  Alan Modra  <amodra@bigpond.net.au>
2009         * ldexp.c (align_n): Make static.
2010         * ldexp.h (align_n): Delete declaration.
2011         * ldlang.h (lang_enter_output_section_statement): Remove
2012         block_value param.
2013         * ldlang.c (lang_enter_output_section_statement): Likewise.
2014         (TO_ADDR, TO_SIZE): Define.
2015         (opb_shift): New var.
2016         (init_opb): New function.
2017         (print_input_section): Call init_opb and use TO_ADDR.
2018         (print_data_statement, print_reloc_statement): Likewise.
2019         (print_padding_statement): Likewise.
2020         (size_input_section): Use TO_SIZE and TO_ADDR, and global opb_shift.
2021         (lang_check_section_addresses): Likewise.
2022         (lang_size_sections_1): Likewise.
2023         (lang_do_assignments_1): Likewise.
2024         (lang_set_startof): Likewise.
2025         (lang_one_common): Likewise.  Combine power_of_two and opb_shift align.
2026         (lang_process): Call init_opb.
2027         (lang_abs_symbol_at_end_of): Use TO_ADDR and global opb_shift.
2028         (lang_enter_overlay_section): Adjust
2029         lang_enter_output_section_statement call.
2030         * ldgram.y: Likewise.
2031         * mri.c (mri_draw_tree): Likewise.
2032         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Likewise.
2033         * emultempl/mmo.em (mmo_place_orphan): Likewise.
2034         * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Likewise.
2036         * ldfile.c (ldfile_set_output_arch): Add defarch param.
2037         * ldfile.h (ldfile_set_output_arch): Ditto.
2038         * emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Use
2039         ldfile_set_output_arch.
2040         * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Ditto.
2041         * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Ditto.
2042         * emultempl/linux.em (gld${EMULATION_NAME}_before_parse): Ditto.
2043         * emultempl/mipsecoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
2044         * emultempl/pe.em (gld${EMULATION_NAME}_before_parse): Ditto.
2045         * emultempl/sunos.em (gld${EMULATION_NAME}_before_parse): Ditto.
2046         * ldgram.y: Adjust ldfile_set_output_arch call.
2047         * emultempl/armcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
2048         * emultempl/armelf.em (gld${EMULATION_NAME}_before_parse): Ditto.
2049         * emultempl/armelf_oabi.em (gld${EMULATION_NAME}_before_parse): Ditto.
2050         * emultempl/generic.em (gld${EMULATION_NAME}_before_parse): Ditto.
2051         * emultempl/gld960c.em (gld960_set_output_arch): Ditto.
2052         * emultempl/m68kcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
2053         * emultempl/ticoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
2055 2004-01-02  Bernardo Innocenti  <bernie@develer.com>
2057         * configure.tgt: Add m68k-uClinux target.
2059 For older changes see ChangeLog-0203
2061 Local Variables:
2062 mode: change-log
2063 left-margin: 8
2064 fill-column: 74
2065 version-control: never
2066 End: