OSDN Git Service

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