1 2005-08-05 Alan Modra <amodra@bigpond.net.au>
3 * emulparams/armelf.sh (OTHER_BSS_END_SYMBOLS): Split out from
5 * emulparams/armelf_linux.sh: Likewise.
6 * emulparams/armnto.sh: Likewise.
7 * emulparams/criself.sh: Likewise.
8 * emulparams/elf32mcore.sh: Likewise.
9 * emulparams/criself.sh (OTHER_SYMBOLS): Define.
10 * emulparams/crislinux.sh (OTHER_SYMBOLS): Define.
11 (OTHER_END_SYMBOLS): Don't define.
12 * emulparams/elf32fr30.sh: Likewise.
13 * emulparams/elf64mmix.sh: Likewise.
14 * emulparams/hppa64linux.sh: Likewise.
15 * emulparams/m32relf.sh: Likewise.
16 * emulparams/vxworks.sh: Likewise.
17 * scripttempl/armbpabi.sc (OTHER_BSS_SECTIONS): Delete.
18 (OTHER_BSS_END_SYMBOLS): Add.
19 (OTHER_END_SYMBOLS): Move before current end sym definitions.
20 (OTHER_SYMBOLS): Replace OTHER_END_SYMBOLS near end of script.
21 * scripttempl/elf.sc: Likewise.
22 * scripttempl/elf32sh-symbian.sc: Likewise.
23 * scripttempl/elf_chaos.sc: Likewise.
24 * scripttempl/elfxtensa.sc: Likewise.
25 * scripttempl/iq2000.sc: Likewise.
26 * scripttempl/xstormy16.sc: Likewise.
28 * scripttempl/elf.sc (LBSS, LARGE_SECTIONS): Delete.
29 (REL_LDATA, REL_LBSS, REL_LRODATA): Delete.
30 (REL_LARGE, LARGE_SECTIONS): Add.
31 * emulparams/elf_x86_64.sh (LARGE_SECTIONS): Define as script text.
33 * emulparams/hppa64linux.sh (OTHER_BSS_SECTIONS): Don't define.
34 (LARGE_SECTIONS): Define.
35 * emulparams/hppa64linux.sh (OTHER_BSS_SECTIONS): Don't define.
36 (LARGE_SECTIONS): Define.
38 2005-08-04 Alan Modra <amodra@bigpond.net.au>
40 * ldemul.c (ldemul_do_assignments, do_assignments_default): Delete.
41 * ldemul.h (ldemul_do_assignments, do_assignments_default): Delete.
42 (struct ld_emulation_xfer_struct): Remove do_assignments field.
43 * ldlang.c (lang_do_assignments): Don't call ldemul_do_assignments.
44 * emulparams/elf32ppc.sh (SDATA_START_SYMBOLS): New.
45 (SDATA2_START_SYMBOLS, SBSS_START_SYMBOLS, SBSS_END_SYMBOLS): New.
46 * emultempl/aix.em (ld_*_emulation): Delete do_assignments init.
47 * emultempl/armcoff.em: Likewise.
48 * emultempl/beos.em: Likewise.
49 * emultempl/generic.em: Likewise.
50 * emultempl/gld960.em: Likewise.
51 * emultempl/gld960c.em: Likewise.
52 * emultempl/linux.em: Likewise.
53 * emultempl/lnk960.em: Likewise.
54 * emultempl/m68kcoff.em: Likewise.
55 * emultempl/pe.em: Likewise.
56 * emultempl/sunos.em: Likewise.
57 * emultempl/ticoff.em: Likewise.
58 * emultempl/vanilla.em: Likewise.
59 * emultempl/elf32.em: Likewise.
60 (gld*_provide_bound_symbols): Delete.
61 (gld*_provide_init_fini_syms): Delete.
62 (gld*_before_allocation): Don't call ldemul_do_assignments.
63 * emultempl/ppc32elf.em (ppc_do_assignments): Delete.
64 (LDEMUL_DO_ASSIGNMENTS): Delete.
65 * scripttempl/elf.sc: Provide init/fini syms. Add SBSS_START_SYMBOLS,
66 SBSS_END_SYMBOLS, SDATA2_START_SYMBOLS.
68 2005-08-04 Alan Modra <amodra@bigpond.net.au>
70 * Makefile.am (eelf32m32c.c): Fix dependencies.
71 * Makefile.in: Regenerate.
73 2005-08-04 Alan Modra <amodra@bigpond.net.au>
75 * ldemul.c (ldemul_finish): Call ld_emulation->finish unconditionally.
76 (finish_default): New function.
77 * ldemul.h (finish_default): Declare.
78 * emultempl/aix.em (gld*_before_allocation): Call
79 before_allocation_default rather than strip_excluded_output_sections.
80 (ld_*_emulation): Init finish field to finish_default.
81 * emultempl/armcoff.em: Likewise.
82 * emultempl/beos.em: Likewise.
83 * emultempl/elf32.em: Likewise.
84 * emultempl/generic.em: Likewise.
85 * emultempl/gld960.em: Likewise.
86 * emultempl/gld960c.em: Likewise.
87 * emultempl/hppaelf.em: Likewise.
88 * emultempl/linux.em: Likewise.
89 * emultempl/lnk960.em: Likewise.
90 * emultempl/m68kcoff.em: Likewise.
91 * emultempl/mmo.em: Likewise.
92 * emultempl/pe.em: Likewise.
93 * emultempl/ppc64elf.em: Likewise.
94 * emultempl/sunos.em: Likewise.
95 * emultempl/ticoff.em: Likewise.
96 * emultempl/vanilla.em: Likewise.
98 2005-08-03 Alan Modra <amodra@bigpond.net.au>
100 * ldlang.c (exp_init_os): Handle etree_provide.
101 * emulparams/armelf.sh (OTHER_END_SYMBOLS): Rename from..
102 (OTHER_BSS_END_SYMBOLS): ..this.
103 * emulparams/armelf_linux.sh: Likewise.
104 * emulparams/armnto.sh: Likewise.
105 * emulparams/criself.sh: Likewise.
106 * emulparams/crislinux.sh: Likewise.
107 * emulparams/elf32frv.sh: Likewise.
108 * emulparams/elf32mcore.sh: Likewise.
109 * emulparams/elf32ppc.sh: Likewise.
110 * emulparams/elf32ppclinux.sh: Likewise.
111 * emulparams/hppa64linux.sh: Likewise.
112 * scripttempl/armbpabi.sc: Substitute $OTHER_END_SYMBOLS, not
113 $OTHER_BSS_END_SYMBOLS.
114 * scripttempl/elf32sh-symbian.sc: Likewise.
115 * scripttempl/elf_chaos.sc: Likewise.
116 * scripttempl/iq2000.sc: Likewise.
117 * scripttempl/xstormy16.sc: Likewise.
118 * scripttempl/elf.sc: Likewise. Delete __bss_start comment.
119 * scripttempl/elfxtensa.sc: Likewise.
121 2005-07-29 Nick Clifton <nickc@redhat.com>
123 * ldmain.c (main): Allow -shared and -static to be used together.
124 * ld.texinfo (-static): Mention that it is allowed with -shared.
126 2005-07-28 DJ Delorie <dj@redhat.com>
128 * ldlang.c (lang_output_section_statement_lookup_1): Don't cast a
129 unary & address operator, as that breaks GCC's strict aliasing
132 2005-07-25 Jan Hubicka <jh@suse.cz>
133 H.J. Lu <hongjiu.lu@intel.com>
135 * emulparams/elf_x86_64.sh (LARGE_SECTIONS): New.
137 * scripttempl/elf.sc: Updated for large section support.
139 2005-07-21 Ralf Corsepius <ralf.corsepius@rtems.org>
141 * configure.tgt: Remove i[3-7]86-*-rtemself*.
142 Remove sparc-*-rtemself*.
144 2005-07-21 Ben Elliston <bje@gnu.org>
146 * ldgram.y (ldgram_want_filename): Remove unused static.
148 2005-07-20 DJ Delorie <dj@redhat.com>
150 * emulparams/elf32m32c.sh (TEMPLATE_NAME): New.
151 (EXTRA_EM_FILE): New.
153 2005-07-19 H.J. Lu <hongjiu.lu@intel.com>
155 * ldmain.c (main): Reindent.
157 2005-07-19 Paul Brook <paul@codesourcery.com>
159 * configure.host (HOSTING_CRT0): Parse output of gcc --help --verbose
160 to determine dynamic linker name.
162 2005-07-18 Nick Clifton <nickc@redhat.com>
164 * configure.tgt: Restore alpha ordering to list of arches.
166 2005-07-16 Alan Modra <amodra@bigpond.net.au>
168 * emultempl/elf32.em (gld*_provide_init_fini_syms): Prototype.
169 (gld*_before_allocation): Call ldemul_do_assignments rather than
170 gld*_provide_init_fini_syms directly.
171 * emultempl/ppc32elf.em (gld*_after_allocation): Delete.
172 (ppc_do_assignments): New function.
173 (LDEMUL_AFTER_ALLOCATION): Don't define.
174 (LDEMUL_DO_ASSIGNMENTS): Define.
176 2005-07-16 Alan Modra <amodra@bigpond.net.au>
178 * Makefile.am: Run "make dep-am".
179 (emipsidt.c, emipsidtl.c): Depend on generic.em.
180 * Makefile.in: Regenerate.
182 2005-07-15 Alan Modra <amodra@bigpond.net.au>
184 * ldemul.c (ldemul_do_assignments): New function.
185 (do_assignments_default): New function.
186 * ldemul.h (ldemul_do_assignments): Declare.
187 (do_assignments_default): Declare.
188 (struct ld_emulation_xfer_struct): Add do_assignments.
189 * ldlang.c (lang_do_assignments) Call ldemul_do_assignments.
190 * emultempl/aix.em (ld_*_emulation): Init do_assignments field.
191 * emultempl/armcoff.em: Likewise.
192 * emultempl/beos.em: Likewise.
193 * emultempl/generic.em: Likewise.
194 * emultempl/gld960.em: Likewise.
195 * emultempl/gld960c.em: Likewise.
196 * emultempl/linux.em: Likewise.
197 * emultempl/lnk960.em: Likewise.
198 * emultempl/m68kcoff.em: Likewise.
199 * emultempl/pe.em: Likewise.
200 * emultempl/sunos.em: Likewise.
201 * emultempl/ticoff.em: Likewise.
202 * emultempl/vanilla.em: Likewise.
203 * emultempl/elf32.em: Likewise, to call gld*_provide_init_fini_syms.
204 (gld*_find_exp_assignment): Adjust bfd_elf_record_link_assignment call.
206 2005-07-14 Jim Blandy <jimb@redhat.com>
208 Add support for the Renesas M32C and M16C.
209 * Makefile.am (ALL_EMULATIONS): Add eelf32m32c.o.
210 (eelf32m32c.c): New target.
211 * Makefile.in: Regenerated.
212 * configure.tgt: Add case for m32c-*-elf.
213 * emulparams/elf32m32c.sh: New file.
215 2005-07-14 Alan Modra <amodra@bigpond.net.au>
217 * ldlang.c (strip_excluded_output_sections): Don't call
219 * emultempl/elf32.em (gld*_provide_bound_symbols): Move.
220 (gld*_provide_init_fini_syms): Move.
221 (gld*_before_allocation): Call the above from here..
222 (gld*_finish): ..not here. Call _bfd_elf_fix_excluded_sec_syms.
223 * emultempl/hppaelf.em (hppaelf_finish): Likewise.
224 * emultempl/ppc64elf.em (ppc_finish): Likewise.
226 2005-07-10 Ralf Corsepius <ralf.corsepius@rtems.org>
228 * configure.tgt: Remove sparc*-*-rtemsaout*, i[3-7]86-go32-rtems*,
229 i[3-7]86-*-rtemscoff*, hppa*-*-rtems*, mips*el-*-rtems*,
232 2005-07-09 Christopher Faylor <cgf@timesys.com>
234 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse): Enable runtime
235 relocation by default.
236 (compute_dll_image_base): Avoid linking into cygwin dll address space.
238 2005-07-08 Alan Modra <amodra@bigpond.net.au>
240 * ldlang.c (wild_sort): Formatting.
241 (strip_excluded_output_sections): Strip zero size sections here.
242 * emultempl/elf32.em (gld*_strip_empty_sections): Delete.
243 (gld*_finish): Don't call the above.
244 * emultempl/hppaelf.em (hppaelf_finish): Likewise.
245 * emultempl/ppc64elf.em (ppc_finish): Likewise.
247 2005-07-05 Paul Brook <paul@codesourcery.com>
249 * Makefile.am (ALL_EMULATIONS): Add eelf32ppcvxworks.o.
250 (eelf32ppcvxworks.o): Add dependencies.
251 * Makefile.in: Regenerate.
252 * configure.tgt: Add entry for powerpc-vxworks.
253 * emulparams/elf32-ppc.c: Mention elf32ppcvxworks.sh in comment.
254 * emulparams/elf32ppcvxworks.sh: New file.
255 * emultempl/ppc32elf.em (bfd_elf32_powerpc_vxworks_vec): Declare.
256 (is_ppc_elf32_vec): New function.
257 (ppc_after_open, ppc_before_allocation,
258 gld${EMULATION_NAME}_after_allocation): Use it.
260 2005-07-05 Peter S. Mazinger" <ps.m@gmx.net>
262 * emulparams/elf32bmip.sh (GENERATE_PIE_SCRIPT): Define as "yes".
263 * emulparams/elf32bmipn32-defs.sh (GENERATE_PIE_SCRIPT): Define as "yes".
265 2005-07-04 Mike Frysinger <vapier@gentoo.org>
267 * emulparams/hppalinux.sh (GENERATE_PIE_SCRIPT): Fix typo in
270 2005-07-04 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
272 * emulparams/m32relf_linux.sh (GENERATE_PIE_SCRIPT): Set to yes.
274 2005-07-04 Aurelien Jarno <aurel32@debian.org>
276 * emultempl/elf32.em: Enable use of ld.so.conf for *-*-k*bsd-*.
278 2005-07-01 Alan Modra <amodra@bigpond.net.au>
280 * scripttempl/elf.sc (.gcc_except_table): Don't KEEP.
282 2005-06-30 Ben Elliston <bje@gnu.org>
284 * Makefile.am (check-DEJAGNU): Don't search for expect.
285 * Makefile.in: Regenerate.
287 2005-06-30 Ben Elliston <bje@gnu.org>
289 * Makefile.am (EXPECT): Set to expect.
290 (RUNTEST): Likewise, set to runtest.
291 * Makefile.in: Regenerate.
293 2005-06-16 Alexander Klimov <alserkli@inbox.ru>
295 * emultempl/armelf.em: Add quotes to avoid a null test
298 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
300 * ld.texinfo (Command Line Options): Add @item for --hash-size.
302 2005-06-10 Alan Modra <amodra@bigpond.net.au>
304 * scripttempt/elf.sc (.bss): Align tail in a way that allows
305 empty section pruning.
307 2005-06-09 Steve Ellcey <sje@cup.hp.com>
309 * configure.in (AM_BINUTILS_WARNINGS): Add.
310 (BFD_NEED_DECLARATION) Replace with AC_CHECK_DECLS.
311 * config.in: Regenerate.
312 * configure: Regenerate.
313 * sysdep.h (NEED_DECLARATION_*): Replace with HAVE_DECL_*
316 2005-06-09 Alan Modra <amodra@bigpond.net.au>
318 * ldexp.c (fold_unary <ALIGN_K>): Revert last change.
320 2005-06-09 Alan Modra <amodra@bigpond.net.au>
322 * ld.h (lang_phase_type): Move to..
323 * ldexp.h: ..here. Add lang_mark_phase_enum.
324 (node_type): Remove etree_undef and etree_unspec.
325 (exp_data_seg): Delete.
326 (struct ldexp_control, expld): New.
327 (invalid, exp_mark_used_section): Delete.
328 (exp_fold_tree, exp_get_vma, exp_get_value_int, exp_get_fill,
329 exp_get_abs_int): Update prototypes.
330 * ldexp.c (assigning_to_dot): Delete.
332 (make_abs): Operate directly on expld.result. Update all callers.
333 (new_abs): Likewise. Return void.
334 (new_rel_from_abs): Rename from new_rel_from_section.
335 (new_rel, new_rel_from_abs): Operate on expld.result and return void.
337 (fold_unary): Operate on expld.result and return void. Remove
338 "current_section", "allocation_done", "dot", "dotp" and "mark_used"
339 params. Update all callers.
340 (fold_binary, fold_trinary, fold_name, exp_fold_tree_1): Likewise.
341 (fold_unary <ALIGN_K>): Ensure alignment is absolute.
342 (fold_unary <ABSOLUTE>): Use make_abs.
343 (fold_unary <DATA_SEGMENT_END>): Evaluate mark_phase as for
345 (fold_binary <DATA_SEGMENT_ALIGN, DATA_SEGMENT_RELRO_END, >): Ditto.
346 (fold_binary <'%','/'>): Don't error if marking.
347 (fold_name <SIZEOF_HEADERS>): Don't call bfd_sizeof_headers when
349 (fold_name <NAME>): Remove FIXME; -R is handled correctly. Don't
351 (fold_name <ADDR, LOADADDR, SIZEOF>): Don't set SEC_KEEP.
352 (exp_fold_tree_1): Don't error when marking.
353 (exp_fold_tree_1 <etree_rel>): Evaluate in all phases except first.
354 (exp_fold_tree_1 <etree_assign to dot>): Don't check for NULL
355 current section, instead check for NULL dotp.
356 (exp_fold_tree_1 <etree_provide>): Don't evaluate the assignment
357 source unless the symbol is referenced and undefined.
358 (exp_fold_tree): Remove "allocation_done" and "dot" params. Save
360 (exp_fold_tree_no_dot): Remove "current_section", "allocation_done
361 and "mark_used" params. Save params to expld. Update all callers.
362 (exp_assop): Do without temp var.
363 (exp_print_tree <etree_undef>): Delete code.
364 (exp_get_vma): Remove "allocation_done" param. Correct error return.
365 (exp_get_fill, exp_get_abs_int): Likewise.
366 (exp_get_value_int): Remove "allocation_done" param.
367 (exp_mark_used_section): Delete.
368 * ldgram.y (fill_exp): Update exp_get_fill call.
369 (origin_spec, length_spec): Update exp_get_vma call.
370 * ldlang.c (lang_init): Don't bother clearing lang_statement_iteration.
371 (lang_mark_used_section_1, lang_mark_used_section): Delete.
372 (strip_excluded_output_sections): Call one_lang_size_sections_pass in
373 marking mode. Merge old lang_mark_used_section code. Correct handling
374 of output sections with excluded input sections and data statements.
375 Don't drop non-zero sized sections. Don't zap os->bfd_section.
376 Do set SEC_EXCLUDE when appropriate.
377 (print_output_section_statement): Update for changed ldexp.c
379 (print_assignment, lang_size_sections_1): Likewise.
380 (lang_do_assignments_1, lang_enter_output_section_statement): Likewise.
381 (lang_new_phdr, lang_record_phdrs): Likewise.
382 (lang_size_sections): Likewise.
383 (insert_pad): Use following statement if it is a pad, rather than
385 (lang_size_sections_1 <lang_output_section_statement_enum>): Do
386 process ignored output section to set vma and lma, but don't
387 update dot for these sections. Don't error if marking.
388 (lang_size_sections_1 <lang_assignment_statement_enum>): Don't
389 update dot for ignored sections.
390 (lang_size_sections_1 <lang_data_statement_enum>): Don't mark absolute
391 section with SEC_ALLOC.
392 (one_lang_size_sections_pass): New function.
393 (lang_size_sections): Remove first five params. Set expld.phase on
394 entry and exit. Use one_lang_size_sections_pass.
395 (lang_do_assignments): Remove all params. Update all callers.
396 (lang_reset_memory_regions): Clear os->processed for all output
398 * ldlang.h (lang_do_assignments): Update prototype.
399 (lang_size_sections): Likewise.
400 (one_lang_size_sections_pass): Declare.
401 * pe-dll.c (pe_dll_fill_sections, pe_exe_fill_sections): Update
402 lang_size_sections and lang_do_assignments calls.
403 * emultempl/elf32.em (layout_sections_again): Likewise.
404 * emultempl/ppc64elf.em (ppc_before_allocation): Use
405 one_lang_size_sections_pass.
407 2005-06-08 Aldy Hernandez <aldyh@redhat.com>
409 * emulparams/elf32ms1.sh: New.
411 2005-06-07 Eric Christopher <echristo@redhat.com>
413 * Makefile.am (eelf32ms1.c): Use tab.
414 * Makefile.in: Regenerate.
416 2005-06-07 Aldy Hernandez <aldyh@redhat.com>
417 Michael Snyder <msnyder@redhat.com>
418 Stan Cox <scox@redhat.com>
420 * configure.tgt: Same.
422 * Makefile.am (ALL_EMULATIONS): Depend on eelf32ms1.o.
423 (eelf32ms1.c): Add eelf32ms1.c rule.
425 * Makefile.in: Regenerate.
427 2005-06-06 Alan Modra <amodra@bigpond.net.au>
429 * emultempl/ppc64elf.em (ppc_before_allocation): Always run
432 2005-06-05 H.J. Lu <hongjiu.lu@intel.com>
434 * ldexp.c (exp_mark_used_section): Set SEC_KEEP on current
435 section only if the symbol will be defined.
437 2005-06-04 H.J. Lu <hongjiu.lu@intel.com>
440 * ldexp.c (exp_mark_used_section): Set SEC_KEEP on current
441 section for etree_assign, etree_provide and etree_provided.
442 Call fold_binary on etree_binary.
444 * ldlang.c (lang_mark_used_section_1): Handle load base.
446 2005-06-03 Alan Modra <amodra@bigpond.net.au>
448 * ldmain.c (link_callbacks): Add einfo.
449 (add_archive_element): Use passed info, not link_info.
450 (constructor_callback): Likewise.
451 (reloc_overflow): Don't handle null bfd specially.
452 (reloc_dangerous, unattached_reloc): Likewise.
453 * ldmisc.c (vfinfo <B>): Print "ld generated" for null bfd.
454 (vfinfo <C, D, G>): Handle null bfd. Wrap comments.
456 2005-06-02 Alan Modra <amodra@bigpond.net.au>
458 * ldexp.h (etree_value_type): Use "asection *" in place of
459 "struct lang_output_section_statement_struct *" for "section".
460 (exp_fold_tree): Likewise.
461 (exp_mark_used_section): Likewise.
462 * ldexp.c (new_rel, new_rel_from_section, fold_unary, fold_binary,
463 fold_trinary, fold_name, exp_fold_tree_1, exp_fold_tree,
464 exp_mark_used_section): Likewise for "current_section" param.
465 (make_abs, new_abs, exp_binop, exp_unop, exp_get_vma, exp_get_fill,
466 exp_get_abs_int): Adjust for above changes.
467 * ldlang.c (lang_mark_used_section_1, print_assignment,
468 lang_size_sections_1, lang_do_assignments_1): Likewise.
469 * ldexp.c (fold_name): Init entire result struct.
471 2005-06-01 Maciej W. Rozycki <macro@linux-mips.org>
473 * emulparams/elf32btsmip.sh: Unset DATA_ADDR.
475 2005-05-31 Zack Weinberg <zack@codesourcery.com>
477 * ldlang.c (entry_symbol_default): New file-scope global.
478 (lang_finish): Use it, not a hardwired "start".
479 (lang_default_entry): Set it.
480 * ldlang.h: Declare lang_default_entry.
481 * emultempl/beos.em, emultempl/pe.em: Use lang_default_entry,
482 not lang_add_entry, to override default entry point symbol.
484 2005-05-29 Richard Henderson <rth@redhat.com>
486 * emulparams/elf64alpha.sh (PLT): New.
488 * emultempl/alphaelf.em (disable_relaxation): New.
489 (limit_32bit): Rename from elf64alpha_32bit; update all users.
490 (elf64_alpha_use_secureplt): Declare.
491 (bfd_elf64_alpha_vec, bfd_elf64_alpha_freebsd_vec): Declare.
492 (alpha_after_open): New.
493 (alpha_before_allocation): New.
494 (OPTION_NO_RELAX, OPTION_SECUREPLT, OPTION_NO_SECUREPLT): New.
495 (PARSE_AND_LIST_LONGOPTS): Include them.
496 (PARSE_AND_LIST_OPTIONS): Likewise.
497 (PARSE_AND_LIST_ARGS_CASES): Likewise.
498 (LDEMUL_AFTER_OPEN, LDEMUL_BEFORE_ALLOCATION): New.
499 * scripttempl/elf.sc (TEXT_PLT): New.
502 2005-05-27 Andreas Schwab <schwab@suse.de>
504 * configure.host (HOSTING_LIBS): Add libunwind.a if it exists.
506 2005-05-24 Alan Modra <amodra@bigpond.net.au>
508 * emultempl/ppc32elf.em (after_allocation): Don't call
509 ppc_elf_set_sdata_syms when relocatable.
511 2005-05-21 H.J. Lu <hongjiu.lu@intel.com>
513 * Makefile.am (ld.1): Revert the last 2 changes.
514 (info-recursive): Depend on ld.1.
515 * Makefile.in: Regenerated.
517 2005-05-21 H.J. Lu <hongjiu.lu@intel.com>
519 * Makefile.am (ld.1): Depend on "info" instead of
520 "configdoc.texi ldver.texi".
521 * Makefile.in: Regenerated.
523 2005-05-21 H.J. Lu <hongjiu.lu@intel.com>
525 * Makefile.am (ld.1): Depend on "info".
526 * Makefile.in: Regenerated.
528 2005-05-19 Zack Weinberg <zack@codesourcery.com>
530 * Makefile.am: Have 'all' depend on 'info' and 'ld.1'.
531 * Makefile.in: Regenerate.
533 2005-05-17 Zack Weinberg <zack@codesourcery.com>
535 * ld-arm/mixed-app.d: Adjust expected disassembly a little.
537 2005-05-17 Daniel Jacobowitz <dan@codesourcery.com>
539 * Makefile.am (ldver.texi): Don't use $<.
540 * Makefile.in: Regenerated.
542 2005-05-17 Daniel Jacobowitz <dan@codesourcery.com>
544 * Makefile.am (AM_MAKEINFOFLAGS, TEXI2DVI): Explicitly include
545 $(srcdir) before $(BFDDIR)/doc.
546 * Makefile.in: Regenerated.
548 2005-05-17 H.J. Lu <hongjiu.lu@intel.com>
551 * ldexp.c (exp_fold_tree_1): Renamed from exp_fold_tree and
552 take take a bfd_boolean, mark_used. Ignore assert failure if
554 (exp_fold_tree) Call exp_fold_tree_1 with mark_used == FALSE.
555 (exp_fold_tree_no_dot): Updated to take a bfd_boolean,
556 mark_used and pass down.
557 (fold_unary): Likewise.
558 (fold_binary): Likewise.
559 (fold_trinary): Likewise.
560 (exp_binop): Add FALSE to call to exp_fold_tree_no_dot.
561 (exp_trinop): Likewise.
562 (exp_unop): Likewise.
563 (exp_nameop): Likewise.
564 (exp_get_vma): Likewise.
565 (exp_get_fill): Likewise.
566 (exp_get_abs_int): Likewise.
567 (fold_name): Likewise. Set SEC_KEEP in output section flags.
568 (exp_mark_used_section): New.
570 * ldexp.h (exp_mark_used_section): New.
572 * ldlang.c (lang_output_section_statement_lookup_1): Set the
573 ignored field to FALSE.
574 (lang_mark_used_section_1): New.
575 (lang_mark_used_section): Call lang_mark_used_section_1.
576 (strip_excluded_output_sections): Call lang_mark_used_section
577 and check for unused sections.
578 (lang_size_sections_1): Skip an output section if it should
580 (lang_do_assignments_1): Likewise.
581 (lang_process): Don't call lang_mark_used_section here.
583 * ldlang.h (lang_output_section_statement_type): Change
584 all_input_readonly to bitfield. Add ignored.
586 2005-05-17 Lennert Buytenhek <buytenh@wantstofly.org>
587 Peter S. Mazinger" <ps.m@gmx.net>
589 * emulparams/armelf_linux.sh (GENERATE_PIE_SCRIPT): Define as "yes".
590 * emulparams/hppalinux.sh (GENERATE_PIE_SCRIPT): Define as "yes".
592 2005-05-17 Julian Brown <julian@codesourcery.com>
594 * ldlang.c (print_assignment): Do not rely upon a valid result
595 having a section associated with it.
597 2005-05-17 Nick Clifton <nickc@redhat.com>
599 * ldlang.c (Scan_for_self_assignment): Check an assignment tree to
600 see if the same value is being used on the rhs as on the lhs.
601 (print_assignment): Call scan_for_self_assignment and if it
602 returns true, do no display the result of the computation but
603 instead just the final value of the symbol on the lhs.
604 * ld.texinfo: Document this behaviour and provide an example of
607 2005-05-15 Daniel Jacobowitz <dan@codesourcery.com>
609 * Makefile.am (AM_MAKEINFOFLAGS): Define.
611 (ldver.texi): Depend on distributed files instead of built files.
612 (ld.info): Include $(srcdir) in the rule target. Remove actions.
613 (ld.dvi): Remove actions.
614 (MAINTAINERCLEANFILES): Add configdoc.texi.
615 (CONFIG_STATUS_DEPENDENCIES): Add bfd/configure.in.
616 (install-data-local): Renamed from install.
617 (Makefile): Remove explicit dependency.
618 * acinclude.m4: Remove obsolete code.
619 * configure.in: Update AC_PREREQ. Remove extra $CONFIG_SHELL.
620 * Makefile.in, aclocal.m4, config.in, configure: Regenerated.
622 2005-05-11 Bob Wilson <bob.wilson@acm.org>
624 * scripttempl/elfxtensa.sc: Sync up with elf.sc.
625 * emulparams/elf32xtensa.sh (PLT, GOT): Define.
627 2005-05-11 Alan Modra <amodra@bigpond.net.au>
629 * ldgram.y: Add SPECIAL token.
630 (sect_constraint): Handle SPECIAL.
631 * ldlang.c (lang_output_section_find_1): Don't match SPECIAL.
632 (map_input_to_output_sections): Likewise.
633 * ldlex.l (SPECIAL): Define.
634 * emulparams/elf32ppc.sh (DATA_GOT, SDATA_GOT, SEPARATE_GOTPLT,
635 GOT, PLT, GOTPLT): Define.
636 * emultempl/ppc32elf.em (old_plt, old_got): New static vars.
637 (ppc_after_open): New function.
638 (PARSE_AND_LIST_PROLOGUE): Define OPTION_OLD_LPT and OPTION_OLD_GOT.
639 (PARSE_AND_LIST_LONGOPTS): Add "bss-plt" and "sdata-got".
640 (PARSE_AND_LIST_OPTIONS): Document them.
641 (PARSE_AND_LIST_ARGS_CASES): Handle them.
642 (LDEMUL_AFTER_OPEN): Define.
643 * scripttempl/elf.sc (PLT): Don't override existing define.
644 (DATA_GOT, SDATA_GOT): Define and use to enable alternate got
645 placement rather than using NO_SMALL_DATA. Emit GOTPLT for RELRO_NOW.
647 2005-05-10 Alan Modra <amodra@bigpond.net.au>
649 * scripttempl/elf.sc (DATA_SEGMENT_RELRO_GOTPLT_END): Delete.
650 (DATA_SEGMENT_RELRO_END): Use SEPARATE_GOTPLT value.
651 (GOTPLT): Remove DATA_SEGMENT_RELRO_GOTPLT_END. Place after
652 DATA_SEGMENT_RELRO_END in script.
654 2005-05-09 H.J. Lu <hongjiu.lu@intel.com>
656 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
657 Don't use a removed section.
659 2005-05-09 H.J. Lu <hongjiu.lu@intel.com>
661 * ldmain.c (reloc_overflow): Use output_bfd if the symbol
662 is defined in the ABS section.
664 2005-05-06 H.J. Lu <hongjiu.lu@intel.com>
666 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_init_fini_syms):
667 Put back !link_info.relocatable.
669 2005-05-06 H.J. Lu <hongjiu.lu@intel.com>
672 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_init_fini_syms):
673 Just check link_info.executable.
675 2005-05-06 Nick Clifton <nickc@redhat.com>
677 * Update the address and phone number of the FSF organization in
678 the GPL notices in the following files:
679 aclocal.m4, deffile.h, deffilep.y, fdl.texi, ld.h, ldcref.c,
680 ldctor.c, ldctor.h, ldemul.c, ldexp.c, ldexp.h, ldfile.c,
681 ldfile.h, 20ldgram.y, ldint.texinfo, ldlang.c, ldlang.h, ldlex.h,
682 ldlex.l, ldmain.c, ldmain.h, ldmisc.c, ldmisc.h, ldver.c, ldver.h,
683 ldwrite.c, ldwrite.h, lexsup.c, mri.c, mri.h, pe-dll.c, pe-dll.h,
684 sysdep.h, emultempl/aix.em, emultempl/alphaelf.em,
685 emultempl/armcoff.em, emultempl/armelf.em, emultempl/beos.em,
686 emultempl/crxelf.em, emultempl/elf32.em, emultempl/generic.em,
687 emultempl/gld960.em, emultempl/gld960c.em, emultempl/hppaelf.em,
688 emultempl/ia64elf.em, emultempl/irix.em, emultempl/linux.em,
689 emultempl/lnk960.em, emultempl/m68hc1xelf.em,
690 emultempl/m68kcoff.em, emultempl/m68kelf.em,
691 emultempl/mipsecoff.em, emultempl/mmix-elfnmmo.em,
692 emultempl/mmixelf.em, emultempl/mmo.em, emultempl/needrelax.em,
693 emultempl/pe.em, emultempl/ppc32elf.em, emultempl/ppc64elf.em,
694 emultempl/sh64elf.em, emultempl/sunos.em, emultempl/ticoff.em,
695 emultempl/vanilla.em, emultempl/xtensaelf.em
697 2005-05-05 H.J. Lu <hongjiu.lu@intel.com>
699 * scripttempl/elf.sc: Document the usage of __bss_start.
701 2005-05-05 Paul Brook <paul@codesourcery.com>
703 * Makefile.am: Add eelf_i386_vxworks.
704 * Makefile.in: Regenerate.
705 * configure.tgt: Make i?86-*-vxworks use targ_emul=elf_i386_vxworks.
706 * emulparams/elf_i386_vxworks.sh: New file.
707 * emulparams/vxworks.sh: New file.
708 * scripttempl/elf.sc: Add DATA_END_SYMBOLS and ETEXT_NAME.
710 2005-05-04 H.J. Lu <hongjiu.lu@intel.com>
712 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
713 Call _bfd_elf_provide_section_bound_symbols.
715 2005-05-04 Alan Modra <amodra@bigpond.net.au>
717 * ldemul.c: Include bfdlink.h.
718 (ldemul_before_allocation): Assume before_allocation is non-zero.
719 (before_allocation_default): Call strip_excluded_output_sections.
720 * ldlang.c (stripped_excluded_sections): New variable.
721 (lang_add_section): Build input section list for each output
722 section, attached via map_head and map_tail pointers.
723 (strip_excluded_output_sections): Make global. Traverse the
724 input section lists to find which output sections can go. Clear
725 link_order pointers and set stripped_excluded_sections.
726 (lang_process): Call strip_excluded_output_sections.
727 * ldlang.h (strip_excluded_output_sections): Declare.
728 * ldwrite.c: Update throuhout for link_order_head -> map_head change.
729 * emultempl/aix.em (before_allocation): Call
730 strip_excluded_output_sections.
731 * emultempl/armcoff.em (before_allocation): Likewise.
732 * emultempl/beos.em (before_allocation): Likewise.
733 * emultempl/linux.em (before_allocation): Likewise.
734 * emultempl/pe.em (before_allocation): Likewise.
735 * emultempl/sunos.em (before_allocation): Likewise.
736 * emultempl/elf32.em (before_allocation): Likewise. Call
737 bfd_elf_size_dynsym_hash_dynstr too.
738 * emultempl/lnk960.em (lnk960_before_allocation): Delete.
739 (ld_lnk960): Use before_allocation_default.
741 2005-05-02 H.J. Lu <hongjiu.lu@intel.com>
743 * emultempl/elf32.em (gld${EMULATION_NAME}_strip_empty_section):
744 Updated for bfd_section_list_remove change.
745 * ldlang.c (lang_insert_orphan): Likewise.
746 (strip_excluded_output_sections): Likewise.
747 (sort_sections_by_lma): New.
748 (lang_check_section_addresses): Sort the sections before
751 2005-04-29 Ralf Corsepius <ralf.corsepius@rtems.org>
753 * configure.tgt: Add h8300*-*-rtemscoff.
754 Switch h8300*-*-rtems* to elf.
756 2005-04-29 Ben Elliston <bje@au.ibm.com>
758 * ldgram.y (lang_memory_region_type): Make static.
759 (ldgram_want_filename): Likewise.
760 * ldemul.c (ld_emulation): Make static.
761 * ldfile.h (ldfile_find_command_file): Remove extern.
762 * ldfile.c (ldfile_find_command_file): Make static.
763 * ldlang.h (unique_section_list): Remove extern declaration.
764 * ldlang.c (unique_section_list): Make static.
765 * mri.h (symbol_truncate): Remove extern declaration.
766 * mri.c (symbol_truncate): Make static.
767 (order, only_load, address, alias): Likewise.
768 (alignment, subalignment): Likewise.
770 2005-04-27 H.J. Lu <hongjiu.lu@intel.com>
772 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
773 Use the first SEC_ALLOC section which isn't SEC_READONLY or the
774 last SEC_ALLOC section if such a section doesn't exist.
776 2005-04-24 Mark Kettenis <kettenis@gnu.org>
778 * configure.host: Add *-*-openbsd support.
780 2005-04-15 Julian Brown <julian@codesourcery.com>
782 * ld.texinfo: Document --use-blx.
783 * emultempl/armelf.em (use_blx): New variable.
784 (arm_elf_create_output_section_statements): Communicate value of
786 (PARSE_AND_LIST_PROLOGUE): Add OPTION_USE_BLX.
787 (PARSE_AND_LIST_OPTIONS): Add --use-blx option.
788 (PARSE_AND_LIST_ARGS_CASES): Add OPTION_USE_BLX case.
790 2005-04-14 Alan Modra <amodra@bigpond.net.au>
792 * Makefile.am (NO_WERROR): Define. Use instead of -Wno-error.
793 * configure.in: Include ../bfd/warning.m4 contents.
794 * Makefile.in: Regenerate.
795 * configure: Regenerate.
797 2005-04-12 Alan Modra <amodra@bigpond.net.au>
799 * Makefile.am: Run "make dep-am".
800 (ldgram.o, ldlex.o, deffilep.o): Add -Wno-error to command.
801 * Makefile.in: Regenerate.
802 * config.in: Regenerate.
804 2005-04-11 Alan Modra <amodra@bigpond.net.au>
806 * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed): Ignore
807 as_needed libs that were not needed.
808 (gld${EMULATION_NAME}_check_needed): Likewise.
810 2005-04-07 Nick Clifton <nickc@redhat.com>
812 * emultempl/m68kcoff.em: Include ldexp.h and ldlang.h so that
813 ldfile.h can use the lang_input_statement type.
815 2005-04-06 Jakub Jelinek <jakub@redhat.com>
817 * ldlang.c: Formatting.
818 (walk_wild_consider_section): Remember return value from wildcardp.
819 (is_simple_wild): Use strcspn instead of 2 strpbrk calls and strlen.
820 (wild_spec_can_overlap): Use strcspn instead of strpbrk and strlen.
822 2005-04-06 Robert O'Callahan <rocallahan@novell.com>
824 * ld.h (lean_section_userdata_type): Remove.
825 (fat_section_userdata_type): Remove file field.
826 (SECTION_USERDATA_SIZE): Remove.
827 * ldlang.c (init_os): Eliminate initialization of unused
828 lean_section_userdata_type.
830 * ldlang.h (callback_t, walk_wild_section_handler_t): New
832 (struct lang_wild_statement_struct): Add walk_wild_section_handler
833 and handler_data fields.
834 * ldlang.c (callback_t): Removed.
835 (walk_wild_consider_section, walk_wild_section_general,
836 section_iterator_callback, find_section, is_simple_wild,
837 match_simple_wild, walk_wild_section_specs1_wild0,
838 walk_wild_section_specs1_wild1, walk_wild_section_specs2_wild1,
839 walk_wild_section_specs3_wild2, walk_wild_section_specs4_wild2,
840 wild_spec_can_overlap, analyze_walk_wild_section_handler): New
842 (lang_add_wild): Call analyze_walk_wild_section_handler.
843 (walk_wild_section): Renamed to walk_wild_section_general and
844 created a wrapper function.
845 (section_iterator_callback_data): New typedef.
847 2005-04-04 Nick Clifton <nickc@redhat.com>
849 * configure.in: Add a check for <unistd.h> providing a prototype
850 for getopt() which is compatible with the one in
851 include/getopt.h. If so then define HAVE_DECL_GETOPT.
852 * configure: Regenerate.
853 * config.in (HAVE_DECL_GETOPT): Add.
854 * ldemul.c: Include config.h
855 * lexsup.c: Likewise.
856 * emultempl/elf32.sc: Likewise.
858 2005-03-29 Alan Modra <amodra@bigpond.net.au>
860 * emultempl/elf32.em (gld${EMULATION_NAME}_layout_sections_again):
861 New function, extracted from static void gld${EMULATION_NAME}_finish.
862 (gld${EMULATION_NAME}_strip_empty_sections): Likewise.
863 (gld${EMULATION_NAME}_provide_init_fini_syms): Likewise.
864 * emultempl/ppc64elf.em: Revert last change.
865 (ppc_layout_sections_again): Use
866 gld${EMULATION_NAME}_layout_sections_again.
867 (ppc_finish): Don't call gld${EMULATION_NAME}_finish. Instead call
868 gld${EMULATION_NAME}_strip_empty_sections and
869 gld${EMULATION_NAME}_provide_init_fini_syms.
870 * emultempl/hppaelf.em: Similarly.
872 2005-03-29 Alan Modra <amodra@bigpond.net.au>
874 * emultempl/ppc64elf.em (need_laying_out): Delete. Remove all refs.
875 (ppc_finish): Don't call bfd_elf_discard_info.
876 * emultempl/hppaelf.em: Similarly.
878 2005-03-24 Nick Clifton <nickc@redhat.com>
880 * po/fr.po: Updated French translation.
882 2005-03-23 Mike Frysinger <vapier@gentoo.org>
883 Nick Clifton <nickc@redhat.com>
885 * configure.host: Accept any C library to accompany a GNU Linux
886 implementation, not just the GNU C library.
887 * configure.tgt: Likewise.
888 * emultempl/elf32.em: Likewise.
890 2005-03-22 H.J. Lu <hongjiu.lu@intel.com>
892 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols): New
893 (gld${EMULATION_NAME}_finish): Call
894 gld${EMULATION_NAME}_provide_bound_symbols to provide
895 __preinit_array_start, __preinit_array_end, __init_array_start,
896 __init_array_end, __fini_array_start and __fini_array_end.
898 * scripttempl/elf.sc: Don't provide __preinit_array_start,
899 __preinit_array_end, __init_array_start, __init_array_end,
900 __fini_array_start nor __fini_array_end.
902 2005-03-23 Alan Modra <amodra@bigpond.net.au>
904 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Set
905 SEC_EXCLUDE on .gnu.warning sections.
907 2005-03-22 Alan Modra <amodra@bigpond.net.au>
909 * scripttempl/elf.sc (SBSS): Don't provide sbss start and end syms.
911 2005-03-21 Alan Modra <amodra@bigpond.net.au>
913 * emultempl/ppc32elf.em (gld${EMULATION_NAME}_after_allocation): New
915 (LDEMUL_AFTER_ALLOCATION): Define.
917 2005-03-21 Alan Modra <amodra@bigpond.net.au>
919 * emultempl/ppc64elf.em (ppc_finish): Rename from
920 gld${EMULATION_NAME}_finish. Call gld${EMULATION_NAME}_finish.
921 (LDEMUL_FINISH): Update.
922 * emultempl/hppaelf.em (hppaelf_finish, LDEMUL_FINISH): Likewise.
923 * emultempl/m68hc1xelf.em (m68hc11elf_finish, LDEMUL_FINISH): Likewise.
925 2005-03-18 Julian Brown <julian@codesourcery.com>
927 * scripttempl/armbpapi.sc (.rel.dyn): Add .rel.init_array,
929 (.rela.dyn): Add .rela.init_array, .rela.fini_array.
930 (SECTIONS): Add .rel.other, .rela.other, .reli.other after PLT relocs.
932 2005-03-18 H.J. Lu <hongjiu.lu@intel.com>
934 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Don't set
935 bfd_section when removing unused empty output sections for
936 non-relocatable link.
938 2005-03-19 Alan Modra <amodra@bigpond.net.au>
940 * ldlang.c (lang_insert_orphan): Use old section_tail rather than
941 traversing the bfd section list to find pointer to new section.
943 2005-03-18 Alan Modra <amodra@bigpond.net.au>
945 * scripttempl/elf.sc: When CREATE_SHLIB, put .sdata2 and .sbss2
946 input sections into .sdata and .sbss output respectively.
948 2005-03-16 David Heine <dlheine@tensilica.com>
949 Bob Wilson <bob.wilson@acm.org>
951 * ldlang.c (IGNORE_SECTION): Remove check for zero size.
952 (lang_check_section_addresses): Ignore zero size sections here.
954 2005-03-16 H.J. Lu <hongjiu.lu@intel.com>
956 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Remove
957 unused empty output sections for non-relocatable link.
959 * ld.h (args_type): Remove gc_sections.
961 * ldlang.c (lang_mark_used_section): New.
962 (lang_gc_sections): Use link_info.gc_sections instead of
963 command_line.gc_sections.
964 * ldmain.c (main): Likewise.
965 * lexsup.c (parse_args): Likewise.
966 * ldlang.c (lang_process): Call lang_mark_used_section.
968 * ldmain.c (main): Initialize link_info.gc_sections to FALSE.
970 2005-03-16 Nick Clifton <nickc@redhat.com>
971 Ben Elliston <bje@au.ibm.com>
973 * configure.in (werror): New switch: Add -Werror to the
974 compiler command line. Enabled by default. Disable via
976 * configure: Regenerate.
978 2005-03-16 Alan Modra <amodra@bigpond.net.au>
980 * emulparams/elf32ppclinux.sh (OTHER_READWRITE_SECTION): Delete.
981 (OTHER_RELRO_SECTIONS): Set this instead.
983 2005-03-15 Nick Clifton <nickc@redhat.com>
985 * NEWS: Add cutoff for changes in 2.16 release.
987 2005-03-15 Mikkel Krautz <krautz@gmail.com>
989 * configure.tgt (x86_64-elf): Add target.
991 2005-03-15 Alan Modra <amodra@bigpond.net.au>
993 * po/es.po: Commit new Spanish translation.
995 2005-03-14 Alan Modra <amodra@bigpond.net.au>
997 * ldexp.c (exp_fold_tree): Ensure return value is initialized.
998 Tidy etree_assert case.
1000 2005-03-14 Alan Modra <amodra@bigpond.net.au>
1002 * po/tr.po: Commit new Turkish translation.
1004 2005-03-11 Daniel Jacobowitz <dan@codesourcery.com>
1006 * Makefile.am: Remove references to em68klynx.o and esparclynx.o.
1007 * Makefile.in: Regenerated.
1008 * emulparams/m68klynx.sh, emulparams/sparclynx.sh: Remove.
1010 2005-03-07 Nick Clifton <nickc@redhat.com>
1012 * po/fr.po: Updated translation.
1014 2005-03-05 Alan Modra <amodra@bigpond.net.au>
1016 * po/ld.pot: Regenerate.
1018 2005-03-02 Jan Beulich <jbeulich@novell.com>
1020 * ldmain.c (remove_output): Use unlink_if_ordinary instead of unlink.
1021 * pe-dll.c (pe_dll_generate_implib): Likewise.
1023 2005-02-24 Ben Elliston <bje@au.ibm.com>
1025 * ldfile.c: Remove GNU960 conditional code.
1026 * emultempl/gld960.em: Likewise.
1027 * emultempl/gld960c.em: Likewise.
1028 * emultempl/lnk960.em: Likewise.
1030 2005-02-24 Nick Clifton <nickc@redhat.com>
1032 * emultempl/lnk960.em (lnk960_before_parse): Remove redundant
1033 empty string from calls to concat.
1035 2005-02-23 Nick Clifton <nickc@redhat.com>
1037 * emultempl/lnk960.em (lnk960_before_parse): Terminate list of
1038 arguments passed to concat() with a NULL.
1040 * emultempl/m68kcoff.em: Include ldexp.h and ldlang.h because they
1041 define types needed by ldfile.h
1043 2005-02-23 Alan Modra <amodra@bigpond.net.au>
1045 * pe-dll.c: Warning fixes.
1046 * emultempl/sunos.em: Likewise.
1048 2005-02-22 Daniel Jacobowitz <dan@codesourcery.com>
1050 * ldlang.c (section_already_linked): Don't call
1051 bfd_section_already_linked for dynamic objects.
1053 2005-02-22 Alan Modra <amodra@bigpond.net.au>
1055 * ldexp.c: Warning fixes.
1056 * ldwrite.c: Likewise.
1057 * emultempl/elf32.em: Likewise.
1059 2005-02-21 H.J. Lu <hongjiu.lu@intel.com>
1061 * ldlang.c (lang_add_section): Check SEC_TIC54X_BLOCK for TI
1063 (lang_size_sections_1): Check SEC_COFF_SHARED_LIBRARY for COFF
1064 and ECOFF output only.
1066 2005-02-21 Alan Modra <amodra@bigpond.net.au>
1068 * config.in: Regenerate.
1069 * configure: Regenerate.
1071 2005-02-17 Zack Weinberg <zack@codesourcery.com>
1073 * ldexp.c (assigning_to_dot): New global flag.
1074 (fold_name): If assigning_to_dot is true, object immediately to
1075 an undefined symbol.
1076 (exp_fold_tree): Set and clear assigning_to_dot around the
1077 recursive call to exp_fold_tree to process the right-hand side
1078 of an assignment to the location counter.
1080 2005-02-17 Paul Brook <paul@codesourcery.com>
1082 * scripttempl/armbpabi.sc: Add dummy name to version block.
1084 2005-02-17 Alan Modra <amodra@bigpond.net.au>
1086 * ldexp.c (new_abs): Init new.str.
1088 2005-02-15 Mark Mitchell <mark@codesourcery.com>
1090 * configure.in (AC_CHECK_FUNCS): Add glob.
1091 * configure: Regenerated.
1092 * emultempl/elf32.em (<glob.h>): Do not include if HAVE_GLOB is
1094 (gld${EMULATION_NAME}_parse_ld_so_conf_include): Do not use glob
1095 if HAVE_GLOB is not defined.
1097 2005-02-16 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1099 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Define
1100 lib_path if NATIVE is yes.
1102 2005-02-16 Alan Modra <amodra@bigpond.net.au>
1104 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Make
1105 an error creating fake bfd fatal.
1106 (ppc_before_allocation): Continue on after errors.
1107 (gld${EMULATION_NAME}_finish): Likewise.
1109 2005-02-15 Nick Clifton <nickc@redhat.com>
1111 * ldlex.l (YY_NO_UNPUT): Define so that the yy_unput function is
1112 not declared. It is not used and its presence causes a compile
1115 2005-02-11 Zack Weinberg <zack@codesourcery.com>
1117 * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed):
1118 If st.st_ino is zero, do not treat the library as a duplicate.
1120 2005-02-10 Jakub Jelinek <jakub@redhat.com>
1122 * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
1123 Set BFD_LINKER_CREATED on the stubs bfd.
1124 * emultempl/ppc64elf.em (ppc_create_output_section_statements):
1127 2005-02-08 Mark Mitchell <mark@codesourcery.com>
1129 * scripttempl/armbpabi.sc (VERSION): Make special section symbols
1131 (Image$$ER_RO$$Base): Define whenever RELOCATING.
1132 (Image$$ER_RO$$Limit): Likewise.
1133 (SHT$$INIT_ARRAY$$Base): Likewise.
1134 (SHT$$INIT_ARRAY$$Limit): Likeise.
1136 2005-02-10 Ben Elliston <bje@au.ibm.com>
1138 * emultempl/beos.em: Remove #if 0 and #if 1 blocks.
1140 2005-02-08 Richard Sandiford <rsandifo@redhat.com>
1142 * configure.tgt (mips64*el-*-linux-gnu*): Define targ_extra_libpath
1143 to include o32 and n64 emulations.
1144 (mips64*-*-linux-gnu*): Likewise.
1146 2005-02-08 Hans-Peter Nilsson <hp@axis.com>
1148 * ldmain.c (warning_callback, warning_find_reloc): Prepend
1149 "warning: " to warning messages.
1151 2005-02-04 Alan Modra <amodra@bigpond.net.au>
1153 * emultempl/elf32.em (gld${EMULATION_NAME}_find_exp_assignment): Don't
1154 look up symbol for etree_provide here.
1156 2005-02-02 Daniel Jacobowitz <dan@codesourcery.com>
1158 * emulparams/elf32bmip.sh (TEXT_DYNAMIC): Always set.
1160 2005-02-01 Edward Welbourne <eddy@opera.com>
1161 Nick Clifton <nickc@redhat.com>
1163 * ld.texinfo (Source Code Reference): New node describing how to
1164 access linker script defined variables from source code.
1166 2005-02-01 Alan Modra <amodra@bigpond.net.au>
1168 * ld.texinfo: Clarify --as-needed operation.
1170 2005-01-31 Andrew Cagney <cagney@gnu.org>
1172 * configure: Regenerate to track ../gettext.m4.
1174 2005-01-31 Nick Clifton <nickc@redhat.com>
1176 * ldver.c (ldversion): Bump reported copyright date to 2005.
1178 2005-01-31 Nick Clifton <nickc@redhat.com>
1180 * configure.tgt: Remove obsolete targets m68k-lynxos and
1183 2005-01-28 Julian Brown <julian@codesourcery.com>
1185 * emultempl/armelf.em (fix_v4bx): New variable.
1186 (arm_elf_create_output_section_statements): Communicate fix_v4bx flag
1188 (PARSE_AND_LIST_PROLOGUE): Add option token OPTION_FIX_V4BX.
1189 (PARSE_AND_LIST_LONGOPTS): Add option --fix-v4bx.
1190 (PARSE_AND_LIST_OPTIONS): Add option --fix-v4bx.
1191 (PARSE_AND_LIST_ARGS_CASES): Add option OPTION_FIX_V4BX.
1192 * NEWS: Mention --fix-v4bx.
1193 * ld.texinfo: Document --fix-v4bx.
1195 2005-01-25 Mark Mitchell <mark@codesourcery.com>
1197 * emulparams/armsymbian.sh (OTHER_READONLY_SECTIONS): Define, so
1198 as to include .ARM.exidx$${Base,Limit}.
1199 * ld/scripttempl/armbpabi.sc: Move .plt to end of text segment.
1200 Define IMAGE$$ER_RO$${Base,Limit} and SHT$$INIT_ARRAY$${Base,Limit}.
1201 Put .init_array, .fini_array, etc. into the read-only data
1204 2005-01-25 Alan Modra <amodra@bigpond.net.au>
1206 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Formatting.
1207 (gld${EMULATION_NAME}_after_open): Ignore needed libs if they were
1208 only needed by an as-needed lib that didn't get linked.
1210 2005-01-23 Alan Modra <amodra@bigpond.net.au>
1212 * ld.texinfo (Output Section Keywords <CONSTRUCTORS>): Correct
1213 __DTOR_LIST__ description.
1215 2005-01-23 Alan Modra <amodra@bigpond.net.au>
1217 * ld.texinfo (Location Counter <dot outside sections>): Document
1218 effects of orphan section placement, and ". = ." workaround.
1219 * Makefile.in: Regenerate.
1221 2005-01-22 Richard Sandiford <rsandifo@redhat.com>
1223 * emulparams/elf32bmip.sh (OTHER_GOT_SECTIONS): Add ". = .;".
1224 * emulparams/elf32bmipn32-defs.sh (OTHER_GOT_SECTIONS): Likewise.
1226 2005-01-21 Jakub Jelinek <jakub@redhat.com>
1228 * ldgram.y (AS_NEEDED): New token.
1229 (input_list): Handle AS_NEEDED ( input_list ).
1230 * ldlex.l (AS_NEEDED): Add.
1231 * ld.texinfo: Document AS_NEEDED ().
1232 * NEWS: Mention AS_NEEDED ().
1234 2005-01-21 Ben Elliston <bje@au.ibm.com>
1236 * ldlang.c (lang_reasonable_defaults): Remove.
1237 (lang_process): Don't call lang_reasonable_defaults.
1239 * ldexp.c (exp_assop): Remove #if 0'd code.
1240 (exp_print_tree): Likewise.
1241 * ldlang.c (lang_memory_region_lookup): Likewise.
1242 (open_output): Likewise.
1243 (lang_do_assignments_1): Likewise.
1244 (lang_place_orphans): Likewise.
1245 (lang_enter_output_section_statement): Likewise.
1246 (lang_reasonable_defaults): Likewise.
1247 * ldlang.h (struct lang_input_statement_struct): Likewise.
1248 * mri.c (mri_draw_tree): Likewise.
1249 (mri_load): Likewise.
1250 * pe-dll.c (generate_reloc): Likewise.
1251 (make_import_fixup_entry): Likewise.
1252 (pe_as16): Likewise.
1253 * emultempl/beos.em (set_pe_subsystem): Likewise.
1254 * emultempl/hppaelf.em (hppaelf_after_parse): Likewise.
1255 * emultempl/pe.em: Likewise.
1256 * emultempl/xtensaelf.em (xtensa_colocate_literals): Likewise.
1258 2005-01-20 Daniel Jacobowitz <dan@codesourcery.com>
1260 * Makefile.am (ALL_EMULATIONS): Add earmelfb_linux_eabi.o.
1261 (earmelfb_linux_eabi.c): New target.
1262 * Makefile.in: Regenerated.
1263 * configure.tgt (arm*b-*-linux-gnueabi): New target.
1264 * emulparams/armelfb_linux_eabi.sh: New file.
1266 2005-01-20 Nick Hudson <skrll@netbsd.org>
1269 * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
1270 Handle bfd_elf32_hppa_nbsd_vec.
1272 2005-01-19 Richard Sandiford <rsandifo@redhat.com>
1274 * ldmain.h (ld_sysroot): Change type to a constant string.
1275 * ldmain.c (ld_sysroot): Likewise.
1276 (get_relative_sysroot, get_sysroot): New functions, adding command-line
1277 support for changing the sysroot.
1278 (main): Call the new functions.
1279 * lexsup.c (OPTION_SYSROOT): New.
1280 (ld_options): Add --sysroot.
1281 (parse_args): Add a dummy handler for it.
1282 * ld.texinfo (--sysroot): Document.
1283 * NEWS: Mention the new --sysroot option.
1285 2005-01-18 Alan Modra <amodra@bigpond.net.au>
1287 * ldlang.c (section_already_linked): Adjust bfd_link_just_syms call.
1288 (lang_place_orphans): Don't abort on just_syms_flag, instead call
1291 2005-01-16 Danny Smith <dannysmith@users.sourceforge.net>
1293 * defilep.y (def_name, def_library): Combine into...
1294 (def_image_name): New function. Strip name to basename,
1297 2005-01-12 Mark Kettenis <kettenis@gnu.org>
1299 * configure.in: Be sure to invoke config.sub using the shell.
1300 * configure: Regenerate.
1302 2005-01-11 Alan Modra <amodra@bigpond.net.au>
1304 * configure.host: Correct sed patterns for last change.
1306 2005-01-10 Nick Clifton <nickc@redhat.com>
1309 * ldmisc.c (vfinfo): Add an extra argument: is_warning. Use this
1310 to determine whether config.make_executable should be set to FALSE in
1311 conjunction with config.fatal_warnings.
1312 (info_msg, minfo, lfinof): Pass FALSE as the extra argument.
1313 (einfo): Pass TRUE as the extra argument.
1315 2005-01-10 Greg Schaffer <gschafer@zip.com.au>
1317 * configure.host (linux targets): Use "${CC} -dumpspecs" instead
1318 of "${CC} --print-file-name=specs" to appease GCC versions >= 4.0.
1319 (ia64-*-aix): Delete - this target is obsolete, and would be
1320 broken by this patch.
1322 2005-01-06 Eric Botcazou <ebotcazou@libertysurf.fr>
1324 * configure.host (sparc*-*-solaris2*): Rename into sparc-*-solaris2*.
1325 (sparc64-sun-solaris2*): New host.
1327 2005-01-06 Paul Brook <paul@codesourcery.com>
1329 * Makefie.am: Add earmelf_vxworks.
1330 * Makefile.in: Regenerate.
1331 * configure.tgt: Make arm-*-vxworks a separate case.
1332 * emulparams/armelf_vxworks.sh: New function.
1334 2005-01-06 Alan Modra <amodra@bigpond.net.au>
1336 * emultempl/ppc64elf.em (no_multi_toc): New var.
1337 (gld${EMULATION_NAME}_finish): Pass to ppc64_elf_setup_section_lists.
1338 (OPTION_NO_MULTI_TOC): Define.
1339 (PARSE_AND_LIST_LONGOPTS): Add --no-multi-toc support.
1340 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Likewise.
1342 2005-01-05 Nick Clifton <nickc@redhat.com>
1345 * ldmisc.c (vfinfo): Alter output to conform to the GNU Coding
1346 Standard's specification for parsable error messages.
1348 2005-01-04 Paul Brook <paul@codesourcery.com>
1350 * Makefile.am: Correct dependency for earmsymbian.c.
1351 * Makefile.in: Regenerate.
1353 2004-12-28 Danny Smith <dannysmith@users.sourceforge.net>
1355 * emultempl/pe.em (set_pe_subsystem): Change second arg to
1356 lang_add_entry to FALSE.
1358 2004-12-23 Nick Clifton <nickc@redhat.com>
1361 * emulparams/shelf.sh (.stack): Increase stack start address to
1364 2004-12-20 Nick Clifton <nickc@redhat.com>
1366 * ldmain.c (main): Issue an error message if -static and -shared
1369 2004-12-17 Jakub Jelinek <jakub@redhat.com>
1371 * ldexp.h (exp_data_seg): Add min_base and maxpagesize fields.
1372 * ldexp.c (fold_binary) <case DATA_SEGMENT_ALIGN>: Initialize them.
1373 * ldlang.c (lang_size_sections): Use them to avoid wasting virtual
1374 address space at DATA_SEGMENT_ALIGN. Fix computation of expected
1375 PT_GNU_RELRO segment end.
1377 2004-12-14 P.J. Darcy <darcypj@us.ibm.com>
1379 * configure.tgt: Add s390x-ibm-tpf support.
1381 2004-12-16 Martin Kögler <mkoegler@auto.tuwien.ac.at>
1383 * ldmisc.c (vfinfo): Handle the case where %B is passed a NULL
1386 2004-12-07 Ben Elliston <bje@gnu.org>
1388 * ldemul.h: Forward declare struct option.
1390 2004-12-01 Danny Smith <dannysmith@users.sourceforge.net>
1392 * scripttempl/pe.sc (.data): Add .jcr subsection.
1394 2004-11-30 Paul Brook <paul@codesourcery.com>
1396 * emultempl/armelf.em: Ignore -p and -no-pipeline-knowledge.
1398 2004-11-30 Tero Niemela <tero_niemela@yahoo.com>
1400 * Makefile.am: Change LOCALEDIR to $(datadir)/share.
1401 * Makefile.in: Regenerate.
1403 2004-11-26 Melissa Mears <asterisk@graces.dricas.com>
1405 * emultempl/pe.em: Add --subsystem:xbox as well as
1407 * ld.texinfo: (ld_options): Document acceptance of subsystem xbox
1408 and numeric subsystems.
1410 2004-11-24 Alan Modra <amodra@bigpond.net.au>
1412 * ldexp.c (fold_name): Correct PR 338 fix.
1414 2004-11-19 Mark Mitchell <mark@codesourcery.com>
1416 * Makefile.am (ALL_EMULATIONS): Add earmelf_linux_eabi.o.
1417 (earmelf_linux_eabi.c): New target.
1418 * configure.tgt (arm*-*-linux-gnueabi): Handle it.
1419 * emulparams/armelf_linux_eabi.sh: New file.
1420 * Makefile.in: Regenerated.
1422 2004-11-19 Nick Clifton <nickc@redhat.com>
1425 * ld.texinfo (MEMORY): Update the descriptions of the ORIGIN and
1426 LENGTH fields in the MEMORY command, to explicitly state that
1427 symbols cannot be used in their expressions.
1429 2004-11-19 Jon Beniston <jon@beniston.com>
1431 * ld/ldlex.l: Allow ORIGIN and LENGTH in EXPRESSION.
1432 * ld/ldgram.y: Add ORIGIN and LENGTH expressions.
1433 * ld/ldexp.c (fold_name): Implement LENGTH() and ORIGIN() functions
1434 which return the length and origin of a memory.
1435 * ld/ld.texinfo: Document LENGTH() and ORIGIN() functions.
1436 * NEWS: Mention support for ORIGIN and LENGTH operators.
1438 2004-11-17 Daniel Jacobowitz <dan@codesourcery.com>
1440 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Don't use
1441 a dynamic object for stubs.
1443 2004-11-04 Paul Brook <paul@codesourcery.com>
1445 * ld.texinfo: Document --default-imported-symver.
1446 * ldmain.c (main): Set link_info.default_imported_symver.
1447 * lexsup.c (option_values): Add OPTION_DEFAULT_IMPORTED_SYMVER.
1448 (ld_options): Add --default-imported-symver.
1449 (parse_args): Handle OPTION_DEFAULT_IMPORTED_SYMVER.
1451 2004-11-08 Inderpreet Singh <inderpreetb@nioda.hcltech.com>
1452 Vineet Sharma <vineets@noida.hcltech.com>
1454 * Makefile.am: Add entries for new maxq-coff target.
1455 * Makefile.in: Regenerate.
1456 * configure.tgt: Add support for maxq.
1457 * emulparams/maxqcoff.sh: New File.
1458 * scripttempl/maxqcoff.sc: New linker script for target maxq.
1459 * NEWS: Mention the new target.
1461 2004-11-04 Daniel Jacobowitz <dan@debian.org>
1463 * Makefile.am (ALL_EMULATIONS): Remove earmelf_oabi.o.
1464 (earmelf_oabi.c): Remove rule.
1465 * configure.tgt: Remove arm-*-oabi and thumb-*-oabi.
1466 * emulparams/armelf_oabi.sh, emultempl/armelf_oabi.em: Delete files.
1467 * Makefile.in: Regenerated.
1469 2004-11-04 Hans-Peter Nilsson <hp@axis.com>
1471 * configure.tgt (crisv32-*-*): Handle like cris-*-* for non-aout.
1472 * emulparams/criself.sh (INIT_START): Remove emitted "push srp".
1473 (FINI_START): Ditto.
1474 (INIT_END): Remove emitted "jump [sp+]".
1477 2004-11-04 Alan Modra <amodra@bigpond.net.au>
1479 * emultempl/ppc64elf.em (no_tls_opt): Rename from notlsopt.
1480 (no_opd_opt, no_toc_opt): New static vars.
1481 (ppc_before_allocation): Don't edit opt if no_opd_opt. Call
1483 (OPTION_NO_OPD_OPT, OPTION_NO_TOC_OPT): Define.
1484 (PARSE_AND_LIST_LONGOPTS): Add no-opd-optimize and no-toc-optimize.
1485 (PARSE_AND_LIST_OPTIONS): Describe new options.
1486 (PARSE_AND_LIST_ARGS_CASES): Handle them.
1488 2004-10-27 Nick Clifton <nickc@redhat.com>
1490 * emultempl/alphaelf.em (alpha_after_parse): Add extra, NULL,
1491 parameter to invocation of lang_section_start.
1492 * emultempl/aix.em (_handle_option): Likewise.
1494 * Makefile.am (eelf64alpha.c, eelf64alpha_fbsd.c,
1495 eelf64alpha_nbsd.c): Add dependency upon emultempl/alphaelf.em.
1496 * Makefile.in: Regenerate.
1498 2004-10-26 Mark Mitchell <mark@codesourcery.com>
1500 * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Do not emit
1501 __exidx_{start,end} when not relocating.
1503 2004-10-25 Mark Mitchell <mark@codesourcery.com>
1505 * Makefile.in (earmsymbian.c): Depend on armbpabi.sc, not elf.sc.
1506 * ldexp.h (segment_type): New type.
1507 (segments): New variable.
1508 * ldexp.c (segments): New variable.
1509 (exp_print_token): Handle SEGMENT_START.
1510 (fold_binary): Likewise.
1511 * ldgram.y (SEGMENT_START): Declare it as a token.
1512 (exp): Handle SEGMENT_START.
1513 * ldlang.h (lang_address_statement_type): Add segment field.
1514 (lang_section_start): Change prototype.
1515 * ldlang.c (map_input_to_output_sections): Do not process section
1516 assignments if a corresponding SEGMENT_START has already been
1518 (lang_section_start): Add segment parameter.
1519 * ldlex.l (SEGMENT_START): Add it.
1520 * lexsup.c (seg_segment_start): New function.
1521 (parse_args): Use it for -Tbss, -Tdata, and -Ttext.
1522 * ld.texinfo (SEGMENT_START): Document it.
1523 * emulparams/armsymbian.sh (EMBEDDED): Set it.
1524 * scripttempl/armbpabi.sc: Use SEGMENT_START to control segment
1525 base addresses. Do not map relocations.
1526 * NEWS: Mention SEGMENT_START.
1528 2004-10-26 Paul Brook <paul@codesourcery.com>
1530 * ld.texinfo: Document --default-symver.
1531 * ldmain.c (main): Set link_info.create_default_symver.
1532 * lexsup.c (enum option_values): Add OPTION_DEFAULT_SYMVER.
1533 (ld_options): Add default-symver.
1534 (parse_args): Handle OPTION_DEFAULT_SYMVER.
1536 2004-10-24 Danny Smith <dannysmith@users.sourceforge.net>
1538 * pe-dll.c (process_def_file): Don't export all symbols by default if
1539 building a position-independent executable.
1541 2004-10-21 H.J. Lu <hongjiu.lu@intel.com>
1544 * ldmain.c (reloc_overflow): Accept a pointer to struct
1545 bfd_link_hash_entry. Report symbol location for relocation
1548 2004-10-21 H.J. Lu <hongjiu.lu@intel.com>
1550 * genscripts.sh (libpath.exp): Really generate for first
1553 2004-10-19 Danny Smith <dannysmith@users.sourceforge.net>
1555 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Simplify
1556 comparison and replacement of filenames.
1558 2004-10-19 H.J. Lu <hongjiu.lu@intel.com>
1561 * ldlang.c (load_symbols): Use the same -Bdynamic/-Bstatic
1562 option on linker script as the one for linker script.
1564 2004-10-16 Daniel Jacobowitz <dan@debian.org>
1566 * ldlang.c (struct excluded_lib, excluded_libs, add_excluded_libs)
1567 (check_excluded_libs): New.
1568 (load_symbols): Call check_excluded_libs.
1569 * ldlang.h (add_excluded_libs): New prototype.
1570 * emultempl/elf32.em (OPTION_EXCLUDED_LIBS): Define.
1571 (gld${EMULATION_NAME}_add_options): Add --exclude-libs.
1572 (gld${EMULATION_NAME}_handle_option): Handle --exclude-libs.
1573 * ld.texinfo (Command Line Variables): Document --exclude-libs.
1574 (Options Specific to i386 PE Targets): Remove --exclude-libs.
1576 2004-10-15 Alan Modra <amodra@bigpond.net.au>
1578 * ldexp.c (exp_fold_tree): Don't immediately exit ld on a
1579 failing link script assert.
1581 * ldctor.c (ldctor_add_set_entry): Fix comment typo.
1583 2004-10-14 H.J. Lu <hongjiu.lu@intel.com>
1586 * emulparams/elf64_ia64.sh (SMALL_DATA_CTOR): Set.
1587 (SMALL_DATA_DTOR): Set.
1588 * emulparams/elf64_ia64_fbsd.sh (SMALL_DATA_CTOR): Unset.
1589 (SMALL_DATA_DTOR): Unset.
1590 * scripttempl/elf.sc: If SMALL_DATA_CTOR is set, move .ctors
1591 after .data. If SMALL_DATA_DTOR is set, move .dtors after
1594 2004-10-14 Alan Modra <amodra@bigpond.net.au>
1597 * ldlang.h (lang_output_section_statement_type): Make "next" a
1598 struct lang_output_section_statement_struct *.
1599 (struct orphan_save): Move from elf32.em. Add "name" and "flags".
1600 (lang_output_section_find_by_flags, lang_insert_orphan): Declare.
1601 * ldlang.c (lang_output_section_find_1): Adjust for changed
1602 output_section_statement "next".
1603 (strip_excluded_output_sections): Likewise.
1604 (lang_record_phdrs): Likewise.
1605 (lang_output_section_find_by_flags): New function.
1606 (output_prev_sec_find): Move from pe.em. Adjust iterator.
1607 (lang_insert_orphan): New function. Tail end of elf32.em's
1608 place_orphan merged with that from pe.em. Allow bfd_section to
1609 be placed first. New heuristic for placing new output section
1610 statement in existing script, and accompanying split of __start
1611 symbol alignment into a separate assignment to dot.
1612 (lang_add_section): Consistently use output->bfd_section rather than
1613 an alias, section->output_section.
1614 (map_input_to_output_sections): Rename overly long arg. Move
1615 initialization of data_statement output section to here..
1616 (lang_check_section_addresses): ..from here.
1617 (print_assignment): Correct printing of etree_assert.
1618 (print_all_symbols): Don't bomb if userdata is NULL.
1619 (IGNORE_SECTION): Rearrange.
1620 * emultempl/elf32.em (output_rel_find): Adjust interator.
1621 (output_prev_sec_find): Delete.
1622 (struct orphan_save): Delete.
1623 (gld${EMULATION_NAME}_place_orphan): Cater for zero bfd_section
1624 flags without creating a duplicate output section statement.
1625 Revise code holding history of various orphan section placements.
1626 Allow orphan sections to place before script specified output
1627 sections. Call lang_output_section_find_by_flags when placement
1628 by name fails. Use lang_insert_orphan.
1629 * emultempl/mmo.em (output_prev_sec_find): Delete.
1630 (struct orphan_save): Delete.
1631 (mmo_place_orphan): Revise code holding history of orphan placement.
1632 Allow orphans to place before existing output sections. Use
1634 * emultempl/pe.em (output_prev_sec_find): Delete.
1635 (struct orphan_save): Delete.
1636 (gld_${EMULATION_NAME}_place_orphan): Revise to suit use of
1639 2004-10-13 Mark Mitchell <mark@codesourcery.com>
1641 * scripttempl/armbpabi.sc: Do not put .gnu.version.* into a
1644 2004-10-13 Alan Modra <amodra@bigpond.net.au>
1647 * ldcref.c (check_section_sym_xref): Delete.
1648 (check_local_sym_xref): New function.
1649 (check_nocrossrefs): Adjust call.
1650 * emultempl/pe.em (struct orphan_save): Add os_tail.
1651 (place_orphan): Backport assorted fixes from elf32.em.
1653 2004-10-12 Bob Wilson <bob.wilson@acm.org>
1655 * emultempl/xtensaelf.em: Use ISO C90 formatting.
1657 2004-10-11 Jakub Jelinek <jakub@redhat.com>
1659 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_ld_so_conf): Avoid
1660 getline for portability.
1662 * emultempl/elf32.em (gld${EMULATION_NAME}_ld_so_conf): New structure.
1663 (gld${EMULATION_NAME}_parse_ld_so_conf,
1664 gld${EMULATION_NAME}_parse_ld_so_conf_include): New functions.
1665 (gld${EMULATION_NAME}_check_ld_so_conf): Use them.
1667 2004-10-11 Alan Modra <amodra@bigpond.net.au>
1670 * ldfile.c (ldfile_try_open_bfd): Ensure dynamic objects are
1671 rejected when linking statically.
1673 2004-10-08 Daniel Jacobowitz <dan@debian.org>
1675 * configure.tgt: Include elf_x86_64 for i[3-7]86-*-solaris2*.
1677 2004-10-07 Bob Wilson <bob.wilson@acm.org>
1679 * ld.texinfo (Xtensa): Describe new linker relaxation to optimize
1680 assembler-generated longcall sequences. Describe new --size-opt
1682 * emulparams/elf32xtensa.sh (OTHER_SECTIONS): Add .xt.prop section.
1683 * emultempl/xtensaelf.em (remove_section,
1684 replace_insn_sec_with_prop_sec, replace_instruction_table_sections,
1685 elf_xtensa_after_open): New.
1686 (OPTION_OPT_SIZEOPT, OPTION_LITERAL_MOVEMENT,
1687 OPTION_NO_LITERAL_MOVEMENT): Define.
1688 (elf32xtensa_size_opt, elf32xtensa_no_literal_movement): New globals.
1689 (PARSE_AND_LIST_LONGOPTS): Add size-opt and [no-]literal-movement.
1690 (PARSE_AND_LIST_OPTIONS): Add --size-opt.
1691 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_OPT_SIZEOPT,
1692 OPTION_LITERAL_MOVEMENT, and OPTION_NO_LITERAL_MOVEMENT.
1693 (LDEMUL_AFTER_OPEN): Set to elf_xtensa_after_open.
1694 * scripttempl/elfxtensa.sc: Update with changes from elf.sc.
1695 * Makefile.am (eelf32xtensa.c): Update dependencies.
1696 * Makefile.in: Regenerate.
1698 2004-10-07 Jeff Baker <jbaker@qnx.com>
1700 * lexsup.c: Handle --warn-shared-textrel option.
1701 (ld_options): Restore alpha sorting of options.
1702 * ldmain.c (main): Initialise warn_shared_info field to FALSE.
1703 * ld.texinfo: Add documentation for --warn-shared-textrel.
1704 * NEWS: Added mention of --warn-shared-textrel option.
1706 2004-10-05 Tomer Levi <Tomer.Levi@nsc.com>
1708 * emultempl/crxelf.em (disable_relaxation): Add.
1709 (crxelf_before_allocation): Enable --relax option by default.
1710 (PARSE_AND_LIST_PROLOGUE): Add OPTION_NO_RELAX.
1711 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --no-relax.
1712 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_NO_RELAX.
1714 2004-10-04 H.J. Lu <hongjiu.lu@intel.com>
1716 * NEWS: Mention SORT_BY_NAME, SORT_BY_ALIGNMENT and
1717 --sort-section name|alignment.
1719 * ld.texinfo: Document SORT_BY_NAME, SORT_BY_ALIGNMENT and
1720 --sort-section name|alignment.
1722 * ld.h (sort_type): New enum.
1723 (wildcard_spec): Change the type of `sorted' to sort_type.
1725 * ldgram.y (SORT): Removed.
1726 (SORT_BY_NAME): Added.
1727 (SORT_BY_ALIGNMENT): Added.
1728 (wildcard_spec): Updated `sorted'. Handle SORT_BY_NAME and
1730 (input_section_spec_no_keep): Updated `sorted'.
1731 (statement): Replace SORT with SORT_BY_NAME.
1733 * ldlang.c (compare_section): New function to compare 2
1734 sections with different sorting schemes.
1735 (wild_sort): Updated. Use compare_section.
1736 (update_wild_statements): New function.
1737 (lang_process): Call update_wild_statements before
1738 map_input_to_output_sections.
1740 * ldlex.l (SORT_BY_NAME): New.
1741 (SORT_BY_ALIGNMENT): New.
1742 (SORT): Return SORT_BY_NAME.
1744 * ldmain.c (sort_section): New. Defined.
1745 (main): Initialize it to none.
1747 * lexsup.c (option_values): Add OPTION_SORT_SECTION.
1748 (ld_options): Add an entry for OPTION_SORT_SECTION.
1749 (parse_args): Handle OPTION_SORT_SECTION.
1751 * mri.c (mri_draw_tree): Updated `sorted'.
1753 2004-10-04 Jakub Jelinek <jakub@redhat.com>
1755 * ldgram.y (DATA_SEGMENT_RELRO_END): Add one argument.
1756 * scripttempl/elf.sc (DATA_SEGMENT_RELRO_END): Add 0 as first
1758 (DATA_SEGMENT_RELRO_GOTPLT_END): Pass $SEPARATE_GOTPLT as first
1759 and . as second argument.
1760 (GOTPLT): Move $DATA_SEGMENT_RELRO_GOTPLT_END before the section.
1761 * ldexp.c (fold_unary): Remove DATA_SEGMENT_RELRO_END handling here.
1762 (fold_binary): Add it here. Insert padding to make relro_end
1763 COMMONPAGESIZE bytes aligned. For DATA_SEGMENT_ALIGN in
1764 exp_dataseg_relro_adjust phase just use previously computed
1766 * ldlang.c (lang_size_sections): Set exp_data_seg.base for
1767 relro_adjust here. Call lang_size_sections_1 once more if there
1768 was too big padding at DATA_SEGMENT_RELRO_END.
1769 * ld.texinfo (DATA_SEGMENT_RELRO_END): Add documentation.
1771 2004-10-01 Paul Brook <paul@codesourcery.com>
1773 * emulparams/armelf.sh: Add unwinding table sections.
1775 2004-09-30 Filip Navara <navaraf@reactos.com>
1777 * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Generate
1778 correct base address for position independant executables.
1779 * pe-dll.c (pe_dll_fill_sections): Don't mark position independant
1780 executables as DLLs.
1782 2004-09-30 Paul Brook <paul@codesourcery.com>
1784 * ld.texinfo: Document --target2=abs.
1785 * emulparms/armsymbian.sh (TARGET2_TYPE): Set.
1787 2004-09-29 Nick Clifton <nickc@redhat.com>
1789 * scripttempl/xstormy16.sc: Only perform the assignments to the
1790 ROM region when not performing a relocatable link. The ROM region
1791 does not start at address 0, but the sections will.
1792 * Makefile.am: Fix linker script dependency for the generation of
1794 * Makefile.in: Regenerate.
1796 2004-09-18 Filip Navara <navaraf@reactos.com>
1798 * emulparams/arm_epoc_pe.sh, emulparams/armpe.sh, emulparams/i386pe.sh,
1799 emulparams/i386pe_posix.sh, emulparams/mcorepe.sh,
1800 emulparams/mipspe.sh, emulparams/ppcpe.sh, scripttempl/pe.sc: Define
1802 * scripttempl/pe.sc: Make the virtual address and file offset synced if
1803 the alignment is lower than the target page size.
1805 2004-09-27 Filip Navara <navaraf@reactos.com>
1807 * emultempl/pe.em (gld_${EMULATION_NAME}_unrecognized_file): Allow
1808 def_file_parse to handle pe_def_file if NULL and prevent crash with
1811 2004-09-27 Alan Modra <amodra@bigpond.net.au>
1813 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Enable
1814 --emit-stub-syms automatically when --emit-relocs.
1816 2004-09-24 Paul Brook <paul@codeosurcery.com>
1818 * scripttempl/elf.sc: Keep .preinit_array, .init_array and
1819 .fini_array sections.
1821 2004-09-19 Andreas Schwab <schwab@suse.de>
1823 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Adjust data segment
1824 base so that relro end is suitably aligned.
1826 2004-09-17 Paul Brook <paul@codesourcery.com>
1828 * ld.texinfo: Rename arm-specific section. Document --target*
1829 * emulparams/armelf_fbsd.sh: Set TARGET2_TYPE.
1830 * emulparams/armelf_linux.sh: Ditto.
1831 * emulparams/armelf_nbsd.sh: Ditto.
1832 * emultempl/armelf.em: Set default for TARGET2_TYPE.
1833 (target2_type): New variable.
1834 (arm_elf_before_allocation): Don't pass target1_type.
1835 (arm_elf_create_output_section_statements): New function.
1836 (PARSE_AND_LIST_PROLOGUE): Add OPTION_TARGET2.
1837 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --target=.
1838 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_TARGET2.
1839 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Set.
1840 * emultempl/armelf_oabi.em (_before_allocation): Remove extra
1841 argument to bfd_elf32_arm_process_before_allocation.
1843 2004-09-17 Alan Modra <amodra@bigpond.net.au>
1845 * ldexp.c (fold_name): Update u.undef.next refs.
1846 * emultempl/pe.em: Likewise.
1847 * emultempl/sunos.em: Likewise.
1849 2004-09-17 Alan Modra <amodra@bigpond.net.au>
1851 * Makefile.am: Run "make dep-am".
1852 * Makefile.in: Regenerate.
1853 * config.in: Regenerate.
1854 * configure: Regenerate.
1855 * aclocal.m4: Regenerate.
1856 * po/ld.pot: Regenerate.
1858 2004-09-16 Tomer Levi <Tomer.Levi@nsc.com>
1860 * scripttempl/elf32crx.sc (.init): Add KEEP for section's *personality*.
1864 2004-09-16 Alan Modra <amodra@bigpond.net.au>
1866 * emultempl/armelf_oabi.em (before_allocation): Add extra zero param
1867 to bfd_elf32_arm_process_before_allocation call.
1869 2004-09-13 Paul Brook <paul@codesourcery.com>
1871 * emulparams/armsymbian.sh: Set TARGET1_IS_REL.
1872 * emultempl/armelf.em: Use TARGET1_IS_REL. Add --target1-{rel,abs}.
1874 2004-09-07 H.J. Lu <hongjiu.lu@intel.com>
1876 * configure: Regenerated with autconfig 2.13.
1878 2004-09-07 Andreas Schwab <schwab@suse.de>
1880 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Apply data segment
1881 alignment before adjusting DATA_SEGMENT_RELRO_END.
1883 2004-09-06 Mark Mitchell <mark@codesourcery.com>
1885 * emulparams/armsymbian.sh: Use armbpabi script.
1886 * scripttempl/armbpabi.sc: New script.
1888 2004-09-02 Mark Mitchell <mark@codesourcery.com>
1890 * Makefile.am (ALL_EMULATIONS): Add earmsymbian.o.
1891 (earmsymbian.c): New target.
1892 * configure.tgt: Use armsymbian emulation for arm*-*-symbianelf*.
1893 * Makefile.in: Regenerated.
1894 * aclocal.m4: Likewise.
1895 * configure: Likewise.
1896 * emulparams/armsymbian.sh: New file.
1898 2004-09-03 Tomer Levi <Tomer.Levi@nsc.com>
1900 * scripttempl/elf32crx.sc: Edit file with comments.
1901 (.init): Add new section.
1903 (.ctor): Control the linkage order.
1906 2004-08-27 Nick Clifton <nickc@redhat.com>
1908 * emultempl/pe.em (after_open): Do not assume that either bfd is
1911 2004-08-26 Alan Modra <amodra@bigpond.net.au>
1913 * ldlang.c (lang_init): Don't compare with TRUE.
1915 2004-08-25 Dmitry Diky <diwil@spec.ru>
1917 * emulparams/msp430all.sh: Fix RAM sizes for all targets.
1918 * scripttempl/elf32msp430.sc: Add .profiler section definition.
1920 2004-08-24 H.J. Lu <hongjiu.lu@intel.com>
1922 * ldlang.c (wildcardp): Defined as a macro with strpbrk.
1924 2004-08-19 Mark Mitchell <mark@codesourcery.com>
1926 * configure.tgt (arm*-*-symbianelf*): New target.
1927 (arm*-*-eabi*): Likewise.
1929 2004-08-19 Jakub Jelinek <jakub@redhat.com>
1931 * emultempl/ppc64elf.em (non_overlapping_opd): New variable.
1932 (ppc_before_allocation): Pass it to ppc64_elf_edit_opd).
1933 (OPTION_NON_OVERLAPPING_OPD): Define.
1934 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Add
1935 --non-overlapping-opd option.
1937 2004-08-18 Alan Modra <amodra@bigpond.net.au>
1940 * ldexp.c (fold_name): Don't call bfd_link_add_undef if the symbol
1941 was already on the undefs list.
1943 2004-08-17 Alan Modra <amodra@bigpond.net.au>
1945 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern): Dot
1946 prefix the symbol field too.
1948 2004-08-13 Alan Modra <amodra@bigpond.net.au>
1950 * ldmain.c (link_callbacks): Remove "error_handler".
1951 * ldmisc.c: Include elf-bfd.h.
1952 (vfinfo): Sort comment. Handle %A. Use %A instead of
1953 bfd_get_section_indent.
1954 (error_handler): Delete.
1955 * ldmisc.h (error_handler): Delete declaration.
1957 2004-08-10 Alan Modra <amodra@bigpond.net.au>
1959 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Call
1960 ppc64_elf_restore_symbols.
1962 2004-08-09 Alan Modra <amodra@bigpond.net.au>
1964 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Error if
1965 .toc is too large on relocatable linking.
1967 2004-08-09 Alan Modra <amodra@bigpond.net.au>
1969 * emultempl/ppc64elf.em (ppc_after_open): Delete.
1970 (LDEMUL_AFTER_OPEN): Don't define.
1972 2004-08-02 Stephane Carrez <stcarrez@nerim.fr>
1974 * ld.texinfo (Top): Document specific options of 68HC11 and 68HC12.
1976 2004-08-01 Stephane Carrez <stcarrez@nerim.fr>
1978 * scripttempl/elfm68hc12.sc: Align text, rodata and data section
1981 2004-07-27 Jason Thorpe <thorpej@wasabisystems.com>
1983 * emulparams/hppanbsd.sh (OUTPUT_FORMAT): Set to "elf32-hppa-netbsd".
1985 2004-07-26 Dmitry Diky <diwil@spec.ru>
1987 * Makefile.am: Add new subtargets: msp430x1610, msp430x1611,
1988 msp430x1612, msp430x415, msp430x417, msp430xG437, msp430xG438,
1990 * configure.tgt: Likewise.
1991 * emulparams/msp430all.sh: Likewise.
1992 * Makefile.in: Regenerate.
1994 2004-07-23 Nick Clifton <nickc@redhat.com>
1996 * emultempl/elf32.em (_place_orphan): Use an already existing
1997 section name if that section does not have any flags set.
1999 2004-07-21 H.J. Lu <hongjiu.lu@intel.com>
2001 * ldlang.c (already_linked_hash_entry): Removed.
2002 (already_linked): Likewise.
2003 (already_linked_table): Likewise.
2004 (section_already_linked): Call bfd_section_already_linked.
2005 (lang_process): Replace already_linked_table_init with
2006 bfd_section_already_linked_table_init and check return. Replace
2007 already_linked_table_free with bfd_section_already_linked_table_free.
2009 2004-07-21 Nick Clifton <nickc@redhat.com>
2011 * ldlang.c (init_os): Make sure that the newly allocated userdata
2012 structure is zeroed out.
2014 2004-07-19 H.J. Lu <hongjiu.lu@intel.com>
2016 * NEWS: Mention the new --add-needed/--no-add-needed and
2017 --as-needed/--no-as-needed options.
2019 2004-07-19 H.J. Lu <hongjiu.lu@intel.com>
2021 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): Also
2022 check the add_needed field.
2023 (dt_needed): New struct.
2024 (gld${EMULATION_NAME}_try_needed): Change the first argument
2025 to a pointer to struct dt_needed. Check the DYN_NO_ADD_NEEDED
2026 bit in the file where the DT_NEEDED entry comes from.
2027 (gld${EMULATION_NAME}_search_needed): Change the second
2028 argument to a pointer to struct dt_needed.
2029 (gld${EMULATION_NAME}_check_ld_so_conf): Updated.
2030 (gld${EMULATION_NAME}_after_open): Likewise.
2032 * ld.texinfo: Add --add-needed document.
2033 * ldlang.c (new_afile): Set p->add_needed.
2034 * ldlang.h (lang_input_statement_type): Add add_needed field.
2035 * ldmain.h (add_needed): Declare.
2036 * ldmain.c (add_needed): New global var.
2037 * lexsup.c (option_values): Add OPTION_ADD_NEEDED and
2038 OPTION_NO_ADD_NEEDED.
2039 (ld_options): Likewise.
2040 (parse_args): Handle them.
2042 2004-07-13 Christof Petig <christof@petig-baender.de>
2044 * emultempl/pe.em (make_import_fixup): Use bfd_get_32 to correct
2045 for endian-ness of extracted addend.
2047 2004-07-13 Danny Smith <dannysmith@usesr.sourceforge.net>
2049 * pe-dll.c (auto_export): Filter on just the import prefix,
2050 "_imp_", not "_imp__".
2052 2004-07-09 Nick Clifton <nickc@redhat.com>
2054 * configure.tgt: Change sh-sybmian-elf to sh-*-symbianelf.
2056 2004-07-06 Tomer Levi <Tomer.Levi@nsc.com>
2058 * Makefile.am (ALL_EMULATIONS): Add eelf32crx.o.
2059 (eelf32crx.c): New target.
2060 * Makefile.in: Regenerate.
2061 * configure.tgt: Handle crx-*-elf*.
2062 * emulparams/elf32crx.sh: New file.
2063 * emultempl/crxelf.em: New file.
2064 * scripttempl/elf32crx.sc: New file.
2065 * NEWS: Mention new target.
2067 2004-07-06 Nick Clifton <nickc@redhat.com>
2069 * Makefile.am: Add eshlsymbian.c.
2070 * Makefile.in: Regenerate.
2071 * configure.tgt: Add sh*-symbian-elf target.
2072 * emulparams/shlsymbian.sh: New file. Configure the
2073 sh-symbian-elf linker scripts.
2074 * scripttemp/elf32sh-symbian.sc: New file. Linker script
2075 template for the sh-symbian-elf target.
2077 2004-07-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2079 * emulparams/hppa64linux.sh: Define PLT_BEFORE_GOT.
2080 * emulparams/hppalinux.sh: Likewise.
2081 * scripttempl/elf.sc: Place .plt just before .got when .plt is in
2082 data segment and PLT_BEFORE_GOT is defined.
2084 2004-07-03 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
2086 * ld.texinfo (WIN32): Document PE weak symbols.
2088 2004-07-02 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2090 * emulparams/shlelf32_linux.sh (COMMONPAGESIZE): Set to 4KB.
2092 2004-07-01 H.J. Lu <hongjiu.lu@intel.com>
2094 * ldmisc.c (vfinfo): Call bfd_get_section_ident to identify
2097 2004-06-29 Alan Modra <amodra@bigpond.net.au>
2099 * ldlang.c (lang_reset_memory_regions): Save last relax pass section
2102 2004-06-24 Alan Modra <amodra@bigpond.net.au>
2104 * ldlang.c (print_output_section_statement): Don't print size before
2106 (IGNORE_SECTION): Remove bfd arg. Update all callers.
2108 * ldexp.c (fold_name): .. See below.
2109 * ldlang.c (section_already_linked, print_output_section_statement,
2110 print_input_section, insert_pad, size_input_section,
2111 lang_check_section_addresses, lang_size_sections_1,
2112 lang_size_sections, lang_do_assignments_1, lang_set_startof,
2113 lang_one_common, lang_reset_memory_regions, lang_process,
2114 lang_abs_symbol_at_end_of, lang_do_version_exports_section): ..
2115 * ldwrite.c (build_link_order, clone_section, ds, split_sections): ..
2116 * pe-dll.c (process_def_file, generate_reloc): ..
2117 * emultempl/elf32.em (gld${EMULATION_NAME}_find_statement_assignment,
2118 gld${EMULATION_NAME}_before_allocation): ..
2119 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): ..
2120 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_before_allocation,
2121 sh64_elf_${EMULATION_NAME}_after_allocation): ..
2122 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): ..
2123 * emultempl/xtensaelf.em (ld_assign_relative_paged_dot,
2124 ld_local_file_relocations_fit, ld_xtensa_insert_page_offsets): Use
2125 "size" instead of "_raw_size" and "_cooked_size". Expand
2126 bfd_section_size macro invocations.
2128 2004-06-22 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
2130 * ld/scripttemp/pe.sc (.CRT): Define ___crt_xc_start__,
2131 ___crt_xc_end__, ___crt_xi_start__, ___crt_xi_end__, ___crt_xl_start__,
2132 ___crt_xp_start__, ___crt_xp_end__, ___crt_xt_start__ and
2134 (.tls): Define ___tls_start__ and ___tls_end__.
2136 2004-06-21 Alexandre Oliva <aoliva@redhat.com>
2138 * emulparams/elf32frvfd.sh (GENERATE_PIE_SCRIPT): Set to yes.
2140 2004-06-18 Adam Nemet <anemet@lnxw.com>
2142 * configure.in: Set EXTRA_SHLIB_EXTENSION to .a for LynxOS.
2143 * configure: Regenerate.
2145 2004-06-15 Jakub Jelinek <jakub@redhat.com>
2147 * scripttempl/elf.sc: Readd KEEP and .gcc_except_table.* to
2148 .gcc_except_table output sections lost accidentally with
2151 2004-06-15 Alan Modra <amodra@bigpond.net.au>
2153 * ldwrite.c (build_link_order): Use bfd_get_section_size
2154 instead of bfd_get_section_size_before_reloc or _raw_size.
2155 * pe-dll.c (process_def_file): Likewise.
2157 2004-06-14 Alan Modra <amodra@bigpond.net.au>
2159 From Richard Wirth <r.wirth@wirthware.de>
2160 * ldlang.c (lang_finish): Don't free lang_definedness_table.
2162 2004-05-29 Alan Modra <amodra@bigpond.net.au>
2164 * ldlang.c (gc_section_callback): Move SEC_EXCLUDE twiddles..
2165 (lang_gc_sections): .. to a LANG_FOR_EACH_INPUT_STATEMENT loop here.
2167 2004-05-28 Alan Modra <amodra@bigpond.net.au>
2169 * ldlang.c: Formatting. Wrap long lines, expand bfd_get_section_flags
2171 * lexsup.c: Formatting. Wrap long lines.
2172 * ldwrite.c: Update copyright date.
2174 * ldlang.c (lang_add_section): Don't twidlle SEC_EXCLUDE here.
2175 (output_section_callback): Nor SEC_KEEP here.
2176 (gc_section_callback): Twiddle SEC_EXCLUDE here.
2177 (lang_gc_wild): Delete. Fold into..
2178 (lang_gc_sections_1): ..here. Only call bfd_gc_sections when garbage
2180 (lang_process): Always call lang_gc_sections.
2181 (lang_place_orphans): Handle SEC_EXCLUDE sections.
2182 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Remove
2185 2004-05-26 H.J. Lu <hongjiu.lu@intel.com>
2187 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Clear
2188 SEC_EXCLUDE on non-SEC_DEBUGGING sections for relocatable link.
2189 * ldlang.c (lang_add_section): Likewise.
2191 2004-05-26 Alan Modra <amodra@bigpond.net.au>
2193 * ldlang.c (lang_add_section): Set SEC_EXCLUDE for SEC_GROUP
2194 sections when doing a final link. Clear SEC_EXCLUDE when doing
2195 a relocable link, except for SEC_DEBUGGING sections.
2196 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Use the
2197 same condition here to drop SEC_EXCLUDE orphan sections.
2199 2004-05-25 Alan Modra <amodra@bigpond.net.au>
2201 * ldlang.c (lang_process): Call bfd_merge_sections later, and
2202 only when not a relocatable link.
2203 (print_input_section): Handle SEC_EXCLUDE sections.
2204 (size_input_section): Don't update dot on SEC_EXCLUDE sections.
2205 (lang_do_assignments_1): Likewise.
2206 * ldwrite.c (build_link_order): Ignore SEC_EXCLUDE input sections.
2207 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Likewise.
2208 * emultempl/hppaelf.em (build_section_lists): Likewise.
2209 * emultempl/ppc64elf.em (build_toc_list): Likewise.
2210 (build_section_lists): Likewise.
2212 2004-05-23 Andreas Schwab <schwab@suse.de>
2214 * ld.texinfo (Options): Fix typo in last change.
2216 2004-05-21 Andy Chittenden <achittenden@bluearc.com>
2218 * ld.h (ld_config_type): Add new field: hash_table_size.
2219 * ldmain.c: Initialise the new field to zero. If it is non-zero
2220 after parsing the linker's command line call
2221 bfd_hash_set_default_size.
2222 * lexsup.c (option_values): Add OPTION_HASH_SIZE.
2223 (ld_options): Add hash-size.
2224 (parse_args): Parse --hash-size option. Allow
2225 --reduce-memory-overheads to set the default hash table size as
2227 * ld.texinfo: Document the new switch. Also mention that
2228 --reduce-memory-overheads can affect the hash table size.
2229 * NEWS: Mention the new feature.
2231 2004-05-19 J"orn Rennecke <joern.rennecke@superh.com>
2233 * NEWS: Mention new linker map file generation and the
2234 --reduce-memory-overheads option.
2235 * ld.texinfo: Document --reduce-memory-overheads option.
2236 * ld.h (map_symbol_def): New struct.
2237 (struct user_section_struct, section_userdata_type): Rename to:
2238 (struct lean_user_section_struct, lean_section_userdata_type).
2239 (struct fat_user_section_struct, fat_section_userdata_type): New.
2240 (SECTION_USERDATA_SIZE): Define.
2241 (args_type): New member reduce_memory_overheads.
2242 * ldlang.c (map_obstack): New static variable.
2243 (init_map_userdata, print_all_symbols, sort_def_symbol): New functions.
2244 (lang_map): Unless command_line.reduce_memory_overheads is set,
2245 initialize lists of defined symbols for each section.
2246 (print_input_section): Unless command_line.reduce_memory_overheads
2247 is set, use print_all_symbols.
2248 (init_os): Use lean_section_userdata_type / SECTION_USERDATA_SIZE.
2249 * ldmain.c (main): Initialize command_line.reduce_memory_overheads.
2250 * lexsup.c (enum option_values): Add OPTION_REDUCE_MEMORY_OVERHEADS.
2251 (ld_options): Add entry for --reduce-memory-overheads.
2252 (parse_args): Handle OPTION_REDUCE_MEMORY_OVERHEADS.
2254 2004-05-19 Jakub Jelinek <jakub@redhat.com>
2256 * ldgram.y (sect_constraint): New.
2257 (ONLY_IF_RO, ONLY_IF_RW): New tokens.
2258 (section): Add sect_constraint. Pass additional argument
2259 to lang_enter_output_section_statement.
2260 * mri.c (mri_draw_tree): Pass additional argument to
2261 lang_enter_output_section_statement.
2262 * emultempl/pe.em (place_orphan): Likewise.
2263 (output_prev_sec_find): Disregard output section statements with
2265 * emultempl/mmo.em (output_prev_sec_find): Likewise.
2266 (mmo_place_orphan): Pass additional argument to
2267 lang_enter_output_section_statement.
2268 * emultempl/elf32.em (output_prev_sec_find): Disregard output section
2269 statements with constraint == -1.
2270 (place_orphan): Pass additional argument to
2271 lang_enter_output_section_statement.
2272 * ldlang.c (lang_enter_overlay_section): Likewise.
2273 (lang_output_section_find_1): New.
2274 (lang_output_section_find): Use it.
2275 (lang_output_section_statement_lookup_1): New.
2276 (lang_output_section_statement_lookup): Use it.
2277 (check_section_callback, check_input_sections): New.
2278 (map_input_to_output_sections): Check if all input sections
2279 are readonly if ONLY_IF_RO or ONLY_IF_RW was seen.
2280 (strip_excluded_output_sections): Disregard output section statements
2281 with constraint == -1.
2282 (lang_record_phdrs): Likewise.
2283 (lang_enter_output_section_statement): Add constraint argument.
2284 Use lang_output_section_statement_lookup_1.
2285 * ldlang.h (lang_output_section_statement_type): Add constraint
2286 and all_input_readonly fields.
2287 (lang_enter_output_section_statement): Adjust prototype.
2288 * ldlex.l (ONLY_IF_RO, ONLY_IF_RW): New tokens.
2289 * scripttempl/elf.sc (.eh_frame, .gcc_except_table): Move into text
2290 segment if all input sections are readonly.
2292 2004-05-19 Adam Nemet <anemet@lnxw.com>
2294 * scripttempl/i386lynx.sc: Remove file.
2296 2004-05-17 Bob Wilson <bob.wilson@acm.org>
2298 * ld.texinfo (Output Section Address): Correct subsection name.
2300 2004-05-17 Adam Nemet <anemet@lnxw.com>
2302 * configure.tgt (powerpc-*-lynxos* case): New case.
2303 * configure.host (i[3-7]86-*-lynxos* case): Remove case.
2304 * emulparams/ppclynx.sh: New file.
2305 * emulparams/i386lynx.sh (SCRIPT_NAME): Update to LynxOS 4.0.
2306 * Makefile.am (ALL_EMULATIONS): Add eppclynx.o
2307 (ei386lynx.c): Update rule to LynxOS 4.0 ELF.
2308 (eppclynx.c): New rule.
2309 * Makefile.in: Regenerate.
2311 2004-05-13 Joel Sherrill <joel@oarcorp.com>
2313 * configure.tgt (or32-*-rtems*): Switch to elf and
2314 support versioned targets.
2316 2004-05-13 Nick Clifton <nickc@redhat.com>
2318 * po/fr.po: Updated French translation.
2320 2004-05-11 Jakub Jelinek <jakub@redhat.com>
2322 * genscripts.sh: Generate -z combreloc -z now -z relro scripts
2323 for binaries, -shared and -pie.
2324 * emulparams/elf_i386.sh (SEPARATE_GOTPLT): Set.
2325 * emulparams/elf_x86_64.sh (SEPARATE_GOTPLT): Set.
2326 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Rename to...
2327 (OTHER_RELRO_SECTIONS): ... this.
2328 * ldlex.l (DATA_SEGMENT_RELRO_END): Add.
2329 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Handle
2330 -z relro and -z norelro.
2331 (gld${EMULATION_NAME}_list_options): Add it to usage.
2332 (gld${EMULATION_NAME}_get_script): Return -z combreloc -z now
2333 -z relro scripts when appropriate.
2334 * scripttempl/elf.sc: Unset SEPARATE_GOTPLT if RELRO_NOW is set.
2335 Create separate .got.plt section if SEPARATE_GOTPLT.
2336 Move sections which are only written during relocation handling
2337 to the beginning of RW segment. If NO_SMALL_DATA, move .got
2338 before .data. Add DATA_SEGMENT_RELRO_END directive.
2339 Include OTHER_RELRO_SECTIONS.
2340 * ldgram.y (DATA_SEGMENT_RELRO_END): Add.
2341 * ldexp.c (exp_print_token): Handle DATA_SEGMENT_RELRO_END.
2342 (fold_unary): Likewise.
2343 (fold_binary): Handle -z relro.
2344 * ldexp.h (struct exp_data_seg): Add exp_dataseg_relro_seen and
2345 exp_dataseg_relro_adjust phases. Add relro_end field.
2346 * ldmain.c (main): Initialize link_info.relro to FALSE.
2347 * ldlang.c (lang_size_sections): Handle -z relro.
2349 2004-05-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
2351 * scripttempl/avr.sc: Do not set LMA for "eeprom" section.
2353 2004-05-07 J"orn Rennecke <joern.rennecke@superh.com>
2355 * ldlang.c (print_padding_statement): Cast size_t to bfd_vma
2356 before printing it with %W.
2358 2004-05-07 Brian Ford <ford@vss.fsi.com>
2359 DJ Delorie <dj@redhat.com>
2361 * emultempl/pe.em (real_flags): New static.
2362 (OPTION_LARGE_ADDRESS_AWARE): New define.
2363 (gld${EMULATION_NAME}_add_options): Add --large-address-aware option.
2364 (gld_${EMULATION_NAME}_list_options): Likewise.
2365 (gld${EMULATION_NAME}_handle_option): Likewise.
2366 (gld_${EMULATION_NAME}_after_open): Pass real_flags to PE private data.
2367 * ld.texinfo: Document it.
2370 2004-05-07 Brian Ford <ford@vss.fsi.com>
2372 * NEWS: Mention DWARF 2 support for i386pe.
2374 2004-05-05 Alexandre Oliva <aoliva@redhat.com>
2376 * emulparams/elf32frvfd.sh (OUTPUT_FORMAT): Switch to new
2379 2004-04-30 Alan Modra <amodra@bigpond.net.au>
2381 * ldlang.c (unique_section_p): Pass section parm, return true on
2383 (output_section_callback): Adjust.
2384 * ldlang.h (unique_section_p): Update prototype.
2385 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust.
2387 2004-04-30 Eric Botcazou <ebotcazou@act-europe.fr>
2389 * ld.texinfo (--gc-sections): Remove restriction for
2392 2004-04-29 Brian Ford <ford@vss.fsi.com>
2394 * scripttempl/pe.sc: Handle .debug* and .gnu.linkonce.wi.* sections
2395 for DWARF 2/3. Update stab section's syntax.
2397 2004-04-29 Alan Modra <amodra@bigpond.net.au>
2399 * pe-dll.c: Revert changes accidentally committed 2004-03-08.
2400 (fill_edata): Correct pointer arithmetic.
2402 2004-04-21 Chris Demetriou <cgd@broadcom.com>
2404 * ld.texinfo: Remove MIPS --embedded-relocs documentation.
2405 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Remove definition.
2406 * emulparams/mipsidt.sh (TEMPLATE_NAME): Use generic.em.
2407 (EXTRA_EM_FILE): Use mipsecoff.em
2408 * emulparams/mipsidtl.sh (TEMPLATE_NAME): Use generic.em.
2409 (EXTRA_EM_FILE): Use mipsecoff.em
2410 * emultempl/mipsecoff.em: Restructure to be included as an
2411 extra emulation file.
2412 (check_sections, gld${EMULATION_NAME}_after_open)
2413 (gld${EMULATION_NAME}_after_allocation)
2414 (gld${EMULATION_NAME}_get_script)
2415 (ld_${EMULATION_NAME}_emulation): Remove
2416 (gld${EMULATION_NAME}_before_parse): Rename to...
2417 (mipsecoff_before_parse): This.
2418 (LDEMUL_BEFORE_PARSE): Define.
2419 * emultempl/mipself.em: Remove file.
2420 * scripttempl/mips.sc (.rel.sdata): Do not include in output.
2421 (__runtime_reloc_start, __runtime_reloc_stop): Stop providing
2423 * Makefile.am: Remove dependencies on emultempl/mipself.em.
2424 * Makefile.in: Regenerate.
2426 2004-04-21 Anil Paranjpe <anilp1@kpitcummins.com>
2428 * ld.texinfo (synthesizing on H8/300): Information about linker
2429 relaxation support for bit manipulation instructions and system
2430 control instructions is added.
2432 2004-04-21 Hans-Peter Nilsson <hp@axis.com>
2434 * NEWS: Mention change in DEFINED semantics.
2436 2004-04-21 Eric Botcazou <ebotcazou@act-europe.fr>
2438 * scripttempl/elf.sc (.text): Add KEEP for .text.*personality*.
2439 (.data): Add KEEP for .gnu.linkonce.d.*personality*.
2440 (.gcc_except_table): Add KEEP for self and accept .gcc_except_table.*.
2442 2004-04-21 Ben Elliston <bje@au.ibm.com>
2444 * ld.texinfo (Simple Example): Add missing punctuation.
2446 2004-04-20 Chris Demetriou <cgd@broadcom.com>
2448 * NEWS: Note that MIPS --embedded-relocs option is deprecated.
2450 2004-04-19 Jakub Jelinek <jakub@redhat.com>
2452 * ldlang.c (lang_do_assignments_1): Handle .tbss output section
2455 2004-04-18 Danny Smith <dannysmith@users.sourceforge.net>
2457 * scriptempl/pe.sc: Put numbered .ctors.* after .ctors
2458 with default priority. Likewise for dtors.
2460 2004-04-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2462 * configure.host: Remove mips*-dec-bsd* target.
2463 * configure.tgt: Likewise.
2465 2004-04-08 Richard Sandiford <rsandifo@redhat.com>
2467 * emulparams/elf32bsmip.sh (EXTRA_EM_FILE): Define to irix.
2468 * emulparams/elf64bmip.sh (EXTRA_EM_FILE): Likewise.
2469 * emulparams/elf32bmipn32.sh (EXTRA_EM_FILE): Likewise.
2470 * emultempl/irix.em: New file.
2471 * Makefile.am (eelf32bsmip.c, eelf32bmipn32.c, eelf64bmip.c): Update
2473 * Makefile.in: Regenerate.
2475 2004-04-01 Paul Brook <paul@codesourcery.com>
2477 * emultempl/armelf.em (byteswap_code): Add.
2478 (arm_elf_before_allocation): Pass extra parameter.
2479 (PARSE_AND_LIST_PROLOGUE): Add OPTION_BE8.
2480 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add be8.
2481 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_BE8.
2482 * emultempl/armelf_oabi.em: Pass extra parameter.
2483 * ld.texinfo: Document --be8.
2485 2004-03-30 Stan Shebs <shebs@apple.com>
2487 Remove long-obsolete MPW support.
2488 * mpw-config.in, mpw-make.sed, mac-ld.r: Remove files.
2489 * Makefile.am (mpw): Remove file-presynthesizing actions.
2490 * Makefile.in: Likewise.
2491 * ldfile.c (slash): Remove MPW case.
2492 * ldlex.l [MPW]: Remove unused definition.
2494 2004-03-30 Galit Heller <Galit.Heller@nsc.com>
2496 * Makefile.am (ALL_EMULATIONS): Add eelf32cr16c.o.
2497 (eelf32cr16c.c): New target.
2498 * Makefile.in: Regenerate.
2499 * configure.tgt: Handle cr16c-*-elf*.
2500 * emulparams/elf32cr16c.sh: New file.
2501 * scripttempl/elfcr16c.sc: Likewise
2502 * NEWS: Mention support for new target.
2504 2004-03-30 Nick Clifton <nickc@redhat.com>
2506 * po/sv.po: Updated Swedish translation.
2508 2004-03-27 Alan Modra <amodra@bigpond.net.au>
2510 * emultempl/elf32.em: Update new bfd_elf_discard_info name.
2511 * emultempl/hppaelf.em: Likewise.
2512 * emultempl/ppc64elf.em: Likewise.
2513 * emultempl/sh64elf.em: Likewise.
2515 2004-03-25 Alan Modra <amodra@bigpond.net.au>
2517 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Update
2518 size_dynamic_sections call.
2520 2004-03-23 Alan Modra <amodra@bigpond.net.au>
2523 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Set
2524 link_info.wrap_char.
2526 2004-03-20 H.J. Lu <hongjiu.lu@intel.com>
2528 * lexsup.c (parse_args): Don't set unresolved_syms_in_objects
2529 or unresolved_syms_in_shared_libs for -Bdynamic and -Bstatic.
2531 2004-03-20 Alexandre Oliva <aoliva@redhat.com>
2533 * emulparams/elf32frvfd.sh (MAXPAGESIZE): Change to 16Kb.
2535 2004-03-19 Alan Modra <amodra@bigpond.net.au>
2537 * config.in: Regenerate.
2538 * po/ld.pot: Regenerate.
2540 2004-03-18 Alan Modra <amodra@bigpond.net.au>
2542 * ld.texinfo: Add --as-needed doco.
2543 * ldmain.c (as_needed): New global var.
2544 * ldmain.h (as_needed): Declare.
2545 * lexsup.c (option_values): Add OPTION_AS_NEEDED and
2546 OPTION_NO_AS_NEEDED.
2547 (ld_options): Likewise.
2548 (parse_args): Handle them.
2549 * ldlang.h (lang_input_statement_type): Add as_needed field.
2550 * ldlang.c (new_afile): Set p->as_needed.
2551 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): New function.
2552 (gld${EMULATION_NAME}_try_needed): Use bfd_elf_set_dyn_lib_class.
2553 (ld_${EMULATION_NAME}_emulation): Set LDEMUL_RECOGNIZED_FILE entry.
2555 * ldlang.c (open_input_bfds): Remove useless cast.
2556 (lang_do_assignments_1): Likewise.
2557 (lang_for_each_input_section): Delete.
2559 2004-03-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
2561 * configure.tgt: Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff*.
2563 2004-03-08 Danny Smith <dannysmith@users.sourceforge.net>
2565 * pe-dll.c (pe_dll_generate_implib): Skip sections marked as
2566 private when building implib.
2568 2004-03-05 Nathan Sidwell <nathan@codesourcery.com>
2570 * ldlang.c (lang_add_section): Don't force SEC_LOAD on
2572 (IGNORE_SECTION): Ignore .tbss sections too.
2573 (lang_size_sections_1): .tbss sections do not advance dot.
2575 2004-03-01 Andreas Schwab <schwab@suse.de>
2577 * ld.texinfo (Options): Fix example for --wrap.
2579 2004-02-25 Danny Smith <dannysmith@users.sourceforge.net>
2581 * pe-dll.c (fill_edata): Check that exported_symbol_sections is
2584 2004-02-23 Ian Lance Taylor <ian@wasabisystems.com>
2586 * ldlang.c (lang_check): Use %P, not %E, in error message.
2588 2004-02-23 Nathan Sidwell <nathan@codesourcery.com>
2590 * ldlang.h (struct lang_output_section_state): Change processed
2592 * ldexp.c (check, invalid): Remove.
2593 (fold_name): Move valid_p assignments. Create undefined symbol
2594 when needed. Directly exampine section's processd flag.
2595 * ldlang.c (lang_output_section_statement_lookup): Adjust
2596 processed field init.
2597 (lang_size_sections_1): Allow LOADADDR when determining section's
2598 VMA. Adjust error message. Fold data statement's expr.
2599 (lang_size_sections): Correctly increment lang_statement_iteration.
2601 2004-02-23 Alan Modra <amodra@bigpond.net.au>
2603 * ldexp.c (fold_tree): Follow indirect symbols.
2605 2004-02-20 Nathan Sidwell <nathan@codesourcery.com>
2607 * ldgram.y (exp): Add two operand ALIGN.
2608 * ldexp.c (fold_binary): Add ALIGN_K case.
2609 * ld.texinfo (ALIGN): Document two operand version.
2611 2004-02-19 Nathan Sidwell <nathan@codesourcery.com>
2613 * ldlang.c (map_input_to_output_sections): Initialize sections
2614 mentioned in a data statement expression.
2615 (lang_do_assignments_1): Add data statement's expression's
2618 2004-02-18 Nathan Sidwell <nathan@codesourcery.com>
2620 * ldgram.y (statement_anywhere): Add assert rule.
2621 * ldlang.c (exp_init_os): Add assert case.
2623 2004-02-14 Andrew Cagney <cagney@redhat.com>
2625 * ldmain.c (remove_output): Call bfd_cache_close.
2627 2004-02-14 Richard Sandiford <rsandifo@redhat.com>
2629 * emulparams/elf32bmipn32-defs.sh (OTHER_SECTIONS): Discard
2630 .MIPS.content* and .MIPS.events* sections.
2632 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
2634 * emulparams/armelf.sh, emulparams/armelf_linux.sh: Move
2635 .note.gnu.arm.ident to after allocated sections. Mark its
2638 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
2640 * emulparams/armelf_linux.sh (COMMONPAGESIZE): Set to 4KB.
2641 * emulparams/elf32bmip.sh (COMMONPAGESIZE): Likewise.
2642 * emulparams/elf32bmipn32.sh (COMMONPAGESIZE): Likewise.
2643 * emulparams/elf32btsmipn32.sh (COMMONPAGESIZE): Likewise.
2644 * emulparams/shlelf_linux.sh (COMMONPAGESIZE): Likewise.
2646 2004-02-05 Nick Clifton <nickc@redhat.com>
2648 * emultempl/pe.em (_after_open): Fix typo in previous delta.
2650 2004-02-04 Danny Smith <dannysmith@users.sourceforge.net>
2652 * emultempl/pe.em (_after_open): Fix thinko in 2003-12-18 patch.
2654 2004-01-28 Alan Modra <amodra@bigpond.net.au>
2656 * genscripts.sh: Fix typo.
2658 * genscripts.sh: Apply $LIBPATH_SUFFIX to $tool_lib and $libdir too.
2660 2004-01-24 Jakub Jelinek <jakub@redhat.com>
2662 * emulparams/elf64_ia64.sh: Put .rela.opd into
2663 OTHER_GOT_RELOC_SECTIONS instead of OTHER_PLT_RELOC_SECTIONS.
2665 2004-01-20 Danny Smith <dannysmith@users.sourceforge.net>
2667 * pe-dll.c (pe_create_import_fixup): Clear WP_TEXT flag.
2668 * ld.texinfo (--omagic): Note that writable text section
2669 does not conform to published PE-COFF specs.
2670 (--enable-auto-import): Likewise.
2672 2004-01-15 Alan Modra <amodra@bigpond.net.au>
2674 * emulparams/elf32ppc.sh (COMMONPAGESIZE): Define.
2676 2004-01-13 Nick Clifton <nickc@redhat.com>
2678 * ldlang.c (lang_get_regions): Add extra parameter 'have_vma'
2679 which if true will prevent the LMA region being used as a
2680 replacement for a default VMA region.
2681 (lang_leave_output_section_statement): Pass extra parameter.
2682 (lang_leave_overlay): Likewise.
2683 * ld.texinfo (Output Section LMA): Document that the LMA
2684 region can be set to the VMA region if no VMA has been set.
2685 * ldlang.h (struct lang_output_section_phdr_list): Create a
2686 typedef for this type. Minor formatting fixes.
2688 2004-01-13 Nick Clifton <nickc@redhat.com>
2690 * ldlang.c (lang_size_sections_1): If dot is advanced, then
2691 assume that the section should be allocated.
2693 2004-01-13 Alan Modra <amodra@bigpond.net.au>
2695 * ldlang.c (IGNORE_SECTION): Don't ignore SEC_ALLOC && !SEC_LOAD
2696 sections. Do ignore SEC_NEVER_LOAD sections.
2697 (lang_size_sections_1): Remove test made redundant with the above.
2699 2004-01-09 Alan Modra <amodra@bigpond.net.au>
2701 * emultempl/ppc64elf.em (ppc_before_allocation): Clear cached
2702 program_header_size.
2704 2004-01-06 Alexandre Oliva <aoliva@redhat.com>
2706 2003-11-28 Alexandre Oliva <aoliva@redhat.com>
2707 * emulparams/elf32frvfd.sh (EMBEDDED): Clear.
2708 2003-11-05 Alexandre Oliva <aoliva@redhat.com>
2709 * emulparams/elf32frvfd.sh (STACK_ADDR): Unset.
2710 (MAXPAGESIZE): Set to 64Kb.
2711 (OTHER_READONLY_SECTIONS): Define __ROFIXUP_LIST__ and
2712 __ROFIXUP_END__. Don't map .rofixup.got any more.
2713 * emulparams/elf32frv.sh (NOP): Set.
2714 2003-10-31 Alexandre Oliva <aoliva@redhat.com>
2715 * configure.tgt: Add frv-*-*linux*.
2716 2003-09-30 Alexandre Oliva <aoliva@redhat.com>
2717 * Makefile.am (ALL_EMULATIONS): Added eelf32frvfd.o.
2718 (eelf32frvfd.c): New.
2719 * configure.tgt <frv-*-*>: Added it to targ_extra_emuls.
2720 * emulparams/elf32frv.sh: Reverted previous two patches.
2721 * emulparams/elf32frvfd.sh: New.
2722 * Makefile.in: Rebuilt.
2723 2003-09-18 Alexandre Oliva <aoliva@redhat.com>
2724 * emulparams/elf32frv.sh (OTHER_READONLY_SECTIONS): Added
2725 .rofixup.got to .rofixup.
2726 2003-09-15 Alexandre Oliva <aoliva@redhat.com>
2727 * emulparams/elf32frv.sh (MAXPAGESIZE): Make it 256KiB, not 256B.
2728 (TEMPLATE_NAME, GENERATE_SHLIB_SCRIPT): Set.
2730 2004-01-05 Jakub Jelinek <jakub@redhat.com>
2732 * emulparams/elf_s390.sh (NO_SMALL_DATA): Set to yes.
2733 * emulparams/elf64_s390.sh (NO_SMALL_DATA): Set to yes.
2735 2004-01-03 Alan Modra <amodra@bigpond.net.au>
2737 * ldexp.c (align_n): Make static.
2738 * ldexp.h (align_n): Delete declaration.
2739 * ldlang.h (lang_enter_output_section_statement): Remove
2741 * ldlang.c (lang_enter_output_section_statement): Likewise.
2742 (TO_ADDR, TO_SIZE): Define.
2743 (opb_shift): New var.
2744 (init_opb): New function.
2745 (print_input_section): Call init_opb and use TO_ADDR.
2746 (print_data_statement, print_reloc_statement): Likewise.
2747 (print_padding_statement): Likewise.
2748 (size_input_section): Use TO_SIZE and TO_ADDR, and global opb_shift.
2749 (lang_check_section_addresses): Likewise.
2750 (lang_size_sections_1): Likewise.
2751 (lang_do_assignments_1): Likewise.
2752 (lang_set_startof): Likewise.
2753 (lang_one_common): Likewise. Combine power_of_two and opb_shift align.
2754 (lang_process): Call init_opb.
2755 (lang_abs_symbol_at_end_of): Use TO_ADDR and global opb_shift.
2756 (lang_enter_overlay_section): Adjust
2757 lang_enter_output_section_statement call.
2758 * ldgram.y: Likewise.
2759 * mri.c (mri_draw_tree): Likewise.
2760 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Likewise.
2761 * emultempl/mmo.em (mmo_place_orphan): Likewise.
2762 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Likewise.
2764 * ldfile.c (ldfile_set_output_arch): Add defarch param.
2765 * ldfile.h (ldfile_set_output_arch): Ditto.
2766 * emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Use
2767 ldfile_set_output_arch.
2768 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Ditto.
2769 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Ditto.
2770 * emultempl/linux.em (gld${EMULATION_NAME}_before_parse): Ditto.
2771 * emultempl/mipsecoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
2772 * emultempl/pe.em (gld${EMULATION_NAME}_before_parse): Ditto.
2773 * emultempl/sunos.em (gld${EMULATION_NAME}_before_parse): Ditto.
2774 * ldgram.y: Adjust ldfile_set_output_arch call.
2775 * emultempl/armcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
2776 * emultempl/armelf.em (gld${EMULATION_NAME}_before_parse): Ditto.
2777 * emultempl/armelf_oabi.em (gld${EMULATION_NAME}_before_parse): Ditto.
2778 * emultempl/generic.em (gld${EMULATION_NAME}_before_parse): Ditto.
2779 * emultempl/gld960c.em (gld960_set_output_arch): Ditto.
2780 * emultempl/m68kcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
2781 * emultempl/ticoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
2783 2004-01-02 Bernardo Innocenti <bernie@develer.com>
2785 * configure.tgt: Add m68k-uClinux target.
2787 For older changes see ChangeLog-0203
2793 version-control: never