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