Remove a29k files.
[binutils.git] / ld / ChangeLog
blob0cf1b1b1989bf099f74968e1783430ebda3115f4
1 2005-08-18  Alan Modra  <amodra@bigpond.net.au>
3         * emulparams/a29k.sh: Delete.
4         * emulparams/ebmon29k.sh: Delete.
5         * emulparams/sa29200.sh: Delete.
6         * Makefile.am: Remove a29k support.
7         * configure.tgt: Likewise.
8         * ld.texinfo: Likewise.
9         * Makefile.in: Regenerate.
11 2005-08-17  Jakub Jelinek  <jakub@redhat.com>
13         * ldgram.y (vers_defns): Don't lose pattern list before
14         extern NAME {}.  Handle global, local and extern symbol names.
16 2005-08-17  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
18         * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_after_allocation):
19         Don't increment rel_count of .cranges here.  Set rawsize of .cranges.
21 2005-08-10  Nick Clifton  <nickc@redhat.com>
23         * pe-dll.c (pe_exe_fill_sections): Call lang_reset_memory_regions
24         before lang_size_sections.
26 2005-08-09  Alan Modra  <amodra@bigpond.net.au>
28         * emulparams/hppa64linux.sh (LARGE_SECTIONS): Remove .tbss.
30 2005-08-08  Eric Doenges <Eric.Doenges@betty-tv.com>
32         * Makefile.am (ALL_EMULATIONS): Add msp430x21xx variants.
33         Add rules to build these emulations.
34         * Makefile.in: Regenerate.
35         * configure.tgt (msp430): Add the new variants to the
36         targ_extra_emuls list.
37         * emulparams/msp430all.sh: Add entries for the msp430x21xx
38         variants.
40 2005-08-05  H.J. Lu  <hongjiu.lu@intel.com>
42         * ld.texinfo: Document PROVIDE_HIDDEN.
44         * ldexp.c (exp_fold_tree_1): Hide a provided symbol if asked.
45         (exp_provide): Add and set hidden.
47         * ldexp.h (etree_type): Add hidden to assign.
49         * ldgram.y (PROVIDE_HIDDEN): New.
50         * ldlex.l (PROVIDE_HIDDEN): Likewise.
52         * scripttempl/elf.sc: Use PROVIDE_HIDDEN on array bound
53         symbols.
55 2005-08-05  Alan Modra  <amodra@bigpond.net.au>
57         * emulparams/elf_x86_64.sh: Revert last change.
58         * scripttempl/elf.sc (REL_LARGE, LARGE_SECTIONS): Define here.
60 2005-08-05  Alan Modra  <amodra@bigpond.net.au>
62         * emulparams/armelf.sh (OTHER_BSS_END_SYMBOLS): Split out from
63         OTHER_END_SYMBOLS.
64         * emulparams/armelf_linux.sh: Likewise.
65         * emulparams/armnto.sh: Likewise.
66         * emulparams/criself.sh: Likewise.
67         * emulparams/elf32mcore.sh: Likewise.
68         * emulparams/criself.sh (OTHER_SYMBOLS): Define.
69         * emulparams/crislinux.sh (OTHER_SYMBOLS): Define.
70         (OTHER_END_SYMBOLS): Don't define.
71         * emulparams/elf32fr30.sh: Likewise.
72         * emulparams/elf64mmix.sh: Likewise.
73         * emulparams/hppa64linux.sh: Likewise.
74         * emulparams/m32relf.sh: Likewise.
75         * emulparams/vxworks.sh: Likewise.
76         * scripttempl/armbpabi.sc (OTHER_BSS_SECTIONS): Delete.
77         (OTHER_BSS_END_SYMBOLS): Add.
78         (OTHER_END_SYMBOLS): Move before current end sym definitions.
79         (OTHER_SYMBOLS): Replace OTHER_END_SYMBOLS near end of script.
80         * scripttempl/elf.sc: Likewise.
81         * scripttempl/elf32sh-symbian.sc: Likewise.
82         * scripttempl/elf_chaos.sc: Likewise.
83         * scripttempl/elfxtensa.sc: Likewise.
84         * scripttempl/iq2000.sc: Likewise.
85         * scripttempl/xstormy16.sc: Likewise.
87         * scripttempl/elf.sc (LBSS, LARGE_SECTIONS): Delete.
88         (REL_LDATA, REL_LBSS, REL_LRODATA): Delete.
89         (REL_LARGE, LARGE_SECTIONS): Add.
90         * emulparams/elf_x86_64.sh (LARGE_SECTIONS): Define as script text.
91         (REL_LARGE): Define.
92         * emulparams/hppa64linux.sh (OTHER_BSS_SECTIONS): Don't define.
93         (LARGE_SECTIONS): Define.
94         * emulparams/hppa64linux.sh (OTHER_BSS_SECTIONS): Don't define.
95         (LARGE_SECTIONS): Define.
97 2005-08-04  Alan Modra  <amodra@bigpond.net.au>
99         * ldemul.c (ldemul_do_assignments, do_assignments_default): Delete.
100         * ldemul.h (ldemul_do_assignments, do_assignments_default): Delete.
101         (struct ld_emulation_xfer_struct): Remove do_assignments field.
102         * ldlang.c (lang_do_assignments): Don't call ldemul_do_assignments.
103         * emulparams/elf32ppc.sh (SDATA_START_SYMBOLS): New.
104         (SDATA2_START_SYMBOLS, SBSS_START_SYMBOLS, SBSS_END_SYMBOLS): New.
105         * emultempl/aix.em (ld_*_emulation): Delete do_assignments init.
106         * emultempl/armcoff.em: Likewise.
107         * emultempl/beos.em: Likewise.
108         * emultempl/generic.em: Likewise.
109         * emultempl/gld960.em: Likewise.
110         * emultempl/gld960c.em: Likewise.
111         * emultempl/linux.em: Likewise.
112         * emultempl/lnk960.em: Likewise.
113         * emultempl/m68kcoff.em: Likewise.
114         * emultempl/pe.em: Likewise.
115         * emultempl/sunos.em: Likewise.
116         * emultempl/ticoff.em: Likewise.
117         * emultempl/vanilla.em: Likewise.
118         * emultempl/elf32.em: Likewise.
119         (gld*_provide_bound_symbols): Delete.
120         (gld*_provide_init_fini_syms): Delete.
121         (gld*_before_allocation): Don't call ldemul_do_assignments.
122         * emultempl/ppc32elf.em (ppc_do_assignments): Delete.
123         (LDEMUL_DO_ASSIGNMENTS): Delete.
124         * scripttempl/elf.sc: Provide init/fini syms.  Add SBSS_START_SYMBOLS,
125         SBSS_END_SYMBOLS, SDATA2_START_SYMBOLS.
127 2005-08-04  Alan Modra  <amodra@bigpond.net.au>
129         * Makefile.am (eelf32m32c.c): Fix dependencies.
130         * Makefile.in: Regenerate.
132 2005-08-04  Alan Modra  <amodra@bigpond.net.au>
134         * ldemul.c (ldemul_finish): Call ld_emulation->finish unconditionally.
135         (finish_default): New function.
136         * ldemul.h (finish_default): Declare.
137         * emultempl/aix.em (gld*_before_allocation): Call
138         before_allocation_default rather than strip_excluded_output_sections.
139         (ld_*_emulation): Init finish field to finish_default.
140         * emultempl/armcoff.em: Likewise.
141         * emultempl/beos.em: Likewise.
142         * emultempl/elf32.em: Likewise.
143         * emultempl/generic.em: Likewise.
144         * emultempl/gld960.em: Likewise.
145         * emultempl/gld960c.em: Likewise.
146         * emultempl/hppaelf.em: Likewise.
147         * emultempl/linux.em: Likewise.
148         * emultempl/lnk960.em: Likewise.
149         * emultempl/m68kcoff.em: Likewise.
150         * emultempl/mmo.em: Likewise.
151         * emultempl/pe.em: Likewise.
152         * emultempl/ppc64elf.em: Likewise.
153         * emultempl/sunos.em: Likewise.
154         * emultempl/ticoff.em: Likewise.
155         * emultempl/vanilla.em: Likewise.
157 2005-08-03  Alan Modra  <amodra@bigpond.net.au>
159         * ldlang.c (exp_init_os): Handle etree_provide.
160         * emulparams/armelf.sh (OTHER_END_SYMBOLS): Rename from..
161         (OTHER_BSS_END_SYMBOLS): ..this.
162         * emulparams/armelf_linux.sh: Likewise.
163         * emulparams/armnto.sh: Likewise.
164         * emulparams/criself.sh: Likewise.
165         * emulparams/crislinux.sh: Likewise.
166         * emulparams/elf32frv.sh: Likewise.
167         * emulparams/elf32mcore.sh: Likewise.
168         * emulparams/elf32ppc.sh: Likewise.
169         * emulparams/elf32ppclinux.sh: Likewise.
170         * emulparams/hppa64linux.sh: Likewise.
171         * scripttempl/armbpabi.sc: Substitute $OTHER_END_SYMBOLS, not
172         $OTHER_BSS_END_SYMBOLS.
173         * scripttempl/elf32sh-symbian.sc: Likewise.
174         * scripttempl/elf_chaos.sc: Likewise.
175         * scripttempl/iq2000.sc: Likewise.
176         * scripttempl/xstormy16.sc: Likewise.
177         * scripttempl/elf.sc: Likewise.  Delete __bss_start comment.
178         * scripttempl/elfxtensa.sc: Likewise.
180 2005-07-29  Nick Clifton  <nickc@redhat.com>
182         * ldmain.c (main): Allow -shared and -static to be used together.
183         * ld.texinfo (-static): Mention that it is allowed with -shared.
185 2005-07-28  DJ Delorie  <dj@redhat.com>
187         * ldlang.c (lang_output_section_statement_lookup_1): Don't cast a
188         unary & address operator, as that breaks GCC's strict aliasing
189         rules.
191 2005-07-25  Jan Hubicka  <jh@suse.cz>
192             H.J. Lu  <hongjiu.lu@intel.com>
194         * emulparams/elf_x86_64.sh (LARGE_SECTIONS): New.
196         * scripttempl/elf.sc: Updated for large section support.
198 2005-07-21  Ralf Corsepius  <ralf.corsepius@rtems.org>
200         * configure.tgt: Remove i[3-7]86-*-rtemself*.
201         Remove sparc-*-rtemself*.
203 2005-07-21  Ben Elliston  <bje@gnu.org>
205         * ldgram.y (ldgram_want_filename): Remove unused static.
207 2005-07-20  DJ Delorie  <dj@redhat.com>
209         * emulparams/elf32m32c.sh (TEMPLATE_NAME): New.
210         (EXTRA_EM_FILE): New.
212 2005-07-19  H.J. Lu  <hongjiu.lu@intel.com>
214         * ldmain.c (main): Reindent.
216 2005-07-19  Paul Brook  <paul@codesourcery.com>
218         * configure.host (HOSTING_CRT0): Parse output of gcc --help --verbose
219         to determine dynamic linker name.
221 2005-07-18  Nick Clifton  <nickc@redhat.com>
223         * configure.tgt: Restore alpha ordering to list of arches.
225 2005-07-16  Alan Modra  <amodra@bigpond.net.au>
227         * emultempl/elf32.em (gld*_provide_init_fini_syms): Prototype.
228         (gld*_before_allocation): Call ldemul_do_assignments rather than
229         gld*_provide_init_fini_syms directly.
230         * emultempl/ppc32elf.em (gld*_after_allocation): Delete.
231         (ppc_do_assignments): New function.
232         (LDEMUL_AFTER_ALLOCATION): Don't define.
233         (LDEMUL_DO_ASSIGNMENTS): Define.
235 2005-07-16  Alan Modra  <amodra@bigpond.net.au>
237         * Makefile.am: Run "make dep-am".
238         (emipsidt.c, emipsidtl.c): Depend on generic.em.
239         * Makefile.in: Regenerate.
241 2005-07-15  Alan Modra  <amodra@bigpond.net.au>
243         * ldemul.c (ldemul_do_assignments): New function.
244         (do_assignments_default): New function.
245         * ldemul.h (ldemul_do_assignments): Declare.
246         (do_assignments_default): Declare.
247         (struct ld_emulation_xfer_struct): Add do_assignments.
248         * ldlang.c (lang_do_assignments) Call ldemul_do_assignments.
249         * emultempl/aix.em (ld_*_emulation): Init do_assignments field.
250         * emultempl/armcoff.em: Likewise.
251         * emultempl/beos.em: Likewise.
252         * emultempl/generic.em: Likewise.
253         * emultempl/gld960.em: Likewise.
254         * emultempl/gld960c.em: Likewise.
255         * emultempl/linux.em: Likewise.
256         * emultempl/lnk960.em: Likewise.
257         * emultempl/m68kcoff.em: Likewise.
258         * emultempl/pe.em: Likewise.
259         * emultempl/sunos.em: Likewise.
260         * emultempl/ticoff.em: Likewise.
261         * emultempl/vanilla.em: Likewise.
262         * emultempl/elf32.em: Likewise, to call gld*_provide_init_fini_syms.
263         (gld*_find_exp_assignment): Adjust bfd_elf_record_link_assignment call.
265 2005-07-14  Jim Blandy  <jimb@redhat.com>
267         Add support for the Renesas M32C and M16C.
268         * Makefile.am (ALL_EMULATIONS): Add eelf32m32c.o.
269         (eelf32m32c.c): New target.
270         * Makefile.in: Regenerated.
271         * configure.tgt: Add case for m32c-*-elf.
272         * emulparams/elf32m32c.sh: New file.
274 2005-07-14  Alan Modra  <amodra@bigpond.net.au>
276         * ldlang.c (strip_excluded_output_sections): Don't call
277         bfd_gc_sections.
278         * emultempl/elf32.em (gld*_provide_bound_symbols): Move.
279         (gld*_provide_init_fini_syms): Move.
280         (gld*_before_allocation): Call the above from here..
281         (gld*_finish): ..not here.  Call _bfd_elf_fix_excluded_sec_syms.
282         * emultempl/hppaelf.em (hppaelf_finish): Likewise.
283         * emultempl/ppc64elf.em (ppc_finish): Likewise.
285 2005-07-10  Ralf Corsepius <ralf.corsepius@rtems.org>
287         * configure.tgt: Remove sparc*-*-rtemsaout*, i[3-7]86-go32-rtems*,
288         i[3-7]86-*-rtemscoff*, hppa*-*-rtems*, mips*el-*-rtems*,
289         powerpcle-*-rtems*.
291 2005-07-09  Christopher Faylor  <cgf@timesys.com>
293         * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse): Enable runtime
294         relocation by default.
295         (compute_dll_image_base): Avoid linking into cygwin dll address space.
297 2005-07-08  Alan Modra  <amodra@bigpond.net.au>
299         * ldlang.c (wild_sort): Formatting.
300         (strip_excluded_output_sections): Strip zero size sections here.
301         * emultempl/elf32.em (gld*_strip_empty_sections): Delete.
302         (gld*_finish): Don't call the above.
303         * emultempl/hppaelf.em (hppaelf_finish): Likewise.
304         * emultempl/ppc64elf.em (ppc_finish): Likewise.
306 2005-07-05  Paul Brook  <paul@codesourcery.com>
308         * Makefile.am (ALL_EMULATIONS): Add eelf32ppcvxworks.o.
309         (eelf32ppcvxworks.o): Add dependencies.
310         * Makefile.in: Regenerate.
311         * configure.tgt: Add entry for powerpc-vxworks.
312         * emulparams/elf32-ppc.c: Mention elf32ppcvxworks.sh in comment.
313         * emulparams/elf32ppcvxworks.sh: New file.
314         * emultempl/ppc32elf.em (bfd_elf32_powerpc_vxworks_vec): Declare.
315         (is_ppc_elf32_vec): New function.
316         (ppc_after_open, ppc_before_allocation,
317         gld${EMULATION_NAME}_after_allocation): Use it.
319 2005-07-05  Peter S. Mazinger" <ps.m@gmx.net>
321         * emulparams/elf32bmip.sh (GENERATE_PIE_SCRIPT): Define as "yes".
322         * emulparams/elf32bmipn32-defs.sh (GENERATE_PIE_SCRIPT): Define as "yes".
324 2005-07-04  Mike Frysinger <vapier@gentoo.org>
326         * emulparams/hppalinux.sh (GENERATE_PIE_SCRIPT): Fix typo in
327         name.
329 2005-07-04  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
331         * emulparams/m32relf_linux.sh (GENERATE_PIE_SCRIPT): Set to yes.
333 2005-07-04  Aurelien Jarno  <aurel32@debian.org>
335         * emultempl/elf32.em: Enable use of ld.so.conf for *-*-k*bsd-*.
337 2005-07-01  Alan Modra  <amodra@bigpond.net.au>
339         * scripttempl/elf.sc (.gcc_except_table): Don't KEEP.
341 2005-06-30  Ben Elliston  <bje@gnu.org>
343         * Makefile.am (check-DEJAGNU): Don't search for expect.
344         * Makefile.in: Regenerate.
346 2005-06-30  Ben Elliston  <bje@gnu.org>
348         * Makefile.am (EXPECT): Set to expect.
349         (RUNTEST): Likewise, set to runtest.
350         * Makefile.in: Regenerate.
352 2005-06-16  Alexander Klimov  <alserkli@inbox.ru>
354         * emultempl/armelf.em: Add quotes to avoid a null test
355         expression.
357 2005-06-12  Daniel Jacobowitz  <dan@codesourcery.com>
359         * ld.texinfo (Command Line Options): Add @item for --hash-size.
361 2005-06-10  Alan Modra  <amodra@bigpond.net.au>
363         * scripttempt/elf.sc (.bss): Align tail in a way that allows
364         empty section pruning.
366 2005-06-09  Steve Ellcey  <sje@cup.hp.com>
368         * configure.in (AM_BINUTILS_WARNINGS): Add.
369         (BFD_NEED_DECLARATION) Replace with AC_CHECK_DECLS.
370         * config.in: Regenerate.
371         * configure: Regenerate.
372         * sysdep.h (NEED_DECLARATION_*): Replace with HAVE_DECL_*
373         * ldmain.c: Ditto.
375 2005-06-09  Alan Modra  <amodra@bigpond.net.au>
377         * ldexp.c (fold_unary <ALIGN_K>): Revert last change.
379 2005-06-09  Alan Modra  <amodra@bigpond.net.au>
381         * ld.h (lang_phase_type): Move to..
382         * ldexp.h: ..here.  Add lang_mark_phase_enum.
383         (node_type): Remove etree_undef and etree_unspec.
384         (exp_data_seg): Delete.
385         (struct ldexp_control, expld): New.
386         (invalid, exp_mark_used_section): Delete.
387         (exp_fold_tree, exp_get_vma, exp_get_value_int, exp_get_fill,
388         exp_get_abs_int): Update prototypes.
389         * ldexp.c (assigning_to_dot): Delete.
390         (expld): Define.
391         (make_abs): Operate directly on expld.result.  Update all callers.
392         (new_abs): Likewise.  Return void.
393         (new_rel_from_abs): Rename from new_rel_from_section.
394         (new_rel, new_rel_from_abs): Operate on expld.result and return void.
395         Update all callers.
396         (fold_unary): Operate on expld.result and return void.  Remove
397         "current_section", "allocation_done", "dot", "dotp" and "mark_used"
398         params.  Update all callers.
399         (fold_binary, fold_trinary, fold_name, exp_fold_tree_1): Likewise.
400         (fold_unary <ALIGN_K>): Ensure alignment is absolute.
401         (fold_unary <ABSOLUTE>): Use make_abs.
402         (fold_unary <DATA_SEGMENT_END>): Evaluate mark_phase as for
403         allocating_phase.
404         (fold_binary <DATA_SEGMENT_ALIGN, DATA_SEGMENT_RELRO_END, >): Ditto.
405         (fold_binary <'%','/'>): Don't error if marking.
406         (fold_name <SIZEOF_HEADERS>): Don't call bfd_sizeof_headers when
407         marking.
408         (fold_name <NAME>): Remove FIXME; -R is handled correctly.  Don't
409         error when marking.
410         (fold_name <ADDR, LOADADDR, SIZEOF>): Don't set SEC_KEEP.
411         (exp_fold_tree_1): Don't error when marking.
412         (exp_fold_tree_1 <etree_rel>): Evaluate in all phases except first.
413         (exp_fold_tree_1 <etree_assign to dot>): Don't check for NULL
414         current section, instead check for NULL dotp.
415         (exp_fold_tree_1 <etree_provide>): Don't evaluate the assignment
416         source unless the symbol is referenced and undefined.
417         (exp_fold_tree): Remove "allocation_done" and "dot" params.  Save
418         params to expld.
419         (exp_fold_tree_no_dot): Remove "current_section", "allocation_done
420         and "mark_used" params.  Save params to expld.  Update all callers.
421         (exp_assop): Do without temp var.
422         (exp_print_tree <etree_undef>): Delete code.
423         (exp_get_vma): Remove "allocation_done" param.  Correct error return.
424         (exp_get_fill, exp_get_abs_int): Likewise.
425         (exp_get_value_int): Remove "allocation_done" param.
426         (exp_mark_used_section): Delete.
427         * ldgram.y (fill_exp): Update exp_get_fill call.
428         (origin_spec, length_spec): Update exp_get_vma call.
429         * ldlang.c (lang_init): Don't bother clearing lang_statement_iteration.
430         (lang_mark_used_section_1, lang_mark_used_section): Delete.
431         (strip_excluded_output_sections): Call one_lang_size_sections_pass in
432         marking mode.  Merge old lang_mark_used_section code.  Correct handling
433         of output sections with excluded input sections and data statements.
434         Don't drop non-zero sized sections.  Don't zap os->bfd_section.
435         Do set SEC_EXCLUDE when appropriate.
436         (print_output_section_statement): Update for changed ldexp.c
437         interface.
438         (print_assignment, lang_size_sections_1): Likewise.
439         (lang_do_assignments_1, lang_enter_output_section_statement): Likewise.
440         (lang_new_phdr, lang_record_phdrs): Likewise.
441         (lang_size_sections): Likewise.
442         (insert_pad): Use following statement if it is a pad, rather than
443         creating a new one.
444         (lang_size_sections_1 <lang_output_section_statement_enum>): Do
445         process ignored output section to set vma and lma, but don't
446         update dot for these sections.  Don't error if marking.
447         (lang_size_sections_1 <lang_assignment_statement_enum>): Don't
448         update dot for ignored sections.
449         (lang_size_sections_1 <lang_data_statement_enum>): Don't mark absolute
450         section with SEC_ALLOC.
451         (one_lang_size_sections_pass): New function.
452         (lang_size_sections): Remove first five params.  Set expld.phase on
453         entry and exit.   Use one_lang_size_sections_pass.
454         (lang_do_assignments): Remove all params.  Update all callers.
455         (lang_reset_memory_regions): Clear os->processed for all output
456         section statements.
457         * ldlang.h (lang_do_assignments): Update prototype.
458         (lang_size_sections): Likewise.
459         (one_lang_size_sections_pass): Declare.
460         * pe-dll.c (pe_dll_fill_sections, pe_exe_fill_sections): Update
461         lang_size_sections and lang_do_assignments calls.
462         * emultempl/elf32.em (layout_sections_again): Likewise.
463         * emultempl/ppc64elf.em (ppc_before_allocation): Use
464         one_lang_size_sections_pass.
466 2005-06-08  Aldy Hernandez  <aldyh@redhat.com>
468         * emulparams/elf32ms1.sh: New.
470 2005-06-07  Eric Christopher  <echristo@redhat.com>
472         * Makefile.am (eelf32ms1.c): Use tab.
473         * Makefile.in: Regenerate.
475 2005-06-07  Aldy Hernandez  <aldyh@redhat.com>
476             Michael Snyder  <msnyder@redhat.com>
477             Stan Cox  <scox@redhat.com>
479         * configure.tgt: Same.
481         * Makefile.am (ALL_EMULATIONS): Depend on eelf32ms1.o.
482         (eelf32ms1.c): Add eelf32ms1.c rule.
484         * Makefile.in: Regenerate.
486 2005-06-06  Alan Modra  <amodra@bigpond.net.au>
488         * emultempl/ppc64elf.em (ppc_before_allocation): Always run
489         ppc64_elf_edit_opd.
491 2005-06-05  H.J. Lu  <hongjiu.lu@intel.com>
493         * ldexp.c (exp_mark_used_section): Set SEC_KEEP on current
494         section only if the symbol will be defined.
496 2005-06-04  H.J. Lu  <hongjiu.lu@intel.com>
498         PR 992
499         * ldexp.c (exp_mark_used_section): Set SEC_KEEP on current
500         section for etree_assign, etree_provide and etree_provided.
501         Call fold_binary on etree_binary.
503         * ldlang.c (lang_mark_used_section_1): Handle load base.
505 2005-06-03  Alan Modra  <amodra@bigpond.net.au>
507         * ldmain.c (link_callbacks): Add einfo.
508         (add_archive_element): Use passed info, not link_info.
509         (constructor_callback): Likewise.
510         (reloc_overflow): Don't handle null bfd specially.
511         (reloc_dangerous, unattached_reloc): Likewise.
512         * ldmisc.c (vfinfo <B>): Print "ld generated" for null bfd.
513         (vfinfo <C, D, G>): Handle null bfd.  Wrap comments.
515 2005-06-02  Alan Modra  <amodra@bigpond.net.au>
517         * ldexp.h (etree_value_type): Use "asection *" in place of
518         "struct lang_output_section_statement_struct *" for "section".
519         (exp_fold_tree): Likewise.
520         (exp_mark_used_section): Likewise.
521         * ldexp.c (new_rel, new_rel_from_section, fold_unary, fold_binary,
522         fold_trinary, fold_name, exp_fold_tree_1, exp_fold_tree,
523         exp_mark_used_section): Likewise for "current_section" param.
524         (make_abs, new_abs, exp_binop, exp_unop, exp_get_vma, exp_get_fill,
525         exp_get_abs_int): Adjust for above changes.
526         * ldlang.c (lang_mark_used_section_1, print_assignment,
527         lang_size_sections_1, lang_do_assignments_1): Likewise.
528         * ldexp.c (fold_name): Init entire result struct.
530 2005-06-01  Maciej W. Rozycki  <macro@linux-mips.org>
532         * emulparams/elf32btsmip.sh: Unset DATA_ADDR.
534 2005-05-31  Zack Weinberg  <zack@codesourcery.com>
536         * ldlang.c (entry_symbol_default): New file-scope global.
537         (lang_finish): Use it, not a hardwired "start".
538         (lang_default_entry): Set it.
539         * ldlang.h: Declare lang_default_entry.
540         * emultempl/beos.em, emultempl/pe.em: Use lang_default_entry,
541         not lang_add_entry, to override default entry point symbol.
543 2005-05-29  Richard Henderson  <rth@redhat.com>
545         * emulparams/elf64alpha.sh (PLT): New.
546         (TEXT_PLT): New.
547         * emultempl/alphaelf.em (disable_relaxation): New.
548         (limit_32bit): Rename from elf64alpha_32bit; update all users.
549         (elf64_alpha_use_secureplt): Declare.
550         (bfd_elf64_alpha_vec, bfd_elf64_alpha_freebsd_vec): Declare.
551         (alpha_after_open): New.
552         (alpha_before_allocation): New.
553         (OPTION_NO_RELAX, OPTION_SECUREPLT, OPTION_NO_SECUREPLT): New.
554         (PARSE_AND_LIST_LONGOPTS): Include them.
555         (PARSE_AND_LIST_OPTIONS): Likewise.
556         (PARSE_AND_LIST_ARGS_CASES): Likewise.
557         (LDEMUL_AFTER_OPEN, LDEMUL_BEFORE_ALLOCATION): New.
558         * scripttempl/elf.sc (TEXT_PLT): New.
559         (PLT): Use it.
561 2005-05-27  Andreas Schwab  <schwab@suse.de>
563         * configure.host (HOSTING_LIBS): Add libunwind.a if it exists.
565 2005-05-24  Alan Modra  <amodra@bigpond.net.au>
567         * emultempl/ppc32elf.em (after_allocation): Don't call
568         ppc_elf_set_sdata_syms when relocatable.
570 2005-05-21  H.J. Lu  <hongjiu.lu@intel.com>
572         * Makefile.am (ld.1): Revert the last 2 changes.
573         (info-recursive): Depend on ld.1.
574         * Makefile.in: Regenerated.
576 2005-05-21  H.J. Lu  <hongjiu.lu@intel.com>
578         * Makefile.am (ld.1): Depend on "info" instead of
579         "configdoc.texi ldver.texi".
580         * Makefile.in: Regenerated.
582 2005-05-21  H.J. Lu  <hongjiu.lu@intel.com>
584         * Makefile.am (ld.1): Depend on "info".
585         * Makefile.in: Regenerated.
587 2005-05-19  Zack Weinberg  <zack@codesourcery.com>
589         * Makefile.am: Have 'all' depend on 'info' and 'ld.1'.
590         * Makefile.in: Regenerate.
592 2005-05-17  Zack Weinberg  <zack@codesourcery.com>
594         * ld-arm/mixed-app.d: Adjust expected disassembly a little.
596 2005-05-17  Daniel Jacobowitz  <dan@codesourcery.com>
598         * Makefile.am (ldver.texi): Don't use $<.
599         * Makefile.in: Regenerated.
601 2005-05-17  Daniel Jacobowitz  <dan@codesourcery.com>
603         * Makefile.am (AM_MAKEINFOFLAGS, TEXI2DVI): Explicitly include
604         $(srcdir) before $(BFDDIR)/doc.
605         * Makefile.in: Regenerated.
607 2005-05-17  H.J. Lu  <hongjiu.lu@intel.com>
609         PR 797
610         * ldexp.c (exp_fold_tree_1): Renamed from exp_fold_tree and
611         take take a bfd_boolean, mark_used. Ignore assert failure if
612         mark_used is TRUE.
613         (exp_fold_tree) Call exp_fold_tree_1 with mark_used == FALSE.
614         (exp_fold_tree_no_dot): Updated to take a bfd_boolean,
615         mark_used and pass down.
616         (fold_unary): Likewise.
617         (fold_binary): Likewise.
618         (fold_trinary): Likewise.
619         (exp_binop): Add FALSE to call to exp_fold_tree_no_dot.
620         (exp_trinop): Likewise.
621         (exp_unop): Likewise.
622         (exp_nameop): Likewise.
623         (exp_get_vma): Likewise.
624         (exp_get_fill): Likewise.
625         (exp_get_abs_int): Likewise.
626         (fold_name): Likewise. Set SEC_KEEP in output section flags.
627         (exp_mark_used_section): New.
629         * ldexp.h (exp_mark_used_section): New.
631         * ldlang.c (lang_output_section_statement_lookup_1): Set the
632         ignored field to FALSE.
633         (lang_mark_used_section_1): New.
634         (lang_mark_used_section): Call lang_mark_used_section_1.
635         (strip_excluded_output_sections): Call lang_mark_used_section
636         and check for unused sections.
637         (lang_size_sections_1): Skip an output section if it should
638         be ignored.
639         (lang_do_assignments_1): Likewise.
640         (lang_process): Don't call lang_mark_used_section here.
642         * ldlang.h (lang_output_section_statement_type): Change
643         all_input_readonly to bitfield. Add ignored.
645 2005-05-17  Lennert Buytenhek  <buytenh@wantstofly.org>
646             Peter S. Mazinger" <ps.m@gmx.net>
648         * emulparams/armelf_linux.sh (GENERATE_PIE_SCRIPT): Define as "yes".
649         * emulparams/hppalinux.sh (GENERATE_PIE_SCRIPT): Define as "yes".
651 2005-05-17  Julian Brown <julian@codesourcery.com>
653         * ldlang.c (print_assignment): Do not rely upon a valid result
654         having a section associated with it.
656 2005-05-17  Nick Clifton  <nickc@redhat.com>
658         * ldlang.c (Scan_for_self_assignment): Check an assignment tree to
659         see if the same value is being used on the rhs as on the lhs.
660         (print_assignment): Call scan_for_self_assignment and if it
661         returns true, do no display the result of the computation but
662         instead just the final value of the symbol on the lhs.
663         * ld.texinfo: Document this behaviour and provide an example of
664         when it will happen.
666 2005-05-15  Daniel Jacobowitz  <dan@codesourcery.com>
668         * Makefile.am (AM_MAKEINFOFLAGS): Define.
669         (TEXI2DVI): Define.
670         (ldver.texi): Depend on distributed files instead of built files.
671         (ld.info): Include $(srcdir) in the rule target.  Remove actions.
672         (ld.dvi): Remove actions.
673         (MAINTAINERCLEANFILES): Add configdoc.texi.
674         (CONFIG_STATUS_DEPENDENCIES): Add bfd/configure.in.
675         (install-data-local): Renamed from install.
676         (Makefile): Remove explicit dependency.
677         * acinclude.m4: Remove obsolete code.
678         * configure.in: Update AC_PREREQ.  Remove extra $CONFIG_SHELL.
679         * Makefile.in, aclocal.m4, config.in, configure: Regenerated.
681 2005-05-11  Bob Wilson  <bob.wilson@acm.org>
683         * scripttempl/elfxtensa.sc: Sync up with elf.sc.
684         * emulparams/elf32xtensa.sh (PLT, GOT): Define.
686 2005-05-11  Alan Modra  <amodra@bigpond.net.au>
688         * ldgram.y: Add SPECIAL token.
689         (sect_constraint): Handle SPECIAL.
690         * ldlang.c (lang_output_section_find_1): Don't match SPECIAL.
691         (map_input_to_output_sections): Likewise.
692         * ldlex.l (SPECIAL): Define.
693         * emulparams/elf32ppc.sh (DATA_GOT, SDATA_GOT, SEPARATE_GOTPLT,
694         GOT, PLT, GOTPLT): Define.
695         * emultempl/ppc32elf.em (old_plt, old_got): New static vars.
696         (ppc_after_open): New function.
697         (PARSE_AND_LIST_PROLOGUE): Define OPTION_OLD_LPT and OPTION_OLD_GOT.
698         (PARSE_AND_LIST_LONGOPTS): Add "bss-plt" and "sdata-got".
699         (PARSE_AND_LIST_OPTIONS): Document them.
700         (PARSE_AND_LIST_ARGS_CASES): Handle them.
701         (LDEMUL_AFTER_OPEN): Define.
702         * scripttempl/elf.sc (PLT): Don't override existing define.
703         (DATA_GOT, SDATA_GOT): Define and use to enable alternate got
704         placement rather than using NO_SMALL_DATA.  Emit GOTPLT for RELRO_NOW.
706 2005-05-10  Alan Modra  <amodra@bigpond.net.au>
708         * scripttempl/elf.sc (DATA_SEGMENT_RELRO_GOTPLT_END): Delete.
709         (DATA_SEGMENT_RELRO_END): Use SEPARATE_GOTPLT value.
710         (GOTPLT): Remove DATA_SEGMENT_RELRO_GOTPLT_END.  Place after
711         DATA_SEGMENT_RELRO_END in script.
713 2005-05-09  H.J. Lu  <hongjiu.lu@intel.com>
715         * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
716         Don't use a removed section.
718 2005-05-09  H.J. Lu  <hongjiu.lu@intel.com>
720         * ldmain.c (reloc_overflow): Use output_bfd if the symbol
721         is defined in the ABS section.
723 2005-05-06  H.J. Lu  <hongjiu.lu@intel.com>
725         * emultempl/elf32.em (gld${EMULATION_NAME}_provide_init_fini_syms):
726         Put back !link_info.relocatable.
728 2005-05-06  H.J. Lu  <hongjiu.lu@intel.com>
730         PR 878
731         * emultempl/elf32.em (gld${EMULATION_NAME}_provide_init_fini_syms):
732         Just check link_info.executable.
734 2005-05-06  Nick Clifton  <nickc@redhat.com>
736         * Update the address and phone number of the FSF organization in
737         the GPL notices in the following files:
738         aclocal.m4, deffile.h, deffilep.y, fdl.texi, ld.h, ldcref.c,
739         ldctor.c, ldctor.h, ldemul.c, ldexp.c, ldexp.h, ldfile.c,
740         ldfile.h, 20ldgram.y, ldint.texinfo, ldlang.c, ldlang.h, ldlex.h,
741         ldlex.l, ldmain.c, ldmain.h, ldmisc.c, ldmisc.h, ldver.c, ldver.h,
742         ldwrite.c, ldwrite.h, lexsup.c, mri.c, mri.h, pe-dll.c, pe-dll.h,
743         sysdep.h, emultempl/aix.em, emultempl/alphaelf.em,
744         emultempl/armcoff.em, emultempl/armelf.em, emultempl/beos.em,
745         emultempl/crxelf.em, emultempl/elf32.em, emultempl/generic.em,
746         emultempl/gld960.em, emultempl/gld960c.em, emultempl/hppaelf.em,
747         emultempl/ia64elf.em, emultempl/irix.em,  emultempl/linux.em,
748         emultempl/lnk960.em, emultempl/m68hc1xelf.em,
749         emultempl/m68kcoff.em, emultempl/m68kelf.em,
750         emultempl/mipsecoff.em, emultempl/mmix-elfnmmo.em,
751         emultempl/mmixelf.em, emultempl/mmo.em, emultempl/needrelax.em,
752         emultempl/pe.em, emultempl/ppc32elf.em, emultempl/ppc64elf.em,
753         emultempl/sh64elf.em, emultempl/sunos.em, emultempl/ticoff.em,
754         emultempl/vanilla.em, emultempl/xtensaelf.em
756 2005-05-05  H.J. Lu  <hongjiu.lu@intel.com>
758         * scripttempl/elf.sc: Document the usage of __bss_start.
760 2005-05-05  Paul Brook  <paul@codesourcery.com>
762         * Makefile.am: Add eelf_i386_vxworks.
763         * Makefile.in: Regenerate.
764         * configure.tgt: Make i?86-*-vxworks use targ_emul=elf_i386_vxworks.
765         * emulparams/elf_i386_vxworks.sh: New file.
766         * emulparams/vxworks.sh: New file.
767         * scripttempl/elf.sc: Add DATA_END_SYMBOLS and ETEXT_NAME.
769 2005-05-04  H.J. Lu  <hongjiu.lu@intel.com>
771         * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
772         Call _bfd_elf_provide_section_bound_symbols.
774 2005-05-04  Alan Modra  <amodra@bigpond.net.au>
776         * ldemul.c: Include bfdlink.h.
777         (ldemul_before_allocation): Assume before_allocation is non-zero.
778         (before_allocation_default): Call strip_excluded_output_sections.
779         * ldlang.c (stripped_excluded_sections): New variable.
780         (lang_add_section): Build input section list for each output
781         section, attached via map_head and map_tail pointers.
782         (strip_excluded_output_sections): Make global.  Traverse the
783         input section lists to find which output sections can go.  Clear
784         link_order pointers and set stripped_excluded_sections.
785         (lang_process): Call strip_excluded_output_sections.
786         * ldlang.h (strip_excluded_output_sections): Declare.
787         * ldwrite.c: Update throuhout for link_order_head -> map_head change.
788         * emultempl/aix.em (before_allocation): Call
789         strip_excluded_output_sections.
790         * emultempl/armcoff.em (before_allocation): Likewise.
791         * emultempl/beos.em (before_allocation): Likewise.
792         * emultempl/linux.em (before_allocation): Likewise.
793         * emultempl/pe.em (before_allocation): Likewise.
794         * emultempl/sunos.em (before_allocation): Likewise.
795         * emultempl/elf32.em (before_allocation): Likewise.  Call
796         bfd_elf_size_dynsym_hash_dynstr too.
797         * emultempl/lnk960.em (lnk960_before_allocation): Delete.
798         (ld_lnk960): Use before_allocation_default.
800 2005-05-02  H.J. Lu  <hongjiu.lu@intel.com>
802         * emultempl/elf32.em (gld${EMULATION_NAME}_strip_empty_section):
803         Updated for bfd_section_list_remove change.
804         * ldlang.c (lang_insert_orphan): Likewise.
805         (strip_excluded_output_sections): Likewise.
806         (sort_sections_by_lma): New.
807         (lang_check_section_addresses): Sort the sections before
808         checking addresses.
810 2005-04-29  Ralf Corsepius <ralf.corsepius@rtems.org>
812         * configure.tgt: Add h8300*-*-rtemscoff.
813         Switch h8300*-*-rtems* to elf.
815 2005-04-29  Ben Elliston  <bje@au.ibm.com>
817         * ldgram.y (lang_memory_region_type): Make static.
818         (ldgram_want_filename): Likewise.
819         * ldemul.c (ld_emulation): Make static.
820         * ldfile.h (ldfile_find_command_file): Remove extern.
821         * ldfile.c (ldfile_find_command_file): Make static.
822         * ldlang.h (unique_section_list): Remove extern declaration.
823         * ldlang.c (unique_section_list): Make static.
824         * mri.h (symbol_truncate): Remove extern declaration.
825         * mri.c (symbol_truncate): Make static.
826         (order, only_load, address, alias): Likewise.
827         (alignment, subalignment): Likewise.
829 2005-04-27  H.J. Lu  <hongjiu.lu@intel.com>
831         * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
832         Use the first SEC_ALLOC section which isn't SEC_READONLY or the
833         last SEC_ALLOC section if such a section doesn't exist.
835 2005-04-24  Mark Kettenis  <kettenis@gnu.org>
837         * configure.host: Add *-*-openbsd support.
839 2005-04-15  Julian Brown  <julian@codesourcery.com>
841         * ld.texinfo: Document --use-blx.
842         * emultempl/armelf.em (use_blx): New variable.
843         (arm_elf_create_output_section_statements): Communicate value of
844         use_blx to bfd.
845         (PARSE_AND_LIST_PROLOGUE): Add OPTION_USE_BLX.
846         (PARSE_AND_LIST_OPTIONS): Add --use-blx option.
847         (PARSE_AND_LIST_ARGS_CASES): Add OPTION_USE_BLX case.
849 2005-04-14  Alan Modra  <amodra@bigpond.net.au>
851         * Makefile.am (NO_WERROR): Define.  Use instead of -Wno-error.
852         * configure.in: Include ../bfd/warning.m4 contents.
853         * Makefile.in: Regenerate.
854         * configure: Regenerate.
856 2005-04-12  Alan Modra  <amodra@bigpond.net.au>
858         * Makefile.am: Run "make dep-am".
859         (ldgram.o, ldlex.o, deffilep.o): Add -Wno-error to command.
860         * Makefile.in: Regenerate.
861         * config.in: Regenerate.
863 2005-04-11  Alan Modra  <amodra@bigpond.net.au>
865         * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed): Ignore
866         as_needed libs that were not needed.
867         (gld${EMULATION_NAME}_check_needed): Likewise.
869 2005-04-07  Nick Clifton  <nickc@redhat.com>
871         * emultempl/m68kcoff.em: Include ldexp.h and ldlang.h so that
872         ldfile.h can use the lang_input_statement type.
874 2005-04-06  Jakub Jelinek  <jakub@redhat.com>
876         * ldlang.c: Formatting.
877         (walk_wild_consider_section): Remember return value from wildcardp.
878         (is_simple_wild): Use strcspn instead of 2 strpbrk calls and strlen.
879         (wild_spec_can_overlap): Use strcspn instead of strpbrk and strlen.
881 2005-04-06  Robert O'Callahan  <rocallahan@novell.com>
883         * ld.h (lean_section_userdata_type): Remove.
884         (fat_section_userdata_type): Remove file field.
885         (SECTION_USERDATA_SIZE): Remove.
886         * ldlang.c (init_os): Eliminate initialization of unused
887         lean_section_userdata_type.
889         * ldlang.h (callback_t, walk_wild_section_handler_t): New
890         typedefs.
891         (struct lang_wild_statement_struct): Add walk_wild_section_handler
892         and handler_data fields.
893         * ldlang.c (callback_t): Removed.
894         (walk_wild_consider_section, walk_wild_section_general,
895         section_iterator_callback, find_section, is_simple_wild,
896         match_simple_wild, walk_wild_section_specs1_wild0,
897         walk_wild_section_specs1_wild1, walk_wild_section_specs2_wild1,
898         walk_wild_section_specs3_wild2, walk_wild_section_specs4_wild2,
899         wild_spec_can_overlap, analyze_walk_wild_section_handler): New
900         functions.
901         (lang_add_wild): Call analyze_walk_wild_section_handler.
902         (walk_wild_section): Renamed to walk_wild_section_general and
903         created a wrapper function.
904         (section_iterator_callback_data): New typedef.
906 2005-04-04  Nick Clifton  <nickc@redhat.com>
908         * configure.in: Add a check for <unistd.h> providing a prototype
909         for getopt() which is compatible with the one in
910         include/getopt.h.  If so then define HAVE_DECL_GETOPT.
911         * configure: Regenerate.
912         * config.in (HAVE_DECL_GETOPT): Add.
913         * ldemul.c: Include config.h
914         * lexsup.c: Likewise.
915         * emultempl/elf32.sc: Likewise.
917 2005-03-29  Alan Modra  <amodra@bigpond.net.au>
919         * emultempl/elf32.em (gld${EMULATION_NAME}_layout_sections_again):
920         New function, extracted from static void gld${EMULATION_NAME}_finish.
921         (gld${EMULATION_NAME}_strip_empty_sections): Likewise.
922         (gld${EMULATION_NAME}_provide_init_fini_syms): Likewise.
923         * emultempl/ppc64elf.em: Revert last change.
924         (ppc_layout_sections_again): Use
925         gld${EMULATION_NAME}_layout_sections_again.
926         (ppc_finish): Don't call gld${EMULATION_NAME}_finish.  Instead call
927         gld${EMULATION_NAME}_strip_empty_sections and
928         gld${EMULATION_NAME}_provide_init_fini_syms.
929         * emultempl/hppaelf.em: Similarly.
931 2005-03-29  Alan Modra  <amodra@bigpond.net.au>
933         * emultempl/ppc64elf.em (need_laying_out): Delete.  Remove all refs.
934         (ppc_finish): Don't call bfd_elf_discard_info.
935         * emultempl/hppaelf.em: Similarly.
937 2005-03-24  Nick Clifton  <nickc@redhat.com>
939         * po/fr.po: Updated French translation.
941 2005-03-23  Mike Frysinger  <vapier@gentoo.org>
942             Nick Clifton  <nickc@redhat.com>
944         * configure.host: Accept any C library to accompany a GNU Linux
945         implementation, not just the GNU C library.
946         * configure.tgt: Likewise.
947         * emultempl/elf32.em: Likewise.
949 2005-03-22  H.J. Lu  <hongjiu.lu@intel.com>
951         * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols): New
952         (gld${EMULATION_NAME}_finish): Call
953         gld${EMULATION_NAME}_provide_bound_symbols to provide
954         __preinit_array_start, __preinit_array_end, __init_array_start,
955         __init_array_end, __fini_array_start and __fini_array_end.
957         * scripttempl/elf.sc: Don't provide __preinit_array_start,
958         __preinit_array_end, __init_array_start, __init_array_end,
959         __fini_array_start nor __fini_array_end.
961 2005-03-23  Alan Modra  <amodra@bigpond.net.au>
963         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Set
964         SEC_EXCLUDE on .gnu.warning sections.
966 2005-03-22  Alan Modra  <amodra@bigpond.net.au>
968         * scripttempl/elf.sc (SBSS): Don't provide sbss start and end syms.
970 2005-03-21  Alan Modra  <amodra@bigpond.net.au>
972         * emultempl/ppc32elf.em (gld${EMULATION_NAME}_after_allocation): New
973         function.
974         (LDEMUL_AFTER_ALLOCATION): Define.
976 2005-03-21  Alan Modra  <amodra@bigpond.net.au>
978         * emultempl/ppc64elf.em (ppc_finish): Rename from
979         gld${EMULATION_NAME}_finish.  Call gld${EMULATION_NAME}_finish.
980         (LDEMUL_FINISH): Update.
981         * emultempl/hppaelf.em (hppaelf_finish, LDEMUL_FINISH): Likewise.
982         * emultempl/m68hc1xelf.em (m68hc11elf_finish, LDEMUL_FINISH): Likewise.
984 2005-03-18  Julian Brown  <julian@codesourcery.com>
986         * scripttempl/armbpapi.sc (.rel.dyn): Add .rel.init_array,
987         .rel.fini_array.
988         (.rela.dyn): Add .rela.init_array, .rela.fini_array.
989         (SECTIONS): Add .rel.other, .rela.other, .reli.other after PLT relocs.
991 2005-03-18  H.J. Lu  <hongjiu.lu@intel.com>
993         * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Don't set
994         bfd_section when removing unused empty output sections for
995         non-relocatable link.
997 2005-03-19  Alan Modra  <amodra@bigpond.net.au>
999         * ldlang.c (lang_insert_orphan): Use old section_tail rather than
1000         traversing the bfd section list to find pointer to new section.
1002 2005-03-18  Alan Modra  <amodra@bigpond.net.au>
1004         * scripttempl/elf.sc: When CREATE_SHLIB, put .sdata2 and .sbss2
1005         input sections into .sdata and .sbss output respectively.
1007 2005-03-16  David Heine  <dlheine@tensilica.com>
1008             Bob Wilson  <bob.wilson@acm.org>
1010         * ldlang.c (IGNORE_SECTION): Remove check for zero size.
1011         (lang_check_section_addresses): Ignore zero size sections here.
1013 2005-03-16  H.J. Lu  <hongjiu.lu@intel.com>
1015         * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Remove
1016         unused empty output sections for non-relocatable link.
1018         * ld.h (args_type): Remove gc_sections.
1020         * ldlang.c (lang_mark_used_section): New.
1021         (lang_gc_sections): Use link_info.gc_sections instead of
1022         command_line.gc_sections.
1023         * ldmain.c (main): Likewise.
1024         * lexsup.c (parse_args): Likewise.
1025         * ldlang.c (lang_process): Call lang_mark_used_section.
1027         * ldmain.c (main): Initialize link_info.gc_sections to FALSE.
1029 2005-03-16  Nick Clifton  <nickc@redhat.com>
1030             Ben Elliston  <bje@au.ibm.com>
1032         * configure.in (werror): New switch: Add -Werror to the
1033         compiler command line.  Enabled by default.  Disable via
1034         --disable-werror.
1035         * configure: Regenerate.
1037 2005-03-16  Alan Modra  <amodra@bigpond.net.au>
1039         * emulparams/elf32ppclinux.sh (OTHER_READWRITE_SECTION): Delete.
1040         (OTHER_RELRO_SECTIONS): Set this instead.
1042 2005-03-15  Nick Clifton  <nickc@redhat.com>
1044         * NEWS: Add cutoff for changes in 2.16 release.
1046 2005-03-15  Mikkel Krautz  <krautz@gmail.com>
1048         * configure.tgt (x86_64-elf): Add target.
1050 2005-03-15  Alan Modra  <amodra@bigpond.net.au>
1052         * po/es.po: Commit new Spanish translation.
1054 2005-03-14  Alan Modra  <amodra@bigpond.net.au>
1056         * ldexp.c (exp_fold_tree): Ensure return value is initialized.
1057         Tidy etree_assert case.
1059 2005-03-14  Alan Modra  <amodra@bigpond.net.au>
1061         * po/tr.po: Commit new Turkish translation.
1063 2005-03-11  Daniel Jacobowitz  <dan@codesourcery.com>
1065         * Makefile.am: Remove references to em68klynx.o and esparclynx.o.
1066         * Makefile.in: Regenerated.
1067         * emulparams/m68klynx.sh, emulparams/sparclynx.sh: Remove.
1069 2005-03-07  Nick Clifton  <nickc@redhat.com>
1071         * po/fr.po: Updated translation.
1073 2005-03-05  Alan Modra  <amodra@bigpond.net.au>
1075         * po/ld.pot: Regenerate.
1077 2005-03-02  Jan Beulich  <jbeulich@novell.com>
1079         * ldmain.c (remove_output): Use unlink_if_ordinary instead of unlink.
1080         * pe-dll.c (pe_dll_generate_implib): Likewise.
1082 2005-02-24  Ben Elliston  <bje@au.ibm.com>
1084         * ldfile.c: Remove GNU960 conditional code.
1085         * emultempl/gld960.em: Likewise.
1086         * emultempl/gld960c.em: Likewise.
1087         * emultempl/lnk960.em: Likewise.
1089 2005-02-24  Nick Clifton  <nickc@redhat.com>
1091         * emultempl/lnk960.em (lnk960_before_parse): Remove redundant
1092         empty string from calls to concat.
1094 2005-02-23  Nick Clifton  <nickc@redhat.com>
1096         * emultempl/lnk960.em (lnk960_before_parse): Terminate list of
1097         arguments passed to concat() with a NULL.
1099         * emultempl/m68kcoff.em: Include ldexp.h and ldlang.h because they
1100         define types needed by ldfile.h
1102 2005-02-23  Alan Modra  <amodra@bigpond.net.au>
1104         * pe-dll.c: Warning fixes.
1105         * emultempl/sunos.em: Likewise.
1107 2005-02-22  Daniel Jacobowitz  <dan@codesourcery.com>
1109         * ldlang.c (section_already_linked): Don't call
1110         bfd_section_already_linked for dynamic objects.
1112 2005-02-22  Alan Modra  <amodra@bigpond.net.au>
1114         * ldexp.c: Warning fixes.
1115         * ldwrite.c: Likewise.
1116         * emultempl/elf32.em: Likewise.
1118 2005-02-21  H.J. Lu  <hongjiu.lu@intel.com>
1120         * ldlang.c (lang_add_section): Check SEC_TIC54X_BLOCK for TI
1121         tic54x input only.
1122         (lang_size_sections_1): Check SEC_COFF_SHARED_LIBRARY for COFF
1123         and ECOFF output only.
1125 2005-02-21  Alan Modra  <amodra@bigpond.net.au>
1127         * config.in: Regenerate.
1128         * configure: Regenerate.
1130 2005-02-17  Zack Weinberg  <zack@codesourcery.com>
1132         * ldexp.c (assigning_to_dot): New global flag.
1133         (fold_name): If assigning_to_dot is true, object immediately to
1134         an undefined symbol.
1135         (exp_fold_tree): Set and clear assigning_to_dot around the
1136         recursive call to exp_fold_tree to process the right-hand side
1137         of an assignment to the location counter.
1139 2005-02-17  Paul Brook  <paul@codesourcery.com>
1141         * scripttempl/armbpabi.sc: Add dummy name to version block.
1143 2005-02-17  Alan Modra  <amodra@bigpond.net.au>
1145         * ldexp.c (new_abs): Init new.str.
1147 2005-02-15  Mark Mitchell  <mark@codesourcery.com>
1149         * configure.in (AC_CHECK_FUNCS): Add glob.
1150         * configure: Regenerated.
1151         * emultempl/elf32.em (<glob.h>): Do not include if HAVE_GLOB is
1152         not defined.
1153         (gld${EMULATION_NAME}_parse_ld_so_conf_include): Do not use glob
1154         if HAVE_GLOB is not defined.
1156 2005-02-16  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1158         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Define
1159         lib_path if NATIVE is yes.
1161 2005-02-16  Alan Modra  <amodra@bigpond.net.au>
1163         * emultempl/ppc64elf.em (ppc_create_output_section_statements): Make
1164         an error creating fake bfd fatal.
1165         (ppc_before_allocation): Continue on after errors.
1166         (gld${EMULATION_NAME}_finish): Likewise.
1168 2005-02-15  Nick Clifton  <nickc@redhat.com>
1170         * ldlex.l (YY_NO_UNPUT): Define so that the yy_unput function is
1171         not declared.  It is not used and its presence causes a compile
1172         time warning.
1174 2005-02-11  Zack Weinberg  <zack@codesourcery.com>
1176         * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed):
1177         If st.st_ino is zero, do not treat the library as a duplicate.
1179 2005-02-10  Jakub Jelinek  <jakub@redhat.com>
1181         * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
1182         Set BFD_LINKER_CREATED on the stubs bfd.
1183         * emultempl/ppc64elf.em (ppc_create_output_section_statements):
1184         Likewise.
1186 2005-02-08  Mark Mitchell  <mark@codesourcery.com>
1188         * scripttempl/armbpabi.sc (VERSION): Make special section symbols
1189         local.
1190         (Image$$ER_RO$$Base): Define whenever RELOCATING.
1191         (Image$$ER_RO$$Limit): Likewise.
1192         (SHT$$INIT_ARRAY$$Base): Likewise.
1193         (SHT$$INIT_ARRAY$$Limit): Likeise.
1195 2005-02-10  Ben Elliston  <bje@au.ibm.com>
1197         * emultempl/beos.em: Remove #if 0 and #if 1 blocks.
1199 2005-02-08  Richard Sandiford  <rsandifo@redhat.com>
1201         * configure.tgt (mips64*el-*-linux-gnu*): Define targ_extra_libpath
1202         to include o32 and n64 emulations.
1203         (mips64*-*-linux-gnu*): Likewise.
1205 2005-02-08  Hans-Peter Nilsson  <hp@axis.com>
1207         * ldmain.c (warning_callback, warning_find_reloc): Prepend
1208         "warning: " to warning messages.
1210 2005-02-04  Alan Modra  <amodra@bigpond.net.au>
1212         * emultempl/elf32.em (gld${EMULATION_NAME}_find_exp_assignment): Don't
1213         look up symbol for etree_provide here.
1215 2005-02-02  Daniel Jacobowitz  <dan@codesourcery.com>
1217         * emulparams/elf32bmip.sh (TEXT_DYNAMIC): Always set.
1219 2005-02-01  Edward Welbourne  <eddy@opera.com>
1220             Nick Clifton  <nickc@redhat.com>
1222         * ld.texinfo (Source Code Reference): New node describing how to
1223         access linker script defined variables from source code.
1225 2005-02-01  Alan Modra  <amodra@bigpond.net.au>
1227         * ld.texinfo: Clarify --as-needed operation.
1229 2005-01-31  Andrew Cagney  <cagney@gnu.org>
1231         * configure: Regenerate to track ../gettext.m4.
1233 2005-01-31  Nick Clifton  <nickc@redhat.com>
1235         * ldver.c (ldversion): Bump reported copyright date to 2005.
1237 2005-01-31  Nick Clifton  <nickc@redhat.com>
1239         * configure.tgt: Remove obsolete targets m68k-lynxos and
1240         sparc-lynxos.
1242 2005-01-28  Julian Brown  <julian@codesourcery.com>
1244         * emultempl/armelf.em (fix_v4bx): New variable.
1245         (arm_elf_create_output_section_statements): Communicate fix_v4bx flag
1246         value to bfd.
1247         (PARSE_AND_LIST_PROLOGUE): Add option token OPTION_FIX_V4BX.
1248         (PARSE_AND_LIST_LONGOPTS): Add option --fix-v4bx.
1249         (PARSE_AND_LIST_OPTIONS): Add option --fix-v4bx.
1250         (PARSE_AND_LIST_ARGS_CASES): Add option OPTION_FIX_V4BX.
1251         * NEWS: Mention --fix-v4bx.
1252         * ld.texinfo: Document --fix-v4bx.
1254 2005-01-25  Mark Mitchell  <mark@codesourcery.com>
1256         * emulparams/armsymbian.sh (OTHER_READONLY_SECTIONS): Define, so
1257         as to include .ARM.exidx$${Base,Limit}.
1258         * ld/scripttempl/armbpabi.sc: Move .plt to end of text segment.
1259         Define IMAGE$$ER_RO$${Base,Limit} and SHT$$INIT_ARRAY$${Base,Limit}.
1260         Put .init_array, .fini_array, etc. into the read-only data
1261         segment.
1263 2005-01-25  Alan Modra  <amodra@bigpond.net.au>
1265         * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Formatting.
1266         (gld${EMULATION_NAME}_after_open): Ignore needed libs if they were
1267         only needed by an as-needed lib that didn't get linked.
1269 2005-01-23  Alan Modra  <amodra@bigpond.net.au>
1271         * ld.texinfo (Output Section Keywords <CONSTRUCTORS>): Correct
1272         __DTOR_LIST__ description.
1274 2005-01-23  Alan Modra  <amodra@bigpond.net.au>
1276         * ld.texinfo (Location Counter <dot outside sections>): Document
1277         effects of orphan section placement, and ". = ." workaround.
1278         * Makefile.in: Regenerate.
1280 2005-01-22  Richard Sandiford  <rsandifo@redhat.com>
1282         * emulparams/elf32bmip.sh (OTHER_GOT_SECTIONS): Add ". = .;".
1283         * emulparams/elf32bmipn32-defs.sh (OTHER_GOT_SECTIONS): Likewise.
1285 2005-01-21  Jakub Jelinek  <jakub@redhat.com>
1287         * ldgram.y (AS_NEEDED): New token.
1288         (input_list): Handle AS_NEEDED ( input_list ).
1289         * ldlex.l (AS_NEEDED): Add.
1290         * ld.texinfo: Document AS_NEEDED ().
1291         * NEWS: Mention AS_NEEDED ().
1293 2005-01-21  Ben Elliston  <bje@au.ibm.com>
1295         * ldlang.c (lang_reasonable_defaults): Remove.
1296         (lang_process): Don't call lang_reasonable_defaults.
1298         * ldexp.c (exp_assop): Remove #if 0'd code.
1299         (exp_print_tree): Likewise.
1300         * ldlang.c (lang_memory_region_lookup): Likewise.
1301         (open_output): Likewise.
1302         (lang_do_assignments_1): Likewise.
1303         (lang_place_orphans): Likewise.
1304         (lang_enter_output_section_statement): Likewise.
1305         (lang_reasonable_defaults): Likewise.
1306         * ldlang.h (struct lang_input_statement_struct): Likewise.
1307         * mri.c (mri_draw_tree): Likewise.
1308         (mri_load): Likewise.
1309         * pe-dll.c (generate_reloc): Likewise.
1310         (make_import_fixup_entry): Likewise.
1311         (pe_as16): Likewise.
1312         * emultempl/beos.em (set_pe_subsystem): Likewise.
1313         * emultempl/hppaelf.em (hppaelf_after_parse): Likewise.
1314         * emultempl/pe.em: Likewise.
1315         * emultempl/xtensaelf.em (xtensa_colocate_literals): Likewise.
1317 2005-01-20  Daniel Jacobowitz  <dan@codesourcery.com>
1319         * Makefile.am (ALL_EMULATIONS): Add earmelfb_linux_eabi.o.
1320         (earmelfb_linux_eabi.c): New target.
1321         * Makefile.in: Regenerated.
1322         * configure.tgt (arm*b-*-linux-gnueabi): New target.
1323         * emulparams/armelfb_linux_eabi.sh: New file.
1325 2005-01-20  Nick Hudson  <skrll@netbsd.org>
1327         PR ld/676
1328         * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
1329         Handle bfd_elf32_hppa_nbsd_vec.
1331 2005-01-19  Richard Sandiford  <rsandifo@redhat.com>
1333         * ldmain.h (ld_sysroot): Change type to a constant string.
1334         * ldmain.c (ld_sysroot): Likewise.
1335         (get_relative_sysroot, get_sysroot): New functions, adding command-line
1336         support for changing the sysroot.
1337         (main): Call the new functions.
1338         * lexsup.c (OPTION_SYSROOT): New.
1339         (ld_options): Add --sysroot.
1340         (parse_args): Add a dummy handler for it.
1341         * ld.texinfo (--sysroot): Document.
1342         * NEWS: Mention the new --sysroot option.
1344 2005-01-18  Alan Modra  <amodra@bigpond.net.au>
1346         * ldlang.c (section_already_linked): Adjust bfd_link_just_syms call.
1347         (lang_place_orphans): Don't abort on just_syms_flag, instead call
1348         bfd_link_just_syms.
1350 2005-01-16  Danny Smith  <dannysmith@users.sourceforge.net>
1352         * defilep.y (def_name, def_library): Combine into...
1353         (def_image_name): New function.  Strip name to basename,
1354         with warning.
1356 2005-01-12  Mark Kettenis  <kettenis@gnu.org>
1358         * configure.in: Be sure to invoke config.sub using the shell.
1359         * configure: Regenerate.
1361 2005-01-11  Alan Modra  <amodra@bigpond.net.au>
1363         * configure.host: Correct sed patterns for last change.
1365 2005-01-10  Nick Clifton  <nickc@redhat.com>
1367         PR binutils/609
1368         * ldmisc.c (vfinfo): Add an extra argument: is_warning.  Use this
1369         to determine whether config.make_executable should be set to FALSE in
1370         conjunction with config.fatal_warnings.
1371         (info_msg, minfo, lfinof): Pass FALSE as the extra argument.
1372         (einfo): Pass TRUE as the extra argument.
1374 2005-01-10  Greg Schaffer  <gschafer@zip.com.au>
1376         * configure.host (linux targets): Use "${CC} -dumpspecs" instead
1377         of "${CC} --print-file-name=specs" to appease GCC versions >= 4.0.
1378         (ia64-*-aix): Delete - this target is obsolete, and would be
1379         broken by this patch.
1381 2005-01-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
1383         * configure.host (sparc*-*-solaris2*): Rename into sparc-*-solaris2*.
1384         (sparc64-sun-solaris2*): New host.
1386 2005-01-06  Paul Brook  <paul@codesourcery.com>
1388         * Makefie.am: Add earmelf_vxworks.
1389         * Makefile.in: Regenerate.
1390         * configure.tgt: Make arm-*-vxworks a separate case.
1391         * emulparams/armelf_vxworks.sh: New function.
1393 2005-01-06  Alan Modra  <amodra@bigpond.net.au>
1395         * emultempl/ppc64elf.em (no_multi_toc): New var.
1396         (gld${EMULATION_NAME}_finish): Pass to ppc64_elf_setup_section_lists.
1397         (OPTION_NO_MULTI_TOC): Define.
1398         (PARSE_AND_LIST_LONGOPTS): Add --no-multi-toc support.
1399         (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Likewise.
1401 2005-01-05  Nick Clifton  <nickc@redhat.com>
1403         PR binutils/614
1404         * ldmisc.c (vfinfo): Alter output to conform to the GNU Coding
1405         Standard's specification for parsable error messages.
1407 2005-01-04  Paul Brook  <paul@codesourcery.com>
1409         * Makefile.am: Correct dependency for earmsymbian.c.
1410         * Makefile.in: Regenerate.
1412 2004-12-28  Danny Smith  <dannysmith@users.sourceforge.net>
1414         * emultempl/pe.em (set_pe_subsystem): Change second arg to
1415         lang_add_entry to FALSE.
1417 2004-12-23  Nick Clifton  <nickc@redhat.com>
1419         PR 600
1420         * emulparams/shelf.sh (.stack): Increase stack start address to
1421         0x300000.
1423 2004-12-20  Nick Clifton  <nickc@redhat.com>
1425         * ldmain.c (main): Issue an error message if -static and -shared
1426         are used together.
1428 2004-12-17  Jakub Jelinek  <jakub@redhat.com>
1430         * ldexp.h (exp_data_seg): Add min_base and maxpagesize fields.
1431         * ldexp.c (fold_binary) <case DATA_SEGMENT_ALIGN>: Initialize them.
1432         * ldlang.c (lang_size_sections): Use them to avoid wasting virtual
1433         address space at DATA_SEGMENT_ALIGN.  Fix computation of expected
1434         PT_GNU_RELRO segment end.
1436 2004-12-14  P.J. Darcy  <darcypj@us.ibm.com>
1438         * configure.tgt: Add s390x-ibm-tpf support.
1440 2004-12-16  Martin Kögler  <mkoegler@auto.tuwien.ac.at>
1442         * ldmisc.c (vfinfo): Handle the case where %B is passed a NULL
1443         BFD.
1445 2004-12-07  Ben Elliston  <bje@gnu.org>
1447         * ldemul.h: Forward declare struct option.
1449 2004-12-01  Danny Smith  <dannysmith@users.sourceforge.net>
1451         * scripttempl/pe.sc (.data): Add .jcr subsection.
1453 2004-11-30  Paul Brook  <paul@codesourcery.com>
1455         * emultempl/armelf.em: Ignore -p and -no-pipeline-knowledge.
1457 2004-11-30  Tero Niemela  <tero_niemela@yahoo.com>
1459         * Makefile.am: Change LOCALEDIR to $(datadir)/share.
1460         * Makefile.in: Regenerate.
1462 2004-11-26  Melissa Mears  <asterisk@graces.dricas.com>
1464         * emultempl/pe.em: Add --subsystem:xbox as well as
1465         --subsystem:%d.
1466         * ld.texinfo: (ld_options): Document acceptance of subsystem xbox
1467         and numeric subsystems.
1469 2004-11-24  Alan Modra  <amodra@bigpond.net.au>
1471         * ldexp.c (fold_name): Correct PR 338 fix.
1473 2004-11-19  Mark Mitchell  <mark@codesourcery.com>
1475         * Makefile.am (ALL_EMULATIONS): Add earmelf_linux_eabi.o.
1476         (earmelf_linux_eabi.c): New target.
1477         * configure.tgt (arm*-*-linux-gnueabi): Handle it.
1478         * emulparams/armelf_linux_eabi.sh: New file.
1479         * Makefile.in: Regenerated.
1481 2004-11-19  Nick Clifton  <nickc@redhat.com>
1483         PR 518
1484         * ld.texinfo (MEMORY): Update the descriptions of the ORIGIN and
1485         LENGTH fields in the MEMORY command, to explicitly state that
1486         symbols cannot be used in their expressions.
1488 2004-11-19  Jon Beniston <jon@beniston.com>
1490         * ld/ldlex.l: Allow ORIGIN and LENGTH in EXPRESSION.
1491         * ld/ldgram.y: Add ORIGIN and LENGTH expressions.
1492         * ld/ldexp.c (fold_name): Implement LENGTH() and ORIGIN() functions
1493         which return the length and origin of a memory.
1494         * ld/ld.texinfo: Document LENGTH() and ORIGIN() functions.
1495         * NEWS: Mention support for ORIGIN and LENGTH operators.
1497 2004-11-17  Daniel Jacobowitz  <dan@codesourcery.com>
1499         * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Don't use
1500         a dynamic object for stubs.
1502 2004-11-04  Paul Brook  <paul@codesourcery.com>
1504         * ld.texinfo: Document --default-imported-symver.
1505         * ldmain.c (main): Set link_info.default_imported_symver.
1506         * lexsup.c (option_values): Add OPTION_DEFAULT_IMPORTED_SYMVER.
1507         (ld_options): Add --default-imported-symver.
1508         (parse_args): Handle OPTION_DEFAULT_IMPORTED_SYMVER.
1510 2004-11-08  Inderpreet Singh   <inderpreetb@nioda.hcltech.com>
1511             Vineet Sharma      <vineets@noida.hcltech.com>
1513         * Makefile.am: Add entries for new maxq-coff target.
1514         * Makefile.in: Regenerate.
1515         * configure.tgt: Add support for maxq.
1516         * emulparams/maxqcoff.sh: New File.
1517         * scripttempl/maxqcoff.sc: New linker script for target maxq.
1518         * NEWS: Mention the new target.
1520 2004-11-04  Daniel Jacobowitz  <dan@debian.org>
1522         * Makefile.am (ALL_EMULATIONS): Remove earmelf_oabi.o.
1523         (earmelf_oabi.c): Remove rule.
1524         * configure.tgt: Remove arm-*-oabi and thumb-*-oabi.
1525         * emulparams/armelf_oabi.sh, emultempl/armelf_oabi.em: Delete files.
1526         * Makefile.in: Regenerated.
1528 2004-11-04  Hans-Peter Nilsson  <hp@axis.com>
1530         * configure.tgt (crisv32-*-*): Handle like cris-*-* for non-aout.
1531         * emulparams/criself.sh (INIT_START): Remove emitted "push srp".
1532         (FINI_START): Ditto.
1533         (INIT_END): Remove emitted "jump [sp+]".
1534         (FINI_END): Ditto.
1536 2004-11-04  Alan Modra  <amodra@bigpond.net.au>
1538         * emultempl/ppc64elf.em (no_tls_opt): Rename from notlsopt.
1539         (no_opd_opt, no_toc_opt): New static vars.
1540         (ppc_before_allocation): Don't edit opt if no_opd_opt.  Call
1541         ppc64_elf_edit_toc.
1542         (OPTION_NO_OPD_OPT, OPTION_NO_TOC_OPT): Define.
1543         (PARSE_AND_LIST_LONGOPTS): Add no-opd-optimize and no-toc-optimize.
1544         (PARSE_AND_LIST_OPTIONS): Describe new options.
1545         (PARSE_AND_LIST_ARGS_CASES): Handle them.
1547 2004-10-27  Nick Clifton  <nickc@redhat.com>
1549         * emultempl/alphaelf.em (alpha_after_parse): Add extra, NULL,
1550         parameter to invocation of lang_section_start.
1551         * emultempl/aix.em (_handle_option): Likewise.
1553         * Makefile.am (eelf64alpha.c, eelf64alpha_fbsd.c,
1554         eelf64alpha_nbsd.c): Add dependency upon emultempl/alphaelf.em.
1555         * Makefile.in: Regenerate.
1557 2004-10-26  Mark Mitchell  <mark@codesourcery.com>
1559         * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Do not emit
1560         __exidx_{start,end} when not relocating.
1562 2004-10-25  Mark Mitchell  <mark@codesourcery.com>
1564         * Makefile.in (earmsymbian.c): Depend on armbpabi.sc, not elf.sc.
1565         * ldexp.h (segment_type): New type.
1566         (segments): New variable.
1567         * ldexp.c (segments): New variable.
1568         (exp_print_token): Handle SEGMENT_START.
1569         (fold_binary): Likewise.
1570         * ldgram.y (SEGMENT_START): Declare it as a token.
1571         (exp): Handle SEGMENT_START.
1572         * ldlang.h (lang_address_statement_type): Add segment field.
1573         (lang_section_start): Change prototype.
1574         * ldlang.c (map_input_to_output_sections): Do not process section
1575         assignments if a corresponding SEGMENT_START has already been
1576         seen.
1577         (lang_section_start): Add segment parameter.
1578         * ldlex.l (SEGMENT_START): Add it.
1579         * lexsup.c (seg_segment_start): New function.
1580         (parse_args): Use it for -Tbss, -Tdata, and -Ttext.
1581         * ld.texinfo (SEGMENT_START): Document it.
1582         * emulparams/armsymbian.sh (EMBEDDED): Set it.
1583         * scripttempl/armbpabi.sc: Use SEGMENT_START to control segment
1584         base addresses.  Do not map relocations.
1585         * NEWS: Mention SEGMENT_START.
1587 2004-10-26  Paul Brook  <paul@codesourcery.com>
1589         * ld.texinfo: Document --default-symver.
1590         * ldmain.c (main): Set link_info.create_default_symver.
1591         * lexsup.c (enum option_values): Add OPTION_DEFAULT_SYMVER.
1592         (ld_options): Add default-symver.
1593         (parse_args): Handle OPTION_DEFAULT_SYMVER.
1595 2004-10-24 Danny Smith  <dannysmith@users.sourceforge.net>
1597         * pe-dll.c (process_def_file): Don't export all symbols by default if
1598         building a position-independent executable.
1600 2004-10-21  H.J. Lu  <hongjiu.lu@intel.com>
1602         PR 463
1603         * ldmain.c (reloc_overflow): Accept a pointer to struct
1604         bfd_link_hash_entry. Report symbol location for relocation
1605         overflow.
1607 2004-10-21  H.J. Lu  <hongjiu.lu@intel.com>
1609         * genscripts.sh (libpath.exp): Really generate for first
1610         emulation only.
1612 2004-10-19  Danny Smith  <dannysmith@users.sourceforge.net>
1614         * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Simplify
1615         comparison and replacement of filenames.
1617 2004-10-19  H.J. Lu  <hongjiu.lu@intel.com>
1619         PR 459
1620         * ldlang.c (load_symbols): Use the same -Bdynamic/-Bstatic
1621         option on linker script as the one for linker script.
1623 2004-10-16  Daniel Jacobowitz  <dan@debian.org>
1625         * ldlang.c (struct excluded_lib, excluded_libs, add_excluded_libs)
1626         (check_excluded_libs): New.
1627         (load_symbols): Call check_excluded_libs.
1628         * ldlang.h (add_excluded_libs): New prototype.
1629         * emultempl/elf32.em (OPTION_EXCLUDED_LIBS): Define.
1630         (gld${EMULATION_NAME}_add_options): Add --exclude-libs.
1631         (gld${EMULATION_NAME}_handle_option): Handle --exclude-libs.
1632         * ld.texinfo (Command Line Variables): Document --exclude-libs.
1633         (Options Specific to i386 PE Targets): Remove --exclude-libs.
1635 2004-10-15  Alan Modra  <amodra@bigpond.net.au>
1637         * ldexp.c (exp_fold_tree): Don't immediately exit ld on a
1638         failing link script assert.
1640         * ldctor.c (ldctor_add_set_entry): Fix comment typo.
1642 2004-10-14  H.J. Lu  <hongjiu.lu@intel.com>
1644         PR 445
1645         * emulparams/elf64_ia64.sh (SMALL_DATA_CTOR): Set.
1646         (SMALL_DATA_DTOR): Set.
1647         * emulparams/elf64_ia64_fbsd.sh (SMALL_DATA_CTOR): Unset.
1648         (SMALL_DATA_DTOR): Unset.
1649         * scripttempl/elf.sc: If SMALL_DATA_CTOR is set, move .ctors
1650         after .data. If SMALL_DATA_DTOR is set, move .dtors after
1651         .data.
1653 2004-10-14  Alan Modra  <amodra@bigpond.net.au>
1655         PR 63
1656         * ldlang.h (lang_output_section_statement_type): Make "next" a
1657         struct lang_output_section_statement_struct *.
1658         (struct orphan_save): Move from elf32.em.  Add "name" and "flags".
1659         (lang_output_section_find_by_flags, lang_insert_orphan): Declare.
1660         * ldlang.c (lang_output_section_find_1): Adjust for changed
1661         output_section_statement "next".
1662         (strip_excluded_output_sections): Likewise.
1663         (lang_record_phdrs): Likewise.
1664         (lang_output_section_find_by_flags): New function.
1665         (output_prev_sec_find): Move from pe.em.  Adjust iterator.
1666         (lang_insert_orphan): New function.  Tail end of elf32.em's
1667         place_orphan merged with that from pe.em.  Allow bfd_section to
1668         be placed first.  New heuristic for placing new output section
1669         statement in existing script, and accompanying split of __start
1670         symbol alignment into a separate assignment to dot.
1671         (lang_add_section): Consistently use output->bfd_section rather than
1672         an alias, section->output_section.
1673         (map_input_to_output_sections): Rename overly long arg.  Move
1674         initialization of data_statement output section to here..
1675         (lang_check_section_addresses): ..from here.
1676         (print_assignment): Correct printing of etree_assert.
1677         (print_all_symbols): Don't bomb if userdata is NULL.
1678         (IGNORE_SECTION): Rearrange.
1679         * emultempl/elf32.em (output_rel_find): Adjust interator.
1680         (output_prev_sec_find): Delete.
1681         (struct orphan_save): Delete.
1682         (gld${EMULATION_NAME}_place_orphan): Cater for zero bfd_section
1683         flags without creating a duplicate output section statement.
1684         Revise code holding history of various orphan section placements.
1685         Allow orphan sections to place before script specified output
1686         sections.  Call lang_output_section_find_by_flags when placement
1687         by name fails.  Use lang_insert_orphan.
1688         * emultempl/mmo.em (output_prev_sec_find): Delete.
1689         (struct orphan_save): Delete.
1690         (mmo_place_orphan): Revise code holding history of orphan placement.
1691         Allow orphans to place before existing output sections.  Use
1692         lang_insert_orphan.
1693         * emultempl/pe.em (output_prev_sec_find): Delete.
1694         (struct orphan_save): Delete.
1695         (gld_${EMULATION_NAME}_place_orphan): Revise to suit use of
1696         lang_insert_orphan.
1698 2004-10-13  Mark Mitchell  <mark@codesourcery.com>
1700         * scripttempl/armbpabi.sc: Do not put .gnu.version.* into a
1701         loadable segment.
1703 2004-10-13  Alan Modra  <amodra@bigpond.net.au>
1705         PR 44
1706         * ldcref.c (check_section_sym_xref): Delete.
1707         (check_local_sym_xref): New function.
1708         (check_nocrossrefs): Adjust call.
1709         * emultempl/pe.em (struct orphan_save): Add os_tail.
1710         (place_orphan): Backport assorted fixes from elf32.em.
1712 2004-10-12  Bob Wilson  <bob.wilson@acm.org>
1714         * emultempl/xtensaelf.em: Use ISO C90 formatting.
1716 2004-10-11  Jakub Jelinek  <jakub@redhat.com>
1718         * emultempl/elf32.em (gld${EMULATION_NAME}_parse_ld_so_conf): Avoid
1719         getline for portability.
1721         * emultempl/elf32.em (gld${EMULATION_NAME}_ld_so_conf): New structure.
1722         (gld${EMULATION_NAME}_parse_ld_so_conf,
1723         gld${EMULATION_NAME}_parse_ld_so_conf_include): New functions.
1724         (gld${EMULATION_NAME}_check_ld_so_conf): Use them.
1726 2004-10-11  Alan Modra  <amodra@bigpond.net.au>
1728         PR 423
1729         * ldfile.c (ldfile_try_open_bfd): Ensure dynamic objects are
1730         rejected when linking statically.
1732 2004-10-08  Daniel Jacobowitz  <dan@debian.org>
1734         * configure.tgt: Include elf_x86_64 for i[3-7]86-*-solaris2*.
1736 2004-10-07  Bob Wilson  <bob.wilson@acm.org>
1738         * ld.texinfo (Xtensa): Describe new linker relaxation to optimize
1739         assembler-generated longcall sequences.  Describe new --size-opt
1740         option.
1741         * emulparams/elf32xtensa.sh (OTHER_SECTIONS): Add .xt.prop section.
1742         * emultempl/xtensaelf.em (remove_section,
1743         replace_insn_sec_with_prop_sec, replace_instruction_table_sections,
1744         elf_xtensa_after_open): New.
1745         (OPTION_OPT_SIZEOPT, OPTION_LITERAL_MOVEMENT,
1746         OPTION_NO_LITERAL_MOVEMENT): Define.
1747         (elf32xtensa_size_opt, elf32xtensa_no_literal_movement): New globals.
1748         (PARSE_AND_LIST_LONGOPTS): Add size-opt and [no-]literal-movement.
1749         (PARSE_AND_LIST_OPTIONS): Add --size-opt.
1750         (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_OPT_SIZEOPT,
1751         OPTION_LITERAL_MOVEMENT, and OPTION_NO_LITERAL_MOVEMENT.
1752         (LDEMUL_AFTER_OPEN): Set to elf_xtensa_after_open.
1753         * scripttempl/elfxtensa.sc: Update with changes from elf.sc.
1754         * Makefile.am (eelf32xtensa.c): Update dependencies.
1755         * Makefile.in: Regenerate.
1757 2004-10-07  Jeff Baker  <jbaker@qnx.com>
1759         * lexsup.c: Handle --warn-shared-textrel option.
1760         (ld_options): Restore alpha sorting of options.
1761         * ldmain.c (main): Initialise warn_shared_info field to FALSE.
1762         * ld.texinfo: Add documentation for --warn-shared-textrel.
1763         * NEWS: Added mention of --warn-shared-textrel option.
1765 2004-10-05  Tomer Levi  <Tomer.Levi@nsc.com>
1767         * emultempl/crxelf.em (disable_relaxation): Add.
1768         (crxelf_before_allocation): Enable --relax option by default.
1769         (PARSE_AND_LIST_PROLOGUE): Add OPTION_NO_RELAX.
1770         (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --no-relax.
1771         (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_NO_RELAX.
1773 2004-10-04  H.J. Lu  <hongjiu.lu@intel.com>
1775         * NEWS: Mention SORT_BY_NAME, SORT_BY_ALIGNMENT and
1776         --sort-section name|alignment.
1778         * ld.texinfo: Document SORT_BY_NAME, SORT_BY_ALIGNMENT and
1779         --sort-section name|alignment.
1781         * ld.h (sort_type): New enum.
1782         (wildcard_spec): Change the type of `sorted' to sort_type.
1784         * ldgram.y (SORT): Removed.
1785         (SORT_BY_NAME): Added.
1786         (SORT_BY_ALIGNMENT): Added.
1787         (wildcard_spec): Updated `sorted'. Handle SORT_BY_NAME and
1788         SORT_BY_ALIGNMENT.
1789         (input_section_spec_no_keep): Updated `sorted'.
1790         (statement): Replace SORT with SORT_BY_NAME.
1792         * ldlang.c (compare_section): New function to compare 2
1793         sections with different sorting schemes.
1794         (wild_sort): Updated. Use compare_section.
1795         (update_wild_statements): New function.
1796         (lang_process): Call update_wild_statements before
1797         map_input_to_output_sections.
1799         * ldlex.l (SORT_BY_NAME): New.
1800         (SORT_BY_ALIGNMENT): New.
1801         (SORT): Return SORT_BY_NAME.
1803         * ldmain.c (sort_section): New. Defined.
1804         (main): Initialize it to none.
1806         * lexsup.c (option_values): Add OPTION_SORT_SECTION.
1807         (ld_options): Add an entry for OPTION_SORT_SECTION.
1808         (parse_args): Handle OPTION_SORT_SECTION.
1810         * mri.c (mri_draw_tree): Updated `sorted'.
1812 2004-10-04  Jakub Jelinek  <jakub@redhat.com>
1814         * ldgram.y (DATA_SEGMENT_RELRO_END): Add one argument.
1815         * scripttempl/elf.sc (DATA_SEGMENT_RELRO_END): Add 0 as first
1816         argument.
1817         (DATA_SEGMENT_RELRO_GOTPLT_END): Pass $SEPARATE_GOTPLT as first
1818         and . as second argument.
1819         (GOTPLT): Move $DATA_SEGMENT_RELRO_GOTPLT_END before the section.
1820         * ldexp.c (fold_unary): Remove DATA_SEGMENT_RELRO_END handling here.
1821         (fold_binary): Add it here.  Insert padding to make relro_end
1822         COMMONPAGESIZE bytes aligned.  For DATA_SEGMENT_ALIGN in
1823         exp_dataseg_relro_adjust phase just use previously computed
1824         exp_data_seg.base.
1825         * ldlang.c (lang_size_sections): Set exp_data_seg.base for
1826         relro_adjust here.  Call lang_size_sections_1 once more if there
1827         was too big padding at DATA_SEGMENT_RELRO_END.
1828         * ld.texinfo (DATA_SEGMENT_RELRO_END): Add documentation.
1830 2004-10-01  Paul Brook  <paul@codesourcery.com>
1832         * emulparams/armelf.sh: Add unwinding table sections.
1834 2004-09-30  Filip Navara  <navaraf@reactos.com>
1836         * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Generate
1837         correct base address for position independant executables.
1838         * pe-dll.c (pe_dll_fill_sections): Don't mark position independant
1839         executables as DLLs.
1841 2004-09-30  Paul Brook  <paul@codesourcery.com>
1843         * ld.texinfo: Document --target2=abs.
1844         * emulparms/armsymbian.sh (TARGET2_TYPE): Set.
1846 2004-09-29  Nick Clifton  <nickc@redhat.com>
1848         * scripttempl/xstormy16.sc: Only perform the assignments to the
1849         ROM region when not performing a relocatable link.  The ROM region
1850         does not start at address 0, but the sections will.
1851         * Makefile.am: Fix linker script dependency for the generation of
1852         eelf32xstormy16.c.
1853         * Makefile.in: Regenerate.
1855 2004-09-18  Filip Navara  <navaraf@reactos.com>
1857         * emulparams/arm_epoc_pe.sh, emulparams/armpe.sh, emulparams/i386pe.sh,
1858         emulparams/i386pe_posix.sh, emulparams/mcorepe.sh,
1859         emulparams/mipspe.sh, emulparams/ppcpe.sh, scripttempl/pe.sc: Define
1860         TARGET_PAGE_SIZE.
1861         * scripttempl/pe.sc: Make the virtual address and file offset synced if
1862         the alignment is lower than the target page size.
1864 2004-09-27  Filip Navara  <navaraf@reactos.com>
1866         * emultempl/pe.em (gld_${EMULATION_NAME}_unrecognized_file): Allow
1867         def_file_parse to handle pe_def_file if NULL and prevent crash with
1868         invalid .def files.
1870 2004-09-27  Alan Modra  <amodra@bigpond.net.au>
1872         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Enable
1873         --emit-stub-syms automatically when --emit-relocs.
1875 2004-09-24  Paul Brook  <paul@codeosurcery.com>
1877         * scripttempl/elf.sc: Keep .preinit_array, .init_array and
1878         .fini_array sections.
1880 2004-09-19  Andreas Schwab  <schwab@suse.de>
1882         * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Adjust data segment
1883         base so that relro end is suitably aligned.
1885 2004-09-17  Paul Brook  <paul@codesourcery.com>
1887         * ld.texinfo: Rename arm-specific section.  Document --target*
1888         * emulparams/armelf_fbsd.sh: Set TARGET2_TYPE.
1889         * emulparams/armelf_linux.sh: Ditto.
1890         * emulparams/armelf_nbsd.sh: Ditto.
1891         * emultempl/armelf.em: Set default for TARGET2_TYPE.
1892         (target2_type): New variable.
1893         (arm_elf_before_allocation): Don't pass target1_type.
1894         (arm_elf_create_output_section_statements): New function.
1895         (PARSE_AND_LIST_PROLOGUE): Add OPTION_TARGET2.
1896         (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --target=.
1897         (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_TARGET2.
1898         (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Set.
1899         * emultempl/armelf_oabi.em (_before_allocation): Remove extra
1900         argument to bfd_elf32_arm_process_before_allocation.
1902 2004-09-17  Alan Modra  <amodra@bigpond.net.au>
1904         * ldexp.c (fold_name): Update u.undef.next refs.
1905         * emultempl/pe.em: Likewise.
1906         * emultempl/sunos.em: Likewise.
1908 2004-09-17  Alan Modra  <amodra@bigpond.net.au>
1910         * Makefile.am: Run "make dep-am".
1911         * Makefile.in: Regenerate.
1912         * config.in: Regenerate.
1913         * configure: Regenerate.
1914         * aclocal.m4: Regenerate.
1915         * po/ld.pot: Regenerate.
1917 2004-09-16  Tomer Levi  <Tomer.Levi@nsc.com>
1919         * scripttempl/elf32crx.sc (.init): Add KEEP for section's *personality*.
1920         (.fini): Likewise.
1921         (.jcr): Likewise.
1923 2004-09-16  Alan Modra  <amodra@bigpond.net.au>
1925         * emultempl/armelf_oabi.em (before_allocation): Add extra zero param
1926         to bfd_elf32_arm_process_before_allocation call.
1928 2004-09-13  Paul Brook  <paul@codesourcery.com>
1930         * emulparams/armsymbian.sh: Set TARGET1_IS_REL.
1931         * emultempl/armelf.em: Use TARGET1_IS_REL.  Add --target1-{rel,abs}.
1933 2004-09-07  H.J. Lu  <hongjiu.lu@intel.com>
1935         * configure: Regenerated with autconfig 2.13.
1937 2004-09-07  Andreas Schwab  <schwab@suse.de>
1939         * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Apply data segment
1940         alignment before adjusting DATA_SEGMENT_RELRO_END.
1942 2004-09-06  Mark Mitchell  <mark@codesourcery.com>
1944         * emulparams/armsymbian.sh: Use armbpabi script.
1945         * scripttempl/armbpabi.sc: New script.
1947 2004-09-02  Mark Mitchell  <mark@codesourcery.com>
1949         * Makefile.am (ALL_EMULATIONS): Add earmsymbian.o.
1950         (earmsymbian.c): New target.
1951         * configure.tgt: Use armsymbian emulation for arm*-*-symbianelf*.
1952         * Makefile.in: Regenerated.
1953         * aclocal.m4: Likewise.
1954         * configure: Likewise.
1955         * emulparams/armsymbian.sh: New file.
1957 2004-09-03  Tomer Levi  <Tomer.Levi@nsc.com>
1959         * scripttempl/elf32crx.sc: Edit file with comments.
1960         (.init): Add new section.
1961         (.fini): Likewise.
1962         (.ctor): Control the linkage order.
1963         (.dtor): Likewise.
1965 2004-08-27  Nick Clifton  <nickc@redhat.com>
1967         * emultempl/pe.em (after_open): Do not assume that either bfd is
1968         an archive.
1970 2004-08-26  Alan Modra  <amodra@bigpond.net.au>
1972         * ldlang.c (lang_init): Don't compare with TRUE.
1974 2004-08-25  Dmitry Diky  <diwil@spec.ru>
1976         * emulparams/msp430all.sh: Fix RAM sizes for all targets.
1977         * scripttempl/elf32msp430.sc: Add .profiler section definition.
1979 2004-08-24  H.J. Lu  <hongjiu.lu@intel.com>
1981         * ldlang.c (wildcardp): Defined as a macro with strpbrk.
1983 2004-08-19  Mark Mitchell  <mark@codesourcery.com>
1985         * configure.tgt (arm*-*-symbianelf*): New target.
1986         (arm*-*-eabi*): Likewise.
1988 2004-08-19  Jakub Jelinek  <jakub@redhat.com>
1990         * emultempl/ppc64elf.em (non_overlapping_opd): New variable.
1991         (ppc_before_allocation): Pass it to ppc64_elf_edit_opd).
1992         (OPTION_NON_OVERLAPPING_OPD): Define.
1993         (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Add
1994         --non-overlapping-opd option.
1996 2004-08-18  Alan Modra  <amodra@bigpond.net.au>
1998         PR 338
1999         * ldexp.c (fold_name): Don't call bfd_link_add_undef if the symbol
2000         was already on the undefs list.
2002 2004-08-17  Alan Modra  <amodra@bigpond.net.au>
2004         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern): Dot
2005         prefix the symbol field too.
2007 2004-08-13  Alan Modra  <amodra@bigpond.net.au>
2009         * ldmain.c (link_callbacks): Remove "error_handler".
2010         * ldmisc.c: Include elf-bfd.h.
2011         (vfinfo): Sort comment.  Handle %A.  Use %A instead of
2012         bfd_get_section_indent.
2013         (error_handler): Delete.
2014         * ldmisc.h (error_handler): Delete declaration.
2016 2004-08-10  Alan Modra  <amodra@bigpond.net.au>
2018         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Call
2019         ppc64_elf_restore_symbols.
2021 2004-08-09  Alan Modra  <amodra@bigpond.net.au>
2023         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Error if
2024         .toc is too large on relocatable linking.
2026 2004-08-09  Alan Modra  <amodra@bigpond.net.au>
2028         * emultempl/ppc64elf.em (ppc_after_open): Delete.
2029         (LDEMUL_AFTER_OPEN): Don't define.
2031 2004-08-02  Stephane Carrez  <stcarrez@nerim.fr>
2033         * ld.texinfo (Top): Document specific options of 68HC11 and 68HC12.
2035 2004-08-01  Stephane Carrez  <stcarrez@nerim.fr>
2037         * scripttempl/elfm68hc12.sc: Align text, rodata and data section
2038         on power of 2.
2040 2004-07-27  Jason Thorpe  <thorpej@wasabisystems.com>
2042         * emulparams/hppanbsd.sh (OUTPUT_FORMAT): Set to "elf32-hppa-netbsd".
2044 2004-07-26  Dmitry Diky  <diwil@spec.ru>
2046         * Makefile.am: Add new subtargets: msp430x1610, msp430x1611,
2047         msp430x1612, msp430x415, msp430x417, msp430xG437, msp430xG438,
2048         msp430xG439.
2049         * configure.tgt: Likewise.
2050         * emulparams/msp430all.sh: Likewise.
2051         * Makefile.in: Regenerate.
2053 2004-07-23  Nick Clifton  <nickc@redhat.com>
2055         * emultempl/elf32.em (_place_orphan): Use an already existing
2056         section name if that section does not have any flags set.
2058 2004-07-21  H.J. Lu  <hongjiu.lu@intel.com>
2060         * ldlang.c (already_linked_hash_entry): Removed.
2061         (already_linked): Likewise.
2062         (already_linked_table): Likewise.
2063         (section_already_linked): Call bfd_section_already_linked.
2064         (lang_process): Replace already_linked_table_init with
2065         bfd_section_already_linked_table_init and check return. Replace
2066         already_linked_table_free with bfd_section_already_linked_table_free.
2068 2004-07-21  Nick Clifton  <nickc@redhat.com>
2070         * ldlang.c (init_os): Make sure that the newly allocated userdata
2071         structure is zeroed out.
2073 2004-07-19  H.J. Lu  <hongjiu.lu@intel.com>
2075         * NEWS: Mention the new --add-needed/--no-add-needed and
2076         --as-needed/--no-as-needed options.
2078 2004-07-19  H.J. Lu  <hongjiu.lu@intel.com>
2080         * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): Also
2081         check the add_needed field.
2082         (dt_needed): New struct.
2083         (gld${EMULATION_NAME}_try_needed): Change the first argument
2084         to a pointer to struct dt_needed. Check the DYN_NO_ADD_NEEDED
2085         bit in the file where the DT_NEEDED entry comes from.
2086         (gld${EMULATION_NAME}_search_needed): Change the second
2087         argument to a pointer to struct dt_needed.
2088         (gld${EMULATION_NAME}_check_ld_so_conf): Updated.
2089         (gld${EMULATION_NAME}_after_open): Likewise.
2091         * ld.texinfo: Add --add-needed document.
2092         * ldlang.c (new_afile): Set p->add_needed.
2093         * ldlang.h (lang_input_statement_type): Add add_needed field.
2094         * ldmain.h (add_needed): Declare.
2095         * ldmain.c (add_needed): New global var.
2096         * lexsup.c (option_values): Add OPTION_ADD_NEEDED and
2097         OPTION_NO_ADD_NEEDED.
2098         (ld_options): Likewise.
2099         (parse_args): Handle them.
2101 2004-07-13  Christof Petig  <christof@petig-baender.de>
2103         * emultempl/pe.em (make_import_fixup): Use bfd_get_32 to correct
2104         for endian-ness of extracted addend.
2106 2004-07-13  Danny Smith  <dannysmith@usesr.sourceforge.net>
2108         * pe-dll.c (auto_export):  Filter on just the import prefix,
2109         "_imp_", not "_imp__".
2111 2004-07-09  Nick Clifton  <nickc@redhat.com>
2113         * configure.tgt: Change sh-sybmian-elf to sh-*-symbianelf.
2115 2004-07-06  Tomer Levi  <Tomer.Levi@nsc.com>
2117         * Makefile.am (ALL_EMULATIONS): Add eelf32crx.o.
2118         (eelf32crx.c): New target.
2119         * Makefile.in: Regenerate.
2120         * configure.tgt: Handle crx-*-elf*.
2121         * emulparams/elf32crx.sh: New file.
2122         * emultempl/crxelf.em: New file.
2123         * scripttempl/elf32crx.sc: New file.
2124         * NEWS: Mention new target.
2126 2004-07-06  Nick Clifton  <nickc@redhat.com>
2128         * Makefile.am: Add eshlsymbian.c.
2129         * Makefile.in: Regenerate.
2130         * configure.tgt: Add sh*-symbian-elf target.
2131         * emulparams/shlsymbian.sh: New file.  Configure the
2132         sh-symbian-elf linker scripts.
2133         * scripttemp/elf32sh-symbian.sc: New file.  Linker script
2134         template for the sh-symbian-elf target.
2136 2004-07-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2138         * emulparams/hppa64linux.sh: Define PLT_BEFORE_GOT.
2139         * emulparams/hppalinux.sh: Likewise.
2140         * scripttempl/elf.sc: Place .plt just before .got when .plt is in
2141         data segment and PLT_BEFORE_GOT is defined.
2143 2004-07-03  Aaron W. LaFramboise  <aaron98wiridge9@aaronwl.com>
2145         * ld.texinfo (WIN32): Document PE weak symbols.
2147 2004-07-02  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2149         * emulparams/shlelf32_linux.sh (COMMONPAGESIZE): Set to 4KB.
2151 2004-07-01  H.J. Lu  <hongjiu.lu@intel.com>
2153         * ldmisc.c (vfinfo): Call bfd_get_section_ident to identify
2154         the section.
2156 2004-06-29  Alan Modra  <amodra@bigpond.net.au>
2158         * ldlang.c (lang_reset_memory_regions): Save last relax pass section
2159         size in rawsize.
2161 2004-06-24  Alan Modra  <amodra@bigpond.net.au>
2163         * ldlang.c (print_output_section_statement): Don't print size before
2164         relaxation.
2165         (IGNORE_SECTION): Remove bfd arg.  Update all callers.
2167         * ldexp.c (fold_name): .. See below.
2168         * ldlang.c (section_already_linked, print_output_section_statement,
2169         print_input_section, insert_pad, size_input_section,
2170         lang_check_section_addresses, lang_size_sections_1,
2171         lang_size_sections, lang_do_assignments_1, lang_set_startof,
2172         lang_one_common, lang_reset_memory_regions, lang_process,
2173         lang_abs_symbol_at_end_of, lang_do_version_exports_section): ..
2174         * ldwrite.c (build_link_order, clone_section, ds, split_sections): ..
2175         * pe-dll.c (process_def_file, generate_reloc): ..
2176         * emultempl/elf32.em (gld${EMULATION_NAME}_find_statement_assignment,
2177         gld${EMULATION_NAME}_before_allocation): ..
2178         * emultempl/mmix-elfnmmo.em (mmix_after_allocation): ..
2179         * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_before_allocation,
2180         sh64_elf_${EMULATION_NAME}_after_allocation): ..
2181         * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): ..
2182         * emultempl/xtensaelf.em (ld_assign_relative_paged_dot,
2183         ld_local_file_relocations_fit, ld_xtensa_insert_page_offsets): Use
2184         "size" instead of "_raw_size" and "_cooked_size".  Expand
2185         bfd_section_size macro invocations.
2187 2004-06-22  Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
2189         * ld/scripttemp/pe.sc (.CRT): Define ___crt_xc_start__,
2190         ___crt_xc_end__, ___crt_xi_start__, ___crt_xi_end__, ___crt_xl_start__,
2191         ___crt_xp_start__, ___crt_xp_end__, ___crt_xt_start__ and
2192         ___crt_xt_end__.
2193         (.tls): Define ___tls_start__ and ___tls_end__.
2195 2004-06-21  Alexandre Oliva  <aoliva@redhat.com>
2197         * emulparams/elf32frvfd.sh (GENERATE_PIE_SCRIPT): Set to yes.
2199 2004-06-18  Adam Nemet  <anemet@lnxw.com>
2201         * configure.in: Set EXTRA_SHLIB_EXTENSION to .a for LynxOS.
2202         * configure: Regenerate.
2204 2004-06-15  Jakub Jelinek  <jakub@redhat.com>
2206         * scripttempl/elf.sc: Readd KEEP and .gcc_except_table.* to
2207         .gcc_except_table output sections lost accidentally with
2208         -z relro patch.
2210 2004-06-15  Alan Modra  <amodra@bigpond.net.au>
2212         * ldwrite.c (build_link_order): Use bfd_get_section_size
2213         instead of bfd_get_section_size_before_reloc or _raw_size.
2214         * pe-dll.c (process_def_file): Likewise.
2216 2004-06-14  Alan Modra  <amodra@bigpond.net.au>
2218         From Richard Wirth <r.wirth@wirthware.de>
2219         * ldlang.c (lang_finish): Don't free lang_definedness_table.
2221 2004-05-29  Alan Modra  <amodra@bigpond.net.au>
2223         * ldlang.c (gc_section_callback): Move SEC_EXCLUDE twiddles..
2224         (lang_gc_sections): .. to a LANG_FOR_EACH_INPUT_STATEMENT loop here.
2226 2004-05-28  Alan Modra  <amodra@bigpond.net.au>
2228         * ldlang.c: Formatting.  Wrap long lines, expand bfd_get_section_flags
2229         throughout file.
2230         * lexsup.c: Formatting.  Wrap long lines.
2231         * ldwrite.c: Update copyright date.
2233         * ldlang.c (lang_add_section): Don't twidlle SEC_EXCLUDE here.
2234         (output_section_callback): Nor SEC_KEEP here.
2235         (gc_section_callback): Twiddle SEC_EXCLUDE here.
2236         (lang_gc_wild): Delete.  Fold into..
2237         (lang_gc_sections_1): ..here.  Only call bfd_gc_sections when garbage
2238         collecting.
2239         (lang_process): Always call lang_gc_sections.
2240         (lang_place_orphans): Handle SEC_EXCLUDE sections.
2241         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Remove
2242         SEC_EXCLUDE code.
2244 2004-05-26  H.J. Lu  <hongjiu.lu@intel.com>
2246         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Clear
2247         SEC_EXCLUDE on non-SEC_DEBUGGING sections for relocatable link.
2248         * ldlang.c (lang_add_section): Likewise.
2250 2004-05-26  Alan Modra  <amodra@bigpond.net.au>
2252         * ldlang.c (lang_add_section): Set SEC_EXCLUDE for SEC_GROUP
2253         sections when doing a final link.  Clear SEC_EXCLUDE when doing
2254         a relocable link, except for SEC_DEBUGGING sections.
2255         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Use the
2256         same condition here to drop SEC_EXCLUDE orphan sections.
2258 2004-05-25  Alan Modra  <amodra@bigpond.net.au>
2260         * ldlang.c (lang_process): Call bfd_merge_sections later, and
2261         only when not a relocatable link.
2262         (print_input_section): Handle SEC_EXCLUDE sections.
2263         (size_input_section): Don't update dot on SEC_EXCLUDE sections.
2264         (lang_do_assignments_1): Likewise.
2265         * ldwrite.c (build_link_order): Ignore SEC_EXCLUDE input sections.
2266         * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Likewise.
2267         * emultempl/hppaelf.em (build_section_lists): Likewise.
2268         * emultempl/ppc64elf.em (build_toc_list): Likewise.
2269         (build_section_lists): Likewise.
2271 2004-05-23  Andreas Schwab  <schwab@suse.de>
2273         * ld.texinfo (Options): Fix typo in last change.
2275 2004-05-21  Andy Chittenden  <achittenden@bluearc.com>
2277         * ld.h (ld_config_type): Add new field: hash_table_size.
2278         * ldmain.c: Initialise the new field to zero.  If it is non-zero
2279         after parsing the linker's command line call
2280         bfd_hash_set_default_size.
2281         * lexsup.c (option_values): Add OPTION_HASH_SIZE.
2282         (ld_options): Add hash-size.
2283         (parse_args): Parse --hash-size option.  Allow
2284         --reduce-memory-overheads to set the default hash table size as
2285         well.
2286         * ld.texinfo: Document the new switch.  Also mention that
2287         --reduce-memory-overheads can affect the hash table size.
2288         * NEWS: Mention the new feature.
2290 2004-05-19  J"orn Rennecke <joern.rennecke@superh.com>
2292         * NEWS: Mention new linker map file generation and the
2293         --reduce-memory-overheads option.
2294         * ld.texinfo: Document --reduce-memory-overheads option.
2295         * ld.h (map_symbol_def): New struct.
2296         (struct user_section_struct, section_userdata_type): Rename to:
2297         (struct lean_user_section_struct, lean_section_userdata_type).
2298         (struct fat_user_section_struct, fat_section_userdata_type): New.
2299         (SECTION_USERDATA_SIZE): Define.
2300         (args_type): New member reduce_memory_overheads.
2301         * ldlang.c (map_obstack): New static variable.
2302         (init_map_userdata, print_all_symbols, sort_def_symbol): New functions.
2303         (lang_map): Unless command_line.reduce_memory_overheads is set,
2304         initialize lists of defined symbols for each section.
2305         (print_input_section): Unless command_line.reduce_memory_overheads
2306         is set, use print_all_symbols.
2307         (init_os): Use lean_section_userdata_type / SECTION_USERDATA_SIZE.
2308         * ldmain.c (main): Initialize command_line.reduce_memory_overheads.
2309         * lexsup.c (enum option_values): Add OPTION_REDUCE_MEMORY_OVERHEADS.
2310         (ld_options): Add entry for --reduce-memory-overheads.
2311         (parse_args): Handle OPTION_REDUCE_MEMORY_OVERHEADS.
2313 2004-05-19  Jakub Jelinek  <jakub@redhat.com>
2315         * ldgram.y (sect_constraint): New.
2316         (ONLY_IF_RO, ONLY_IF_RW): New tokens.
2317         (section): Add sect_constraint.  Pass additional argument
2318         to lang_enter_output_section_statement.
2319         * mri.c (mri_draw_tree): Pass additional argument to
2320         lang_enter_output_section_statement.
2321         * emultempl/pe.em (place_orphan): Likewise.
2322         (output_prev_sec_find): Disregard output section statements with
2323         constraint == -1.
2324         * emultempl/mmo.em (output_prev_sec_find): Likewise.
2325         (mmo_place_orphan): Pass additional argument to
2326         lang_enter_output_section_statement.
2327         * emultempl/elf32.em (output_prev_sec_find): Disregard output section
2328         statements with constraint == -1.
2329         (place_orphan): Pass additional argument to
2330         lang_enter_output_section_statement.
2331         * ldlang.c (lang_enter_overlay_section): Likewise.
2332         (lang_output_section_find_1): New.
2333         (lang_output_section_find): Use it.
2334         (lang_output_section_statement_lookup_1): New.
2335         (lang_output_section_statement_lookup): Use it.
2336         (check_section_callback, check_input_sections): New.
2337         (map_input_to_output_sections): Check if all input sections
2338         are readonly if ONLY_IF_RO or ONLY_IF_RW was seen.
2339         (strip_excluded_output_sections): Disregard output section statements
2340         with constraint == -1.
2341         (lang_record_phdrs): Likewise.
2342         (lang_enter_output_section_statement): Add constraint argument.
2343         Use lang_output_section_statement_lookup_1.
2344         * ldlang.h (lang_output_section_statement_type): Add constraint
2345         and all_input_readonly fields.
2346         (lang_enter_output_section_statement): Adjust prototype.
2347         * ldlex.l (ONLY_IF_RO, ONLY_IF_RW): New tokens.
2348         * scripttempl/elf.sc (.eh_frame, .gcc_except_table): Move into text
2349         segment if all input sections are readonly.
2351 2004-05-19  Adam Nemet  <anemet@lnxw.com>
2353         * scripttempl/i386lynx.sc: Remove file.
2355 2004-05-17  Bob Wilson  <bob.wilson@acm.org>
2357         * ld.texinfo (Output Section Address): Correct subsection name.
2359 2004-05-17  Adam Nemet  <anemet@lnxw.com>
2361         * configure.tgt (powerpc-*-lynxos* case): New case.
2362         * configure.host (i[3-7]86-*-lynxos* case): Remove case.
2363         * emulparams/ppclynx.sh: New file.
2364         * emulparams/i386lynx.sh (SCRIPT_NAME): Update to LynxOS 4.0.
2365         * Makefile.am (ALL_EMULATIONS): Add eppclynx.o
2366         (ei386lynx.c): Update rule to LynxOS 4.0 ELF.
2367         (eppclynx.c): New rule.
2368         * Makefile.in: Regenerate.
2370 2004-05-13  Joel Sherrill <joel@oarcorp.com>
2372         * configure.tgt (or32-*-rtems*): Switch to elf and
2373         support versioned targets.
2375 2004-05-13  Nick Clifton  <nickc@redhat.com>
2377         * po/fr.po: Updated French translation.
2379 2004-05-11  Jakub Jelinek  <jakub@redhat.com>
2381         * genscripts.sh: Generate -z combreloc -z now -z relro scripts
2382         for binaries, -shared and -pie.
2383         * emulparams/elf_i386.sh (SEPARATE_GOTPLT): Set.
2384         * emulparams/elf_x86_64.sh (SEPARATE_GOTPLT): Set.
2385         * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Rename to...
2386         (OTHER_RELRO_SECTIONS): ... this.
2387         * ldlex.l (DATA_SEGMENT_RELRO_END): Add.
2388         * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Handle
2389         -z relro and -z norelro.
2390         (gld${EMULATION_NAME}_list_options): Add it to usage.
2391         (gld${EMULATION_NAME}_get_script): Return -z combreloc -z now
2392         -z relro scripts when appropriate.
2393         * scripttempl/elf.sc: Unset SEPARATE_GOTPLT if RELRO_NOW is set.
2394         Create separate .got.plt section if SEPARATE_GOTPLT.
2395         Move sections which are only written during relocation handling
2396         to the beginning of RW segment.  If NO_SMALL_DATA, move .got
2397         before .data.  Add DATA_SEGMENT_RELRO_END directive.
2398         Include OTHER_RELRO_SECTIONS.
2399         * ldgram.y (DATA_SEGMENT_RELRO_END): Add.
2400         * ldexp.c (exp_print_token): Handle DATA_SEGMENT_RELRO_END.
2401         (fold_unary): Likewise.
2402         (fold_binary): Handle -z relro.
2403         * ldexp.h (struct exp_data_seg): Add exp_dataseg_relro_seen and
2404         exp_dataseg_relro_adjust phases.  Add relro_end field.
2405         * ldmain.c (main): Initialize link_info.relro to FALSE.
2406         * ldlang.c (lang_size_sections): Handle -z relro.
2408 2004-05-08  Marek Michalkiewicz  <marekm@amelek.gda.pl>
2410         * scripttempl/avr.sc: Do not set LMA for "eeprom" section.
2412 2004-05-07  J"orn Rennecke <joern.rennecke@superh.com>
2414         * ldlang.c (print_padding_statement): Cast size_t to bfd_vma
2415         before printing it with %W.
2417 2004-05-07  Brian Ford  <ford@vss.fsi.com>
2418             DJ Delorie  <dj@redhat.com>
2420         * emultempl/pe.em (real_flags): New static.
2421         (OPTION_LARGE_ADDRESS_AWARE): New define.
2422         (gld${EMULATION_NAME}_add_options): Add --large-address-aware option.
2423         (gld_${EMULATION_NAME}_list_options): Likewise.
2424         (gld${EMULATION_NAME}_handle_option): Likewise.
2425         (gld_${EMULATION_NAME}_after_open): Pass real_flags to PE private data.
2426         * ld.texinfo: Document it.
2427         * NEWS: Mention it.
2429 2004-05-07  Brian Ford  <ford@vss.fsi.com>
2431         * NEWS: Mention DWARF 2 support for i386pe.
2433 2004-05-05  Alexandre Oliva  <aoliva@redhat.com>
2435         * emulparams/elf32frvfd.sh (OUTPUT_FORMAT): Switch to new
2436         elf32-frvfdpic.
2438 2004-04-30  Alan Modra  <amodra@bigpond.net.au>
2440         * ldlang.c (unique_section_p): Pass section parm, return true on
2441         group sections.
2442         (output_section_callback): Adjust.
2443         * ldlang.h (unique_section_p): Update prototype.
2444         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust.
2446 2004-04-30  Eric Botcazou  <ebotcazou@act-europe.fr>
2448         * ld.texinfo (--gc-sections): Remove restriction for
2449         dynamic linking.
2451 2004-04-29  Brian Ford  <ford@vss.fsi.com>
2453         * scripttempl/pe.sc: Handle .debug* and .gnu.linkonce.wi.* sections
2454         for DWARF 2/3.  Update stab section's syntax.
2456 2004-04-29  Alan Modra  <amodra@bigpond.net.au>
2458         * pe-dll.c: Revert changes accidentally committed 2004-03-08.
2459         (fill_edata): Correct pointer arithmetic.
2461 2004-04-21  Chris Demetriou  <cgd@broadcom.com>
2463         * ld.texinfo: Remove MIPS --embedded-relocs documentation.
2464         * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Remove definition.
2465         * emulparams/mipsidt.sh (TEMPLATE_NAME): Use generic.em.
2466         (EXTRA_EM_FILE): Use mipsecoff.em
2467         * emulparams/mipsidtl.sh (TEMPLATE_NAME): Use generic.em.
2468         (EXTRA_EM_FILE): Use mipsecoff.em
2469         * emultempl/mipsecoff.em: Restructure to be included as an
2470         extra emulation file.
2471         (check_sections, gld${EMULATION_NAME}_after_open)
2472         (gld${EMULATION_NAME}_after_allocation)
2473         (gld${EMULATION_NAME}_get_script)
2474         (ld_${EMULATION_NAME}_emulation): Remove
2475         (gld${EMULATION_NAME}_before_parse): Rename to...
2476         (mipsecoff_before_parse): This.
2477         (LDEMUL_BEFORE_PARSE): Define.
2478         * emultempl/mipself.em: Remove file.
2479         * scripttempl/mips.sc (.rel.sdata): Do not include in output.
2480         (__runtime_reloc_start, __runtime_reloc_stop): Stop providing
2481         these symbols.
2482         * Makefile.am: Remove dependencies on emultempl/mipself.em.
2483         * Makefile.in: Regenerate.
2485 2004-04-21      Anil Paranjpe   <anilp1@kpitcummins.com>
2487         * ld.texinfo (synthesizing on H8/300): Information about linker
2488         relaxation support for bit manipulation instructions and system
2489         control instructions is added.
2491 2004-04-21  Hans-Peter Nilsson  <hp@axis.com>
2493         * NEWS: Mention change in DEFINED semantics.
2495 2004-04-21  Eric Botcazou  <ebotcazou@act-europe.fr>
2497         * scripttempl/elf.sc (.text): Add KEEP for .text.*personality*.
2498         (.data): Add KEEP for .gnu.linkonce.d.*personality*.
2499         (.gcc_except_table): Add KEEP for self and accept .gcc_except_table.*.
2501 2004-04-21  Ben Elliston  <bje@au.ibm.com>
2503         * ld.texinfo (Simple Example): Add missing punctuation.
2505 2004-04-20  Chris Demetriou  <cgd@broadcom.com>
2507         * NEWS: Note that MIPS --embedded-relocs option is deprecated.
2509 2004-04-19  Jakub Jelinek  <jakub@redhat.com>
2511         * ldlang.c (lang_do_assignments_1): Handle .tbss output section
2512         specially.
2514 2004-04-18  Danny Smith  <dannysmith@users.sourceforge.net>
2516         * scriptempl/pe.sc:  Put numbered .ctors.* after .ctors
2517         with default priority. Likewise for dtors.
2519 2004-04-11  Thiemo Seufer  <seufer@csv.ica.uni-stuttgart.de>
2521         * configure.host: Remove mips*-dec-bsd* target.
2522         * configure.tgt: Likewise.
2524 2004-04-08  Richard Sandiford  <rsandifo@redhat.com>
2526         * emulparams/elf32bsmip.sh (EXTRA_EM_FILE): Define to irix.
2527         * emulparams/elf64bmip.sh (EXTRA_EM_FILE): Likewise.
2528         * emulparams/elf32bmipn32.sh (EXTRA_EM_FILE): Likewise.
2529         * emultempl/irix.em: New file.
2530         * Makefile.am (eelf32bsmip.c, eelf32bmipn32.c, eelf64bmip.c): Update
2531         dependencies.
2532         * Makefile.in: Regenerate.
2534 2004-04-01  Paul Brook  <paul@codesourcery.com>
2536         * emultempl/armelf.em (byteswap_code): Add.
2537         (arm_elf_before_allocation): Pass extra parameter.
2538         (PARSE_AND_LIST_PROLOGUE): Add OPTION_BE8.
2539         (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add be8.
2540         (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_BE8.
2541         * emultempl/armelf_oabi.em: Pass extra parameter.
2542         * ld.texinfo: Document --be8.
2544 2004-03-30  Stan Shebs  <shebs@apple.com>
2546         Remove long-obsolete MPW support.
2547         * mpw-config.in, mpw-make.sed, mac-ld.r: Remove files.
2548         * Makefile.am (mpw): Remove file-presynthesizing actions.
2549         * Makefile.in: Likewise.
2550         * ldfile.c (slash): Remove MPW case.
2551         * ldlex.l [MPW]: Remove unused definition.
2553 2004-03-30  Galit Heller  <Galit.Heller@nsc.com>
2555         * Makefile.am (ALL_EMULATIONS): Add eelf32cr16c.o.
2556         (eelf32cr16c.c): New target.
2557         * Makefile.in: Regenerate.
2558         * configure.tgt: Handle cr16c-*-elf*.
2559         * emulparams/elf32cr16c.sh: New file.
2560         * scripttempl/elfcr16c.sc: Likewise
2561         * NEWS: Mention support for new target.
2563 2004-03-30  Nick Clifton  <nickc@redhat.com>
2565         * po/sv.po: Updated Swedish translation.
2567 2004-03-27  Alan Modra  <amodra@bigpond.net.au>
2569         * emultempl/elf32.em: Update new bfd_elf_discard_info name.
2570         * emultempl/hppaelf.em: Likewise.
2571         * emultempl/ppc64elf.em: Likewise.
2572         * emultempl/sh64elf.em: Likewise.
2574 2004-03-25  Alan Modra  <amodra@bigpond.net.au>
2576         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Update
2577         size_dynamic_sections call.
2579 2004-03-23  Alan Modra  <amodra@bigpond.net.au>
2581         PR 51.
2582         * emultempl/ppc64elf.em (ppc_create_output_section_statements): Set
2583         link_info.wrap_char.
2585 2004-03-20  H.J. Lu  <hongjiu.lu@intel.com>
2587         * lexsup.c (parse_args): Don't set unresolved_syms_in_objects
2588         or unresolved_syms_in_shared_libs for -Bdynamic and -Bstatic.
2590 2004-03-20  Alexandre Oliva  <aoliva@redhat.com>
2592         * emulparams/elf32frvfd.sh (MAXPAGESIZE): Change to 16Kb.
2594 2004-03-19  Alan Modra  <amodra@bigpond.net.au>
2596         * config.in: Regenerate.
2597         * po/ld.pot: Regenerate.
2599 2004-03-18  Alan Modra  <amodra@bigpond.net.au>
2601         * ld.texinfo: Add --as-needed doco.
2602         * ldmain.c (as_needed): New global var.
2603         * ldmain.h (as_needed): Declare.
2604         * lexsup.c (option_values): Add OPTION_AS_NEEDED and
2605         OPTION_NO_AS_NEEDED.
2606         (ld_options): Likewise.
2607         (parse_args): Handle them.
2608         * ldlang.h (lang_input_statement_type): Add as_needed field.
2609         * ldlang.c (new_afile): Set p->as_needed.
2610         * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): New function.
2611         (gld${EMULATION_NAME}_try_needed): Use bfd_elf_set_dyn_lib_class.
2612         (ld_${EMULATION_NAME}_emulation): Set LDEMUL_RECOGNIZED_FILE entry.
2614         * ldlang.c (open_input_bfds): Remove useless cast.
2615         (lang_do_assignments_1): Likewise.
2616         (lang_for_each_input_section): Delete.
2618 2004-03-17  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
2620         * configure.tgt: Switch sh-*-rtems* to ELF.  Add sh-*-rtemscoff*.
2622 2004-03-08  Danny Smith  <dannysmith@users.sourceforge.net>
2624         * pe-dll.c (pe_dll_generate_implib): Skip sections marked as
2625         private when building implib.
2627 2004-03-05  Nathan Sidwell  <nathan@codesourcery.com>
2629         * ldlang.c (lang_add_section): Don't force SEC_LOAD on
2630         SEC_THREAD_LOCAL.
2631         (IGNORE_SECTION): Ignore .tbss sections too.
2632         (lang_size_sections_1): .tbss sections do not advance dot.
2634 2004-03-01  Andreas Schwab  <schwab@suse.de>
2636         * ld.texinfo (Options): Fix example for --wrap.
2638 2004-02-25  Danny Smith  <dannysmith@users.sourceforge.net>
2640         * pe-dll.c (fill_edata): Check that exported_symbol_sections is
2641         not NULL.
2643 2004-02-23  Ian Lance Taylor  <ian@wasabisystems.com>
2645         * ldlang.c (lang_check): Use %P, not %E, in error message.
2647 2004-02-23  Nathan Sidwell  <nathan@codesourcery.com>
2649         * ldlang.h (struct lang_output_section_state): Change processed
2650         field's type.
2651         * ldexp.c (check, invalid): Remove.
2652         (fold_name): Move valid_p assignments. Create undefined symbol
2653         when needed. Directly exampine section's processd flag.
2654         * ldlang.c (lang_output_section_statement_lookup): Adjust
2655         processed field init.
2656         (lang_size_sections_1): Allow LOADADDR when determining section's
2657         VMA. Adjust error message. Fold data statement's expr.
2658         (lang_size_sections): Correctly increment lang_statement_iteration.
2660 2004-02-23  Alan Modra <amodra@bigpond.net.au>
2662         * ldexp.c (fold_tree): Follow indirect symbols.
2664 2004-02-20  Nathan Sidwell  <nathan@codesourcery.com>
2666         * ldgram.y (exp): Add two operand ALIGN.
2667         * ldexp.c (fold_binary): Add ALIGN_K case.
2668         * ld.texinfo (ALIGN): Document two operand version.
2670 2004-02-19  Nathan Sidwell  <nathan@codesourcery.com>
2672         * ldlang.c (map_input_to_output_sections): Initialize sections
2673         mentioned in a data statement expression.
2674         (lang_do_assignments_1): Add data statement's expression's
2675         section's vma.
2677 2004-02-18  Nathan Sidwell  <nathan@codesourcery.com>
2679         * ldgram.y (statement_anywhere): Add assert rule.
2680         * ldlang.c (exp_init_os): Add assert case.
2682 2004-02-14  Andrew Cagney  <cagney@redhat.com>
2684         * ldmain.c (remove_output): Call bfd_cache_close.
2686 2004-02-14  Richard Sandiford  <rsandifo@redhat.com>
2688         * emulparams/elf32bmipn32-defs.sh (OTHER_SECTIONS): Discard
2689         .MIPS.content* and .MIPS.events* sections.
2691 2004-02-09  Daniel Jacobowitz  <drow@mvista.com>
2693         * emulparams/armelf.sh, emulparams/armelf_linux.sh: Move
2694         .note.gnu.arm.ident to after allocated sections.  Mark its
2695         address as 0.
2697 2004-02-09  Daniel Jacobowitz  <drow@mvista.com>
2699         * emulparams/armelf_linux.sh (COMMONPAGESIZE): Set to 4KB.
2700         * emulparams/elf32bmip.sh (COMMONPAGESIZE): Likewise.
2701         * emulparams/elf32bmipn32.sh (COMMONPAGESIZE): Likewise.
2702         * emulparams/elf32btsmipn32.sh (COMMONPAGESIZE): Likewise.
2703         * emulparams/shlelf_linux.sh (COMMONPAGESIZE): Likewise.
2705 2004-02-05  Nick Clifton  <nickc@redhat.com>
2707         * emultempl/pe.em (_after_open): Fix typo in previous delta.
2709 2004-02-04  Danny Smith  <dannysmith@users.sourceforge.net>
2711         * emultempl/pe.em (_after_open): Fix thinko in 2003-12-18 patch.
2713 2004-01-28  Alan Modra  <amodra@bigpond.net.au>
2715         * genscripts.sh: Fix typo.
2717         * genscripts.sh: Apply $LIBPATH_SUFFIX to $tool_lib and $libdir too.
2719 2004-01-24  Jakub Jelinek  <jakub@redhat.com>
2721         * emulparams/elf64_ia64.sh: Put .rela.opd into
2722         OTHER_GOT_RELOC_SECTIONS instead of OTHER_PLT_RELOC_SECTIONS.
2724 2004-01-20  Danny Smith  <dannysmith@users.sourceforge.net>
2726         * pe-dll.c (pe_create_import_fixup): Clear WP_TEXT flag.
2727         * ld.texinfo (--omagic): Note that writable text section
2728         does not conform to published PE-COFF specs.
2729         (--enable-auto-import): Likewise.
2731 2004-01-15  Alan Modra  <amodra@bigpond.net.au>
2733         * emulparams/elf32ppc.sh (COMMONPAGESIZE): Define.
2735 2004-01-13  Nick Clifton  <nickc@redhat.com>
2737         * ldlang.c (lang_get_regions): Add extra parameter 'have_vma'
2738         which if true will prevent the LMA region being used as a
2739         replacement for a default VMA region.
2740         (lang_leave_output_section_statement): Pass extra parameter.
2741         (lang_leave_overlay): Likewise.
2742         * ld.texinfo (Output Section LMA): Document that the LMA
2743         region can be set to the VMA region if no VMA has been set.
2744         * ldlang.h (struct lang_output_section_phdr_list): Create a
2745         typedef for this type.  Minor formatting fixes.
2747 2004-01-13  Nick Clifton  <nickc@redhat.com>
2749         * ldlang.c (lang_size_sections_1): If dot is advanced, then
2750         assume that the section should be allocated.
2752 2004-01-13  Alan Modra  <amodra@bigpond.net.au>
2754         * ldlang.c (IGNORE_SECTION): Don't ignore SEC_ALLOC && !SEC_LOAD
2755         sections.  Do ignore SEC_NEVER_LOAD sections.
2756         (lang_size_sections_1): Remove test made redundant with the above.
2758 2004-01-09  Alan Modra  <amodra@bigpond.net.au>
2760         * emultempl/ppc64elf.em (ppc_before_allocation): Clear cached
2761         program_header_size.
2763 2004-01-06  Alexandre Oliva  <aoliva@redhat.com>
2765         2003-11-28  Alexandre Oliva  <aoliva@redhat.com>
2766         * emulparams/elf32frvfd.sh (EMBEDDED): Clear.
2767         2003-11-05  Alexandre Oliva  <aoliva@redhat.com>
2768         * emulparams/elf32frvfd.sh (STACK_ADDR): Unset.
2769         (MAXPAGESIZE): Set to 64Kb.
2770         (OTHER_READONLY_SECTIONS): Define __ROFIXUP_LIST__ and
2771         __ROFIXUP_END__.  Don't map .rofixup.got any more.
2772         * emulparams/elf32frv.sh (NOP): Set.
2773         2003-10-31  Alexandre Oliva  <aoliva@redhat.com>
2774         * configure.tgt: Add frv-*-*linux*.
2775         2003-09-30  Alexandre Oliva  <aoliva@redhat.com>
2776         * Makefile.am (ALL_EMULATIONS): Added eelf32frvfd.o.
2777         (eelf32frvfd.c): New.
2778         * configure.tgt <frv-*-*>: Added it to targ_extra_emuls.
2779         * emulparams/elf32frv.sh: Reverted previous two patches.
2780         * emulparams/elf32frvfd.sh: New.
2781         * Makefile.in: Rebuilt.
2782         2003-09-18  Alexandre Oliva  <aoliva@redhat.com>
2783         * emulparams/elf32frv.sh (OTHER_READONLY_SECTIONS): Added
2784         .rofixup.got to .rofixup.
2785         2003-09-15  Alexandre Oliva  <aoliva@redhat.com>
2786         * emulparams/elf32frv.sh (MAXPAGESIZE): Make it 256KiB, not 256B.
2787         (TEMPLATE_NAME, GENERATE_SHLIB_SCRIPT): Set.
2789 2004-01-05  Jakub Jelinek  <jakub@redhat.com>
2791         * emulparams/elf_s390.sh (NO_SMALL_DATA): Set to yes.
2792         * emulparams/elf64_s390.sh (NO_SMALL_DATA): Set to yes.
2794 2004-01-03  Alan Modra  <amodra@bigpond.net.au>
2796         * ldexp.c (align_n): Make static.
2797         * ldexp.h (align_n): Delete declaration.
2798         * ldlang.h (lang_enter_output_section_statement): Remove
2799         block_value param.
2800         * ldlang.c (lang_enter_output_section_statement): Likewise.
2801         (TO_ADDR, TO_SIZE): Define.
2802         (opb_shift): New var.
2803         (init_opb): New function.
2804         (print_input_section): Call init_opb and use TO_ADDR.
2805         (print_data_statement, print_reloc_statement): Likewise.
2806         (print_padding_statement): Likewise.
2807         (size_input_section): Use TO_SIZE and TO_ADDR, and global opb_shift.
2808         (lang_check_section_addresses): Likewise.
2809         (lang_size_sections_1): Likewise.
2810         (lang_do_assignments_1): Likewise.
2811         (lang_set_startof): Likewise.
2812         (lang_one_common): Likewise.  Combine power_of_two and opb_shift align.
2813         (lang_process): Call init_opb.
2814         (lang_abs_symbol_at_end_of): Use TO_ADDR and global opb_shift.
2815         (lang_enter_overlay_section): Adjust
2816         lang_enter_output_section_statement call.
2817         * ldgram.y: Likewise.
2818         * mri.c (mri_draw_tree): Likewise.
2819         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Likewise.
2820         * emultempl/mmo.em (mmo_place_orphan): Likewise.
2821         * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Likewise.
2823         * ldfile.c (ldfile_set_output_arch): Add defarch param.
2824         * ldfile.h (ldfile_set_output_arch): Ditto.
2825         * emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Use
2826         ldfile_set_output_arch.
2827         * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Ditto.
2828         * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Ditto.
2829         * emultempl/linux.em (gld${EMULATION_NAME}_before_parse): Ditto.
2830         * emultempl/mipsecoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
2831         * emultempl/pe.em (gld${EMULATION_NAME}_before_parse): Ditto.
2832         * emultempl/sunos.em (gld${EMULATION_NAME}_before_parse): Ditto.
2833         * ldgram.y: Adjust ldfile_set_output_arch call.
2834         * emultempl/armcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
2835         * emultempl/armelf.em (gld${EMULATION_NAME}_before_parse): Ditto.
2836         * emultempl/armelf_oabi.em (gld${EMULATION_NAME}_before_parse): Ditto.
2837         * emultempl/generic.em (gld${EMULATION_NAME}_before_parse): Ditto.
2838         * emultempl/gld960c.em (gld960_set_output_arch): Ditto.
2839         * emultempl/m68kcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
2840         * emultempl/ticoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
2842 2004-01-02  Bernardo Innocenti  <bernie@develer.com>
2844         * configure.tgt: Add m68k-uClinux target.
2846 For older changes see ChangeLog-0203
2848 Local Variables:
2849 mode: change-log
2850 left-margin: 8
2851 fill-column: 74
2852 version-control: never
2853 End: