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