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