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