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