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