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