Add support for msp430x21xx variants
[binutils.git] / ld / ChangeLog
blobf0e4d0af6c0498be6baf04b4c2daf7ac4f2d3521
1 2005-08-08  Eric Dönges <Eric.Doenges@betty-tv.com>
3         * Makefile.am (ALL_EMULATIONS): Add msp430x21xx variants.
4         Add rules to build these emulations.
5         * Makefile.in: Regenerate.
6         * configure.tgt (msp430): Add the new variants to the
7         targ_extra_emuls list.
8         * emulparams/msp430all.sh: Add entries for the msp430x21xx
9         variants.
11 2005-08-05  H.J. Lu  <hongjiu.lu@intel.com>
13         * ld.texinfo: Document PROVIDE_HIDDEN.
15         * ldexp.c (exp_fold_tree_1): Hide a provided symbol if asked.
16         (exp_provide): Add and set hidden.
18         * ldexp.h (etree_type): Add hidden to assign.
20         * ldgram.y (PROVIDE_HIDDEN): New.
21         * ldlex.l (PROVIDE_HIDDEN): Likewise.
23         * scripttempl/elf.sc: Use PROVIDE_HIDDEN on array bound
24         symbols.
26 2005-08-05  Alan Modra  <amodra@bigpond.net.au>
28         * emulparams/elf_x86_64.sh: Revert last change.
29         * scripttempl/elf.sc (REL_LARGE, LARGE_SECTIONS): Define here.
31 2005-08-05  Alan Modra  <amodra@bigpond.net.au>
33         * emulparams/armelf.sh (OTHER_BSS_END_SYMBOLS): Split out from
34         OTHER_END_SYMBOLS.
35         * emulparams/armelf_linux.sh: Likewise.
36         * emulparams/armnto.sh: Likewise.
37         * emulparams/criself.sh: Likewise.
38         * emulparams/elf32mcore.sh: Likewise.
39         * emulparams/criself.sh (OTHER_SYMBOLS): Define.
40         * emulparams/crislinux.sh (OTHER_SYMBOLS): Define.
41         (OTHER_END_SYMBOLS): Don't define.
42         * emulparams/elf32fr30.sh: Likewise.
43         * emulparams/elf64mmix.sh: Likewise.
44         * emulparams/hppa64linux.sh: Likewise.
45         * emulparams/m32relf.sh: Likewise.
46         * emulparams/vxworks.sh: Likewise.
47         * scripttempl/armbpabi.sc (OTHER_BSS_SECTIONS): Delete.
48         (OTHER_BSS_END_SYMBOLS): Add.
49         (OTHER_END_SYMBOLS): Move before current end sym definitions.
50         (OTHER_SYMBOLS): Replace OTHER_END_SYMBOLS near end of script.
51         * scripttempl/elf.sc: Likewise.
52         * scripttempl/elf32sh-symbian.sc: Likewise.
53         * scripttempl/elf_chaos.sc: Likewise.
54         * scripttempl/elfxtensa.sc: Likewise.
55         * scripttempl/iq2000.sc: Likewise.
56         * scripttempl/xstormy16.sc: Likewise.
58         * scripttempl/elf.sc (LBSS, LARGE_SECTIONS): Delete.
59         (REL_LDATA, REL_LBSS, REL_LRODATA): Delete.
60         (REL_LARGE, LARGE_SECTIONS): Add.
61         * emulparams/elf_x86_64.sh (LARGE_SECTIONS): Define as script text.
62         (REL_LARGE): Define.
63         * emulparams/hppa64linux.sh (OTHER_BSS_SECTIONS): Don't define.
64         (LARGE_SECTIONS): Define.
65         * emulparams/hppa64linux.sh (OTHER_BSS_SECTIONS): Don't define.
66         (LARGE_SECTIONS): Define.
68 2005-08-04  Alan Modra  <amodra@bigpond.net.au>
70         * ldemul.c (ldemul_do_assignments, do_assignments_default): Delete.
71         * ldemul.h (ldemul_do_assignments, do_assignments_default): Delete.
72         (struct ld_emulation_xfer_struct): Remove do_assignments field.
73         * ldlang.c (lang_do_assignments): Don't call ldemul_do_assignments.
74         * emulparams/elf32ppc.sh (SDATA_START_SYMBOLS): New.
75         (SDATA2_START_SYMBOLS, SBSS_START_SYMBOLS, SBSS_END_SYMBOLS): New.
76         * emultempl/aix.em (ld_*_emulation): Delete do_assignments init.
77         * emultempl/armcoff.em: Likewise.
78         * emultempl/beos.em: Likewise.
79         * emultempl/generic.em: Likewise.
80         * emultempl/gld960.em: Likewise.
81         * emultempl/gld960c.em: Likewise.
82         * emultempl/linux.em: Likewise.
83         * emultempl/lnk960.em: Likewise.
84         * emultempl/m68kcoff.em: Likewise.
85         * emultempl/pe.em: Likewise.
86         * emultempl/sunos.em: Likewise.
87         * emultempl/ticoff.em: Likewise.
88         * emultempl/vanilla.em: Likewise.
89         * emultempl/elf32.em: Likewise.
90         (gld*_provide_bound_symbols): Delete.
91         (gld*_provide_init_fini_syms): Delete.
92         (gld*_before_allocation): Don't call ldemul_do_assignments.
93         * emultempl/ppc32elf.em (ppc_do_assignments): Delete.
94         (LDEMUL_DO_ASSIGNMENTS): Delete.
95         * scripttempl/elf.sc: Provide init/fini syms.  Add SBSS_START_SYMBOLS,
96         SBSS_END_SYMBOLS, SDATA2_START_SYMBOLS.
98 2005-08-04  Alan Modra  <amodra@bigpond.net.au>
100         * Makefile.am (eelf32m32c.c): Fix dependencies.
101         * Makefile.in: Regenerate.
103 2005-08-04  Alan Modra  <amodra@bigpond.net.au>
105         * ldemul.c (ldemul_finish): Call ld_emulation->finish unconditionally.
106         (finish_default): New function.
107         * ldemul.h (finish_default): Declare.
108         * emultempl/aix.em (gld*_before_allocation): Call
109         before_allocation_default rather than strip_excluded_output_sections.
110         (ld_*_emulation): Init finish field to finish_default.
111         * emultempl/armcoff.em: Likewise.
112         * emultempl/beos.em: Likewise.
113         * emultempl/elf32.em: Likewise.
114         * emultempl/generic.em: Likewise.
115         * emultempl/gld960.em: Likewise.
116         * emultempl/gld960c.em: Likewise.
117         * emultempl/hppaelf.em: Likewise.
118         * emultempl/linux.em: Likewise.
119         * emultempl/lnk960.em: Likewise.
120         * emultempl/m68kcoff.em: Likewise.
121         * emultempl/mmo.em: Likewise.
122         * emultempl/pe.em: Likewise.
123         * emultempl/ppc64elf.em: Likewise.
124         * emultempl/sunos.em: Likewise.
125         * emultempl/ticoff.em: Likewise.
126         * emultempl/vanilla.em: Likewise.
128 2005-08-03  Alan Modra  <amodra@bigpond.net.au>
130         * ldlang.c (exp_init_os): Handle etree_provide.
131         * emulparams/armelf.sh (OTHER_END_SYMBOLS): Rename from..
132         (OTHER_BSS_END_SYMBOLS): ..this.
133         * emulparams/armelf_linux.sh: Likewise.
134         * emulparams/armnto.sh: Likewise.
135         * emulparams/criself.sh: Likewise.
136         * emulparams/crislinux.sh: Likewise.
137         * emulparams/elf32frv.sh: Likewise.
138         * emulparams/elf32mcore.sh: Likewise.
139         * emulparams/elf32ppc.sh: Likewise.
140         * emulparams/elf32ppclinux.sh: Likewise.
141         * emulparams/hppa64linux.sh: Likewise.
142         * scripttempl/armbpabi.sc: Substitute $OTHER_END_SYMBOLS, not
143         $OTHER_BSS_END_SYMBOLS.
144         * scripttempl/elf32sh-symbian.sc: Likewise.
145         * scripttempl/elf_chaos.sc: Likewise.
146         * scripttempl/iq2000.sc: Likewise.
147         * scripttempl/xstormy16.sc: Likewise.
148         * scripttempl/elf.sc: Likewise.  Delete __bss_start comment.
149         * scripttempl/elfxtensa.sc: Likewise.
151 2005-07-29  Nick Clifton  <nickc@redhat.com>
153         * ldmain.c (main): Allow -shared and -static to be used together.
154         * ld.texinfo (-static): Mention that it is allowed with -shared.
156 2005-07-28  DJ Delorie  <dj@redhat.com>
158         * ldlang.c (lang_output_section_statement_lookup_1): Don't cast a
159         unary & address operator, as that breaks GCC's strict aliasing
160         rules.
162 2005-07-25  Jan Hubicka  <jh@suse.cz>
163             H.J. Lu  <hongjiu.lu@intel.com>
165         * emulparams/elf_x86_64.sh (LARGE_SECTIONS): New.
167         * scripttempl/elf.sc: Updated for large section support.
169 2005-07-21  Ralf Corsepius  <ralf.corsepius@rtems.org>
171         * configure.tgt: Remove i[3-7]86-*-rtemself*.
172         Remove sparc-*-rtemself*.
174 2005-07-21  Ben Elliston  <bje@gnu.org>
176         * ldgram.y (ldgram_want_filename): Remove unused static.
178 2005-07-20  DJ Delorie  <dj@redhat.com>
180         * emulparams/elf32m32c.sh (TEMPLATE_NAME): New.
181         (EXTRA_EM_FILE): New.
183 2005-07-19  H.J. Lu  <hongjiu.lu@intel.com>
185         * ldmain.c (main): Reindent.
187 2005-07-19  Paul Brook  <paul@codesourcery.com>
189         * configure.host (HOSTING_CRT0): Parse output of gcc --help --verbose
190         to determine dynamic linker name.
192 2005-07-18  Nick Clifton  <nickc@redhat.com>
194         * configure.tgt: Restore alpha ordering to list of arches.
196 2005-07-16  Alan Modra  <amodra@bigpond.net.au>
198         * emultempl/elf32.em (gld*_provide_init_fini_syms): Prototype.
199         (gld*_before_allocation): Call ldemul_do_assignments rather than
200         gld*_provide_init_fini_syms directly.
201         * emultempl/ppc32elf.em (gld*_after_allocation): Delete.
202         (ppc_do_assignments): New function.
203         (LDEMUL_AFTER_ALLOCATION): Don't define.
204         (LDEMUL_DO_ASSIGNMENTS): Define.
206 2005-07-16  Alan Modra  <amodra@bigpond.net.au>
208         * Makefile.am: Run "make dep-am".
209         (emipsidt.c, emipsidtl.c): Depend on generic.em.
210         * Makefile.in: Regenerate.
212 2005-07-15  Alan Modra  <amodra@bigpond.net.au>
214         * ldemul.c (ldemul_do_assignments): New function.
215         (do_assignments_default): New function.
216         * ldemul.h (ldemul_do_assignments): Declare.
217         (do_assignments_default): Declare.
218         (struct ld_emulation_xfer_struct): Add do_assignments.
219         * ldlang.c (lang_do_assignments) Call ldemul_do_assignments.
220         * emultempl/aix.em (ld_*_emulation): Init do_assignments field.
221         * emultempl/armcoff.em: Likewise.
222         * emultempl/beos.em: Likewise.
223         * emultempl/generic.em: Likewise.
224         * emultempl/gld960.em: Likewise.
225         * emultempl/gld960c.em: Likewise.
226         * emultempl/linux.em: Likewise.
227         * emultempl/lnk960.em: Likewise.
228         * emultempl/m68kcoff.em: Likewise.
229         * emultempl/pe.em: Likewise.
230         * emultempl/sunos.em: Likewise.
231         * emultempl/ticoff.em: Likewise.
232         * emultempl/vanilla.em: Likewise.
233         * emultempl/elf32.em: Likewise, to call gld*_provide_init_fini_syms.
234         (gld*_find_exp_assignment): Adjust bfd_elf_record_link_assignment call.
236 2005-07-14  Jim Blandy  <jimb@redhat.com>
238         Add support for the Renesas M32C and M16C.
239         * Makefile.am (ALL_EMULATIONS): Add eelf32m32c.o.
240         (eelf32m32c.c): New target.
241         * Makefile.in: Regenerated.
242         * configure.tgt: Add case for m32c-*-elf.
243         * emulparams/elf32m32c.sh: New file.
245 2005-07-14  Alan Modra  <amodra@bigpond.net.au>
247         * ldlang.c (strip_excluded_output_sections): Don't call
248         bfd_gc_sections.
249         * emultempl/elf32.em (gld*_provide_bound_symbols): Move.
250         (gld*_provide_init_fini_syms): Move.
251         (gld*_before_allocation): Call the above from here..
252         (gld*_finish): ..not here.  Call _bfd_elf_fix_excluded_sec_syms.
253         * emultempl/hppaelf.em (hppaelf_finish): Likewise.
254         * emultempl/ppc64elf.em (ppc_finish): Likewise.
256 2005-07-10  Ralf Corsepius <ralf.corsepius@rtems.org>
258         * configure.tgt: Remove sparc*-*-rtemsaout*, i[3-7]86-go32-rtems*,
259         i[3-7]86-*-rtemscoff*, hppa*-*-rtems*, mips*el-*-rtems*,
260         powerpcle-*-rtems*.
262 2005-07-09  Christopher Faylor  <cgf@timesys.com>
264         * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse): Enable runtime
265         relocation by default.
266         (compute_dll_image_base): Avoid linking into cygwin dll address space.
268 2005-07-08  Alan Modra  <amodra@bigpond.net.au>
270         * ldlang.c (wild_sort): Formatting.
271         (strip_excluded_output_sections): Strip zero size sections here.
272         * emultempl/elf32.em (gld*_strip_empty_sections): Delete.
273         (gld*_finish): Don't call the above.
274         * emultempl/hppaelf.em (hppaelf_finish): Likewise.
275         * emultempl/ppc64elf.em (ppc_finish): Likewise.
277 2005-07-05  Paul Brook  <paul@codesourcery.com>
279         * Makefile.am (ALL_EMULATIONS): Add eelf32ppcvxworks.o.
280         (eelf32ppcvxworks.o): Add dependencies.
281         * Makefile.in: Regenerate.
282         * configure.tgt: Add entry for powerpc-vxworks.
283         * emulparams/elf32-ppc.c: Mention elf32ppcvxworks.sh in comment.
284         * emulparams/elf32ppcvxworks.sh: New file.
285         * emultempl/ppc32elf.em (bfd_elf32_powerpc_vxworks_vec): Declare.
286         (is_ppc_elf32_vec): New function.
287         (ppc_after_open, ppc_before_allocation,
288         gld${EMULATION_NAME}_after_allocation): Use it.
290 2005-07-05  Peter S. Mazinger" <ps.m@gmx.net>
292         * emulparams/elf32bmip.sh (GENERATE_PIE_SCRIPT): Define as "yes".
293         * emulparams/elf32bmipn32-defs.sh (GENERATE_PIE_SCRIPT): Define as "yes".
295 2005-07-04  Mike Frysinger <vapier@gentoo.org>
297         * emulparams/hppalinux.sh (GENERATE_PIE_SCRIPT): Fix typo in
298         name.
300 2005-07-04  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
302         * emulparams/m32relf_linux.sh (GENERATE_PIE_SCRIPT): Set to yes.
304 2005-07-04  Aurelien Jarno  <aurel32@debian.org>
306         * emultempl/elf32.em: Enable use of ld.so.conf for *-*-k*bsd-*.
308 2005-07-01  Alan Modra  <amodra@bigpond.net.au>
310         * scripttempl/elf.sc (.gcc_except_table): Don't KEEP.
312 2005-06-30  Ben Elliston  <bje@gnu.org>
314         * Makefile.am (check-DEJAGNU): Don't search for expect.
315         * Makefile.in: Regenerate.
317 2005-06-30  Ben Elliston  <bje@gnu.org>
319         * Makefile.am (EXPECT): Set to expect.
320         (RUNTEST): Likewise, set to runtest.
321         * Makefile.in: Regenerate.
323 2005-06-16  Alexander Klimov  <alserkli@inbox.ru>
325         * emultempl/armelf.em: Add quotes to avoid a null test
326         expression.
328 2005-06-12  Daniel Jacobowitz  <dan@codesourcery.com>
330         * ld.texinfo (Command Line Options): Add @item for --hash-size.
332 2005-06-10  Alan Modra  <amodra@bigpond.net.au>
334         * scripttempt/elf.sc (.bss): Align tail in a way that allows
335         empty section pruning.
337 2005-06-09  Steve Ellcey  <sje@cup.hp.com>
339         * configure.in (AM_BINUTILS_WARNINGS): Add.
340         (BFD_NEED_DECLARATION) Replace with AC_CHECK_DECLS.
341         * config.in: Regenerate.
342         * configure: Regenerate.
343         * sysdep.h (NEED_DECLARATION_*): Replace with HAVE_DECL_*
344         * ldmain.c: Ditto.
346 2005-06-09  Alan Modra  <amodra@bigpond.net.au>
348         * ldexp.c (fold_unary <ALIGN_K>): Revert last change.
350 2005-06-09  Alan Modra  <amodra@bigpond.net.au>
352         * ld.h (lang_phase_type): Move to..
353         * ldexp.h: ..here.  Add lang_mark_phase_enum.
354         (node_type): Remove etree_undef and etree_unspec.
355         (exp_data_seg): Delete.
356         (struct ldexp_control, expld): New.
357         (invalid, exp_mark_used_section): Delete.
358         (exp_fold_tree, exp_get_vma, exp_get_value_int, exp_get_fill,
359         exp_get_abs_int): Update prototypes.
360         * ldexp.c (assigning_to_dot): Delete.
361         (expld): Define.
362         (make_abs): Operate directly on expld.result.  Update all callers.
363         (new_abs): Likewise.  Return void.
364         (new_rel_from_abs): Rename from new_rel_from_section.
365         (new_rel, new_rel_from_abs): Operate on expld.result and return void.
366         Update all callers.
367         (fold_unary): Operate on expld.result and return void.  Remove
368         "current_section", "allocation_done", "dot", "dotp" and "mark_used"
369         params.  Update all callers.
370         (fold_binary, fold_trinary, fold_name, exp_fold_tree_1): Likewise.
371         (fold_unary <ALIGN_K>): Ensure alignment is absolute.
372         (fold_unary <ABSOLUTE>): Use make_abs.
373         (fold_unary <DATA_SEGMENT_END>): Evaluate mark_phase as for
374         allocating_phase.
375         (fold_binary <DATA_SEGMENT_ALIGN, DATA_SEGMENT_RELRO_END, >): Ditto.
376         (fold_binary <'%','/'>): Don't error if marking.
377         (fold_name <SIZEOF_HEADERS>): Don't call bfd_sizeof_headers when
378         marking.
379         (fold_name <NAME>): Remove FIXME; -R is handled correctly.  Don't
380         error when marking.
381         (fold_name <ADDR, LOADADDR, SIZEOF>): Don't set SEC_KEEP.
382         (exp_fold_tree_1): Don't error when marking.
383         (exp_fold_tree_1 <etree_rel>): Evaluate in all phases except first.
384         (exp_fold_tree_1 <etree_assign to dot>): Don't check for NULL
385         current section, instead check for NULL dotp.
386         (exp_fold_tree_1 <etree_provide>): Don't evaluate the assignment
387         source unless the symbol is referenced and undefined.
388         (exp_fold_tree): Remove "allocation_done" and "dot" params.  Save
389         params to expld.
390         (exp_fold_tree_no_dot): Remove "current_section", "allocation_done
391         and "mark_used" params.  Save params to expld.  Update all callers.
392         (exp_assop): Do without temp var.
393         (exp_print_tree <etree_undef>): Delete code.
394         (exp_get_vma): Remove "allocation_done" param.  Correct error return.
395         (exp_get_fill, exp_get_abs_int): Likewise.
396         (exp_get_value_int): Remove "allocation_done" param.
397         (exp_mark_used_section): Delete.
398         * ldgram.y (fill_exp): Update exp_get_fill call.
399         (origin_spec, length_spec): Update exp_get_vma call.
400         * ldlang.c (lang_init): Don't bother clearing lang_statement_iteration.
401         (lang_mark_used_section_1, lang_mark_used_section): Delete.
402         (strip_excluded_output_sections): Call one_lang_size_sections_pass in
403         marking mode.  Merge old lang_mark_used_section code.  Correct handling
404         of output sections with excluded input sections and data statements.
405         Don't drop non-zero sized sections.  Don't zap os->bfd_section.
406         Do set SEC_EXCLUDE when appropriate.
407         (print_output_section_statement): Update for changed ldexp.c
408         interface.
409         (print_assignment, lang_size_sections_1): Likewise.
410         (lang_do_assignments_1, lang_enter_output_section_statement): Likewise.
411         (lang_new_phdr, lang_record_phdrs): Likewise.
412         (lang_size_sections): Likewise.
413         (insert_pad): Use following statement if it is a pad, rather than
414         creating a new one.
415         (lang_size_sections_1 <lang_output_section_statement_enum>): Do
416         process ignored output section to set vma and lma, but don't
417         update dot for these sections.  Don't error if marking.
418         (lang_size_sections_1 <lang_assignment_statement_enum>): Don't
419         update dot for ignored sections.
420         (lang_size_sections_1 <lang_data_statement_enum>): Don't mark absolute
421         section with SEC_ALLOC.
422         (one_lang_size_sections_pass): New function.
423         (lang_size_sections): Remove first five params.  Set expld.phase on
424         entry and exit.   Use one_lang_size_sections_pass.
425         (lang_do_assignments): Remove all params.  Update all callers.
426         (lang_reset_memory_regions): Clear os->processed for all output
427         section statements.
428         * ldlang.h (lang_do_assignments): Update prototype.
429         (lang_size_sections): Likewise.
430         (one_lang_size_sections_pass): Declare.
431         * pe-dll.c (pe_dll_fill_sections, pe_exe_fill_sections): Update
432         lang_size_sections and lang_do_assignments calls.
433         * emultempl/elf32.em (layout_sections_again): Likewise.
434         * emultempl/ppc64elf.em (ppc_before_allocation): Use
435         one_lang_size_sections_pass.
437 2005-06-08  Aldy Hernandez  <aldyh@redhat.com>
439         * emulparams/elf32ms1.sh: New.
441 2005-06-07  Eric Christopher  <echristo@redhat.com>
443         * Makefile.am (eelf32ms1.c): Use tab.
444         * Makefile.in: Regenerate.
446 2005-06-07  Aldy Hernandez  <aldyh@redhat.com>
447             Michael Snyder  <msnyder@redhat.com>
448             Stan Cox  <scox@redhat.com>
450         * configure.tgt: Same.
452         * Makefile.am (ALL_EMULATIONS): Depend on eelf32ms1.o.
453         (eelf32ms1.c): Add eelf32ms1.c rule.
455         * Makefile.in: Regenerate.
457 2005-06-06  Alan Modra  <amodra@bigpond.net.au>
459         * emultempl/ppc64elf.em (ppc_before_allocation): Always run
460         ppc64_elf_edit_opd.
462 2005-06-05  H.J. Lu  <hongjiu.lu@intel.com>
464         * ldexp.c (exp_mark_used_section): Set SEC_KEEP on current
465         section only if the symbol will be defined.
467 2005-06-04  H.J. Lu  <hongjiu.lu@intel.com>
469         PR 992
470         * ldexp.c (exp_mark_used_section): Set SEC_KEEP on current
471         section for etree_assign, etree_provide and etree_provided.
472         Call fold_binary on etree_binary.
474         * ldlang.c (lang_mark_used_section_1): Handle load base.
476 2005-06-03  Alan Modra  <amodra@bigpond.net.au>
478         * ldmain.c (link_callbacks): Add einfo.
479         (add_archive_element): Use passed info, not link_info.
480         (constructor_callback): Likewise.
481         (reloc_overflow): Don't handle null bfd specially.
482         (reloc_dangerous, unattached_reloc): Likewise.
483         * ldmisc.c (vfinfo <B>): Print "ld generated" for null bfd.
484         (vfinfo <C, D, G>): Handle null bfd.  Wrap comments.
486 2005-06-02  Alan Modra  <amodra@bigpond.net.au>
488         * ldexp.h (etree_value_type): Use "asection *" in place of
489         "struct lang_output_section_statement_struct *" for "section".
490         (exp_fold_tree): Likewise.
491         (exp_mark_used_section): Likewise.
492         * ldexp.c (new_rel, new_rel_from_section, fold_unary, fold_binary,
493         fold_trinary, fold_name, exp_fold_tree_1, exp_fold_tree,
494         exp_mark_used_section): Likewise for "current_section" param.
495         (make_abs, new_abs, exp_binop, exp_unop, exp_get_vma, exp_get_fill,
496         exp_get_abs_int): Adjust for above changes.
497         * ldlang.c (lang_mark_used_section_1, print_assignment,
498         lang_size_sections_1, lang_do_assignments_1): Likewise.
499         * ldexp.c (fold_name): Init entire result struct.
501 2005-06-01  Maciej W. Rozycki  <macro@linux-mips.org>
503         * emulparams/elf32btsmip.sh: Unset DATA_ADDR.
505 2005-05-31  Zack Weinberg  <zack@codesourcery.com>
507         * ldlang.c (entry_symbol_default): New file-scope global.
508         (lang_finish): Use it, not a hardwired "start".
509         (lang_default_entry): Set it.
510         * ldlang.h: Declare lang_default_entry.
511         * emultempl/beos.em, emultempl/pe.em: Use lang_default_entry,
512         not lang_add_entry, to override default entry point symbol.
514 2005-05-29  Richard Henderson  <rth@redhat.com>
516         * emulparams/elf64alpha.sh (PLT): New.
517         (TEXT_PLT): New.
518         * emultempl/alphaelf.em (disable_relaxation): New.
519         (limit_32bit): Rename from elf64alpha_32bit; update all users.
520         (elf64_alpha_use_secureplt): Declare.
521         (bfd_elf64_alpha_vec, bfd_elf64_alpha_freebsd_vec): Declare.
522         (alpha_after_open): New.
523         (alpha_before_allocation): New.
524         (OPTION_NO_RELAX, OPTION_SECUREPLT, OPTION_NO_SECUREPLT): New.
525         (PARSE_AND_LIST_LONGOPTS): Include them.
526         (PARSE_AND_LIST_OPTIONS): Likewise.
527         (PARSE_AND_LIST_ARGS_CASES): Likewise.
528         (LDEMUL_AFTER_OPEN, LDEMUL_BEFORE_ALLOCATION): New.
529         * scripttempl/elf.sc (TEXT_PLT): New.
530         (PLT): Use it.
532 2005-05-27  Andreas Schwab  <schwab@suse.de>
534         * configure.host (HOSTING_LIBS): Add libunwind.a if it exists.
536 2005-05-24  Alan Modra  <amodra@bigpond.net.au>
538         * emultempl/ppc32elf.em (after_allocation): Don't call
539         ppc_elf_set_sdata_syms when relocatable.
541 2005-05-21  H.J. Lu  <hongjiu.lu@intel.com>
543         * Makefile.am (ld.1): Revert the last 2 changes.
544         (info-recursive): Depend on ld.1.
545         * Makefile.in: Regenerated.
547 2005-05-21  H.J. Lu  <hongjiu.lu@intel.com>
549         * Makefile.am (ld.1): Depend on "info" instead of
550         "configdoc.texi ldver.texi".
551         * Makefile.in: Regenerated.
553 2005-05-21  H.J. Lu  <hongjiu.lu@intel.com>
555         * Makefile.am (ld.1): Depend on "info".
556         * Makefile.in: Regenerated.
558 2005-05-19  Zack Weinberg  <zack@codesourcery.com>
560         * Makefile.am: Have 'all' depend on 'info' and 'ld.1'.
561         * Makefile.in: Regenerate.
563 2005-05-17  Zack Weinberg  <zack@codesourcery.com>
565         * ld-arm/mixed-app.d: Adjust expected disassembly a little.
567 2005-05-17  Daniel Jacobowitz  <dan@codesourcery.com>
569         * Makefile.am (ldver.texi): Don't use $<.
570         * Makefile.in: Regenerated.
572 2005-05-17  Daniel Jacobowitz  <dan@codesourcery.com>
574         * Makefile.am (AM_MAKEINFOFLAGS, TEXI2DVI): Explicitly include
575         $(srcdir) before $(BFDDIR)/doc.
576         * Makefile.in: Regenerated.
578 2005-05-17  H.J. Lu  <hongjiu.lu@intel.com>
580         PR 797
581         * ldexp.c (exp_fold_tree_1): Renamed from exp_fold_tree and
582         take take a bfd_boolean, mark_used. Ignore assert failure if
583         mark_used is TRUE.
584         (exp_fold_tree) Call exp_fold_tree_1 with mark_used == FALSE.
585         (exp_fold_tree_no_dot): Updated to take a bfd_boolean,
586         mark_used and pass down.
587         (fold_unary): Likewise.
588         (fold_binary): Likewise.
589         (fold_trinary): Likewise.
590         (exp_binop): Add FALSE to call to exp_fold_tree_no_dot.
591         (exp_trinop): Likewise.
592         (exp_unop): Likewise.
593         (exp_nameop): Likewise.
594         (exp_get_vma): Likewise.
595         (exp_get_fill): Likewise.
596         (exp_get_abs_int): Likewise.
597         (fold_name): Likewise. Set SEC_KEEP in output section flags.
598         (exp_mark_used_section): New.
600         * ldexp.h (exp_mark_used_section): New.
602         * ldlang.c (lang_output_section_statement_lookup_1): Set the
603         ignored field to FALSE.
604         (lang_mark_used_section_1): New.
605         (lang_mark_used_section): Call lang_mark_used_section_1.
606         (strip_excluded_output_sections): Call lang_mark_used_section
607         and check for unused sections.
608         (lang_size_sections_1): Skip an output section if it should
609         be ignored.
610         (lang_do_assignments_1): Likewise.
611         (lang_process): Don't call lang_mark_used_section here.
613         * ldlang.h (lang_output_section_statement_type): Change
614         all_input_readonly to bitfield. Add ignored.
616 2005-05-17  Lennert Buytenhek  <buytenh@wantstofly.org>
617             Peter S. Mazinger" <ps.m@gmx.net>
619         * emulparams/armelf_linux.sh (GENERATE_PIE_SCRIPT): Define as "yes".
620         * emulparams/hppalinux.sh (GENERATE_PIE_SCRIPT): Define as "yes".
622 2005-05-17  Julian Brown <julian@codesourcery.com>
624         * ldlang.c (print_assignment): Do not rely upon a valid result
625         having a section associated with it.
627 2005-05-17  Nick Clifton  <nickc@redhat.com>
629         * ldlang.c (Scan_for_self_assignment): Check an assignment tree to
630         see if the same value is being used on the rhs as on the lhs.
631         (print_assignment): Call scan_for_self_assignment and if it
632         returns true, do no display the result of the computation but
633         instead just the final value of the symbol on the lhs.
634         * ld.texinfo: Document this behaviour and provide an example of
635         when it will happen.
637 2005-05-15  Daniel Jacobowitz  <dan@codesourcery.com>
639         * Makefile.am (AM_MAKEINFOFLAGS): Define.
640         (TEXI2DVI): Define.
641         (ldver.texi): Depend on distributed files instead of built files.
642         (ld.info): Include $(srcdir) in the rule target.  Remove actions.
643         (ld.dvi): Remove actions.
644         (MAINTAINERCLEANFILES): Add configdoc.texi.
645         (CONFIG_STATUS_DEPENDENCIES): Add bfd/configure.in.
646         (install-data-local): Renamed from install.
647         (Makefile): Remove explicit dependency.
648         * acinclude.m4: Remove obsolete code.
649         * configure.in: Update AC_PREREQ.  Remove extra $CONFIG_SHELL.
650         * Makefile.in, aclocal.m4, config.in, configure: Regenerated.
652 2005-05-11  Bob Wilson  <bob.wilson@acm.org>
654         * scripttempl/elfxtensa.sc: Sync up with elf.sc.
655         * emulparams/elf32xtensa.sh (PLT, GOT): Define.
657 2005-05-11  Alan Modra  <amodra@bigpond.net.au>
659         * ldgram.y: Add SPECIAL token.
660         (sect_constraint): Handle SPECIAL.
661         * ldlang.c (lang_output_section_find_1): Don't match SPECIAL.
662         (map_input_to_output_sections): Likewise.
663         * ldlex.l (SPECIAL): Define.
664         * emulparams/elf32ppc.sh (DATA_GOT, SDATA_GOT, SEPARATE_GOTPLT,
665         GOT, PLT, GOTPLT): Define.
666         * emultempl/ppc32elf.em (old_plt, old_got): New static vars.
667         (ppc_after_open): New function.
668         (PARSE_AND_LIST_PROLOGUE): Define OPTION_OLD_LPT and OPTION_OLD_GOT.
669         (PARSE_AND_LIST_LONGOPTS): Add "bss-plt" and "sdata-got".
670         (PARSE_AND_LIST_OPTIONS): Document them.
671         (PARSE_AND_LIST_ARGS_CASES): Handle them.
672         (LDEMUL_AFTER_OPEN): Define.
673         * scripttempl/elf.sc (PLT): Don't override existing define.
674         (DATA_GOT, SDATA_GOT): Define and use to enable alternate got
675         placement rather than using NO_SMALL_DATA.  Emit GOTPLT for RELRO_NOW.
677 2005-05-10  Alan Modra  <amodra@bigpond.net.au>
679         * scripttempl/elf.sc (DATA_SEGMENT_RELRO_GOTPLT_END): Delete.
680         (DATA_SEGMENT_RELRO_END): Use SEPARATE_GOTPLT value.
681         (GOTPLT): Remove DATA_SEGMENT_RELRO_GOTPLT_END.  Place after
682         DATA_SEGMENT_RELRO_END in script.
684 2005-05-09  H.J. Lu  <hongjiu.lu@intel.com>
686         * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
687         Don't use a removed section.
689 2005-05-09  H.J. Lu  <hongjiu.lu@intel.com>
691         * ldmain.c (reloc_overflow): Use output_bfd if the symbol
692         is defined in the ABS section.
694 2005-05-06  H.J. Lu  <hongjiu.lu@intel.com>
696         * emultempl/elf32.em (gld${EMULATION_NAME}_provide_init_fini_syms):
697         Put back !link_info.relocatable.
699 2005-05-06  H.J. Lu  <hongjiu.lu@intel.com>
701         PR 878
702         * emultempl/elf32.em (gld${EMULATION_NAME}_provide_init_fini_syms):
703         Just check link_info.executable.
705 2005-05-06  Nick Clifton  <nickc@redhat.com>
707         * Update the address and phone number of the FSF organization in
708         the GPL notices in the following files:
709         aclocal.m4, deffile.h, deffilep.y, fdl.texi, ld.h, ldcref.c,
710         ldctor.c, ldctor.h, ldemul.c, ldexp.c, ldexp.h, ldfile.c,
711         ldfile.h, 20ldgram.y, ldint.texinfo, ldlang.c, ldlang.h, ldlex.h,
712         ldlex.l, ldmain.c, ldmain.h, ldmisc.c, ldmisc.h, ldver.c, ldver.h,
713         ldwrite.c, ldwrite.h, lexsup.c, mri.c, mri.h, pe-dll.c, pe-dll.h,
714         sysdep.h, emultempl/aix.em, emultempl/alphaelf.em,
715         emultempl/armcoff.em, emultempl/armelf.em, emultempl/beos.em,
716         emultempl/crxelf.em, emultempl/elf32.em, emultempl/generic.em,
717         emultempl/gld960.em, emultempl/gld960c.em, emultempl/hppaelf.em,
718         emultempl/ia64elf.em, emultempl/irix.em,  emultempl/linux.em,
719         emultempl/lnk960.em, emultempl/m68hc1xelf.em,
720         emultempl/m68kcoff.em, emultempl/m68kelf.em,
721         emultempl/mipsecoff.em, emultempl/mmix-elfnmmo.em,
722         emultempl/mmixelf.em, emultempl/mmo.em, emultempl/needrelax.em,
723         emultempl/pe.em, emultempl/ppc32elf.em, emultempl/ppc64elf.em,
724         emultempl/sh64elf.em, emultempl/sunos.em, emultempl/ticoff.em,
725         emultempl/vanilla.em, emultempl/xtensaelf.em
727 2005-05-05  H.J. Lu  <hongjiu.lu@intel.com>
729         * scripttempl/elf.sc: Document the usage of __bss_start.
731 2005-05-05  Paul Brook  <paul@codesourcery.com>
733         * Makefile.am: Add eelf_i386_vxworks.
734         * Makefile.in: Regenerate.
735         * configure.tgt: Make i?86-*-vxworks use targ_emul=elf_i386_vxworks.
736         * emulparams/elf_i386_vxworks.sh: New file.
737         * emulparams/vxworks.sh: New file.
738         * scripttempl/elf.sc: Add DATA_END_SYMBOLS and ETEXT_NAME.
740 2005-05-04  H.J. Lu  <hongjiu.lu@intel.com>
742         * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
743         Call _bfd_elf_provide_section_bound_symbols.
745 2005-05-04  Alan Modra  <amodra@bigpond.net.au>
747         * ldemul.c: Include bfdlink.h.
748         (ldemul_before_allocation): Assume before_allocation is non-zero.
749         (before_allocation_default): Call strip_excluded_output_sections.
750         * ldlang.c (stripped_excluded_sections): New variable.
751         (lang_add_section): Build input section list for each output
752         section, attached via map_head and map_tail pointers.
753         (strip_excluded_output_sections): Make global.  Traverse the
754         input section lists to find which output sections can go.  Clear
755         link_order pointers and set stripped_excluded_sections.
756         (lang_process): Call strip_excluded_output_sections.
757         * ldlang.h (strip_excluded_output_sections): Declare.
758         * ldwrite.c: Update throuhout for link_order_head -> map_head change.
759         * emultempl/aix.em (before_allocation): Call
760         strip_excluded_output_sections.
761         * emultempl/armcoff.em (before_allocation): Likewise.
762         * emultempl/beos.em (before_allocation): Likewise.
763         * emultempl/linux.em (before_allocation): Likewise.
764         * emultempl/pe.em (before_allocation): Likewise.
765         * emultempl/sunos.em (before_allocation): Likewise.
766         * emultempl/elf32.em (before_allocation): Likewise.  Call
767         bfd_elf_size_dynsym_hash_dynstr too.
768         * emultempl/lnk960.em (lnk960_before_allocation): Delete.
769         (ld_lnk960): Use before_allocation_default.
771 2005-05-02  H.J. Lu  <hongjiu.lu@intel.com>
773         * emultempl/elf32.em (gld${EMULATION_NAME}_strip_empty_section):
774         Updated for bfd_section_list_remove change.
775         * ldlang.c (lang_insert_orphan): Likewise.
776         (strip_excluded_output_sections): Likewise.
777         (sort_sections_by_lma): New.
778         (lang_check_section_addresses): Sort the sections before
779         checking addresses.
781 2005-04-29  Ralf Corsepius <ralf.corsepius@rtems.org>
783         * configure.tgt: Add h8300*-*-rtemscoff.
784         Switch h8300*-*-rtems* to elf.
786 2005-04-29  Ben Elliston  <bje@au.ibm.com>
788         * ldgram.y (lang_memory_region_type): Make static.
789         (ldgram_want_filename): Likewise.
790         * ldemul.c (ld_emulation): Make static.
791         * ldfile.h (ldfile_find_command_file): Remove extern.
792         * ldfile.c (ldfile_find_command_file): Make static.
793         * ldlang.h (unique_section_list): Remove extern declaration.
794         * ldlang.c (unique_section_list): Make static.
795         * mri.h (symbol_truncate): Remove extern declaration.
796         * mri.c (symbol_truncate): Make static.
797         (order, only_load, address, alias): Likewise.
798         (alignment, subalignment): Likewise.
800 2005-04-27  H.J. Lu  <hongjiu.lu@intel.com>
802         * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
803         Use the first SEC_ALLOC section which isn't SEC_READONLY or the
804         last SEC_ALLOC section if such a section doesn't exist.
806 2005-04-24  Mark Kettenis  <kettenis@gnu.org>
808         * configure.host: Add *-*-openbsd support.
810 2005-04-15  Julian Brown  <julian@codesourcery.com>
812         * ld.texinfo: Document --use-blx.
813         * emultempl/armelf.em (use_blx): New variable.
814         (arm_elf_create_output_section_statements): Communicate value of
815         use_blx to bfd.
816         (PARSE_AND_LIST_PROLOGUE): Add OPTION_USE_BLX.
817         (PARSE_AND_LIST_OPTIONS): Add --use-blx option.
818         (PARSE_AND_LIST_ARGS_CASES): Add OPTION_USE_BLX case.
820 2005-04-14  Alan Modra  <amodra@bigpond.net.au>
822         * Makefile.am (NO_WERROR): Define.  Use instead of -Wno-error.
823         * configure.in: Include ../bfd/warning.m4 contents.
824         * Makefile.in: Regenerate.
825         * configure: Regenerate.
827 2005-04-12  Alan Modra  <amodra@bigpond.net.au>
829         * Makefile.am: Run "make dep-am".
830         (ldgram.o, ldlex.o, deffilep.o): Add -Wno-error to command.
831         * Makefile.in: Regenerate.
832         * config.in: Regenerate.
834 2005-04-11  Alan Modra  <amodra@bigpond.net.au>
836         * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed): Ignore
837         as_needed libs that were not needed.
838         (gld${EMULATION_NAME}_check_needed): Likewise.
840 2005-04-07  Nick Clifton  <nickc@redhat.com>
842         * emultempl/m68kcoff.em: Include ldexp.h and ldlang.h so that
843         ldfile.h can use the lang_input_statement type.
845 2005-04-06  Jakub Jelinek  <jakub@redhat.com>
847         * ldlang.c: Formatting.
848         (walk_wild_consider_section): Remember return value from wildcardp.
849         (is_simple_wild): Use strcspn instead of 2 strpbrk calls and strlen.
850         (wild_spec_can_overlap): Use strcspn instead of strpbrk and strlen.
852 2005-04-06  Robert O'Callahan  <rocallahan@novell.com>
854         * ld.h (lean_section_userdata_type): Remove.
855         (fat_section_userdata_type): Remove file field.
856         (SECTION_USERDATA_SIZE): Remove.
857         * ldlang.c (init_os): Eliminate initialization of unused
858         lean_section_userdata_type.
860         * ldlang.h (callback_t, walk_wild_section_handler_t): New
861         typedefs.
862         (struct lang_wild_statement_struct): Add walk_wild_section_handler
863         and handler_data fields.
864         * ldlang.c (callback_t): Removed.
865         (walk_wild_consider_section, walk_wild_section_general,
866         section_iterator_callback, find_section, is_simple_wild,
867         match_simple_wild, walk_wild_section_specs1_wild0,
868         walk_wild_section_specs1_wild1, walk_wild_section_specs2_wild1,
869         walk_wild_section_specs3_wild2, walk_wild_section_specs4_wild2,
870         wild_spec_can_overlap, analyze_walk_wild_section_handler): New
871         functions.
872         (lang_add_wild): Call analyze_walk_wild_section_handler.
873         (walk_wild_section): Renamed to walk_wild_section_general and
874         created a wrapper function.
875         (section_iterator_callback_data): New typedef.
877 2005-04-04  Nick Clifton  <nickc@redhat.com>
879         * configure.in: Add a check for <unistd.h> providing a prototype
880         for getopt() which is compatible with the one in
881         include/getopt.h.  If so then define HAVE_DECL_GETOPT.
882         * configure: Regenerate.
883         * config.in (HAVE_DECL_GETOPT): Add.
884         * ldemul.c: Include config.h
885         * lexsup.c: Likewise.
886         * emultempl/elf32.sc: Likewise.
888 2005-03-29  Alan Modra  <amodra@bigpond.net.au>
890         * emultempl/elf32.em (gld${EMULATION_NAME}_layout_sections_again):
891         New function, extracted from static void gld${EMULATION_NAME}_finish.
892         (gld${EMULATION_NAME}_strip_empty_sections): Likewise.
893         (gld${EMULATION_NAME}_provide_init_fini_syms): Likewise.
894         * emultempl/ppc64elf.em: Revert last change.
895         (ppc_layout_sections_again): Use
896         gld${EMULATION_NAME}_layout_sections_again.
897         (ppc_finish): Don't call gld${EMULATION_NAME}_finish.  Instead call
898         gld${EMULATION_NAME}_strip_empty_sections and
899         gld${EMULATION_NAME}_provide_init_fini_syms.
900         * emultempl/hppaelf.em: Similarly.
902 2005-03-29  Alan Modra  <amodra@bigpond.net.au>
904         * emultempl/ppc64elf.em (need_laying_out): Delete.  Remove all refs.
905         (ppc_finish): Don't call bfd_elf_discard_info.
906         * emultempl/hppaelf.em: Similarly.
908 2005-03-24  Nick Clifton  <nickc@redhat.com>
910         * po/fr.po: Updated French translation.
912 2005-03-23  Mike Frysinger  <vapier@gentoo.org>
913             Nick Clifton  <nickc@redhat.com>
915         * configure.host: Accept any C library to accompany a GNU Linux
916         implementation, not just the GNU C library.
917         * configure.tgt: Likewise.
918         * emultempl/elf32.em: Likewise.
920 2005-03-22  H.J. Lu  <hongjiu.lu@intel.com>
922         * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols): New
923         (gld${EMULATION_NAME}_finish): Call
924         gld${EMULATION_NAME}_provide_bound_symbols to provide
925         __preinit_array_start, __preinit_array_end, __init_array_start,
926         __init_array_end, __fini_array_start and __fini_array_end.
928         * scripttempl/elf.sc: Don't provide __preinit_array_start,
929         __preinit_array_end, __init_array_start, __init_array_end,
930         __fini_array_start nor __fini_array_end.
932 2005-03-23  Alan Modra  <amodra@bigpond.net.au>
934         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Set
935         SEC_EXCLUDE on .gnu.warning sections.
937 2005-03-22  Alan Modra  <amodra@bigpond.net.au>
939         * scripttempl/elf.sc (SBSS): Don't provide sbss start and end syms.
941 2005-03-21  Alan Modra  <amodra@bigpond.net.au>
943         * emultempl/ppc32elf.em (gld${EMULATION_NAME}_after_allocation): New
944         function.
945         (LDEMUL_AFTER_ALLOCATION): Define.
947 2005-03-21  Alan Modra  <amodra@bigpond.net.au>
949         * emultempl/ppc64elf.em (ppc_finish): Rename from
950         gld${EMULATION_NAME}_finish.  Call gld${EMULATION_NAME}_finish.
951         (LDEMUL_FINISH): Update.
952         * emultempl/hppaelf.em (hppaelf_finish, LDEMUL_FINISH): Likewise.
953         * emultempl/m68hc1xelf.em (m68hc11elf_finish, LDEMUL_FINISH): Likewise.
955 2005-03-18  Julian Brown  <julian@codesourcery.com>
957         * scripttempl/armbpapi.sc (.rel.dyn): Add .rel.init_array,
958         .rel.fini_array.
959         (.rela.dyn): Add .rela.init_array, .rela.fini_array.
960         (SECTIONS): Add .rel.other, .rela.other, .reli.other after PLT relocs.
962 2005-03-18  H.J. Lu  <hongjiu.lu@intel.com>
964         * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Don't set
965         bfd_section when removing unused empty output sections for
966         non-relocatable link.
968 2005-03-19  Alan Modra  <amodra@bigpond.net.au>
970         * ldlang.c (lang_insert_orphan): Use old section_tail rather than
971         traversing the bfd section list to find pointer to new section.
973 2005-03-18  Alan Modra  <amodra@bigpond.net.au>
975         * scripttempl/elf.sc: When CREATE_SHLIB, put .sdata2 and .sbss2
976         input sections into .sdata and .sbss output respectively.
978 2005-03-16  David Heine  <dlheine@tensilica.com>
979             Bob Wilson  <bob.wilson@acm.org>
981         * ldlang.c (IGNORE_SECTION): Remove check for zero size.
982         (lang_check_section_addresses): Ignore zero size sections here.
984 2005-03-16  H.J. Lu  <hongjiu.lu@intel.com>
986         * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Remove
987         unused empty output sections for non-relocatable link.
989         * ld.h (args_type): Remove gc_sections.
991         * ldlang.c (lang_mark_used_section): New.
992         (lang_gc_sections): Use link_info.gc_sections instead of
993         command_line.gc_sections.
994         * ldmain.c (main): Likewise.
995         * lexsup.c (parse_args): Likewise.
996         * ldlang.c (lang_process): Call lang_mark_used_section.
998         * ldmain.c (main): Initialize link_info.gc_sections to FALSE.
1000 2005-03-16  Nick Clifton  <nickc@redhat.com>
1001             Ben Elliston  <bje@au.ibm.com>
1003         * configure.in (werror): New switch: Add -Werror to the
1004         compiler command line.  Enabled by default.  Disable via
1005         --disable-werror.
1006         * configure: Regenerate.
1008 2005-03-16  Alan Modra  <amodra@bigpond.net.au>
1010         * emulparams/elf32ppclinux.sh (OTHER_READWRITE_SECTION): Delete.
1011         (OTHER_RELRO_SECTIONS): Set this instead.
1013 2005-03-15  Nick Clifton  <nickc@redhat.com>
1015         * NEWS: Add cutoff for changes in 2.16 release.
1017 2005-03-15  Mikkel Krautz  <krautz@gmail.com>
1019         * configure.tgt (x86_64-elf): Add target.
1021 2005-03-15  Alan Modra  <amodra@bigpond.net.au>
1023         * po/es.po: Commit new Spanish translation.
1025 2005-03-14  Alan Modra  <amodra@bigpond.net.au>
1027         * ldexp.c (exp_fold_tree): Ensure return value is initialized.
1028         Tidy etree_assert case.
1030 2005-03-14  Alan Modra  <amodra@bigpond.net.au>
1032         * po/tr.po: Commit new Turkish translation.
1034 2005-03-11  Daniel Jacobowitz  <dan@codesourcery.com>
1036         * Makefile.am: Remove references to em68klynx.o and esparclynx.o.
1037         * Makefile.in: Regenerated.
1038         * emulparams/m68klynx.sh, emulparams/sparclynx.sh: Remove.
1040 2005-03-07  Nick Clifton  <nickc@redhat.com>
1042         * po/fr.po: Updated translation.
1044 2005-03-05  Alan Modra  <amodra@bigpond.net.au>
1046         * po/ld.pot: Regenerate.
1048 2005-03-02  Jan Beulich  <jbeulich@novell.com>
1050         * ldmain.c (remove_output): Use unlink_if_ordinary instead of unlink.
1051         * pe-dll.c (pe_dll_generate_implib): Likewise.
1053 2005-02-24  Ben Elliston  <bje@au.ibm.com>
1055         * ldfile.c: Remove GNU960 conditional code.
1056         * emultempl/gld960.em: Likewise.
1057         * emultempl/gld960c.em: Likewise.
1058         * emultempl/lnk960.em: Likewise.
1060 2005-02-24  Nick Clifton  <nickc@redhat.com>
1062         * emultempl/lnk960.em (lnk960_before_parse): Remove redundant
1063         empty string from calls to concat.
1065 2005-02-23  Nick Clifton  <nickc@redhat.com>
1067         * emultempl/lnk960.em (lnk960_before_parse): Terminate list of
1068         arguments passed to concat() with a NULL.
1070         * emultempl/m68kcoff.em: Include ldexp.h and ldlang.h because they
1071         define types needed by ldfile.h
1073 2005-02-23  Alan Modra  <amodra@bigpond.net.au>
1075         * pe-dll.c: Warning fixes.
1076         * emultempl/sunos.em: Likewise.
1078 2005-02-22  Daniel Jacobowitz  <dan@codesourcery.com>
1080         * ldlang.c (section_already_linked): Don't call
1081         bfd_section_already_linked for dynamic objects.
1083 2005-02-22  Alan Modra  <amodra@bigpond.net.au>
1085         * ldexp.c: Warning fixes.
1086         * ldwrite.c: Likewise.
1087         * emultempl/elf32.em: Likewise.
1089 2005-02-21  H.J. Lu  <hongjiu.lu@intel.com>
1091         * ldlang.c (lang_add_section): Check SEC_TIC54X_BLOCK for TI
1092         tic54x input only.
1093         (lang_size_sections_1): Check SEC_COFF_SHARED_LIBRARY for COFF
1094         and ECOFF output only.
1096 2005-02-21  Alan Modra  <amodra@bigpond.net.au>
1098         * config.in: Regenerate.
1099         * configure: Regenerate.
1101 2005-02-17  Zack Weinberg  <zack@codesourcery.com>
1103         * ldexp.c (assigning_to_dot): New global flag.
1104         (fold_name): If assigning_to_dot is true, object immediately to
1105         an undefined symbol.
1106         (exp_fold_tree): Set and clear assigning_to_dot around the
1107         recursive call to exp_fold_tree to process the right-hand side
1108         of an assignment to the location counter.
1110 2005-02-17  Paul Brook  <paul@codesourcery.com>
1112         * scripttempl/armbpabi.sc: Add dummy name to version block.
1114 2005-02-17  Alan Modra  <amodra@bigpond.net.au>
1116         * ldexp.c (new_abs): Init new.str.
1118 2005-02-15  Mark Mitchell  <mark@codesourcery.com>
1120         * configure.in (AC_CHECK_FUNCS): Add glob.
1121         * configure: Regenerated.
1122         * emultempl/elf32.em (<glob.h>): Do not include if HAVE_GLOB is
1123         not defined.
1124         (gld${EMULATION_NAME}_parse_ld_so_conf_include): Do not use glob
1125         if HAVE_GLOB is not defined.
1127 2005-02-16  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1129         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Define
1130         lib_path if NATIVE is yes.
1132 2005-02-16  Alan Modra  <amodra@bigpond.net.au>
1134         * emultempl/ppc64elf.em (ppc_create_output_section_statements): Make
1135         an error creating fake bfd fatal.
1136         (ppc_before_allocation): Continue on after errors.
1137         (gld${EMULATION_NAME}_finish): Likewise.
1139 2005-02-15  Nick Clifton  <nickc@redhat.com>
1141         * ldlex.l (YY_NO_UNPUT): Define so that the yy_unput function is
1142         not declared.  It is not used and its presence causes a compile
1143         time warning.
1145 2005-02-11  Zack Weinberg  <zack@codesourcery.com>
1147         * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed):
1148         If st.st_ino is zero, do not treat the library as a duplicate.
1150 2005-02-10  Jakub Jelinek  <jakub@redhat.com>
1152         * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
1153         Set BFD_LINKER_CREATED on the stubs bfd.
1154         * emultempl/ppc64elf.em (ppc_create_output_section_statements):
1155         Likewise.
1157 2005-02-08  Mark Mitchell  <mark@codesourcery.com>
1159         * scripttempl/armbpabi.sc (VERSION): Make special section symbols
1160         local.
1161         (Image$$ER_RO$$Base): Define whenever RELOCATING.
1162         (Image$$ER_RO$$Limit): Likewise.
1163         (SHT$$INIT_ARRAY$$Base): Likewise.
1164         (SHT$$INIT_ARRAY$$Limit): Likeise.
1166 2005-02-10  Ben Elliston  <bje@au.ibm.com>
1168         * emultempl/beos.em: Remove #if 0 and #if 1 blocks.
1170 2005-02-08  Richard Sandiford  <rsandifo@redhat.com>
1172         * configure.tgt (mips64*el-*-linux-gnu*): Define targ_extra_libpath
1173         to include o32 and n64 emulations.
1174         (mips64*-*-linux-gnu*): Likewise.
1176 2005-02-08  Hans-Peter Nilsson  <hp@axis.com>
1178         * ldmain.c (warning_callback, warning_find_reloc): Prepend
1179         "warning: " to warning messages.
1181 2005-02-04  Alan Modra  <amodra@bigpond.net.au>
1183         * emultempl/elf32.em (gld${EMULATION_NAME}_find_exp_assignment): Don't
1184         look up symbol for etree_provide here.
1186 2005-02-02  Daniel Jacobowitz  <dan@codesourcery.com>
1188         * emulparams/elf32bmip.sh (TEXT_DYNAMIC): Always set.
1190 2005-02-01  Edward Welbourne  <eddy@opera.com>
1191             Nick Clifton  <nickc@redhat.com>
1193         * ld.texinfo (Source Code Reference): New node describing how to
1194         access linker script defined variables from source code.
1196 2005-02-01  Alan Modra  <amodra@bigpond.net.au>
1198         * ld.texinfo: Clarify --as-needed operation.
1200 2005-01-31  Andrew Cagney  <cagney@gnu.org>
1202         * configure: Regenerate to track ../gettext.m4.
1204 2005-01-31  Nick Clifton  <nickc@redhat.com>
1206         * ldver.c (ldversion): Bump reported copyright date to 2005.
1208 2005-01-31  Nick Clifton  <nickc@redhat.com>
1210         * configure.tgt: Remove obsolete targets m68k-lynxos and
1211         sparc-lynxos.
1213 2005-01-28  Julian Brown  <julian@codesourcery.com>
1215         * emultempl/armelf.em (fix_v4bx): New variable.
1216         (arm_elf_create_output_section_statements): Communicate fix_v4bx flag
1217         value to bfd.
1218         (PARSE_AND_LIST_PROLOGUE): Add option token OPTION_FIX_V4BX.
1219         (PARSE_AND_LIST_LONGOPTS): Add option --fix-v4bx.
1220         (PARSE_AND_LIST_OPTIONS): Add option --fix-v4bx.
1221         (PARSE_AND_LIST_ARGS_CASES): Add option OPTION_FIX_V4BX.
1222         * NEWS: Mention --fix-v4bx.
1223         * ld.texinfo: Document --fix-v4bx.
1225 2005-01-25  Mark Mitchell  <mark@codesourcery.com>
1227         * emulparams/armsymbian.sh (OTHER_READONLY_SECTIONS): Define, so
1228         as to include .ARM.exidx$${Base,Limit}.
1229         * ld/scripttempl/armbpabi.sc: Move .plt to end of text segment.
1230         Define IMAGE$$ER_RO$${Base,Limit} and SHT$$INIT_ARRAY$${Base,Limit}.
1231         Put .init_array, .fini_array, etc. into the read-only data
1232         segment.
1234 2005-01-25  Alan Modra  <amodra@bigpond.net.au>
1236         * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Formatting.
1237         (gld${EMULATION_NAME}_after_open): Ignore needed libs if they were
1238         only needed by an as-needed lib that didn't get linked.
1240 2005-01-23  Alan Modra  <amodra@bigpond.net.au>
1242         * ld.texinfo (Output Section Keywords <CONSTRUCTORS>): Correct
1243         __DTOR_LIST__ description.
1245 2005-01-23  Alan Modra  <amodra@bigpond.net.au>
1247         * ld.texinfo (Location Counter <dot outside sections>): Document
1248         effects of orphan section placement, and ". = ." workaround.
1249         * Makefile.in: Regenerate.
1251 2005-01-22  Richard Sandiford  <rsandifo@redhat.com>
1253         * emulparams/elf32bmip.sh (OTHER_GOT_SECTIONS): Add ". = .;".
1254         * emulparams/elf32bmipn32-defs.sh (OTHER_GOT_SECTIONS): Likewise.
1256 2005-01-21  Jakub Jelinek  <jakub@redhat.com>
1258         * ldgram.y (AS_NEEDED): New token.
1259         (input_list): Handle AS_NEEDED ( input_list ).
1260         * ldlex.l (AS_NEEDED): Add.
1261         * ld.texinfo: Document AS_NEEDED ().
1262         * NEWS: Mention AS_NEEDED ().
1264 2005-01-21  Ben Elliston  <bje@au.ibm.com>
1266         * ldlang.c (lang_reasonable_defaults): Remove.
1267         (lang_process): Don't call lang_reasonable_defaults.
1269         * ldexp.c (exp_assop): Remove #if 0'd code.
1270         (exp_print_tree): Likewise.
1271         * ldlang.c (lang_memory_region_lookup): Likewise.
1272         (open_output): Likewise.
1273         (lang_do_assignments_1): Likewise.
1274         (lang_place_orphans): Likewise.
1275         (lang_enter_output_section_statement): Likewise.
1276         (lang_reasonable_defaults): Likewise.
1277         * ldlang.h (struct lang_input_statement_struct): Likewise.
1278         * mri.c (mri_draw_tree): Likewise.
1279         (mri_load): Likewise.
1280         * pe-dll.c (generate_reloc): Likewise.
1281         (make_import_fixup_entry): Likewise.
1282         (pe_as16): Likewise.
1283         * emultempl/beos.em (set_pe_subsystem): Likewise.
1284         * emultempl/hppaelf.em (hppaelf_after_parse): Likewise.
1285         * emultempl/pe.em: Likewise.
1286         * emultempl/xtensaelf.em (xtensa_colocate_literals): Likewise.
1288 2005-01-20  Daniel Jacobowitz  <dan@codesourcery.com>
1290         * Makefile.am (ALL_EMULATIONS): Add earmelfb_linux_eabi.o.
1291         (earmelfb_linux_eabi.c): New target.
1292         * Makefile.in: Regenerated.
1293         * configure.tgt (arm*b-*-linux-gnueabi): New target.
1294         * emulparams/armelfb_linux_eabi.sh: New file.
1296 2005-01-20  Nick Hudson  <skrll@netbsd.org>
1298         PR ld/676
1299         * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
1300         Handle bfd_elf32_hppa_nbsd_vec.
1302 2005-01-19  Richard Sandiford  <rsandifo@redhat.com>
1304         * ldmain.h (ld_sysroot): Change type to a constant string.
1305         * ldmain.c (ld_sysroot): Likewise.
1306         (get_relative_sysroot, get_sysroot): New functions, adding command-line
1307         support for changing the sysroot.
1308         (main): Call the new functions.
1309         * lexsup.c (OPTION_SYSROOT): New.
1310         (ld_options): Add --sysroot.
1311         (parse_args): Add a dummy handler for it.
1312         * ld.texinfo (--sysroot): Document.
1313         * NEWS: Mention the new --sysroot option.
1315 2005-01-18  Alan Modra  <amodra@bigpond.net.au>
1317         * ldlang.c (section_already_linked): Adjust bfd_link_just_syms call.
1318         (lang_place_orphans): Don't abort on just_syms_flag, instead call
1319         bfd_link_just_syms.
1321 2005-01-16  Danny Smith  <dannysmith@users.sourceforge.net>
1323         * defilep.y (def_name, def_library): Combine into...
1324         (def_image_name): New function.  Strip name to basename,
1325         with warning.
1327 2005-01-12  Mark Kettenis  <kettenis@gnu.org>
1329         * configure.in: Be sure to invoke config.sub using the shell.
1330         * configure: Regenerate.
1332 2005-01-11  Alan Modra  <amodra@bigpond.net.au>
1334         * configure.host: Correct sed patterns for last change.
1336 2005-01-10  Nick Clifton  <nickc@redhat.com>
1338         PR binutils/609
1339         * ldmisc.c (vfinfo): Add an extra argument: is_warning.  Use this
1340         to determine whether config.make_executable should be set to FALSE in
1341         conjunction with config.fatal_warnings.
1342         (info_msg, minfo, lfinof): Pass FALSE as the extra argument.
1343         (einfo): Pass TRUE as the extra argument.
1345 2005-01-10  Greg Schaffer  <gschafer@zip.com.au>
1347         * configure.host (linux targets): Use "${CC} -dumpspecs" instead
1348         of "${CC} --print-file-name=specs" to appease GCC versions >= 4.0.
1349         (ia64-*-aix): Delete - this target is obsolete, and would be
1350         broken by this patch.
1352 2005-01-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
1354         * configure.host (sparc*-*-solaris2*): Rename into sparc-*-solaris2*.
1355         (sparc64-sun-solaris2*): New host.
1357 2005-01-06  Paul Brook  <paul@codesourcery.com>
1359         * Makefie.am: Add earmelf_vxworks.
1360         * Makefile.in: Regenerate.
1361         * configure.tgt: Make arm-*-vxworks a separate case.
1362         * emulparams/armelf_vxworks.sh: New function.
1364 2005-01-06  Alan Modra  <amodra@bigpond.net.au>
1366         * emultempl/ppc64elf.em (no_multi_toc): New var.
1367         (gld${EMULATION_NAME}_finish): Pass to ppc64_elf_setup_section_lists.
1368         (OPTION_NO_MULTI_TOC): Define.
1369         (PARSE_AND_LIST_LONGOPTS): Add --no-multi-toc support.
1370         (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Likewise.
1372 2005-01-05  Nick Clifton  <nickc@redhat.com>
1374         PR binutils/614
1375         * ldmisc.c (vfinfo): Alter output to conform to the GNU Coding
1376         Standard's specification for parsable error messages.
1378 2005-01-04  Paul Brook  <paul@codesourcery.com>
1380         * Makefile.am: Correct dependency for earmsymbian.c.
1381         * Makefile.in: Regenerate.
1383 2004-12-28  Danny Smith  <dannysmith@users.sourceforge.net>
1385         * emultempl/pe.em (set_pe_subsystem): Change second arg to
1386         lang_add_entry to FALSE.
1388 2004-12-23  Nick Clifton  <nickc@redhat.com>
1390         PR 600
1391         * emulparams/shelf.sh (.stack): Increase stack start address to
1392         0x300000.
1394 2004-12-20  Nick Clifton  <nickc@redhat.com>
1396         * ldmain.c (main): Issue an error message if -static and -shared
1397         are used together.
1399 2004-12-17  Jakub Jelinek  <jakub@redhat.com>
1401         * ldexp.h (exp_data_seg): Add min_base and maxpagesize fields.
1402         * ldexp.c (fold_binary) <case DATA_SEGMENT_ALIGN>: Initialize them.
1403         * ldlang.c (lang_size_sections): Use them to avoid wasting virtual
1404         address space at DATA_SEGMENT_ALIGN.  Fix computation of expected
1405         PT_GNU_RELRO segment end.
1407 2004-12-14  P.J. Darcy  <darcypj@us.ibm.com>
1409         * configure.tgt: Add s390x-ibm-tpf support.
1411 2004-12-16  Martin Kögler  <mkoegler@auto.tuwien.ac.at>
1413         * ldmisc.c (vfinfo): Handle the case where %B is passed a NULL
1414         BFD.
1416 2004-12-07  Ben Elliston  <bje@gnu.org>
1418         * ldemul.h: Forward declare struct option.
1420 2004-12-01  Danny Smith  <dannysmith@users.sourceforge.net>
1422         * scripttempl/pe.sc (.data): Add .jcr subsection.
1424 2004-11-30  Paul Brook  <paul@codesourcery.com>
1426         * emultempl/armelf.em: Ignore -p and -no-pipeline-knowledge.
1428 2004-11-30  Tero Niemela  <tero_niemela@yahoo.com>
1430         * Makefile.am: Change LOCALEDIR to $(datadir)/share.
1431         * Makefile.in: Regenerate.
1433 2004-11-26  Melissa Mears  <asterisk@graces.dricas.com>
1435         * emultempl/pe.em: Add --subsystem:xbox as well as
1436         --subsystem:%d.
1437         * ld.texinfo: (ld_options): Document acceptance of subsystem xbox
1438         and numeric subsystems.
1440 2004-11-24  Alan Modra  <amodra@bigpond.net.au>
1442         * ldexp.c (fold_name): Correct PR 338 fix.
1444 2004-11-19  Mark Mitchell  <mark@codesourcery.com>
1446         * Makefile.am (ALL_EMULATIONS): Add earmelf_linux_eabi.o.
1447         (earmelf_linux_eabi.c): New target.
1448         * configure.tgt (arm*-*-linux-gnueabi): Handle it.
1449         * emulparams/armelf_linux_eabi.sh: New file.
1450         * Makefile.in: Regenerated.
1452 2004-11-19  Nick Clifton  <nickc@redhat.com>
1454         PR 518
1455         * ld.texinfo (MEMORY): Update the descriptions of the ORIGIN and
1456         LENGTH fields in the MEMORY command, to explicitly state that
1457         symbols cannot be used in their expressions.
1459 2004-11-19  Jon Beniston <jon@beniston.com>
1461         * ld/ldlex.l: Allow ORIGIN and LENGTH in EXPRESSION.
1462         * ld/ldgram.y: Add ORIGIN and LENGTH expressions.
1463         * ld/ldexp.c (fold_name): Implement LENGTH() and ORIGIN() functions
1464         which return the length and origin of a memory.
1465         * ld/ld.texinfo: Document LENGTH() and ORIGIN() functions.
1466         * NEWS: Mention support for ORIGIN and LENGTH operators.
1468 2004-11-17  Daniel Jacobowitz  <dan@codesourcery.com>
1470         * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Don't use
1471         a dynamic object for stubs.
1473 2004-11-04  Paul Brook  <paul@codesourcery.com>
1475         * ld.texinfo: Document --default-imported-symver.
1476         * ldmain.c (main): Set link_info.default_imported_symver.
1477         * lexsup.c (option_values): Add OPTION_DEFAULT_IMPORTED_SYMVER.
1478         (ld_options): Add --default-imported-symver.
1479         (parse_args): Handle OPTION_DEFAULT_IMPORTED_SYMVER.
1481 2004-11-08  Inderpreet Singh   <inderpreetb@nioda.hcltech.com>
1482             Vineet Sharma      <vineets@noida.hcltech.com>
1484         * Makefile.am: Add entries for new maxq-coff target.
1485         * Makefile.in: Regenerate.
1486         * configure.tgt: Add support for maxq.
1487         * emulparams/maxqcoff.sh: New File.
1488         * scripttempl/maxqcoff.sc: New linker script for target maxq.
1489         * NEWS: Mention the new target.
1491 2004-11-04  Daniel Jacobowitz  <dan@debian.org>
1493         * Makefile.am (ALL_EMULATIONS): Remove earmelf_oabi.o.
1494         (earmelf_oabi.c): Remove rule.
1495         * configure.tgt: Remove arm-*-oabi and thumb-*-oabi.
1496         * emulparams/armelf_oabi.sh, emultempl/armelf_oabi.em: Delete files.
1497         * Makefile.in: Regenerated.
1499 2004-11-04  Hans-Peter Nilsson  <hp@axis.com>
1501         * configure.tgt (crisv32-*-*): Handle like cris-*-* for non-aout.
1502         * emulparams/criself.sh (INIT_START): Remove emitted "push srp".
1503         (FINI_START): Ditto.
1504         (INIT_END): Remove emitted "jump [sp+]".
1505         (FINI_END): Ditto.
1507 2004-11-04  Alan Modra  <amodra@bigpond.net.au>
1509         * emultempl/ppc64elf.em (no_tls_opt): Rename from notlsopt.
1510         (no_opd_opt, no_toc_opt): New static vars.
1511         (ppc_before_allocation): Don't edit opt if no_opd_opt.  Call
1512         ppc64_elf_edit_toc.
1513         (OPTION_NO_OPD_OPT, OPTION_NO_TOC_OPT): Define.
1514         (PARSE_AND_LIST_LONGOPTS): Add no-opd-optimize and no-toc-optimize.
1515         (PARSE_AND_LIST_OPTIONS): Describe new options.
1516         (PARSE_AND_LIST_ARGS_CASES): Handle them.
1518 2004-10-27  Nick Clifton  <nickc@redhat.com>
1520         * emultempl/alphaelf.em (alpha_after_parse): Add extra, NULL,
1521         parameter to invocation of lang_section_start.
1522         * emultempl/aix.em (_handle_option): Likewise.
1524         * Makefile.am (eelf64alpha.c, eelf64alpha_fbsd.c,
1525         eelf64alpha_nbsd.c): Add dependency upon emultempl/alphaelf.em.
1526         * Makefile.in: Regenerate.
1528 2004-10-26  Mark Mitchell  <mark@codesourcery.com>
1530         * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Do not emit
1531         __exidx_{start,end} when not relocating.
1533 2004-10-25  Mark Mitchell  <mark@codesourcery.com>
1535         * Makefile.in (earmsymbian.c): Depend on armbpabi.sc, not elf.sc.
1536         * ldexp.h (segment_type): New type.
1537         (segments): New variable.
1538         * ldexp.c (segments): New variable.
1539         (exp_print_token): Handle SEGMENT_START.
1540         (fold_binary): Likewise.
1541         * ldgram.y (SEGMENT_START): Declare it as a token.
1542         (exp): Handle SEGMENT_START.
1543         * ldlang.h (lang_address_statement_type): Add segment field.
1544         (lang_section_start): Change prototype.
1545         * ldlang.c (map_input_to_output_sections): Do not process section
1546         assignments if a corresponding SEGMENT_START has already been
1547         seen.
1548         (lang_section_start): Add segment parameter.
1549         * ldlex.l (SEGMENT_START): Add it.
1550         * lexsup.c (seg_segment_start): New function.
1551         (parse_args): Use it for -Tbss, -Tdata, and -Ttext.
1552         * ld.texinfo (SEGMENT_START): Document it.
1553         * emulparams/armsymbian.sh (EMBEDDED): Set it.
1554         * scripttempl/armbpabi.sc: Use SEGMENT_START to control segment
1555         base addresses.  Do not map relocations.
1556         * NEWS: Mention SEGMENT_START.
1558 2004-10-26  Paul Brook  <paul@codesourcery.com>
1560         * ld.texinfo: Document --default-symver.
1561         * ldmain.c (main): Set link_info.create_default_symver.
1562         * lexsup.c (enum option_values): Add OPTION_DEFAULT_SYMVER.
1563         (ld_options): Add default-symver.
1564         (parse_args): Handle OPTION_DEFAULT_SYMVER.
1566 2004-10-24 Danny Smith  <dannysmith@users.sourceforge.net>
1568         * pe-dll.c (process_def_file): Don't export all symbols by default if
1569         building a position-independent executable.
1571 2004-10-21  H.J. Lu  <hongjiu.lu@intel.com>
1573         PR 463
1574         * ldmain.c (reloc_overflow): Accept a pointer to struct
1575         bfd_link_hash_entry. Report symbol location for relocation
1576         overflow.
1578 2004-10-21  H.J. Lu  <hongjiu.lu@intel.com>
1580         * genscripts.sh (libpath.exp): Really generate for first
1581         emulation only.
1583 2004-10-19  Danny Smith  <dannysmith@users.sourceforge.net>
1585         * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Simplify
1586         comparison and replacement of filenames.
1588 2004-10-19  H.J. Lu  <hongjiu.lu@intel.com>
1590         PR 459
1591         * ldlang.c (load_symbols): Use the same -Bdynamic/-Bstatic
1592         option on linker script as the one for linker script.
1594 2004-10-16  Daniel Jacobowitz  <dan@debian.org>
1596         * ldlang.c (struct excluded_lib, excluded_libs, add_excluded_libs)
1597         (check_excluded_libs): New.
1598         (load_symbols): Call check_excluded_libs.
1599         * ldlang.h (add_excluded_libs): New prototype.
1600         * emultempl/elf32.em (OPTION_EXCLUDED_LIBS): Define.
1601         (gld${EMULATION_NAME}_add_options): Add --exclude-libs.
1602         (gld${EMULATION_NAME}_handle_option): Handle --exclude-libs.
1603         * ld.texinfo (Command Line Variables): Document --exclude-libs.
1604         (Options Specific to i386 PE Targets): Remove --exclude-libs.
1606 2004-10-15  Alan Modra  <amodra@bigpond.net.au>
1608         * ldexp.c (exp_fold_tree): Don't immediately exit ld on a
1609         failing link script assert.
1611         * ldctor.c (ldctor_add_set_entry): Fix comment typo.
1613 2004-10-14  H.J. Lu  <hongjiu.lu@intel.com>
1615         PR 445
1616         * emulparams/elf64_ia64.sh (SMALL_DATA_CTOR): Set.
1617         (SMALL_DATA_DTOR): Set.
1618         * emulparams/elf64_ia64_fbsd.sh (SMALL_DATA_CTOR): Unset.
1619         (SMALL_DATA_DTOR): Unset.
1620         * scripttempl/elf.sc: If SMALL_DATA_CTOR is set, move .ctors
1621         after .data. If SMALL_DATA_DTOR is set, move .dtors after
1622         .data.
1624 2004-10-14  Alan Modra  <amodra@bigpond.net.au>
1626         PR 63
1627         * ldlang.h (lang_output_section_statement_type): Make "next" a
1628         struct lang_output_section_statement_struct *.
1629         (struct orphan_save): Move from elf32.em.  Add "name" and "flags".
1630         (lang_output_section_find_by_flags, lang_insert_orphan): Declare.
1631         * ldlang.c (lang_output_section_find_1): Adjust for changed
1632         output_section_statement "next".
1633         (strip_excluded_output_sections): Likewise.
1634         (lang_record_phdrs): Likewise.
1635         (lang_output_section_find_by_flags): New function.
1636         (output_prev_sec_find): Move from pe.em.  Adjust iterator.
1637         (lang_insert_orphan): New function.  Tail end of elf32.em's
1638         place_orphan merged with that from pe.em.  Allow bfd_section to
1639         be placed first.  New heuristic for placing new output section
1640         statement in existing script, and accompanying split of __start
1641         symbol alignment into a separate assignment to dot.
1642         (lang_add_section): Consistently use output->bfd_section rather than
1643         an alias, section->output_section.
1644         (map_input_to_output_sections): Rename overly long arg.  Move
1645         initialization of data_statement output section to here..
1646         (lang_check_section_addresses): ..from here.
1647         (print_assignment): Correct printing of etree_assert.
1648         (print_all_symbols): Don't bomb if userdata is NULL.
1649         (IGNORE_SECTION): Rearrange.
1650         * emultempl/elf32.em (output_rel_find): Adjust interator.
1651         (output_prev_sec_find): Delete.
1652         (struct orphan_save): Delete.
1653         (gld${EMULATION_NAME}_place_orphan): Cater for zero bfd_section
1654         flags without creating a duplicate output section statement.
1655         Revise code holding history of various orphan section placements.
1656         Allow orphan sections to place before script specified output
1657         sections.  Call lang_output_section_find_by_flags when placement
1658         by name fails.  Use lang_insert_orphan.
1659         * emultempl/mmo.em (output_prev_sec_find): Delete.
1660         (struct orphan_save): Delete.
1661         (mmo_place_orphan): Revise code holding history of orphan placement.
1662         Allow orphans to place before existing output sections.  Use
1663         lang_insert_orphan.
1664         * emultempl/pe.em (output_prev_sec_find): Delete.
1665         (struct orphan_save): Delete.
1666         (gld_${EMULATION_NAME}_place_orphan): Revise to suit use of
1667         lang_insert_orphan.
1669 2004-10-13  Mark Mitchell  <mark@codesourcery.com>
1671         * scripttempl/armbpabi.sc: Do not put .gnu.version.* into a
1672         loadable segment.
1674 2004-10-13  Alan Modra  <amodra@bigpond.net.au>
1676         PR 44
1677         * ldcref.c (check_section_sym_xref): Delete.
1678         (check_local_sym_xref): New function.
1679         (check_nocrossrefs): Adjust call.
1680         * emultempl/pe.em (struct orphan_save): Add os_tail.
1681         (place_orphan): Backport assorted fixes from elf32.em.
1683 2004-10-12  Bob Wilson  <bob.wilson@acm.org>
1685         * emultempl/xtensaelf.em: Use ISO C90 formatting.
1687 2004-10-11  Jakub Jelinek  <jakub@redhat.com>
1689         * emultempl/elf32.em (gld${EMULATION_NAME}_parse_ld_so_conf): Avoid
1690         getline for portability.
1692         * emultempl/elf32.em (gld${EMULATION_NAME}_ld_so_conf): New structure.
1693         (gld${EMULATION_NAME}_parse_ld_so_conf,
1694         gld${EMULATION_NAME}_parse_ld_so_conf_include): New functions.
1695         (gld${EMULATION_NAME}_check_ld_so_conf): Use them.
1697 2004-10-11  Alan Modra  <amodra@bigpond.net.au>
1699         PR 423
1700         * ldfile.c (ldfile_try_open_bfd): Ensure dynamic objects are
1701         rejected when linking statically.
1703 2004-10-08  Daniel Jacobowitz  <dan@debian.org>
1705         * configure.tgt: Include elf_x86_64 for i[3-7]86-*-solaris2*.
1707 2004-10-07  Bob Wilson  <bob.wilson@acm.org>
1709         * ld.texinfo (Xtensa): Describe new linker relaxation to optimize
1710         assembler-generated longcall sequences.  Describe new --size-opt
1711         option.
1712         * emulparams/elf32xtensa.sh (OTHER_SECTIONS): Add .xt.prop section.
1713         * emultempl/xtensaelf.em (remove_section,
1714         replace_insn_sec_with_prop_sec, replace_instruction_table_sections,
1715         elf_xtensa_after_open): New.
1716         (OPTION_OPT_SIZEOPT, OPTION_LITERAL_MOVEMENT,
1717         OPTION_NO_LITERAL_MOVEMENT): Define.
1718         (elf32xtensa_size_opt, elf32xtensa_no_literal_movement): New globals.
1719         (PARSE_AND_LIST_LONGOPTS): Add size-opt and [no-]literal-movement.
1720         (PARSE_AND_LIST_OPTIONS): Add --size-opt.
1721         (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_OPT_SIZEOPT,
1722         OPTION_LITERAL_MOVEMENT, and OPTION_NO_LITERAL_MOVEMENT.
1723         (LDEMUL_AFTER_OPEN): Set to elf_xtensa_after_open.
1724         * scripttempl/elfxtensa.sc: Update with changes from elf.sc.
1725         * Makefile.am (eelf32xtensa.c): Update dependencies.
1726         * Makefile.in: Regenerate.
1728 2004-10-07  Jeff Baker  <jbaker@qnx.com>
1730         * lexsup.c: Handle --warn-shared-textrel option.
1731         (ld_options): Restore alpha sorting of options.
1732         * ldmain.c (main): Initialise warn_shared_info field to FALSE.
1733         * ld.texinfo: Add documentation for --warn-shared-textrel.
1734         * NEWS: Added mention of --warn-shared-textrel option.
1736 2004-10-05  Tomer Levi  <Tomer.Levi@nsc.com>
1738         * emultempl/crxelf.em (disable_relaxation): Add.
1739         (crxelf_before_allocation): Enable --relax option by default.
1740         (PARSE_AND_LIST_PROLOGUE): Add OPTION_NO_RELAX.
1741         (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --no-relax.
1742         (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_NO_RELAX.
1744 2004-10-04  H.J. Lu  <hongjiu.lu@intel.com>
1746         * NEWS: Mention SORT_BY_NAME, SORT_BY_ALIGNMENT and
1747         --sort-section name|alignment.
1749         * ld.texinfo: Document SORT_BY_NAME, SORT_BY_ALIGNMENT and
1750         --sort-section name|alignment.
1752         * ld.h (sort_type): New enum.
1753         (wildcard_spec): Change the type of `sorted' to sort_type.
1755         * ldgram.y (SORT): Removed.
1756         (SORT_BY_NAME): Added.
1757         (SORT_BY_ALIGNMENT): Added.
1758         (wildcard_spec): Updated `sorted'. Handle SORT_BY_NAME and
1759         SORT_BY_ALIGNMENT.
1760         (input_section_spec_no_keep): Updated `sorted'.
1761         (statement): Replace SORT with SORT_BY_NAME.
1763         * ldlang.c (compare_section): New function to compare 2
1764         sections with different sorting schemes.
1765         (wild_sort): Updated. Use compare_section.
1766         (update_wild_statements): New function.
1767         (lang_process): Call update_wild_statements before
1768         map_input_to_output_sections.
1770         * ldlex.l (SORT_BY_NAME): New.
1771         (SORT_BY_ALIGNMENT): New.
1772         (SORT): Return SORT_BY_NAME.
1774         * ldmain.c (sort_section): New. Defined.
1775         (main): Initialize it to none.
1777         * lexsup.c (option_values): Add OPTION_SORT_SECTION.
1778         (ld_options): Add an entry for OPTION_SORT_SECTION.
1779         (parse_args): Handle OPTION_SORT_SECTION.
1781         * mri.c (mri_draw_tree): Updated `sorted'.
1783 2004-10-04  Jakub Jelinek  <jakub@redhat.com>
1785         * ldgram.y (DATA_SEGMENT_RELRO_END): Add one argument.
1786         * scripttempl/elf.sc (DATA_SEGMENT_RELRO_END): Add 0 as first
1787         argument.
1788         (DATA_SEGMENT_RELRO_GOTPLT_END): Pass $SEPARATE_GOTPLT as first
1789         and . as second argument.
1790         (GOTPLT): Move $DATA_SEGMENT_RELRO_GOTPLT_END before the section.
1791         * ldexp.c (fold_unary): Remove DATA_SEGMENT_RELRO_END handling here.
1792         (fold_binary): Add it here.  Insert padding to make relro_end
1793         COMMONPAGESIZE bytes aligned.  For DATA_SEGMENT_ALIGN in
1794         exp_dataseg_relro_adjust phase just use previously computed
1795         exp_data_seg.base.
1796         * ldlang.c (lang_size_sections): Set exp_data_seg.base for
1797         relro_adjust here.  Call lang_size_sections_1 once more if there
1798         was too big padding at DATA_SEGMENT_RELRO_END.
1799         * ld.texinfo (DATA_SEGMENT_RELRO_END): Add documentation.
1801 2004-10-01  Paul Brook  <paul@codesourcery.com>
1803         * emulparams/armelf.sh: Add unwinding table sections.
1805 2004-09-30  Filip Navara  <navaraf@reactos.com>
1807         * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Generate
1808         correct base address for position independant executables.
1809         * pe-dll.c (pe_dll_fill_sections): Don't mark position independant
1810         executables as DLLs.
1812 2004-09-30  Paul Brook  <paul@codesourcery.com>
1814         * ld.texinfo: Document --target2=abs.
1815         * emulparms/armsymbian.sh (TARGET2_TYPE): Set.
1817 2004-09-29  Nick Clifton  <nickc@redhat.com>
1819         * scripttempl/xstormy16.sc: Only perform the assignments to the
1820         ROM region when not performing a relocatable link.  The ROM region
1821         does not start at address 0, but the sections will.
1822         * Makefile.am: Fix linker script dependency for the generation of
1823         eelf32xstormy16.c.
1824         * Makefile.in: Regenerate.
1826 2004-09-18  Filip Navara  <navaraf@reactos.com>
1828         * emulparams/arm_epoc_pe.sh, emulparams/armpe.sh, emulparams/i386pe.sh,
1829         emulparams/i386pe_posix.sh, emulparams/mcorepe.sh,
1830         emulparams/mipspe.sh, emulparams/ppcpe.sh, scripttempl/pe.sc: Define
1831         TARGET_PAGE_SIZE.
1832         * scripttempl/pe.sc: Make the virtual address and file offset synced if
1833         the alignment is lower than the target page size.
1835 2004-09-27  Filip Navara  <navaraf@reactos.com>
1837         * emultempl/pe.em (gld_${EMULATION_NAME}_unrecognized_file): Allow
1838         def_file_parse to handle pe_def_file if NULL and prevent crash with
1839         invalid .def files.
1841 2004-09-27  Alan Modra  <amodra@bigpond.net.au>
1843         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Enable
1844         --emit-stub-syms automatically when --emit-relocs.
1846 2004-09-24  Paul Brook  <paul@codeosurcery.com>
1848         * scripttempl/elf.sc: Keep .preinit_array, .init_array and
1849         .fini_array sections.
1851 2004-09-19  Andreas Schwab  <schwab@suse.de>
1853         * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Adjust data segment
1854         base so that relro end is suitably aligned.
1856 2004-09-17  Paul Brook  <paul@codesourcery.com>
1858         * ld.texinfo: Rename arm-specific section.  Document --target*
1859         * emulparams/armelf_fbsd.sh: Set TARGET2_TYPE.
1860         * emulparams/armelf_linux.sh: Ditto.
1861         * emulparams/armelf_nbsd.sh: Ditto.
1862         * emultempl/armelf.em: Set default for TARGET2_TYPE.
1863         (target2_type): New variable.
1864         (arm_elf_before_allocation): Don't pass target1_type.
1865         (arm_elf_create_output_section_statements): New function.
1866         (PARSE_AND_LIST_PROLOGUE): Add OPTION_TARGET2.
1867         (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --target=.
1868         (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_TARGET2.
1869         (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Set.
1870         * emultempl/armelf_oabi.em (_before_allocation): Remove extra
1871         argument to bfd_elf32_arm_process_before_allocation.
1873 2004-09-17  Alan Modra  <amodra@bigpond.net.au>
1875         * ldexp.c (fold_name): Update u.undef.next refs.
1876         * emultempl/pe.em: Likewise.
1877         * emultempl/sunos.em: Likewise.
1879 2004-09-17  Alan Modra  <amodra@bigpond.net.au>
1881         * Makefile.am: Run "make dep-am".
1882         * Makefile.in: Regenerate.
1883         * config.in: Regenerate.
1884         * configure: Regenerate.
1885         * aclocal.m4: Regenerate.
1886         * po/ld.pot: Regenerate.
1888 2004-09-16  Tomer Levi  <Tomer.Levi@nsc.com>
1890         * scripttempl/elf32crx.sc (.init): Add KEEP for section's *personality*.
1891         (.fini): Likewise.
1892         (.jcr): Likewise.
1894 2004-09-16  Alan Modra  <amodra@bigpond.net.au>
1896         * emultempl/armelf_oabi.em (before_allocation): Add extra zero param
1897         to bfd_elf32_arm_process_before_allocation call.
1899 2004-09-13  Paul Brook  <paul@codesourcery.com>
1901         * emulparams/armsymbian.sh: Set TARGET1_IS_REL.
1902         * emultempl/armelf.em: Use TARGET1_IS_REL.  Add --target1-{rel,abs}.
1904 2004-09-07  H.J. Lu  <hongjiu.lu@intel.com>
1906         * configure: Regenerated with autconfig 2.13.
1908 2004-09-07  Andreas Schwab  <schwab@suse.de>
1910         * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Apply data segment
1911         alignment before adjusting DATA_SEGMENT_RELRO_END.
1913 2004-09-06  Mark Mitchell  <mark@codesourcery.com>
1915         * emulparams/armsymbian.sh: Use armbpabi script.
1916         * scripttempl/armbpabi.sc: New script.
1918 2004-09-02  Mark Mitchell  <mark@codesourcery.com>
1920         * Makefile.am (ALL_EMULATIONS): Add earmsymbian.o.
1921         (earmsymbian.c): New target.
1922         * configure.tgt: Use armsymbian emulation for arm*-*-symbianelf*.
1923         * Makefile.in: Regenerated.
1924         * aclocal.m4: Likewise.
1925         * configure: Likewise.
1926         * emulparams/armsymbian.sh: New file.
1928 2004-09-03  Tomer Levi  <Tomer.Levi@nsc.com>
1930         * scripttempl/elf32crx.sc: Edit file with comments.
1931         (.init): Add new section.
1932         (.fini): Likewise.
1933         (.ctor): Control the linkage order.
1934         (.dtor): Likewise.
1936 2004-08-27  Nick Clifton  <nickc@redhat.com>
1938         * emultempl/pe.em (after_open): Do not assume that either bfd is
1939         an archive.
1941 2004-08-26  Alan Modra  <amodra@bigpond.net.au>
1943         * ldlang.c (lang_init): Don't compare with TRUE.
1945 2004-08-25  Dmitry Diky  <diwil@spec.ru>
1947         * emulparams/msp430all.sh: Fix RAM sizes for all targets.
1948         * scripttempl/elf32msp430.sc: Add .profiler section definition.
1950 2004-08-24  H.J. Lu  <hongjiu.lu@intel.com>
1952         * ldlang.c (wildcardp): Defined as a macro with strpbrk.
1954 2004-08-19  Mark Mitchell  <mark@codesourcery.com>
1956         * configure.tgt (arm*-*-symbianelf*): New target.
1957         (arm*-*-eabi*): Likewise.
1959 2004-08-19  Jakub Jelinek  <jakub@redhat.com>
1961         * emultempl/ppc64elf.em (non_overlapping_opd): New variable.
1962         (ppc_before_allocation): Pass it to ppc64_elf_edit_opd).
1963         (OPTION_NON_OVERLAPPING_OPD): Define.
1964         (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Add
1965         --non-overlapping-opd option.
1967 2004-08-18  Alan Modra  <amodra@bigpond.net.au>
1969         PR 338
1970         * ldexp.c (fold_name): Don't call bfd_link_add_undef if the symbol
1971         was already on the undefs list.
1973 2004-08-17  Alan Modra  <amodra@bigpond.net.au>
1975         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern): Dot
1976         prefix the symbol field too.
1978 2004-08-13  Alan Modra  <amodra@bigpond.net.au>
1980         * ldmain.c (link_callbacks): Remove "error_handler".
1981         * ldmisc.c: Include elf-bfd.h.
1982         (vfinfo): Sort comment.  Handle %A.  Use %A instead of
1983         bfd_get_section_indent.
1984         (error_handler): Delete.
1985         * ldmisc.h (error_handler): Delete declaration.
1987 2004-08-10  Alan Modra  <amodra@bigpond.net.au>
1989         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Call
1990         ppc64_elf_restore_symbols.
1992 2004-08-09  Alan Modra  <amodra@bigpond.net.au>
1994         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Error if
1995         .toc is too large on relocatable linking.
1997 2004-08-09  Alan Modra  <amodra@bigpond.net.au>
1999         * emultempl/ppc64elf.em (ppc_after_open): Delete.
2000         (LDEMUL_AFTER_OPEN): Don't define.
2002 2004-08-02  Stephane Carrez  <stcarrez@nerim.fr>
2004         * ld.texinfo (Top): Document specific options of 68HC11 and 68HC12.
2006 2004-08-01  Stephane Carrez  <stcarrez@nerim.fr>
2008         * scripttempl/elfm68hc12.sc: Align text, rodata and data section
2009         on power of 2.
2011 2004-07-27  Jason Thorpe  <thorpej@wasabisystems.com>
2013         * emulparams/hppanbsd.sh (OUTPUT_FORMAT): Set to "elf32-hppa-netbsd".
2015 2004-07-26  Dmitry Diky  <diwil@spec.ru>
2017         * Makefile.am: Add new subtargets: msp430x1610, msp430x1611,
2018         msp430x1612, msp430x415, msp430x417, msp430xG437, msp430xG438,
2019         msp430xG439.
2020         * configure.tgt: Likewise.
2021         * emulparams/msp430all.sh: Likewise.
2022         * Makefile.in: Regenerate.
2024 2004-07-23  Nick Clifton  <nickc@redhat.com>
2026         * emultempl/elf32.em (_place_orphan): Use an already existing
2027         section name if that section does not have any flags set.
2029 2004-07-21  H.J. Lu  <hongjiu.lu@intel.com>
2031         * ldlang.c (already_linked_hash_entry): Removed.
2032         (already_linked): Likewise.
2033         (already_linked_table): Likewise.
2034         (section_already_linked): Call bfd_section_already_linked.
2035         (lang_process): Replace already_linked_table_init with
2036         bfd_section_already_linked_table_init and check return. Replace
2037         already_linked_table_free with bfd_section_already_linked_table_free.
2039 2004-07-21  Nick Clifton  <nickc@redhat.com>
2041         * ldlang.c (init_os): Make sure that the newly allocated userdata
2042         structure is zeroed out.
2044 2004-07-19  H.J. Lu  <hongjiu.lu@intel.com>
2046         * NEWS: Mention the new --add-needed/--no-add-needed and
2047         --as-needed/--no-as-needed options.
2049 2004-07-19  H.J. Lu  <hongjiu.lu@intel.com>
2051         * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): Also
2052         check the add_needed field.
2053         (dt_needed): New struct.
2054         (gld${EMULATION_NAME}_try_needed): Change the first argument
2055         to a pointer to struct dt_needed. Check the DYN_NO_ADD_NEEDED
2056         bit in the file where the DT_NEEDED entry comes from.
2057         (gld${EMULATION_NAME}_search_needed): Change the second
2058         argument to a pointer to struct dt_needed.
2059         (gld${EMULATION_NAME}_check_ld_so_conf): Updated.
2060         (gld${EMULATION_NAME}_after_open): Likewise.
2062         * ld.texinfo: Add --add-needed document.
2063         * ldlang.c (new_afile): Set p->add_needed.
2064         * ldlang.h (lang_input_statement_type): Add add_needed field.
2065         * ldmain.h (add_needed): Declare.
2066         * ldmain.c (add_needed): New global var.
2067         * lexsup.c (option_values): Add OPTION_ADD_NEEDED and
2068         OPTION_NO_ADD_NEEDED.
2069         (ld_options): Likewise.
2070         (parse_args): Handle them.
2072 2004-07-13  Christof Petig  <christof@petig-baender.de>
2074         * emultempl/pe.em (make_import_fixup): Use bfd_get_32 to correct
2075         for endian-ness of extracted addend.
2077 2004-07-13  Danny Smith  <dannysmith@usesr.sourceforge.net>
2079         * pe-dll.c (auto_export):  Filter on just the import prefix,
2080         "_imp_", not "_imp__".
2082 2004-07-09  Nick Clifton  <nickc@redhat.com>
2084         * configure.tgt: Change sh-sybmian-elf to sh-*-symbianelf.
2086 2004-07-06  Tomer Levi  <Tomer.Levi@nsc.com>
2088         * Makefile.am (ALL_EMULATIONS): Add eelf32crx.o.
2089         (eelf32crx.c): New target.
2090         * Makefile.in: Regenerate.
2091         * configure.tgt: Handle crx-*-elf*.
2092         * emulparams/elf32crx.sh: New file.
2093         * emultempl/crxelf.em: New file.
2094         * scripttempl/elf32crx.sc: New file.
2095         * NEWS: Mention new target.
2097 2004-07-06  Nick Clifton  <nickc@redhat.com>
2099         * Makefile.am: Add eshlsymbian.c.
2100         * Makefile.in: Regenerate.
2101         * configure.tgt: Add sh*-symbian-elf target.
2102         * emulparams/shlsymbian.sh: New file.  Configure the
2103         sh-symbian-elf linker scripts.
2104         * scripttemp/elf32sh-symbian.sc: New file.  Linker script
2105         template for the sh-symbian-elf target.
2107 2004-07-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2109         * emulparams/hppa64linux.sh: Define PLT_BEFORE_GOT.
2110         * emulparams/hppalinux.sh: Likewise.
2111         * scripttempl/elf.sc: Place .plt just before .got when .plt is in
2112         data segment and PLT_BEFORE_GOT is defined.
2114 2004-07-03  Aaron W. LaFramboise  <aaron98wiridge9@aaronwl.com>
2116         * ld.texinfo (WIN32): Document PE weak symbols.
2118 2004-07-02  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2120         * emulparams/shlelf32_linux.sh (COMMONPAGESIZE): Set to 4KB.
2122 2004-07-01  H.J. Lu  <hongjiu.lu@intel.com>
2124         * ldmisc.c (vfinfo): Call bfd_get_section_ident to identify
2125         the section.
2127 2004-06-29  Alan Modra  <amodra@bigpond.net.au>
2129         * ldlang.c (lang_reset_memory_regions): Save last relax pass section
2130         size in rawsize.
2132 2004-06-24  Alan Modra  <amodra@bigpond.net.au>
2134         * ldlang.c (print_output_section_statement): Don't print size before
2135         relaxation.
2136         (IGNORE_SECTION): Remove bfd arg.  Update all callers.
2138         * ldexp.c (fold_name): .. See below.
2139         * ldlang.c (section_already_linked, print_output_section_statement,
2140         print_input_section, insert_pad, size_input_section,
2141         lang_check_section_addresses, lang_size_sections_1,
2142         lang_size_sections, lang_do_assignments_1, lang_set_startof,
2143         lang_one_common, lang_reset_memory_regions, lang_process,
2144         lang_abs_symbol_at_end_of, lang_do_version_exports_section): ..
2145         * ldwrite.c (build_link_order, clone_section, ds, split_sections): ..
2146         * pe-dll.c (process_def_file, generate_reloc): ..
2147         * emultempl/elf32.em (gld${EMULATION_NAME}_find_statement_assignment,
2148         gld${EMULATION_NAME}_before_allocation): ..
2149         * emultempl/mmix-elfnmmo.em (mmix_after_allocation): ..
2150         * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_before_allocation,
2151         sh64_elf_${EMULATION_NAME}_after_allocation): ..
2152         * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): ..
2153         * emultempl/xtensaelf.em (ld_assign_relative_paged_dot,
2154         ld_local_file_relocations_fit, ld_xtensa_insert_page_offsets): Use
2155         "size" instead of "_raw_size" and "_cooked_size".  Expand
2156         bfd_section_size macro invocations.
2158 2004-06-22  Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
2160         * ld/scripttemp/pe.sc (.CRT): Define ___crt_xc_start__,
2161         ___crt_xc_end__, ___crt_xi_start__, ___crt_xi_end__, ___crt_xl_start__,
2162         ___crt_xp_start__, ___crt_xp_end__, ___crt_xt_start__ and
2163         ___crt_xt_end__.
2164         (.tls): Define ___tls_start__ and ___tls_end__.
2166 2004-06-21  Alexandre Oliva  <aoliva@redhat.com>
2168         * emulparams/elf32frvfd.sh (GENERATE_PIE_SCRIPT): Set to yes.
2170 2004-06-18  Adam Nemet  <anemet@lnxw.com>
2172         * configure.in: Set EXTRA_SHLIB_EXTENSION to .a for LynxOS.
2173         * configure: Regenerate.
2175 2004-06-15  Jakub Jelinek  <jakub@redhat.com>
2177         * scripttempl/elf.sc: Readd KEEP and .gcc_except_table.* to
2178         .gcc_except_table output sections lost accidentally with
2179         -z relro patch.
2181 2004-06-15  Alan Modra  <amodra@bigpond.net.au>
2183         * ldwrite.c (build_link_order): Use bfd_get_section_size
2184         instead of bfd_get_section_size_before_reloc or _raw_size.
2185         * pe-dll.c (process_def_file): Likewise.
2187 2004-06-14  Alan Modra  <amodra@bigpond.net.au>
2189         From Richard Wirth <r.wirth@wirthware.de>
2190         * ldlang.c (lang_finish): Don't free lang_definedness_table.
2192 2004-05-29  Alan Modra  <amodra@bigpond.net.au>
2194         * ldlang.c (gc_section_callback): Move SEC_EXCLUDE twiddles..
2195         (lang_gc_sections): .. to a LANG_FOR_EACH_INPUT_STATEMENT loop here.
2197 2004-05-28  Alan Modra  <amodra@bigpond.net.au>
2199         * ldlang.c: Formatting.  Wrap long lines, expand bfd_get_section_flags
2200         throughout file.
2201         * lexsup.c: Formatting.  Wrap long lines.
2202         * ldwrite.c: Update copyright date.
2204         * ldlang.c (lang_add_section): Don't twidlle SEC_EXCLUDE here.
2205         (output_section_callback): Nor SEC_KEEP here.
2206         (gc_section_callback): Twiddle SEC_EXCLUDE here.
2207         (lang_gc_wild): Delete.  Fold into..
2208         (lang_gc_sections_1): ..here.  Only call bfd_gc_sections when garbage
2209         collecting.
2210         (lang_process): Always call lang_gc_sections.
2211         (lang_place_orphans): Handle SEC_EXCLUDE sections.
2212         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Remove
2213         SEC_EXCLUDE code.
2215 2004-05-26  H.J. Lu  <hongjiu.lu@intel.com>
2217         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Clear
2218         SEC_EXCLUDE on non-SEC_DEBUGGING sections for relocatable link.
2219         * ldlang.c (lang_add_section): Likewise.
2221 2004-05-26  Alan Modra  <amodra@bigpond.net.au>
2223         * ldlang.c (lang_add_section): Set SEC_EXCLUDE for SEC_GROUP
2224         sections when doing a final link.  Clear SEC_EXCLUDE when doing
2225         a relocable link, except for SEC_DEBUGGING sections.
2226         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Use the
2227         same condition here to drop SEC_EXCLUDE orphan sections.
2229 2004-05-25  Alan Modra  <amodra@bigpond.net.au>
2231         * ldlang.c (lang_process): Call bfd_merge_sections later, and
2232         only when not a relocatable link.
2233         (print_input_section): Handle SEC_EXCLUDE sections.
2234         (size_input_section): Don't update dot on SEC_EXCLUDE sections.
2235         (lang_do_assignments_1): Likewise.
2236         * ldwrite.c (build_link_order): Ignore SEC_EXCLUDE input sections.
2237         * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Likewise.
2238         * emultempl/hppaelf.em (build_section_lists): Likewise.
2239         * emultempl/ppc64elf.em (build_toc_list): Likewise.
2240         (build_section_lists): Likewise.
2242 2004-05-23  Andreas Schwab  <schwab@suse.de>
2244         * ld.texinfo (Options): Fix typo in last change.
2246 2004-05-21  Andy Chittenden  <achittenden@bluearc.com>
2248         * ld.h (ld_config_type): Add new field: hash_table_size.
2249         * ldmain.c: Initialise the new field to zero.  If it is non-zero
2250         after parsing the linker's command line call
2251         bfd_hash_set_default_size.
2252         * lexsup.c (option_values): Add OPTION_HASH_SIZE.
2253         (ld_options): Add hash-size.
2254         (parse_args): Parse --hash-size option.  Allow
2255         --reduce-memory-overheads to set the default hash table size as
2256         well.
2257         * ld.texinfo: Document the new switch.  Also mention that
2258         --reduce-memory-overheads can affect the hash table size.
2259         * NEWS: Mention the new feature.
2261 2004-05-19  J"orn Rennecke <joern.rennecke@superh.com>
2263         * NEWS: Mention new linker map file generation and the
2264         --reduce-memory-overheads option.
2265         * ld.texinfo: Document --reduce-memory-overheads option.
2266         * ld.h (map_symbol_def): New struct.
2267         (struct user_section_struct, section_userdata_type): Rename to:
2268         (struct lean_user_section_struct, lean_section_userdata_type).
2269         (struct fat_user_section_struct, fat_section_userdata_type): New.
2270         (SECTION_USERDATA_SIZE): Define.
2271         (args_type): New member reduce_memory_overheads.
2272         * ldlang.c (map_obstack): New static variable.
2273         (init_map_userdata, print_all_symbols, sort_def_symbol): New functions.
2274         (lang_map): Unless command_line.reduce_memory_overheads is set,
2275         initialize lists of defined symbols for each section.
2276         (print_input_section): Unless command_line.reduce_memory_overheads
2277         is set, use print_all_symbols.
2278         (init_os): Use lean_section_userdata_type / SECTION_USERDATA_SIZE.
2279         * ldmain.c (main): Initialize command_line.reduce_memory_overheads.
2280         * lexsup.c (enum option_values): Add OPTION_REDUCE_MEMORY_OVERHEADS.
2281         (ld_options): Add entry for --reduce-memory-overheads.
2282         (parse_args): Handle OPTION_REDUCE_MEMORY_OVERHEADS.
2284 2004-05-19  Jakub Jelinek  <jakub@redhat.com>
2286         * ldgram.y (sect_constraint): New.
2287         (ONLY_IF_RO, ONLY_IF_RW): New tokens.
2288         (section): Add sect_constraint.  Pass additional argument
2289         to lang_enter_output_section_statement.
2290         * mri.c (mri_draw_tree): Pass additional argument to
2291         lang_enter_output_section_statement.
2292         * emultempl/pe.em (place_orphan): Likewise.
2293         (output_prev_sec_find): Disregard output section statements with
2294         constraint == -1.
2295         * emultempl/mmo.em (output_prev_sec_find): Likewise.
2296         (mmo_place_orphan): Pass additional argument to
2297         lang_enter_output_section_statement.
2298         * emultempl/elf32.em (output_prev_sec_find): Disregard output section
2299         statements with constraint == -1.
2300         (place_orphan): Pass additional argument to
2301         lang_enter_output_section_statement.
2302         * ldlang.c (lang_enter_overlay_section): Likewise.
2303         (lang_output_section_find_1): New.
2304         (lang_output_section_find): Use it.
2305         (lang_output_section_statement_lookup_1): New.
2306         (lang_output_section_statement_lookup): Use it.
2307         (check_section_callback, check_input_sections): New.
2308         (map_input_to_output_sections): Check if all input sections
2309         are readonly if ONLY_IF_RO or ONLY_IF_RW was seen.
2310         (strip_excluded_output_sections): Disregard output section statements
2311         with constraint == -1.
2312         (lang_record_phdrs): Likewise.
2313         (lang_enter_output_section_statement): Add constraint argument.
2314         Use lang_output_section_statement_lookup_1.
2315         * ldlang.h (lang_output_section_statement_type): Add constraint
2316         and all_input_readonly fields.
2317         (lang_enter_output_section_statement): Adjust prototype.
2318         * ldlex.l (ONLY_IF_RO, ONLY_IF_RW): New tokens.
2319         * scripttempl/elf.sc (.eh_frame, .gcc_except_table): Move into text
2320         segment if all input sections are readonly.
2322 2004-05-19  Adam Nemet  <anemet@lnxw.com>
2324         * scripttempl/i386lynx.sc: Remove file.
2326 2004-05-17  Bob Wilson  <bob.wilson@acm.org>
2328         * ld.texinfo (Output Section Address): Correct subsection name.
2330 2004-05-17  Adam Nemet  <anemet@lnxw.com>
2332         * configure.tgt (powerpc-*-lynxos* case): New case.
2333         * configure.host (i[3-7]86-*-lynxos* case): Remove case.
2334         * emulparams/ppclynx.sh: New file.
2335         * emulparams/i386lynx.sh (SCRIPT_NAME): Update to LynxOS 4.0.
2336         * Makefile.am (ALL_EMULATIONS): Add eppclynx.o
2337         (ei386lynx.c): Update rule to LynxOS 4.0 ELF.
2338         (eppclynx.c): New rule.
2339         * Makefile.in: Regenerate.
2341 2004-05-13  Joel Sherrill <joel@oarcorp.com>
2343         * configure.tgt (or32-*-rtems*): Switch to elf and
2344         support versioned targets.
2346 2004-05-13  Nick Clifton  <nickc@redhat.com>
2348         * po/fr.po: Updated French translation.
2350 2004-05-11  Jakub Jelinek  <jakub@redhat.com>
2352         * genscripts.sh: Generate -z combreloc -z now -z relro scripts
2353         for binaries, -shared and -pie.
2354         * emulparams/elf_i386.sh (SEPARATE_GOTPLT): Set.
2355         * emulparams/elf_x86_64.sh (SEPARATE_GOTPLT): Set.
2356         * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Rename to...
2357         (OTHER_RELRO_SECTIONS): ... this.
2358         * ldlex.l (DATA_SEGMENT_RELRO_END): Add.
2359         * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Handle
2360         -z relro and -z norelro.
2361         (gld${EMULATION_NAME}_list_options): Add it to usage.
2362         (gld${EMULATION_NAME}_get_script): Return -z combreloc -z now
2363         -z relro scripts when appropriate.
2364         * scripttempl/elf.sc: Unset SEPARATE_GOTPLT if RELRO_NOW is set.
2365         Create separate .got.plt section if SEPARATE_GOTPLT.
2366         Move sections which are only written during relocation handling
2367         to the beginning of RW segment.  If NO_SMALL_DATA, move .got
2368         before .data.  Add DATA_SEGMENT_RELRO_END directive.
2369         Include OTHER_RELRO_SECTIONS.
2370         * ldgram.y (DATA_SEGMENT_RELRO_END): Add.
2371         * ldexp.c (exp_print_token): Handle DATA_SEGMENT_RELRO_END.
2372         (fold_unary): Likewise.
2373         (fold_binary): Handle -z relro.
2374         * ldexp.h (struct exp_data_seg): Add exp_dataseg_relro_seen and
2375         exp_dataseg_relro_adjust phases.  Add relro_end field.
2376         * ldmain.c (main): Initialize link_info.relro to FALSE.
2377         * ldlang.c (lang_size_sections): Handle -z relro.
2379 2004-05-08  Marek Michalkiewicz  <marekm@amelek.gda.pl>
2381         * scripttempl/avr.sc: Do not set LMA for "eeprom" section.
2383 2004-05-07  J"orn Rennecke <joern.rennecke@superh.com>
2385         * ldlang.c (print_padding_statement): Cast size_t to bfd_vma
2386         before printing it with %W.
2388 2004-05-07  Brian Ford  <ford@vss.fsi.com>
2389             DJ Delorie  <dj@redhat.com>
2391         * emultempl/pe.em (real_flags): New static.
2392         (OPTION_LARGE_ADDRESS_AWARE): New define.
2393         (gld${EMULATION_NAME}_add_options): Add --large-address-aware option.
2394         (gld_${EMULATION_NAME}_list_options): Likewise.
2395         (gld${EMULATION_NAME}_handle_option): Likewise.
2396         (gld_${EMULATION_NAME}_after_open): Pass real_flags to PE private data.
2397         * ld.texinfo: Document it.
2398         * NEWS: Mention it.
2400 2004-05-07  Brian Ford  <ford@vss.fsi.com>
2402         * NEWS: Mention DWARF 2 support for i386pe.
2404 2004-05-05  Alexandre Oliva  <aoliva@redhat.com>
2406         * emulparams/elf32frvfd.sh (OUTPUT_FORMAT): Switch to new
2407         elf32-frvfdpic.
2409 2004-04-30  Alan Modra  <amodra@bigpond.net.au>
2411         * ldlang.c (unique_section_p): Pass section parm, return true on
2412         group sections.
2413         (output_section_callback): Adjust.
2414         * ldlang.h (unique_section_p): Update prototype.
2415         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust.
2417 2004-04-30  Eric Botcazou  <ebotcazou@act-europe.fr>
2419         * ld.texinfo (--gc-sections): Remove restriction for
2420         dynamic linking.
2422 2004-04-29  Brian Ford  <ford@vss.fsi.com>
2424         * scripttempl/pe.sc: Handle .debug* and .gnu.linkonce.wi.* sections
2425         for DWARF 2/3.  Update stab section's syntax.
2427 2004-04-29  Alan Modra  <amodra@bigpond.net.au>
2429         * pe-dll.c: Revert changes accidentally committed 2004-03-08.
2430         (fill_edata): Correct pointer arithmetic.
2432 2004-04-21  Chris Demetriou  <cgd@broadcom.com>
2434         * ld.texinfo: Remove MIPS --embedded-relocs documentation.
2435         * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Remove definition.
2436         * emulparams/mipsidt.sh (TEMPLATE_NAME): Use generic.em.
2437         (EXTRA_EM_FILE): Use mipsecoff.em
2438         * emulparams/mipsidtl.sh (TEMPLATE_NAME): Use generic.em.
2439         (EXTRA_EM_FILE): Use mipsecoff.em
2440         * emultempl/mipsecoff.em: Restructure to be included as an
2441         extra emulation file.
2442         (check_sections, gld${EMULATION_NAME}_after_open)
2443         (gld${EMULATION_NAME}_after_allocation)
2444         (gld${EMULATION_NAME}_get_script)
2445         (ld_${EMULATION_NAME}_emulation): Remove
2446         (gld${EMULATION_NAME}_before_parse): Rename to...
2447         (mipsecoff_before_parse): This.
2448         (LDEMUL_BEFORE_PARSE): Define.
2449         * emultempl/mipself.em: Remove file.
2450         * scripttempl/mips.sc (.rel.sdata): Do not include in output.
2451         (__runtime_reloc_start, __runtime_reloc_stop): Stop providing
2452         these symbols.
2453         * Makefile.am: Remove dependencies on emultempl/mipself.em.
2454         * Makefile.in: Regenerate.
2456 2004-04-21      Anil Paranjpe   <anilp1@kpitcummins.com>
2458         * ld.texinfo (synthesizing on H8/300): Information about linker
2459         relaxation support for bit manipulation instructions and system
2460         control instructions is added.
2462 2004-04-21  Hans-Peter Nilsson  <hp@axis.com>
2464         * NEWS: Mention change in DEFINED semantics.
2466 2004-04-21  Eric Botcazou  <ebotcazou@act-europe.fr>
2468         * scripttempl/elf.sc (.text): Add KEEP for .text.*personality*.
2469         (.data): Add KEEP for .gnu.linkonce.d.*personality*.
2470         (.gcc_except_table): Add KEEP for self and accept .gcc_except_table.*.
2472 2004-04-21  Ben Elliston  <bje@au.ibm.com>
2474         * ld.texinfo (Simple Example): Add missing punctuation.
2476 2004-04-20  Chris Demetriou  <cgd@broadcom.com>
2478         * NEWS: Note that MIPS --embedded-relocs option is deprecated.
2480 2004-04-19  Jakub Jelinek  <jakub@redhat.com>
2482         * ldlang.c (lang_do_assignments_1): Handle .tbss output section
2483         specially.
2485 2004-04-18  Danny Smith  <dannysmith@users.sourceforge.net>
2487         * scriptempl/pe.sc:  Put numbered .ctors.* after .ctors
2488         with default priority. Likewise for dtors.
2490 2004-04-11  Thiemo Seufer  <seufer@csv.ica.uni-stuttgart.de>
2492         * configure.host: Remove mips*-dec-bsd* target.
2493         * configure.tgt: Likewise.
2495 2004-04-08  Richard Sandiford  <rsandifo@redhat.com>
2497         * emulparams/elf32bsmip.sh (EXTRA_EM_FILE): Define to irix.
2498         * emulparams/elf64bmip.sh (EXTRA_EM_FILE): Likewise.
2499         * emulparams/elf32bmipn32.sh (EXTRA_EM_FILE): Likewise.
2500         * emultempl/irix.em: New file.
2501         * Makefile.am (eelf32bsmip.c, eelf32bmipn32.c, eelf64bmip.c): Update
2502         dependencies.
2503         * Makefile.in: Regenerate.
2505 2004-04-01  Paul Brook  <paul@codesourcery.com>
2507         * emultempl/armelf.em (byteswap_code): Add.
2508         (arm_elf_before_allocation): Pass extra parameter.
2509         (PARSE_AND_LIST_PROLOGUE): Add OPTION_BE8.
2510         (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add be8.
2511         (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_BE8.
2512         * emultempl/armelf_oabi.em: Pass extra parameter.
2513         * ld.texinfo: Document --be8.
2515 2004-03-30  Stan Shebs  <shebs@apple.com>
2517         Remove long-obsolete MPW support.
2518         * mpw-config.in, mpw-make.sed, mac-ld.r: Remove files.
2519         * Makefile.am (mpw): Remove file-presynthesizing actions.
2520         * Makefile.in: Likewise.
2521         * ldfile.c (slash): Remove MPW case.
2522         * ldlex.l [MPW]: Remove unused definition.
2524 2004-03-30  Galit Heller  <Galit.Heller@nsc.com>
2526         * Makefile.am (ALL_EMULATIONS): Add eelf32cr16c.o.
2527         (eelf32cr16c.c): New target.
2528         * Makefile.in: Regenerate.
2529         * configure.tgt: Handle cr16c-*-elf*.
2530         * emulparams/elf32cr16c.sh: New file.
2531         * scripttempl/elfcr16c.sc: Likewise
2532         * NEWS: Mention support for new target.
2534 2004-03-30  Nick Clifton  <nickc@redhat.com>
2536         * po/sv.po: Updated Swedish translation.
2538 2004-03-27  Alan Modra  <amodra@bigpond.net.au>
2540         * emultempl/elf32.em: Update new bfd_elf_discard_info name.
2541         * emultempl/hppaelf.em: Likewise.
2542         * emultempl/ppc64elf.em: Likewise.
2543         * emultempl/sh64elf.em: Likewise.
2545 2004-03-25  Alan Modra  <amodra@bigpond.net.au>
2547         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Update
2548         size_dynamic_sections call.
2550 2004-03-23  Alan Modra  <amodra@bigpond.net.au>
2552         PR 51.
2553         * emultempl/ppc64elf.em (ppc_create_output_section_statements): Set
2554         link_info.wrap_char.
2556 2004-03-20  H.J. Lu  <hongjiu.lu@intel.com>
2558         * lexsup.c (parse_args): Don't set unresolved_syms_in_objects
2559         or unresolved_syms_in_shared_libs for -Bdynamic and -Bstatic.
2561 2004-03-20  Alexandre Oliva  <aoliva@redhat.com>
2563         * emulparams/elf32frvfd.sh (MAXPAGESIZE): Change to 16Kb.
2565 2004-03-19  Alan Modra  <amodra@bigpond.net.au>
2567         * config.in: Regenerate.
2568         * po/ld.pot: Regenerate.
2570 2004-03-18  Alan Modra  <amodra@bigpond.net.au>
2572         * ld.texinfo: Add --as-needed doco.
2573         * ldmain.c (as_needed): New global var.
2574         * ldmain.h (as_needed): Declare.
2575         * lexsup.c (option_values): Add OPTION_AS_NEEDED and
2576         OPTION_NO_AS_NEEDED.
2577         (ld_options): Likewise.
2578         (parse_args): Handle them.
2579         * ldlang.h (lang_input_statement_type): Add as_needed field.
2580         * ldlang.c (new_afile): Set p->as_needed.
2581         * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): New function.
2582         (gld${EMULATION_NAME}_try_needed): Use bfd_elf_set_dyn_lib_class.
2583         (ld_${EMULATION_NAME}_emulation): Set LDEMUL_RECOGNIZED_FILE entry.
2585         * ldlang.c (open_input_bfds): Remove useless cast.
2586         (lang_do_assignments_1): Likewise.
2587         (lang_for_each_input_section): Delete.
2589 2004-03-17  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
2591         * configure.tgt: Switch sh-*-rtems* to ELF.  Add sh-*-rtemscoff*.
2593 2004-03-08  Danny Smith  <dannysmith@users.sourceforge.net>
2595         * pe-dll.c (pe_dll_generate_implib): Skip sections marked as
2596         private when building implib.
2598 2004-03-05  Nathan Sidwell  <nathan@codesourcery.com>
2600         * ldlang.c (lang_add_section): Don't force SEC_LOAD on
2601         SEC_THREAD_LOCAL.
2602         (IGNORE_SECTION): Ignore .tbss sections too.
2603         (lang_size_sections_1): .tbss sections do not advance dot.
2605 2004-03-01  Andreas Schwab  <schwab@suse.de>
2607         * ld.texinfo (Options): Fix example for --wrap.
2609 2004-02-25  Danny Smith  <dannysmith@users.sourceforge.net>
2611         * pe-dll.c (fill_edata): Check that exported_symbol_sections is
2612         not NULL.
2614 2004-02-23  Ian Lance Taylor  <ian@wasabisystems.com>
2616         * ldlang.c (lang_check): Use %P, not %E, in error message.
2618 2004-02-23  Nathan Sidwell  <nathan@codesourcery.com>
2620         * ldlang.h (struct lang_output_section_state): Change processed
2621         field's type.
2622         * ldexp.c (check, invalid): Remove.
2623         (fold_name): Move valid_p assignments. Create undefined symbol
2624         when needed. Directly exampine section's processd flag.
2625         * ldlang.c (lang_output_section_statement_lookup): Adjust
2626         processed field init.
2627         (lang_size_sections_1): Allow LOADADDR when determining section's
2628         VMA. Adjust error message. Fold data statement's expr.
2629         (lang_size_sections): Correctly increment lang_statement_iteration.
2631 2004-02-23  Alan Modra <amodra@bigpond.net.au>
2633         * ldexp.c (fold_tree): Follow indirect symbols.
2635 2004-02-20  Nathan Sidwell  <nathan@codesourcery.com>
2637         * ldgram.y (exp): Add two operand ALIGN.
2638         * ldexp.c (fold_binary): Add ALIGN_K case.
2639         * ld.texinfo (ALIGN): Document two operand version.
2641 2004-02-19  Nathan Sidwell  <nathan@codesourcery.com>
2643         * ldlang.c (map_input_to_output_sections): Initialize sections
2644         mentioned in a data statement expression.
2645         (lang_do_assignments_1): Add data statement's expression's
2646         section's vma.
2648 2004-02-18  Nathan Sidwell  <nathan@codesourcery.com>
2650         * ldgram.y (statement_anywhere): Add assert rule.
2651         * ldlang.c (exp_init_os): Add assert case.
2653 2004-02-14  Andrew Cagney  <cagney@redhat.com>
2655         * ldmain.c (remove_output): Call bfd_cache_close.
2657 2004-02-14  Richard Sandiford  <rsandifo@redhat.com>
2659         * emulparams/elf32bmipn32-defs.sh (OTHER_SECTIONS): Discard
2660         .MIPS.content* and .MIPS.events* sections.
2662 2004-02-09  Daniel Jacobowitz  <drow@mvista.com>
2664         * emulparams/armelf.sh, emulparams/armelf_linux.sh: Move
2665         .note.gnu.arm.ident to after allocated sections.  Mark its
2666         address as 0.
2668 2004-02-09  Daniel Jacobowitz  <drow@mvista.com>
2670         * emulparams/armelf_linux.sh (COMMONPAGESIZE): Set to 4KB.
2671         * emulparams/elf32bmip.sh (COMMONPAGESIZE): Likewise.
2672         * emulparams/elf32bmipn32.sh (COMMONPAGESIZE): Likewise.
2673         * emulparams/elf32btsmipn32.sh (COMMONPAGESIZE): Likewise.
2674         * emulparams/shlelf_linux.sh (COMMONPAGESIZE): Likewise.
2676 2004-02-05  Nick Clifton  <nickc@redhat.com>
2678         * emultempl/pe.em (_after_open): Fix typo in previous delta.
2680 2004-02-04  Danny Smith  <dannysmith@users.sourceforge.net>
2682         * emultempl/pe.em (_after_open): Fix thinko in 2003-12-18 patch.
2684 2004-01-28  Alan Modra  <amodra@bigpond.net.au>
2686         * genscripts.sh: Fix typo.
2688         * genscripts.sh: Apply $LIBPATH_SUFFIX to $tool_lib and $libdir too.
2690 2004-01-24  Jakub Jelinek  <jakub@redhat.com>
2692         * emulparams/elf64_ia64.sh: Put .rela.opd into
2693         OTHER_GOT_RELOC_SECTIONS instead of OTHER_PLT_RELOC_SECTIONS.
2695 2004-01-20  Danny Smith  <dannysmith@users.sourceforge.net>
2697         * pe-dll.c (pe_create_import_fixup): Clear WP_TEXT flag.
2698         * ld.texinfo (--omagic): Note that writable text section
2699         does not conform to published PE-COFF specs.
2700         (--enable-auto-import): Likewise.
2702 2004-01-15  Alan Modra  <amodra@bigpond.net.au>
2704         * emulparams/elf32ppc.sh (COMMONPAGESIZE): Define.
2706 2004-01-13  Nick Clifton  <nickc@redhat.com>
2708         * ldlang.c (lang_get_regions): Add extra parameter 'have_vma'
2709         which if true will prevent the LMA region being used as a
2710         replacement for a default VMA region.
2711         (lang_leave_output_section_statement): Pass extra parameter.
2712         (lang_leave_overlay): Likewise.
2713         * ld.texinfo (Output Section LMA): Document that the LMA
2714         region can be set to the VMA region if no VMA has been set.
2715         * ldlang.h (struct lang_output_section_phdr_list): Create a
2716         typedef for this type.  Minor formatting fixes.
2718 2004-01-13  Nick Clifton  <nickc@redhat.com>
2720         * ldlang.c (lang_size_sections_1): If dot is advanced, then
2721         assume that the section should be allocated.
2723 2004-01-13  Alan Modra  <amodra@bigpond.net.au>
2725         * ldlang.c (IGNORE_SECTION): Don't ignore SEC_ALLOC && !SEC_LOAD
2726         sections.  Do ignore SEC_NEVER_LOAD sections.
2727         (lang_size_sections_1): Remove test made redundant with the above.
2729 2004-01-09  Alan Modra  <amodra@bigpond.net.au>
2731         * emultempl/ppc64elf.em (ppc_before_allocation): Clear cached
2732         program_header_size.
2734 2004-01-06  Alexandre Oliva  <aoliva@redhat.com>
2736         2003-11-28  Alexandre Oliva  <aoliva@redhat.com>
2737         * emulparams/elf32frvfd.sh (EMBEDDED): Clear.
2738         2003-11-05  Alexandre Oliva  <aoliva@redhat.com>
2739         * emulparams/elf32frvfd.sh (STACK_ADDR): Unset.
2740         (MAXPAGESIZE): Set to 64Kb.
2741         (OTHER_READONLY_SECTIONS): Define __ROFIXUP_LIST__ and
2742         __ROFIXUP_END__.  Don't map .rofixup.got any more.
2743         * emulparams/elf32frv.sh (NOP): Set.
2744         2003-10-31  Alexandre Oliva  <aoliva@redhat.com>
2745         * configure.tgt: Add frv-*-*linux*.
2746         2003-09-30  Alexandre Oliva  <aoliva@redhat.com>
2747         * Makefile.am (ALL_EMULATIONS): Added eelf32frvfd.o.
2748         (eelf32frvfd.c): New.
2749         * configure.tgt <frv-*-*>: Added it to targ_extra_emuls.
2750         * emulparams/elf32frv.sh: Reverted previous two patches.
2751         * emulparams/elf32frvfd.sh: New.
2752         * Makefile.in: Rebuilt.
2753         2003-09-18  Alexandre Oliva  <aoliva@redhat.com>
2754         * emulparams/elf32frv.sh (OTHER_READONLY_SECTIONS): Added
2755         .rofixup.got to .rofixup.
2756         2003-09-15  Alexandre Oliva  <aoliva@redhat.com>
2757         * emulparams/elf32frv.sh (MAXPAGESIZE): Make it 256KiB, not 256B.
2758         (TEMPLATE_NAME, GENERATE_SHLIB_SCRIPT): Set.
2760 2004-01-05  Jakub Jelinek  <jakub@redhat.com>
2762         * emulparams/elf_s390.sh (NO_SMALL_DATA): Set to yes.
2763         * emulparams/elf64_s390.sh (NO_SMALL_DATA): Set to yes.
2765 2004-01-03  Alan Modra  <amodra@bigpond.net.au>
2767         * ldexp.c (align_n): Make static.
2768         * ldexp.h (align_n): Delete declaration.
2769         * ldlang.h (lang_enter_output_section_statement): Remove
2770         block_value param.
2771         * ldlang.c (lang_enter_output_section_statement): Likewise.
2772         (TO_ADDR, TO_SIZE): Define.
2773         (opb_shift): New var.
2774         (init_opb): New function.
2775         (print_input_section): Call init_opb and use TO_ADDR.
2776         (print_data_statement, print_reloc_statement): Likewise.
2777         (print_padding_statement): Likewise.
2778         (size_input_section): Use TO_SIZE and TO_ADDR, and global opb_shift.
2779         (lang_check_section_addresses): Likewise.
2780         (lang_size_sections_1): Likewise.
2781         (lang_do_assignments_1): Likewise.
2782         (lang_set_startof): Likewise.
2783         (lang_one_common): Likewise.  Combine power_of_two and opb_shift align.
2784         (lang_process): Call init_opb.
2785         (lang_abs_symbol_at_end_of): Use TO_ADDR and global opb_shift.
2786         (lang_enter_overlay_section): Adjust
2787         lang_enter_output_section_statement call.
2788         * ldgram.y: Likewise.
2789         * mri.c (mri_draw_tree): Likewise.
2790         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Likewise.
2791         * emultempl/mmo.em (mmo_place_orphan): Likewise.
2792         * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Likewise.
2794         * ldfile.c (ldfile_set_output_arch): Add defarch param.
2795         * ldfile.h (ldfile_set_output_arch): Ditto.
2796         * emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Use
2797         ldfile_set_output_arch.
2798         * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Ditto.
2799         * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Ditto.
2800         * emultempl/linux.em (gld${EMULATION_NAME}_before_parse): Ditto.
2801         * emultempl/mipsecoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
2802         * emultempl/pe.em (gld${EMULATION_NAME}_before_parse): Ditto.
2803         * emultempl/sunos.em (gld${EMULATION_NAME}_before_parse): Ditto.
2804         * ldgram.y: Adjust ldfile_set_output_arch call.
2805         * emultempl/armcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
2806         * emultempl/armelf.em (gld${EMULATION_NAME}_before_parse): Ditto.
2807         * emultempl/armelf_oabi.em (gld${EMULATION_NAME}_before_parse): Ditto.
2808         * emultempl/generic.em (gld${EMULATION_NAME}_before_parse): Ditto.
2809         * emultempl/gld960c.em (gld960_set_output_arch): Ditto.
2810         * emultempl/m68kcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
2811         * emultempl/ticoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
2813 2004-01-02  Bernardo Innocenti  <bernie@develer.com>
2815         * configure.tgt: Add m68k-uClinux target.
2817 For older changes see ChangeLog-0203
2819 Local Variables:
2820 mode: change-log
2821 left-margin: 8
2822 fill-column: 74
2823 version-control: never
2824 End: