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