1 2005-09-20 Alan Modra <amodra@bigpond.net.au>
3 * ldlang.h (lang_output_section_statement_struct): Change type of
4 "processed" to bfd_boolean.
5 * ldexp.c (fold_name): Update references to os->processed.
6 * ldlang.c (lang_output_section_statement_lookup_1): Likewise.
7 (lang_size_sections_1): Likewise.
8 (lang_reset_memory_regions): Likewise.
11 * ldlang.c (lang_size_sections_1): Process addr_tree earlier,
12 so that unused output section statements affect dot.
14 2005-09-08 Jakub Jelinek <jakub@redhat.com>
16 * ld.texinfo: Document -z {no,}execstack, -z {no,}relro
17 and --eh-frame-hdr options.
19 2005-09-07 Alan Modra <amodra@bigpond.net.au>
21 * ldexp.c (fold_name <SIZEOF>): Return 0 for non-existent section.
22 (exp_fold_tree_1): Print assert message only in final stage of
23 linking. Trigger assertion failure if expression cannot be
26 2005-09-06 H.J. Lu <hongjiu.lu@intel.com>
29 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): Check
30 --just-symbols on DSO.
32 2005-08-18 Alan Modra <amodra@bigpond.net.au>
34 * scripttempl/elf.sc: Remove commented out defines.
36 2005-08-18 Alan Modra <amodra@bigpond.net.au>
38 * emulparams/a29k.sh: Delete.
39 * emulparams/ebmon29k.sh: Delete.
40 * emulparams/sa29200.sh: Delete.
41 * Makefile.am: Remove a29k support.
42 * configure.tgt: Likewise.
43 * ld.texinfo: Likewise.
44 * Makefile.in: Regenerate.
46 2005-08-17 Jakub Jelinek <jakub@redhat.com>
48 * ldgram.y (vers_defns): Don't lose pattern list before
49 extern NAME {}. Handle global, local and extern symbol names.
51 2005-08-17 Kaz Kojima <kkojima@rr.iij4u.or.jp>
53 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_after_allocation):
54 Don't increment rel_count of .cranges here. Set rawsize of .cranges.
56 2005-08-10 Nick Clifton <nickc@redhat.com>
58 * pe-dll.c (pe_exe_fill_sections): Call lang_reset_memory_regions
59 before lang_size_sections.
61 2005-08-09 Alan Modra <amodra@bigpond.net.au>
63 * emulparams/hppa64linux.sh (LARGE_SECTIONS): Remove .tbss.
65 2005-08-08 Eric Doenges <Eric.Doenges@betty-tv.com>
67 * Makefile.am (ALL_EMULATIONS): Add msp430x21xx variants.
68 Add rules to build these emulations.
69 * Makefile.in: Regenerate.
70 * configure.tgt (msp430): Add the new variants to the
71 targ_extra_emuls list.
72 * emulparams/msp430all.sh: Add entries for the msp430x21xx
75 2005-08-05 H.J. Lu <hongjiu.lu@intel.com>
77 * ld.texinfo: Document PROVIDE_HIDDEN.
79 * ldexp.c (exp_fold_tree_1): Hide a provided symbol if asked.
80 (exp_provide): Add and set hidden.
82 * ldexp.h (etree_type): Add hidden to assign.
84 * ldgram.y (PROVIDE_HIDDEN): New.
85 * ldlex.l (PROVIDE_HIDDEN): Likewise.
87 * scripttempl/elf.sc: Use PROVIDE_HIDDEN on array bound
90 2005-08-05 Alan Modra <amodra@bigpond.net.au>
92 * emulparams/elf_x86_64.sh: Revert last change.
93 * scripttempl/elf.sc (REL_LARGE, LARGE_SECTIONS): Define here.
95 2005-08-05 Alan Modra <amodra@bigpond.net.au>
97 * emulparams/armelf.sh (OTHER_BSS_END_SYMBOLS): Split out from
99 * emulparams/armelf_linux.sh: Likewise.
100 * emulparams/armnto.sh: Likewise.
101 * emulparams/criself.sh: Likewise.
102 * emulparams/elf32mcore.sh: Likewise.
103 * emulparams/criself.sh (OTHER_SYMBOLS): Define.
104 * emulparams/crislinux.sh (OTHER_SYMBOLS): Define.
105 (OTHER_END_SYMBOLS): Don't define.
106 * emulparams/elf32fr30.sh: Likewise.
107 * emulparams/elf64mmix.sh: Likewise.
108 * emulparams/hppa64linux.sh: Likewise.
109 * emulparams/m32relf.sh: Likewise.
110 * emulparams/vxworks.sh: Likewise.
111 * scripttempl/armbpabi.sc (OTHER_BSS_SECTIONS): Delete.
112 (OTHER_BSS_END_SYMBOLS): Add.
113 (OTHER_END_SYMBOLS): Move before current end sym definitions.
114 (OTHER_SYMBOLS): Replace OTHER_END_SYMBOLS near end of script.
115 * scripttempl/elf.sc: Likewise.
116 * scripttempl/elf32sh-symbian.sc: Likewise.
117 * scripttempl/elf_chaos.sc: Likewise.
118 * scripttempl/elfxtensa.sc: Likewise.
119 * scripttempl/iq2000.sc: Likewise.
120 * scripttempl/xstormy16.sc: Likewise.
122 * scripttempl/elf.sc (LBSS, LARGE_SECTIONS): Delete.
123 (REL_LDATA, REL_LBSS, REL_LRODATA): Delete.
124 (REL_LARGE, LARGE_SECTIONS): Add.
125 * emulparams/elf_x86_64.sh (LARGE_SECTIONS): Define as script text.
127 * emulparams/hppa64linux.sh (OTHER_BSS_SECTIONS): Don't define.
128 (LARGE_SECTIONS): Define.
129 * emulparams/hppa64linux.sh (OTHER_BSS_SECTIONS): Don't define.
130 (LARGE_SECTIONS): Define.
132 2005-08-04 Alan Modra <amodra@bigpond.net.au>
134 * ldemul.c (ldemul_do_assignments, do_assignments_default): Delete.
135 * ldemul.h (ldemul_do_assignments, do_assignments_default): Delete.
136 (struct ld_emulation_xfer_struct): Remove do_assignments field.
137 * ldlang.c (lang_do_assignments): Don't call ldemul_do_assignments.
138 * emulparams/elf32ppc.sh (SDATA_START_SYMBOLS): New.
139 (SDATA2_START_SYMBOLS, SBSS_START_SYMBOLS, SBSS_END_SYMBOLS): New.
140 * emultempl/aix.em (ld_*_emulation): Delete do_assignments init.
141 * emultempl/armcoff.em: Likewise.
142 * emultempl/beos.em: Likewise.
143 * emultempl/generic.em: Likewise.
144 * emultempl/gld960.em: Likewise.
145 * emultempl/gld960c.em: Likewise.
146 * emultempl/linux.em: Likewise.
147 * emultempl/lnk960.em: Likewise.
148 * emultempl/m68kcoff.em: Likewise.
149 * emultempl/pe.em: Likewise.
150 * emultempl/sunos.em: Likewise.
151 * emultempl/ticoff.em: Likewise.
152 * emultempl/vanilla.em: Likewise.
153 * emultempl/elf32.em: Likewise.
154 (gld*_provide_bound_symbols): Delete.
155 (gld*_provide_init_fini_syms): Delete.
156 (gld*_before_allocation): Don't call ldemul_do_assignments.
157 * emultempl/ppc32elf.em (ppc_do_assignments): Delete.
158 (LDEMUL_DO_ASSIGNMENTS): Delete.
159 * scripttempl/elf.sc: Provide init/fini syms. Add SBSS_START_SYMBOLS,
160 SBSS_END_SYMBOLS, SDATA2_START_SYMBOLS.
162 2005-08-04 Alan Modra <amodra@bigpond.net.au>
164 * Makefile.am (eelf32m32c.c): Fix dependencies.
165 * Makefile.in: Regenerate.
167 2005-08-04 Alan Modra <amodra@bigpond.net.au>
169 * ldemul.c (ldemul_finish): Call ld_emulation->finish unconditionally.
170 (finish_default): New function.
171 * ldemul.h (finish_default): Declare.
172 * emultempl/aix.em (gld*_before_allocation): Call
173 before_allocation_default rather than strip_excluded_output_sections.
174 (ld_*_emulation): Init finish field to finish_default.
175 * emultempl/armcoff.em: Likewise.
176 * emultempl/beos.em: Likewise.
177 * emultempl/elf32.em: Likewise.
178 * emultempl/generic.em: Likewise.
179 * emultempl/gld960.em: Likewise.
180 * emultempl/gld960c.em: Likewise.
181 * emultempl/hppaelf.em: Likewise.
182 * emultempl/linux.em: Likewise.
183 * emultempl/lnk960.em: Likewise.
184 * emultempl/m68kcoff.em: Likewise.
185 * emultempl/mmo.em: Likewise.
186 * emultempl/pe.em: Likewise.
187 * emultempl/ppc64elf.em: Likewise.
188 * emultempl/sunos.em: Likewise.
189 * emultempl/ticoff.em: Likewise.
190 * emultempl/vanilla.em: Likewise.
192 2005-08-03 Alan Modra <amodra@bigpond.net.au>
194 * ldlang.c (exp_init_os): Handle etree_provide.
195 * emulparams/armelf.sh (OTHER_END_SYMBOLS): Rename from..
196 (OTHER_BSS_END_SYMBOLS): ..this.
197 * emulparams/armelf_linux.sh: Likewise.
198 * emulparams/armnto.sh: Likewise.
199 * emulparams/criself.sh: Likewise.
200 * emulparams/crislinux.sh: Likewise.
201 * emulparams/elf32frv.sh: Likewise.
202 * emulparams/elf32mcore.sh: Likewise.
203 * emulparams/elf32ppc.sh: Likewise.
204 * emulparams/elf32ppclinux.sh: Likewise.
205 * emulparams/hppa64linux.sh: Likewise.
206 * scripttempl/armbpabi.sc: Substitute $OTHER_END_SYMBOLS, not
207 $OTHER_BSS_END_SYMBOLS.
208 * scripttempl/elf32sh-symbian.sc: Likewise.
209 * scripttempl/elf_chaos.sc: Likewise.
210 * scripttempl/iq2000.sc: Likewise.
211 * scripttempl/xstormy16.sc: Likewise.
212 * scripttempl/elf.sc: Likewise. Delete __bss_start comment.
213 * scripttempl/elfxtensa.sc: Likewise.
215 2005-07-29 Nick Clifton <nickc@redhat.com>
217 * ldmain.c (main): Allow -shared and -static to be used together.
218 * ld.texinfo (-static): Mention that it is allowed with -shared.
220 2005-07-28 DJ Delorie <dj@redhat.com>
222 * ldlang.c (lang_output_section_statement_lookup_1): Don't cast a
223 unary & address operator, as that breaks GCC's strict aliasing
226 2005-07-25 Jan Hubicka <jh@suse.cz>
227 H.J. Lu <hongjiu.lu@intel.com>
229 * emulparams/elf_x86_64.sh (LARGE_SECTIONS): New.
231 * scripttempl/elf.sc: Updated for large section support.
233 2005-07-21 Ralf Corsepius <ralf.corsepius@rtems.org>
235 * configure.tgt: Remove i[3-7]86-*-rtemself*.
236 Remove sparc-*-rtemself*.
238 2005-07-21 Ben Elliston <bje@gnu.org>
240 * ldgram.y (ldgram_want_filename): Remove unused static.
242 2005-07-20 DJ Delorie <dj@redhat.com>
244 * emulparams/elf32m32c.sh (TEMPLATE_NAME): New.
245 (EXTRA_EM_FILE): New.
247 2005-07-19 H.J. Lu <hongjiu.lu@intel.com>
249 * ldmain.c (main): Reindent.
251 2005-07-19 Paul Brook <paul@codesourcery.com>
253 * configure.host (HOSTING_CRT0): Parse output of gcc --help --verbose
254 to determine dynamic linker name.
256 2005-07-18 Nick Clifton <nickc@redhat.com>
258 * configure.tgt: Restore alpha ordering to list of arches.
260 2005-07-16 Alan Modra <amodra@bigpond.net.au>
262 * emultempl/elf32.em (gld*_provide_init_fini_syms): Prototype.
263 (gld*_before_allocation): Call ldemul_do_assignments rather than
264 gld*_provide_init_fini_syms directly.
265 * emultempl/ppc32elf.em (gld*_after_allocation): Delete.
266 (ppc_do_assignments): New function.
267 (LDEMUL_AFTER_ALLOCATION): Don't define.
268 (LDEMUL_DO_ASSIGNMENTS): Define.
270 2005-07-16 Alan Modra <amodra@bigpond.net.au>
272 * Makefile.am: Run "make dep-am".
273 (emipsidt.c, emipsidtl.c): Depend on generic.em.
274 * Makefile.in: Regenerate.
276 2005-07-15 Alan Modra <amodra@bigpond.net.au>
278 * ldemul.c (ldemul_do_assignments): New function.
279 (do_assignments_default): New function.
280 * ldemul.h (ldemul_do_assignments): Declare.
281 (do_assignments_default): Declare.
282 (struct ld_emulation_xfer_struct): Add do_assignments.
283 * ldlang.c (lang_do_assignments) Call ldemul_do_assignments.
284 * emultempl/aix.em (ld_*_emulation): Init do_assignments field.
285 * emultempl/armcoff.em: Likewise.
286 * emultempl/beos.em: Likewise.
287 * emultempl/generic.em: Likewise.
288 * emultempl/gld960.em: Likewise.
289 * emultempl/gld960c.em: Likewise.
290 * emultempl/linux.em: Likewise.
291 * emultempl/lnk960.em: Likewise.
292 * emultempl/m68kcoff.em: Likewise.
293 * emultempl/pe.em: Likewise.
294 * emultempl/sunos.em: Likewise.
295 * emultempl/ticoff.em: Likewise.
296 * emultempl/vanilla.em: Likewise.
297 * emultempl/elf32.em: Likewise, to call gld*_provide_init_fini_syms.
298 (gld*_find_exp_assignment): Adjust bfd_elf_record_link_assignment call.
300 2005-07-14 Jim Blandy <jimb@redhat.com>
302 Add support for the Renesas M32C and M16C.
303 * Makefile.am (ALL_EMULATIONS): Add eelf32m32c.o.
304 (eelf32m32c.c): New target.
305 * Makefile.in: Regenerated.
306 * configure.tgt: Add case for m32c-*-elf.
307 * emulparams/elf32m32c.sh: New file.
309 2005-07-14 Alan Modra <amodra@bigpond.net.au>
311 * ldlang.c (strip_excluded_output_sections): Don't call
313 * emultempl/elf32.em (gld*_provide_bound_symbols): Move.
314 (gld*_provide_init_fini_syms): Move.
315 (gld*_before_allocation): Call the above from here..
316 (gld*_finish): ..not here. Call _bfd_elf_fix_excluded_sec_syms.
317 * emultempl/hppaelf.em (hppaelf_finish): Likewise.
318 * emultempl/ppc64elf.em (ppc_finish): Likewise.
320 2005-07-10 Ralf Corsepius <ralf.corsepius@rtems.org>
322 * configure.tgt: Remove sparc*-*-rtemsaout*, i[3-7]86-go32-rtems*,
323 i[3-7]86-*-rtemscoff*, hppa*-*-rtems*, mips*el-*-rtems*,
326 2005-07-09 Christopher Faylor <cgf@timesys.com>
328 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse): Enable runtime
329 relocation by default.
330 (compute_dll_image_base): Avoid linking into cygwin dll address space.
332 2005-07-08 Alan Modra <amodra@bigpond.net.au>
334 * ldlang.c (wild_sort): Formatting.
335 (strip_excluded_output_sections): Strip zero size sections here.
336 * emultempl/elf32.em (gld*_strip_empty_sections): Delete.
337 (gld*_finish): Don't call the above.
338 * emultempl/hppaelf.em (hppaelf_finish): Likewise.
339 * emultempl/ppc64elf.em (ppc_finish): Likewise.
341 2005-07-05 Paul Brook <paul@codesourcery.com>
343 * Makefile.am (ALL_EMULATIONS): Add eelf32ppcvxworks.o.
344 (eelf32ppcvxworks.o): Add dependencies.
345 * Makefile.in: Regenerate.
346 * configure.tgt: Add entry for powerpc-vxworks.
347 * emulparams/elf32-ppc.c: Mention elf32ppcvxworks.sh in comment.
348 * emulparams/elf32ppcvxworks.sh: New file.
349 * emultempl/ppc32elf.em (bfd_elf32_powerpc_vxworks_vec): Declare.
350 (is_ppc_elf32_vec): New function.
351 (ppc_after_open, ppc_before_allocation,
352 gld${EMULATION_NAME}_after_allocation): Use it.
354 2005-07-05 Peter S. Mazinger" <ps.m@gmx.net>
356 * emulparams/elf32bmip.sh (GENERATE_PIE_SCRIPT): Define as "yes".
357 * emulparams/elf32bmipn32-defs.sh (GENERATE_PIE_SCRIPT): Define as "yes".
359 2005-07-04 Mike Frysinger <vapier@gentoo.org>
361 * emulparams/hppalinux.sh (GENERATE_PIE_SCRIPT): Fix typo in
364 2005-07-04 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
366 * emulparams/m32relf_linux.sh (GENERATE_PIE_SCRIPT): Set to yes.
368 2005-07-04 Aurelien Jarno <aurel32@debian.org>
370 * emultempl/elf32.em: Enable use of ld.so.conf for *-*-k*bsd-*.
372 2005-07-01 Alan Modra <amodra@bigpond.net.au>
374 * scripttempl/elf.sc (.gcc_except_table): Don't KEEP.
376 2005-06-30 Ben Elliston <bje@gnu.org>
378 * Makefile.am (check-DEJAGNU): Don't search for expect.
379 * Makefile.in: Regenerate.
381 2005-06-30 Ben Elliston <bje@gnu.org>
383 * Makefile.am (EXPECT): Set to expect.
384 (RUNTEST): Likewise, set to runtest.
385 * Makefile.in: Regenerate.
387 2005-06-16 Alexander Klimov <alserkli@inbox.ru>
389 * emultempl/armelf.em: Add quotes to avoid a null test
392 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
394 * ld.texinfo (Command Line Options): Add @item for --hash-size.
396 2005-06-10 Alan Modra <amodra@bigpond.net.au>
398 * scripttempt/elf.sc (.bss): Align tail in a way that allows
399 empty section pruning.
401 2005-06-09 Steve Ellcey <sje@cup.hp.com>
403 * configure.in (AM_BINUTILS_WARNINGS): Add.
404 (BFD_NEED_DECLARATION) Replace with AC_CHECK_DECLS.
405 * config.in: Regenerate.
406 * configure: Regenerate.
407 * sysdep.h (NEED_DECLARATION_*): Replace with HAVE_DECL_*
410 2005-06-09 Alan Modra <amodra@bigpond.net.au>
412 * ldexp.c (fold_unary <ALIGN_K>): Revert last change.
414 2005-06-09 Alan Modra <amodra@bigpond.net.au>
416 * ld.h (lang_phase_type): Move to..
417 * ldexp.h: ..here. Add lang_mark_phase_enum.
418 (node_type): Remove etree_undef and etree_unspec.
419 (exp_data_seg): Delete.
420 (struct ldexp_control, expld): New.
421 (invalid, exp_mark_used_section): Delete.
422 (exp_fold_tree, exp_get_vma, exp_get_value_int, exp_get_fill,
423 exp_get_abs_int): Update prototypes.
424 * ldexp.c (assigning_to_dot): Delete.
426 (make_abs): Operate directly on expld.result. Update all callers.
427 (new_abs): Likewise. Return void.
428 (new_rel_from_abs): Rename from new_rel_from_section.
429 (new_rel, new_rel_from_abs): Operate on expld.result and return void.
431 (fold_unary): Operate on expld.result and return void. Remove
432 "current_section", "allocation_done", "dot", "dotp" and "mark_used"
433 params. Update all callers.
434 (fold_binary, fold_trinary, fold_name, exp_fold_tree_1): Likewise.
435 (fold_unary <ALIGN_K>): Ensure alignment is absolute.
436 (fold_unary <ABSOLUTE>): Use make_abs.
437 (fold_unary <DATA_SEGMENT_END>): Evaluate mark_phase as for
439 (fold_binary <DATA_SEGMENT_ALIGN, DATA_SEGMENT_RELRO_END, >): Ditto.
440 (fold_binary <'%','/'>): Don't error if marking.
441 (fold_name <SIZEOF_HEADERS>): Don't call bfd_sizeof_headers when
443 (fold_name <NAME>): Remove FIXME; -R is handled correctly. Don't
445 (fold_name <ADDR, LOADADDR, SIZEOF>): Don't set SEC_KEEP.
446 (exp_fold_tree_1): Don't error when marking.
447 (exp_fold_tree_1 <etree_rel>): Evaluate in all phases except first.
448 (exp_fold_tree_1 <etree_assign to dot>): Don't check for NULL
449 current section, instead check for NULL dotp.
450 (exp_fold_tree_1 <etree_provide>): Don't evaluate the assignment
451 source unless the symbol is referenced and undefined.
452 (exp_fold_tree): Remove "allocation_done" and "dot" params. Save
454 (exp_fold_tree_no_dot): Remove "current_section", "allocation_done
455 and "mark_used" params. Save params to expld. Update all callers.
456 (exp_assop): Do without temp var.
457 (exp_print_tree <etree_undef>): Delete code.
458 (exp_get_vma): Remove "allocation_done" param. Correct error return.
459 (exp_get_fill, exp_get_abs_int): Likewise.
460 (exp_get_value_int): Remove "allocation_done" param.
461 (exp_mark_used_section): Delete.
462 * ldgram.y (fill_exp): Update exp_get_fill call.
463 (origin_spec, length_spec): Update exp_get_vma call.
464 * ldlang.c (lang_init): Don't bother clearing lang_statement_iteration.
465 (lang_mark_used_section_1, lang_mark_used_section): Delete.
466 (strip_excluded_output_sections): Call one_lang_size_sections_pass in
467 marking mode. Merge old lang_mark_used_section code. Correct handling
468 of output sections with excluded input sections and data statements.
469 Don't drop non-zero sized sections. Don't zap os->bfd_section.
470 Do set SEC_EXCLUDE when appropriate.
471 (print_output_section_statement): Update for changed ldexp.c
473 (print_assignment, lang_size_sections_1): Likewise.
474 (lang_do_assignments_1, lang_enter_output_section_statement): Likewise.
475 (lang_new_phdr, lang_record_phdrs): Likewise.
476 (lang_size_sections): Likewise.
477 (insert_pad): Use following statement if it is a pad, rather than
479 (lang_size_sections_1 <lang_output_section_statement_enum>): Do
480 process ignored output section to set vma and lma, but don't
481 update dot for these sections. Don't error if marking.
482 (lang_size_sections_1 <lang_assignment_statement_enum>): Don't
483 update dot for ignored sections.
484 (lang_size_sections_1 <lang_data_statement_enum>): Don't mark absolute
485 section with SEC_ALLOC.
486 (one_lang_size_sections_pass): New function.
487 (lang_size_sections): Remove first five params. Set expld.phase on
488 entry and exit. Use one_lang_size_sections_pass.
489 (lang_do_assignments): Remove all params. Update all callers.
490 (lang_reset_memory_regions): Clear os->processed for all output
492 * ldlang.h (lang_do_assignments): Update prototype.
493 (lang_size_sections): Likewise.
494 (one_lang_size_sections_pass): Declare.
495 * pe-dll.c (pe_dll_fill_sections, pe_exe_fill_sections): Update
496 lang_size_sections and lang_do_assignments calls.
497 * emultempl/elf32.em (layout_sections_again): Likewise.
498 * emultempl/ppc64elf.em (ppc_before_allocation): Use
499 one_lang_size_sections_pass.
501 2005-06-08 Aldy Hernandez <aldyh@redhat.com>
503 * emulparams/elf32ms1.sh: New.
505 2005-06-07 Eric Christopher <echristo@redhat.com>
507 * Makefile.am (eelf32ms1.c): Use tab.
508 * Makefile.in: Regenerate.
510 2005-06-07 Aldy Hernandez <aldyh@redhat.com>
511 Michael Snyder <msnyder@redhat.com>
512 Stan Cox <scox@redhat.com>
514 * configure.tgt: Same.
516 * Makefile.am (ALL_EMULATIONS): Depend on eelf32ms1.o.
517 (eelf32ms1.c): Add eelf32ms1.c rule.
519 * Makefile.in: Regenerate.
521 2005-06-06 Alan Modra <amodra@bigpond.net.au>
523 * emultempl/ppc64elf.em (ppc_before_allocation): Always run
526 2005-06-05 H.J. Lu <hongjiu.lu@intel.com>
528 * ldexp.c (exp_mark_used_section): Set SEC_KEEP on current
529 section only if the symbol will be defined.
531 2005-06-04 H.J. Lu <hongjiu.lu@intel.com>
534 * ldexp.c (exp_mark_used_section): Set SEC_KEEP on current
535 section for etree_assign, etree_provide and etree_provided.
536 Call fold_binary on etree_binary.
538 * ldlang.c (lang_mark_used_section_1): Handle load base.
540 2005-06-03 Alan Modra <amodra@bigpond.net.au>
542 * ldmain.c (link_callbacks): Add einfo.
543 (add_archive_element): Use passed info, not link_info.
544 (constructor_callback): Likewise.
545 (reloc_overflow): Don't handle null bfd specially.
546 (reloc_dangerous, unattached_reloc): Likewise.
547 * ldmisc.c (vfinfo <B>): Print "ld generated" for null bfd.
548 (vfinfo <C, D, G>): Handle null bfd. Wrap comments.
550 2005-06-02 Alan Modra <amodra@bigpond.net.au>
552 * ldexp.h (etree_value_type): Use "asection *" in place of
553 "struct lang_output_section_statement_struct *" for "section".
554 (exp_fold_tree): Likewise.
555 (exp_mark_used_section): Likewise.
556 * ldexp.c (new_rel, new_rel_from_section, fold_unary, fold_binary,
557 fold_trinary, fold_name, exp_fold_tree_1, exp_fold_tree,
558 exp_mark_used_section): Likewise for "current_section" param.
559 (make_abs, new_abs, exp_binop, exp_unop, exp_get_vma, exp_get_fill,
560 exp_get_abs_int): Adjust for above changes.
561 * ldlang.c (lang_mark_used_section_1, print_assignment,
562 lang_size_sections_1, lang_do_assignments_1): Likewise.
563 * ldexp.c (fold_name): Init entire result struct.
565 2005-06-01 Maciej W. Rozycki <macro@linux-mips.org>
567 * emulparams/elf32btsmip.sh: Unset DATA_ADDR.
569 2005-05-31 Zack Weinberg <zack@codesourcery.com>
571 * ldlang.c (entry_symbol_default): New file-scope global.
572 (lang_finish): Use it, not a hardwired "start".
573 (lang_default_entry): Set it.
574 * ldlang.h: Declare lang_default_entry.
575 * emultempl/beos.em, emultempl/pe.em: Use lang_default_entry,
576 not lang_add_entry, to override default entry point symbol.
578 2005-05-29 Richard Henderson <rth@redhat.com>
580 * emulparams/elf64alpha.sh (PLT): New.
582 * emultempl/alphaelf.em (disable_relaxation): New.
583 (limit_32bit): Rename from elf64alpha_32bit; update all users.
584 (elf64_alpha_use_secureplt): Declare.
585 (bfd_elf64_alpha_vec, bfd_elf64_alpha_freebsd_vec): Declare.
586 (alpha_after_open): New.
587 (alpha_before_allocation): New.
588 (OPTION_NO_RELAX, OPTION_SECUREPLT, OPTION_NO_SECUREPLT): New.
589 (PARSE_AND_LIST_LONGOPTS): Include them.
590 (PARSE_AND_LIST_OPTIONS): Likewise.
591 (PARSE_AND_LIST_ARGS_CASES): Likewise.
592 (LDEMUL_AFTER_OPEN, LDEMUL_BEFORE_ALLOCATION): New.
593 * scripttempl/elf.sc (TEXT_PLT): New.
596 2005-05-27 Andreas Schwab <schwab@suse.de>
598 * configure.host (HOSTING_LIBS): Add libunwind.a if it exists.
600 2005-05-24 Alan Modra <amodra@bigpond.net.au>
602 * emultempl/ppc32elf.em (after_allocation): Don't call
603 ppc_elf_set_sdata_syms when relocatable.
605 2005-05-21 H.J. Lu <hongjiu.lu@intel.com>
607 * Makefile.am (ld.1): Revert the last 2 changes.
608 (info-recursive): Depend on ld.1.
609 * Makefile.in: Regenerated.
611 2005-05-21 H.J. Lu <hongjiu.lu@intel.com>
613 * Makefile.am (ld.1): Depend on "info" instead of
614 "configdoc.texi ldver.texi".
615 * Makefile.in: Regenerated.
617 2005-05-21 H.J. Lu <hongjiu.lu@intel.com>
619 * Makefile.am (ld.1): Depend on "info".
620 * Makefile.in: Regenerated.
622 2005-05-19 Zack Weinberg <zack@codesourcery.com>
624 * Makefile.am: Have 'all' depend on 'info' and 'ld.1'.
625 * Makefile.in: Regenerate.
627 2005-05-17 Zack Weinberg <zack@codesourcery.com>
629 * ld-arm/mixed-app.d: Adjust expected disassembly a little.
631 2005-05-17 Daniel Jacobowitz <dan@codesourcery.com>
633 * Makefile.am (ldver.texi): Don't use $<.
634 * Makefile.in: Regenerated.
636 2005-05-17 Daniel Jacobowitz <dan@codesourcery.com>
638 * Makefile.am (AM_MAKEINFOFLAGS, TEXI2DVI): Explicitly include
639 $(srcdir) before $(BFDDIR)/doc.
640 * Makefile.in: Regenerated.
642 2005-05-17 H.J. Lu <hongjiu.lu@intel.com>
645 * ldexp.c (exp_fold_tree_1): Renamed from exp_fold_tree and
646 take take a bfd_boolean, mark_used. Ignore assert failure if
648 (exp_fold_tree) Call exp_fold_tree_1 with mark_used == FALSE.
649 (exp_fold_tree_no_dot): Updated to take a bfd_boolean,
650 mark_used and pass down.
651 (fold_unary): Likewise.
652 (fold_binary): Likewise.
653 (fold_trinary): Likewise.
654 (exp_binop): Add FALSE to call to exp_fold_tree_no_dot.
655 (exp_trinop): Likewise.
656 (exp_unop): Likewise.
657 (exp_nameop): Likewise.
658 (exp_get_vma): Likewise.
659 (exp_get_fill): Likewise.
660 (exp_get_abs_int): Likewise.
661 (fold_name): Likewise. Set SEC_KEEP in output section flags.
662 (exp_mark_used_section): New.
664 * ldexp.h (exp_mark_used_section): New.
666 * ldlang.c (lang_output_section_statement_lookup_1): Set the
667 ignored field to FALSE.
668 (lang_mark_used_section_1): New.
669 (lang_mark_used_section): Call lang_mark_used_section_1.
670 (strip_excluded_output_sections): Call lang_mark_used_section
671 and check for unused sections.
672 (lang_size_sections_1): Skip an output section if it should
674 (lang_do_assignments_1): Likewise.
675 (lang_process): Don't call lang_mark_used_section here.
677 * ldlang.h (lang_output_section_statement_type): Change
678 all_input_readonly to bitfield. Add ignored.
680 2005-05-17 Lennert Buytenhek <buytenh@wantstofly.org>
681 Peter S. Mazinger" <ps.m@gmx.net>
683 * emulparams/armelf_linux.sh (GENERATE_PIE_SCRIPT): Define as "yes".
684 * emulparams/hppalinux.sh (GENERATE_PIE_SCRIPT): Define as "yes".
686 2005-05-17 Julian Brown <julian@codesourcery.com>
688 * ldlang.c (print_assignment): Do not rely upon a valid result
689 having a section associated with it.
691 2005-05-17 Nick Clifton <nickc@redhat.com>
693 * ldlang.c (Scan_for_self_assignment): Check an assignment tree to
694 see if the same value is being used on the rhs as on the lhs.
695 (print_assignment): Call scan_for_self_assignment and if it
696 returns true, do no display the result of the computation but
697 instead just the final value of the symbol on the lhs.
698 * ld.texinfo: Document this behaviour and provide an example of
701 2005-05-15 Daniel Jacobowitz <dan@codesourcery.com>
703 * Makefile.am (AM_MAKEINFOFLAGS): Define.
705 (ldver.texi): Depend on distributed files instead of built files.
706 (ld.info): Include $(srcdir) in the rule target. Remove actions.
707 (ld.dvi): Remove actions.
708 (MAINTAINERCLEANFILES): Add configdoc.texi.
709 (CONFIG_STATUS_DEPENDENCIES): Add bfd/configure.in.
710 (install-data-local): Renamed from install.
711 (Makefile): Remove explicit dependency.
712 * acinclude.m4: Remove obsolete code.
713 * configure.in: Update AC_PREREQ. Remove extra $CONFIG_SHELL.
714 * Makefile.in, aclocal.m4, config.in, configure: Regenerated.
716 2005-05-11 Bob Wilson <bob.wilson@acm.org>
718 * scripttempl/elfxtensa.sc: Sync up with elf.sc.
719 * emulparams/elf32xtensa.sh (PLT, GOT): Define.
721 2005-05-11 Alan Modra <amodra@bigpond.net.au>
723 * ldgram.y: Add SPECIAL token.
724 (sect_constraint): Handle SPECIAL.
725 * ldlang.c (lang_output_section_find_1): Don't match SPECIAL.
726 (map_input_to_output_sections): Likewise.
727 * ldlex.l (SPECIAL): Define.
728 * emulparams/elf32ppc.sh (DATA_GOT, SDATA_GOT, SEPARATE_GOTPLT,
729 GOT, PLT, GOTPLT): Define.
730 * emultempl/ppc32elf.em (old_plt, old_got): New static vars.
731 (ppc_after_open): New function.
732 (PARSE_AND_LIST_PROLOGUE): Define OPTION_OLD_LPT and OPTION_OLD_GOT.
733 (PARSE_AND_LIST_LONGOPTS): Add "bss-plt" and "sdata-got".
734 (PARSE_AND_LIST_OPTIONS): Document them.
735 (PARSE_AND_LIST_ARGS_CASES): Handle them.
736 (LDEMUL_AFTER_OPEN): Define.
737 * scripttempl/elf.sc (PLT): Don't override existing define.
738 (DATA_GOT, SDATA_GOT): Define and use to enable alternate got
739 placement rather than using NO_SMALL_DATA. Emit GOTPLT for RELRO_NOW.
741 2005-05-10 Alan Modra <amodra@bigpond.net.au>
743 * scripttempl/elf.sc (DATA_SEGMENT_RELRO_GOTPLT_END): Delete.
744 (DATA_SEGMENT_RELRO_END): Use SEPARATE_GOTPLT value.
745 (GOTPLT): Remove DATA_SEGMENT_RELRO_GOTPLT_END. Place after
746 DATA_SEGMENT_RELRO_END in script.
748 2005-05-09 H.J. Lu <hongjiu.lu@intel.com>
750 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
751 Don't use a removed section.
753 2005-05-09 H.J. Lu <hongjiu.lu@intel.com>
755 * ldmain.c (reloc_overflow): Use output_bfd if the symbol
756 is defined in the ABS section.
758 2005-05-06 H.J. Lu <hongjiu.lu@intel.com>
760 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_init_fini_syms):
761 Put back !link_info.relocatable.
763 2005-05-06 H.J. Lu <hongjiu.lu@intel.com>
766 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_init_fini_syms):
767 Just check link_info.executable.
769 2005-05-06 Nick Clifton <nickc@redhat.com>
771 * Update the address and phone number of the FSF organization in
772 the GPL notices in the following files:
773 aclocal.m4, deffile.h, deffilep.y, fdl.texi, ld.h, ldcref.c,
774 ldctor.c, ldctor.h, ldemul.c, ldexp.c, ldexp.h, ldfile.c,
775 ldfile.h, 20ldgram.y, ldint.texinfo, ldlang.c, ldlang.h, ldlex.h,
776 ldlex.l, ldmain.c, ldmain.h, ldmisc.c, ldmisc.h, ldver.c, ldver.h,
777 ldwrite.c, ldwrite.h, lexsup.c, mri.c, mri.h, pe-dll.c, pe-dll.h,
778 sysdep.h, emultempl/aix.em, emultempl/alphaelf.em,
779 emultempl/armcoff.em, emultempl/armelf.em, emultempl/beos.em,
780 emultempl/crxelf.em, emultempl/elf32.em, emultempl/generic.em,
781 emultempl/gld960.em, emultempl/gld960c.em, emultempl/hppaelf.em,
782 emultempl/ia64elf.em, emultempl/irix.em, emultempl/linux.em,
783 emultempl/lnk960.em, emultempl/m68hc1xelf.em,
784 emultempl/m68kcoff.em, emultempl/m68kelf.em,
785 emultempl/mipsecoff.em, emultempl/mmix-elfnmmo.em,
786 emultempl/mmixelf.em, emultempl/mmo.em, emultempl/needrelax.em,
787 emultempl/pe.em, emultempl/ppc32elf.em, emultempl/ppc64elf.em,
788 emultempl/sh64elf.em, emultempl/sunos.em, emultempl/ticoff.em,
789 emultempl/vanilla.em, emultempl/xtensaelf.em
791 2005-05-05 H.J. Lu <hongjiu.lu@intel.com>
793 * scripttempl/elf.sc: Document the usage of __bss_start.
795 2005-05-05 Paul Brook <paul@codesourcery.com>
797 * Makefile.am: Add eelf_i386_vxworks.
798 * Makefile.in: Regenerate.
799 * configure.tgt: Make i?86-*-vxworks use targ_emul=elf_i386_vxworks.
800 * emulparams/elf_i386_vxworks.sh: New file.
801 * emulparams/vxworks.sh: New file.
802 * scripttempl/elf.sc: Add DATA_END_SYMBOLS and ETEXT_NAME.
804 2005-05-04 H.J. Lu <hongjiu.lu@intel.com>
806 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
807 Call _bfd_elf_provide_section_bound_symbols.
809 2005-05-04 Alan Modra <amodra@bigpond.net.au>
811 * ldemul.c: Include bfdlink.h.
812 (ldemul_before_allocation): Assume before_allocation is non-zero.
813 (before_allocation_default): Call strip_excluded_output_sections.
814 * ldlang.c (stripped_excluded_sections): New variable.
815 (lang_add_section): Build input section list for each output
816 section, attached via map_head and map_tail pointers.
817 (strip_excluded_output_sections): Make global. Traverse the
818 input section lists to find which output sections can go. Clear
819 link_order pointers and set stripped_excluded_sections.
820 (lang_process): Call strip_excluded_output_sections.
821 * ldlang.h (strip_excluded_output_sections): Declare.
822 * ldwrite.c: Update throuhout for link_order_head -> map_head change.
823 * emultempl/aix.em (before_allocation): Call
824 strip_excluded_output_sections.
825 * emultempl/armcoff.em (before_allocation): Likewise.
826 * emultempl/beos.em (before_allocation): Likewise.
827 * emultempl/linux.em (before_allocation): Likewise.
828 * emultempl/pe.em (before_allocation): Likewise.
829 * emultempl/sunos.em (before_allocation): Likewise.
830 * emultempl/elf32.em (before_allocation): Likewise. Call
831 bfd_elf_size_dynsym_hash_dynstr too.
832 * emultempl/lnk960.em (lnk960_before_allocation): Delete.
833 (ld_lnk960): Use before_allocation_default.
835 2005-05-02 H.J. Lu <hongjiu.lu@intel.com>
837 * emultempl/elf32.em (gld${EMULATION_NAME}_strip_empty_section):
838 Updated for bfd_section_list_remove change.
839 * ldlang.c (lang_insert_orphan): Likewise.
840 (strip_excluded_output_sections): Likewise.
841 (sort_sections_by_lma): New.
842 (lang_check_section_addresses): Sort the sections before
845 2005-04-29 Ralf Corsepius <ralf.corsepius@rtems.org>
847 * configure.tgt: Add h8300*-*-rtemscoff.
848 Switch h8300*-*-rtems* to elf.
850 2005-04-29 Ben Elliston <bje@au.ibm.com>
852 * ldgram.y (lang_memory_region_type): Make static.
853 (ldgram_want_filename): Likewise.
854 * ldemul.c (ld_emulation): Make static.
855 * ldfile.h (ldfile_find_command_file): Remove extern.
856 * ldfile.c (ldfile_find_command_file): Make static.
857 * ldlang.h (unique_section_list): Remove extern declaration.
858 * ldlang.c (unique_section_list): Make static.
859 * mri.h (symbol_truncate): Remove extern declaration.
860 * mri.c (symbol_truncate): Make static.
861 (order, only_load, address, alias): Likewise.
862 (alignment, subalignment): Likewise.
864 2005-04-27 H.J. Lu <hongjiu.lu@intel.com>
866 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
867 Use the first SEC_ALLOC section which isn't SEC_READONLY or the
868 last SEC_ALLOC section if such a section doesn't exist.
870 2005-04-24 Mark Kettenis <kettenis@gnu.org>
872 * configure.host: Add *-*-openbsd support.
874 2005-04-15 Julian Brown <julian@codesourcery.com>
876 * ld.texinfo: Document --use-blx.
877 * emultempl/armelf.em (use_blx): New variable.
878 (arm_elf_create_output_section_statements): Communicate value of
880 (PARSE_AND_LIST_PROLOGUE): Add OPTION_USE_BLX.
881 (PARSE_AND_LIST_OPTIONS): Add --use-blx option.
882 (PARSE_AND_LIST_ARGS_CASES): Add OPTION_USE_BLX case.
884 2005-04-14 Alan Modra <amodra@bigpond.net.au>
886 * Makefile.am (NO_WERROR): Define. Use instead of -Wno-error.
887 * configure.in: Include ../bfd/warning.m4 contents.
888 * Makefile.in: Regenerate.
889 * configure: Regenerate.
891 2005-04-12 Alan Modra <amodra@bigpond.net.au>
893 * Makefile.am: Run "make dep-am".
894 (ldgram.o, ldlex.o, deffilep.o): Add -Wno-error to command.
895 * Makefile.in: Regenerate.
896 * config.in: Regenerate.
898 2005-04-11 Alan Modra <amodra@bigpond.net.au>
900 * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed): Ignore
901 as_needed libs that were not needed.
902 (gld${EMULATION_NAME}_check_needed): Likewise.
904 2005-04-07 Nick Clifton <nickc@redhat.com>
906 * emultempl/m68kcoff.em: Include ldexp.h and ldlang.h so that
907 ldfile.h can use the lang_input_statement type.
909 2005-04-06 Jakub Jelinek <jakub@redhat.com>
911 * ldlang.c: Formatting.
912 (walk_wild_consider_section): Remember return value from wildcardp.
913 (is_simple_wild): Use strcspn instead of 2 strpbrk calls and strlen.
914 (wild_spec_can_overlap): Use strcspn instead of strpbrk and strlen.
916 2005-04-06 Robert O'Callahan <rocallahan@novell.com>
918 * ld.h (lean_section_userdata_type): Remove.
919 (fat_section_userdata_type): Remove file field.
920 (SECTION_USERDATA_SIZE): Remove.
921 * ldlang.c (init_os): Eliminate initialization of unused
922 lean_section_userdata_type.
924 * ldlang.h (callback_t, walk_wild_section_handler_t): New
926 (struct lang_wild_statement_struct): Add walk_wild_section_handler
927 and handler_data fields.
928 * ldlang.c (callback_t): Removed.
929 (walk_wild_consider_section, walk_wild_section_general,
930 section_iterator_callback, find_section, is_simple_wild,
931 match_simple_wild, walk_wild_section_specs1_wild0,
932 walk_wild_section_specs1_wild1, walk_wild_section_specs2_wild1,
933 walk_wild_section_specs3_wild2, walk_wild_section_specs4_wild2,
934 wild_spec_can_overlap, analyze_walk_wild_section_handler): New
936 (lang_add_wild): Call analyze_walk_wild_section_handler.
937 (walk_wild_section): Renamed to walk_wild_section_general and
938 created a wrapper function.
939 (section_iterator_callback_data): New typedef.
941 2005-04-04 Nick Clifton <nickc@redhat.com>
943 * configure.in: Add a check for <unistd.h> providing a prototype
944 for getopt() which is compatible with the one in
945 include/getopt.h. If so then define HAVE_DECL_GETOPT.
946 * configure: Regenerate.
947 * config.in (HAVE_DECL_GETOPT): Add.
948 * ldemul.c: Include config.h
949 * lexsup.c: Likewise.
950 * emultempl/elf32.sc: Likewise.
952 2005-03-29 Alan Modra <amodra@bigpond.net.au>
954 * emultempl/elf32.em (gld${EMULATION_NAME}_layout_sections_again):
955 New function, extracted from static void gld${EMULATION_NAME}_finish.
956 (gld${EMULATION_NAME}_strip_empty_sections): Likewise.
957 (gld${EMULATION_NAME}_provide_init_fini_syms): Likewise.
958 * emultempl/ppc64elf.em: Revert last change.
959 (ppc_layout_sections_again): Use
960 gld${EMULATION_NAME}_layout_sections_again.
961 (ppc_finish): Don't call gld${EMULATION_NAME}_finish. Instead call
962 gld${EMULATION_NAME}_strip_empty_sections and
963 gld${EMULATION_NAME}_provide_init_fini_syms.
964 * emultempl/hppaelf.em: Similarly.
966 2005-03-29 Alan Modra <amodra@bigpond.net.au>
968 * emultempl/ppc64elf.em (need_laying_out): Delete. Remove all refs.
969 (ppc_finish): Don't call bfd_elf_discard_info.
970 * emultempl/hppaelf.em: Similarly.
972 2005-03-24 Nick Clifton <nickc@redhat.com>
974 * po/fr.po: Updated French translation.
976 2005-03-23 Mike Frysinger <vapier@gentoo.org>
977 Nick Clifton <nickc@redhat.com>
979 * configure.host: Accept any C library to accompany a GNU Linux
980 implementation, not just the GNU C library.
981 * configure.tgt: Likewise.
982 * emultempl/elf32.em: Likewise.
984 2005-03-22 H.J. Lu <hongjiu.lu@intel.com>
986 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols): New
987 (gld${EMULATION_NAME}_finish): Call
988 gld${EMULATION_NAME}_provide_bound_symbols to provide
989 __preinit_array_start, __preinit_array_end, __init_array_start,
990 __init_array_end, __fini_array_start and __fini_array_end.
992 * scripttempl/elf.sc: Don't provide __preinit_array_start,
993 __preinit_array_end, __init_array_start, __init_array_end,
994 __fini_array_start nor __fini_array_end.
996 2005-03-23 Alan Modra <amodra@bigpond.net.au>
998 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Set
999 SEC_EXCLUDE on .gnu.warning sections.
1001 2005-03-22 Alan Modra <amodra@bigpond.net.au>
1003 * scripttempl/elf.sc (SBSS): Don't provide sbss start and end syms.
1005 2005-03-21 Alan Modra <amodra@bigpond.net.au>
1007 * emultempl/ppc32elf.em (gld${EMULATION_NAME}_after_allocation): New
1009 (LDEMUL_AFTER_ALLOCATION): Define.
1011 2005-03-21 Alan Modra <amodra@bigpond.net.au>
1013 * emultempl/ppc64elf.em (ppc_finish): Rename from
1014 gld${EMULATION_NAME}_finish. Call gld${EMULATION_NAME}_finish.
1015 (LDEMUL_FINISH): Update.
1016 * emultempl/hppaelf.em (hppaelf_finish, LDEMUL_FINISH): Likewise.
1017 * emultempl/m68hc1xelf.em (m68hc11elf_finish, LDEMUL_FINISH): Likewise.
1019 2005-03-18 Julian Brown <julian@codesourcery.com>
1021 * scripttempl/armbpapi.sc (.rel.dyn): Add .rel.init_array,
1023 (.rela.dyn): Add .rela.init_array, .rela.fini_array.
1024 (SECTIONS): Add .rel.other, .rela.other, .reli.other after PLT relocs.
1026 2005-03-18 H.J. Lu <hongjiu.lu@intel.com>
1028 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Don't set
1029 bfd_section when removing unused empty output sections for
1030 non-relocatable link.
1032 2005-03-19 Alan Modra <amodra@bigpond.net.au>
1034 * ldlang.c (lang_insert_orphan): Use old section_tail rather than
1035 traversing the bfd section list to find pointer to new section.
1037 2005-03-18 Alan Modra <amodra@bigpond.net.au>
1039 * scripttempl/elf.sc: When CREATE_SHLIB, put .sdata2 and .sbss2
1040 input sections into .sdata and .sbss output respectively.
1042 2005-03-16 David Heine <dlheine@tensilica.com>
1043 Bob Wilson <bob.wilson@acm.org>
1045 * ldlang.c (IGNORE_SECTION): Remove check for zero size.
1046 (lang_check_section_addresses): Ignore zero size sections here.
1048 2005-03-16 H.J. Lu <hongjiu.lu@intel.com>
1050 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Remove
1051 unused empty output sections for non-relocatable link.
1053 * ld.h (args_type): Remove gc_sections.
1055 * ldlang.c (lang_mark_used_section): New.
1056 (lang_gc_sections): Use link_info.gc_sections instead of
1057 command_line.gc_sections.
1058 * ldmain.c (main): Likewise.
1059 * lexsup.c (parse_args): Likewise.
1060 * ldlang.c (lang_process): Call lang_mark_used_section.
1062 * ldmain.c (main): Initialize link_info.gc_sections to FALSE.
1064 2005-03-16 Nick Clifton <nickc@redhat.com>
1065 Ben Elliston <bje@au.ibm.com>
1067 * configure.in (werror): New switch: Add -Werror to the
1068 compiler command line. Enabled by default. Disable via
1070 * configure: Regenerate.
1072 2005-03-16 Alan Modra <amodra@bigpond.net.au>
1074 * emulparams/elf32ppclinux.sh (OTHER_READWRITE_SECTION): Delete.
1075 (OTHER_RELRO_SECTIONS): Set this instead.
1077 2005-03-15 Nick Clifton <nickc@redhat.com>
1079 * NEWS: Add cutoff for changes in 2.16 release.
1081 2005-03-15 Mikkel Krautz <krautz@gmail.com>
1083 * configure.tgt (x86_64-elf): Add target.
1085 2005-03-15 Alan Modra <amodra@bigpond.net.au>
1087 * po/es.po: Commit new Spanish translation.
1089 2005-03-14 Alan Modra <amodra@bigpond.net.au>
1091 * ldexp.c (exp_fold_tree): Ensure return value is initialized.
1092 Tidy etree_assert case.
1094 2005-03-14 Alan Modra <amodra@bigpond.net.au>
1096 * po/tr.po: Commit new Turkish translation.
1098 2005-03-11 Daniel Jacobowitz <dan@codesourcery.com>
1100 * Makefile.am: Remove references to em68klynx.o and esparclynx.o.
1101 * Makefile.in: Regenerated.
1102 * emulparams/m68klynx.sh, emulparams/sparclynx.sh: Remove.
1104 2005-03-07 Nick Clifton <nickc@redhat.com>
1106 * po/fr.po: Updated translation.
1108 2005-03-05 Alan Modra <amodra@bigpond.net.au>
1110 * po/ld.pot: Regenerate.
1112 2005-03-02 Jan Beulich <jbeulich@novell.com>
1114 * ldmain.c (remove_output): Use unlink_if_ordinary instead of unlink.
1115 * pe-dll.c (pe_dll_generate_implib): Likewise.
1117 2005-02-24 Ben Elliston <bje@au.ibm.com>
1119 * ldfile.c: Remove GNU960 conditional code.
1120 * emultempl/gld960.em: Likewise.
1121 * emultempl/gld960c.em: Likewise.
1122 * emultempl/lnk960.em: Likewise.
1124 2005-02-24 Nick Clifton <nickc@redhat.com>
1126 * emultempl/lnk960.em (lnk960_before_parse): Remove redundant
1127 empty string from calls to concat.
1129 2005-02-23 Nick Clifton <nickc@redhat.com>
1131 * emultempl/lnk960.em (lnk960_before_parse): Terminate list of
1132 arguments passed to concat() with a NULL.
1134 * emultempl/m68kcoff.em: Include ldexp.h and ldlang.h because they
1135 define types needed by ldfile.h
1137 2005-02-23 Alan Modra <amodra@bigpond.net.au>
1139 * pe-dll.c: Warning fixes.
1140 * emultempl/sunos.em: Likewise.
1142 2005-02-22 Daniel Jacobowitz <dan@codesourcery.com>
1144 * ldlang.c (section_already_linked): Don't call
1145 bfd_section_already_linked for dynamic objects.
1147 2005-02-22 Alan Modra <amodra@bigpond.net.au>
1149 * ldexp.c: Warning fixes.
1150 * ldwrite.c: Likewise.
1151 * emultempl/elf32.em: Likewise.
1153 2005-02-21 H.J. Lu <hongjiu.lu@intel.com>
1155 * ldlang.c (lang_add_section): Check SEC_TIC54X_BLOCK for TI
1157 (lang_size_sections_1): Check SEC_COFF_SHARED_LIBRARY for COFF
1158 and ECOFF output only.
1160 2005-02-21 Alan Modra <amodra@bigpond.net.au>
1162 * config.in: Regenerate.
1163 * configure: Regenerate.
1165 2005-02-17 Zack Weinberg <zack@codesourcery.com>
1167 * ldexp.c (assigning_to_dot): New global flag.
1168 (fold_name): If assigning_to_dot is true, object immediately to
1169 an undefined symbol.
1170 (exp_fold_tree): Set and clear assigning_to_dot around the
1171 recursive call to exp_fold_tree to process the right-hand side
1172 of an assignment to the location counter.
1174 2005-02-17 Paul Brook <paul@codesourcery.com>
1176 * scripttempl/armbpabi.sc: Add dummy name to version block.
1178 2005-02-17 Alan Modra <amodra@bigpond.net.au>
1180 * ldexp.c (new_abs): Init new.str.
1182 2005-02-15 Mark Mitchell <mark@codesourcery.com>
1184 * configure.in (AC_CHECK_FUNCS): Add glob.
1185 * configure: Regenerated.
1186 * emultempl/elf32.em (<glob.h>): Do not include if HAVE_GLOB is
1188 (gld${EMULATION_NAME}_parse_ld_so_conf_include): Do not use glob
1189 if HAVE_GLOB is not defined.
1191 2005-02-16 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1193 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Define
1194 lib_path if NATIVE is yes.
1196 2005-02-16 Alan Modra <amodra@bigpond.net.au>
1198 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Make
1199 an error creating fake bfd fatal.
1200 (ppc_before_allocation): Continue on after errors.
1201 (gld${EMULATION_NAME}_finish): Likewise.
1203 2005-02-15 Nick Clifton <nickc@redhat.com>
1205 * ldlex.l (YY_NO_UNPUT): Define so that the yy_unput function is
1206 not declared. It is not used and its presence causes a compile
1209 2005-02-11 Zack Weinberg <zack@codesourcery.com>
1211 * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed):
1212 If st.st_ino is zero, do not treat the library as a duplicate.
1214 2005-02-10 Jakub Jelinek <jakub@redhat.com>
1216 * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
1217 Set BFD_LINKER_CREATED on the stubs bfd.
1218 * emultempl/ppc64elf.em (ppc_create_output_section_statements):
1221 2005-02-08 Mark Mitchell <mark@codesourcery.com>
1223 * scripttempl/armbpabi.sc (VERSION): Make special section symbols
1225 (Image$$ER_RO$$Base): Define whenever RELOCATING.
1226 (Image$$ER_RO$$Limit): Likewise.
1227 (SHT$$INIT_ARRAY$$Base): Likewise.
1228 (SHT$$INIT_ARRAY$$Limit): Likeise.
1230 2005-02-10 Ben Elliston <bje@au.ibm.com>
1232 * emultempl/beos.em: Remove #if 0 and #if 1 blocks.
1234 2005-02-08 Richard Sandiford <rsandifo@redhat.com>
1236 * configure.tgt (mips64*el-*-linux-gnu*): Define targ_extra_libpath
1237 to include o32 and n64 emulations.
1238 (mips64*-*-linux-gnu*): Likewise.
1240 2005-02-08 Hans-Peter Nilsson <hp@axis.com>
1242 * ldmain.c (warning_callback, warning_find_reloc): Prepend
1243 "warning: " to warning messages.
1245 2005-02-04 Alan Modra <amodra@bigpond.net.au>
1247 * emultempl/elf32.em (gld${EMULATION_NAME}_find_exp_assignment): Don't
1248 look up symbol for etree_provide here.
1250 2005-02-02 Daniel Jacobowitz <dan@codesourcery.com>
1252 * emulparams/elf32bmip.sh (TEXT_DYNAMIC): Always set.
1254 2005-02-01 Edward Welbourne <eddy@opera.com>
1255 Nick Clifton <nickc@redhat.com>
1257 * ld.texinfo (Source Code Reference): New node describing how to
1258 access linker script defined variables from source code.
1260 2005-02-01 Alan Modra <amodra@bigpond.net.au>
1262 * ld.texinfo: Clarify --as-needed operation.
1264 2005-01-31 Andrew Cagney <cagney@gnu.org>
1266 * configure: Regenerate to track ../gettext.m4.
1268 2005-01-31 Nick Clifton <nickc@redhat.com>
1270 * ldver.c (ldversion): Bump reported copyright date to 2005.
1272 2005-01-31 Nick Clifton <nickc@redhat.com>
1274 * configure.tgt: Remove obsolete targets m68k-lynxos and
1277 2005-01-28 Julian Brown <julian@codesourcery.com>
1279 * emultempl/armelf.em (fix_v4bx): New variable.
1280 (arm_elf_create_output_section_statements): Communicate fix_v4bx flag
1282 (PARSE_AND_LIST_PROLOGUE): Add option token OPTION_FIX_V4BX.
1283 (PARSE_AND_LIST_LONGOPTS): Add option --fix-v4bx.
1284 (PARSE_AND_LIST_OPTIONS): Add option --fix-v4bx.
1285 (PARSE_AND_LIST_ARGS_CASES): Add option OPTION_FIX_V4BX.
1286 * NEWS: Mention --fix-v4bx.
1287 * ld.texinfo: Document --fix-v4bx.
1289 2005-01-25 Mark Mitchell <mark@codesourcery.com>
1291 * emulparams/armsymbian.sh (OTHER_READONLY_SECTIONS): Define, so
1292 as to include .ARM.exidx$${Base,Limit}.
1293 * ld/scripttempl/armbpabi.sc: Move .plt to end of text segment.
1294 Define IMAGE$$ER_RO$${Base,Limit} and SHT$$INIT_ARRAY$${Base,Limit}.
1295 Put .init_array, .fini_array, etc. into the read-only data
1298 2005-01-25 Alan Modra <amodra@bigpond.net.au>
1300 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Formatting.
1301 (gld${EMULATION_NAME}_after_open): Ignore needed libs if they were
1302 only needed by an as-needed lib that didn't get linked.
1304 2005-01-23 Alan Modra <amodra@bigpond.net.au>
1306 * ld.texinfo (Output Section Keywords <CONSTRUCTORS>): Correct
1307 __DTOR_LIST__ description.
1309 2005-01-23 Alan Modra <amodra@bigpond.net.au>
1311 * ld.texinfo (Location Counter <dot outside sections>): Document
1312 effects of orphan section placement, and ". = ." workaround.
1313 * Makefile.in: Regenerate.
1315 2005-01-22 Richard Sandiford <rsandifo@redhat.com>
1317 * emulparams/elf32bmip.sh (OTHER_GOT_SECTIONS): Add ". = .;".
1318 * emulparams/elf32bmipn32-defs.sh (OTHER_GOT_SECTIONS): Likewise.
1320 2005-01-21 Jakub Jelinek <jakub@redhat.com>
1322 * ldgram.y (AS_NEEDED): New token.
1323 (input_list): Handle AS_NEEDED ( input_list ).
1324 * ldlex.l (AS_NEEDED): Add.
1325 * ld.texinfo: Document AS_NEEDED ().
1326 * NEWS: Mention AS_NEEDED ().
1328 2005-01-21 Ben Elliston <bje@au.ibm.com>
1330 * ldlang.c (lang_reasonable_defaults): Remove.
1331 (lang_process): Don't call lang_reasonable_defaults.
1333 * ldexp.c (exp_assop): Remove #if 0'd code.
1334 (exp_print_tree): Likewise.
1335 * ldlang.c (lang_memory_region_lookup): Likewise.
1336 (open_output): Likewise.
1337 (lang_do_assignments_1): Likewise.
1338 (lang_place_orphans): Likewise.
1339 (lang_enter_output_section_statement): Likewise.
1340 (lang_reasonable_defaults): Likewise.
1341 * ldlang.h (struct lang_input_statement_struct): Likewise.
1342 * mri.c (mri_draw_tree): Likewise.
1343 (mri_load): Likewise.
1344 * pe-dll.c (generate_reloc): Likewise.
1345 (make_import_fixup_entry): Likewise.
1346 (pe_as16): Likewise.
1347 * emultempl/beos.em (set_pe_subsystem): Likewise.
1348 * emultempl/hppaelf.em (hppaelf_after_parse): Likewise.
1349 * emultempl/pe.em: Likewise.
1350 * emultempl/xtensaelf.em (xtensa_colocate_literals): Likewise.
1352 2005-01-20 Daniel Jacobowitz <dan@codesourcery.com>
1354 * Makefile.am (ALL_EMULATIONS): Add earmelfb_linux_eabi.o.
1355 (earmelfb_linux_eabi.c): New target.
1356 * Makefile.in: Regenerated.
1357 * configure.tgt (arm*b-*-linux-gnueabi): New target.
1358 * emulparams/armelfb_linux_eabi.sh: New file.
1360 2005-01-20 Nick Hudson <skrll@netbsd.org>
1363 * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
1364 Handle bfd_elf32_hppa_nbsd_vec.
1366 2005-01-19 Richard Sandiford <rsandifo@redhat.com>
1368 * ldmain.h (ld_sysroot): Change type to a constant string.
1369 * ldmain.c (ld_sysroot): Likewise.
1370 (get_relative_sysroot, get_sysroot): New functions, adding command-line
1371 support for changing the sysroot.
1372 (main): Call the new functions.
1373 * lexsup.c (OPTION_SYSROOT): New.
1374 (ld_options): Add --sysroot.
1375 (parse_args): Add a dummy handler for it.
1376 * ld.texinfo (--sysroot): Document.
1377 * NEWS: Mention the new --sysroot option.
1379 2005-01-18 Alan Modra <amodra@bigpond.net.au>
1381 * ldlang.c (section_already_linked): Adjust bfd_link_just_syms call.
1382 (lang_place_orphans): Don't abort on just_syms_flag, instead call
1385 2005-01-16 Danny Smith <dannysmith@users.sourceforge.net>
1387 * defilep.y (def_name, def_library): Combine into...
1388 (def_image_name): New function. Strip name to basename,
1391 2005-01-12 Mark Kettenis <kettenis@gnu.org>
1393 * configure.in: Be sure to invoke config.sub using the shell.
1394 * configure: Regenerate.
1396 2005-01-11 Alan Modra <amodra@bigpond.net.au>
1398 * configure.host: Correct sed patterns for last change.
1400 2005-01-10 Nick Clifton <nickc@redhat.com>
1403 * ldmisc.c (vfinfo): Add an extra argument: is_warning. Use this
1404 to determine whether config.make_executable should be set to FALSE in
1405 conjunction with config.fatal_warnings.
1406 (info_msg, minfo, lfinof): Pass FALSE as the extra argument.
1407 (einfo): Pass TRUE as the extra argument.
1409 2005-01-10 Greg Schaffer <gschafer@zip.com.au>
1411 * configure.host (linux targets): Use "${CC} -dumpspecs" instead
1412 of "${CC} --print-file-name=specs" to appease GCC versions >= 4.0.
1413 (ia64-*-aix): Delete - this target is obsolete, and would be
1414 broken by this patch.
1416 2005-01-06 Eric Botcazou <ebotcazou@libertysurf.fr>
1418 * configure.host (sparc*-*-solaris2*): Rename into sparc-*-solaris2*.
1419 (sparc64-sun-solaris2*): New host.
1421 2005-01-06 Paul Brook <paul@codesourcery.com>
1423 * Makefie.am: Add earmelf_vxworks.
1424 * Makefile.in: Regenerate.
1425 * configure.tgt: Make arm-*-vxworks a separate case.
1426 * emulparams/armelf_vxworks.sh: New function.
1428 2005-01-06 Alan Modra <amodra@bigpond.net.au>
1430 * emultempl/ppc64elf.em (no_multi_toc): New var.
1431 (gld${EMULATION_NAME}_finish): Pass to ppc64_elf_setup_section_lists.
1432 (OPTION_NO_MULTI_TOC): Define.
1433 (PARSE_AND_LIST_LONGOPTS): Add --no-multi-toc support.
1434 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Likewise.
1436 2005-01-05 Nick Clifton <nickc@redhat.com>
1439 * ldmisc.c (vfinfo): Alter output to conform to the GNU Coding
1440 Standard's specification for parsable error messages.
1442 2005-01-04 Paul Brook <paul@codesourcery.com>
1444 * Makefile.am: Correct dependency for earmsymbian.c.
1445 * Makefile.in: Regenerate.
1447 2004-12-28 Danny Smith <dannysmith@users.sourceforge.net>
1449 * emultempl/pe.em (set_pe_subsystem): Change second arg to
1450 lang_add_entry to FALSE.
1452 2004-12-23 Nick Clifton <nickc@redhat.com>
1455 * emulparams/shelf.sh (.stack): Increase stack start address to
1458 2004-12-20 Nick Clifton <nickc@redhat.com>
1460 * ldmain.c (main): Issue an error message if -static and -shared
1463 2004-12-17 Jakub Jelinek <jakub@redhat.com>
1465 * ldexp.h (exp_data_seg): Add min_base and maxpagesize fields.
1466 * ldexp.c (fold_binary) <case DATA_SEGMENT_ALIGN>: Initialize them.
1467 * ldlang.c (lang_size_sections): Use them to avoid wasting virtual
1468 address space at DATA_SEGMENT_ALIGN. Fix computation of expected
1469 PT_GNU_RELRO segment end.
1471 2004-12-14 P.J. Darcy <darcypj@us.ibm.com>
1473 * configure.tgt: Add s390x-ibm-tpf support.
1475 2004-12-16 Martin Kögler <mkoegler@auto.tuwien.ac.at>
1477 * ldmisc.c (vfinfo): Handle the case where %B is passed a NULL
1480 2004-12-07 Ben Elliston <bje@gnu.org>
1482 * ldemul.h: Forward declare struct option.
1484 2004-12-01 Danny Smith <dannysmith@users.sourceforge.net>
1486 * scripttempl/pe.sc (.data): Add .jcr subsection.
1488 2004-11-30 Paul Brook <paul@codesourcery.com>
1490 * emultempl/armelf.em: Ignore -p and -no-pipeline-knowledge.
1492 2004-11-30 Tero Niemela <tero_niemela@yahoo.com>
1494 * Makefile.am: Change LOCALEDIR to $(datadir)/share.
1495 * Makefile.in: Regenerate.
1497 2004-11-26 Melissa Mears <asterisk@graces.dricas.com>
1499 * emultempl/pe.em: Add --subsystem:xbox as well as
1501 * ld.texinfo: (ld_options): Document acceptance of subsystem xbox
1502 and numeric subsystems.
1504 2004-11-24 Alan Modra <amodra@bigpond.net.au>
1506 * ldexp.c (fold_name): Correct PR 338 fix.
1508 2004-11-19 Mark Mitchell <mark@codesourcery.com>
1510 * Makefile.am (ALL_EMULATIONS): Add earmelf_linux_eabi.o.
1511 (earmelf_linux_eabi.c): New target.
1512 * configure.tgt (arm*-*-linux-gnueabi): Handle it.
1513 * emulparams/armelf_linux_eabi.sh: New file.
1514 * Makefile.in: Regenerated.
1516 2004-11-19 Nick Clifton <nickc@redhat.com>
1519 * ld.texinfo (MEMORY): Update the descriptions of the ORIGIN and
1520 LENGTH fields in the MEMORY command, to explicitly state that
1521 symbols cannot be used in their expressions.
1523 2004-11-19 Jon Beniston <jon@beniston.com>
1525 * ld/ldlex.l: Allow ORIGIN and LENGTH in EXPRESSION.
1526 * ld/ldgram.y: Add ORIGIN and LENGTH expressions.
1527 * ld/ldexp.c (fold_name): Implement LENGTH() and ORIGIN() functions
1528 which return the length and origin of a memory.
1529 * ld/ld.texinfo: Document LENGTH() and ORIGIN() functions.
1530 * NEWS: Mention support for ORIGIN and LENGTH operators.
1532 2004-11-17 Daniel Jacobowitz <dan@codesourcery.com>
1534 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Don't use
1535 a dynamic object for stubs.
1537 2004-11-04 Paul Brook <paul@codesourcery.com>
1539 * ld.texinfo: Document --default-imported-symver.
1540 * ldmain.c (main): Set link_info.default_imported_symver.
1541 * lexsup.c (option_values): Add OPTION_DEFAULT_IMPORTED_SYMVER.
1542 (ld_options): Add --default-imported-symver.
1543 (parse_args): Handle OPTION_DEFAULT_IMPORTED_SYMVER.
1545 2004-11-08 Inderpreet Singh <inderpreetb@nioda.hcltech.com>
1546 Vineet Sharma <vineets@noida.hcltech.com>
1548 * Makefile.am: Add entries for new maxq-coff target.
1549 * Makefile.in: Regenerate.
1550 * configure.tgt: Add support for maxq.
1551 * emulparams/maxqcoff.sh: New File.
1552 * scripttempl/maxqcoff.sc: New linker script for target maxq.
1553 * NEWS: Mention the new target.
1555 2004-11-04 Daniel Jacobowitz <dan@debian.org>
1557 * Makefile.am (ALL_EMULATIONS): Remove earmelf_oabi.o.
1558 (earmelf_oabi.c): Remove rule.
1559 * configure.tgt: Remove arm-*-oabi and thumb-*-oabi.
1560 * emulparams/armelf_oabi.sh, emultempl/armelf_oabi.em: Delete files.
1561 * Makefile.in: Regenerated.
1563 2004-11-04 Hans-Peter Nilsson <hp@axis.com>
1565 * configure.tgt (crisv32-*-*): Handle like cris-*-* for non-aout.
1566 * emulparams/criself.sh (INIT_START): Remove emitted "push srp".
1567 (FINI_START): Ditto.
1568 (INIT_END): Remove emitted "jump [sp+]".
1571 2004-11-04 Alan Modra <amodra@bigpond.net.au>
1573 * emultempl/ppc64elf.em (no_tls_opt): Rename from notlsopt.
1574 (no_opd_opt, no_toc_opt): New static vars.
1575 (ppc_before_allocation): Don't edit opt if no_opd_opt. Call
1577 (OPTION_NO_OPD_OPT, OPTION_NO_TOC_OPT): Define.
1578 (PARSE_AND_LIST_LONGOPTS): Add no-opd-optimize and no-toc-optimize.
1579 (PARSE_AND_LIST_OPTIONS): Describe new options.
1580 (PARSE_AND_LIST_ARGS_CASES): Handle them.
1582 2004-10-27 Nick Clifton <nickc@redhat.com>
1584 * emultempl/alphaelf.em (alpha_after_parse): Add extra, NULL,
1585 parameter to invocation of lang_section_start.
1586 * emultempl/aix.em (_handle_option): Likewise.
1588 * Makefile.am (eelf64alpha.c, eelf64alpha_fbsd.c,
1589 eelf64alpha_nbsd.c): Add dependency upon emultempl/alphaelf.em.
1590 * Makefile.in: Regenerate.
1592 2004-10-26 Mark Mitchell <mark@codesourcery.com>
1594 * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Do not emit
1595 __exidx_{start,end} when not relocating.
1597 2004-10-25 Mark Mitchell <mark@codesourcery.com>
1599 * Makefile.in (earmsymbian.c): Depend on armbpabi.sc, not elf.sc.
1600 * ldexp.h (segment_type): New type.
1601 (segments): New variable.
1602 * ldexp.c (segments): New variable.
1603 (exp_print_token): Handle SEGMENT_START.
1604 (fold_binary): Likewise.
1605 * ldgram.y (SEGMENT_START): Declare it as a token.
1606 (exp): Handle SEGMENT_START.
1607 * ldlang.h (lang_address_statement_type): Add segment field.
1608 (lang_section_start): Change prototype.
1609 * ldlang.c (map_input_to_output_sections): Do not process section
1610 assignments if a corresponding SEGMENT_START has already been
1612 (lang_section_start): Add segment parameter.
1613 * ldlex.l (SEGMENT_START): Add it.
1614 * lexsup.c (seg_segment_start): New function.
1615 (parse_args): Use it for -Tbss, -Tdata, and -Ttext.
1616 * ld.texinfo (SEGMENT_START): Document it.
1617 * emulparams/armsymbian.sh (EMBEDDED): Set it.
1618 * scripttempl/armbpabi.sc: Use SEGMENT_START to control segment
1619 base addresses. Do not map relocations.
1620 * NEWS: Mention SEGMENT_START.
1622 2004-10-26 Paul Brook <paul@codesourcery.com>
1624 * ld.texinfo: Document --default-symver.
1625 * ldmain.c (main): Set link_info.create_default_symver.
1626 * lexsup.c (enum option_values): Add OPTION_DEFAULT_SYMVER.
1627 (ld_options): Add default-symver.
1628 (parse_args): Handle OPTION_DEFAULT_SYMVER.
1630 2004-10-24 Danny Smith <dannysmith@users.sourceforge.net>
1632 * pe-dll.c (process_def_file): Don't export all symbols by default if
1633 building a position-independent executable.
1635 2004-10-21 H.J. Lu <hongjiu.lu@intel.com>
1638 * ldmain.c (reloc_overflow): Accept a pointer to struct
1639 bfd_link_hash_entry. Report symbol location for relocation
1642 2004-10-21 H.J. Lu <hongjiu.lu@intel.com>
1644 * genscripts.sh (libpath.exp): Really generate for first
1647 2004-10-19 Danny Smith <dannysmith@users.sourceforge.net>
1649 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Simplify
1650 comparison and replacement of filenames.
1652 2004-10-19 H.J. Lu <hongjiu.lu@intel.com>
1655 * ldlang.c (load_symbols): Use the same -Bdynamic/-Bstatic
1656 option on linker script as the one for linker script.
1658 2004-10-16 Daniel Jacobowitz <dan@debian.org>
1660 * ldlang.c (struct excluded_lib, excluded_libs, add_excluded_libs)
1661 (check_excluded_libs): New.
1662 (load_symbols): Call check_excluded_libs.
1663 * ldlang.h (add_excluded_libs): New prototype.
1664 * emultempl/elf32.em (OPTION_EXCLUDED_LIBS): Define.
1665 (gld${EMULATION_NAME}_add_options): Add --exclude-libs.
1666 (gld${EMULATION_NAME}_handle_option): Handle --exclude-libs.
1667 * ld.texinfo (Command Line Variables): Document --exclude-libs.
1668 (Options Specific to i386 PE Targets): Remove --exclude-libs.
1670 2004-10-15 Alan Modra <amodra@bigpond.net.au>
1672 * ldexp.c (exp_fold_tree): Don't immediately exit ld on a
1673 failing link script assert.
1675 * ldctor.c (ldctor_add_set_entry): Fix comment typo.
1677 2004-10-14 H.J. Lu <hongjiu.lu@intel.com>
1680 * emulparams/elf64_ia64.sh (SMALL_DATA_CTOR): Set.
1681 (SMALL_DATA_DTOR): Set.
1682 * emulparams/elf64_ia64_fbsd.sh (SMALL_DATA_CTOR): Unset.
1683 (SMALL_DATA_DTOR): Unset.
1684 * scripttempl/elf.sc: If SMALL_DATA_CTOR is set, move .ctors
1685 after .data. If SMALL_DATA_DTOR is set, move .dtors after
1688 2004-10-14 Alan Modra <amodra@bigpond.net.au>
1691 * ldlang.h (lang_output_section_statement_type): Make "next" a
1692 struct lang_output_section_statement_struct *.
1693 (struct orphan_save): Move from elf32.em. Add "name" and "flags".
1694 (lang_output_section_find_by_flags, lang_insert_orphan): Declare.
1695 * ldlang.c (lang_output_section_find_1): Adjust for changed
1696 output_section_statement "next".
1697 (strip_excluded_output_sections): Likewise.
1698 (lang_record_phdrs): Likewise.
1699 (lang_output_section_find_by_flags): New function.
1700 (output_prev_sec_find): Move from pe.em. Adjust iterator.
1701 (lang_insert_orphan): New function. Tail end of elf32.em's
1702 place_orphan merged with that from pe.em. Allow bfd_section to
1703 be placed first. New heuristic for placing new output section
1704 statement in existing script, and accompanying split of __start
1705 symbol alignment into a separate assignment to dot.
1706 (lang_add_section): Consistently use output->bfd_section rather than
1707 an alias, section->output_section.
1708 (map_input_to_output_sections): Rename overly long arg. Move
1709 initialization of data_statement output section to here..
1710 (lang_check_section_addresses): ..from here.
1711 (print_assignment): Correct printing of etree_assert.
1712 (print_all_symbols): Don't bomb if userdata is NULL.
1713 (IGNORE_SECTION): Rearrange.
1714 * emultempl/elf32.em (output_rel_find): Adjust interator.
1715 (output_prev_sec_find): Delete.
1716 (struct orphan_save): Delete.
1717 (gld${EMULATION_NAME}_place_orphan): Cater for zero bfd_section
1718 flags without creating a duplicate output section statement.
1719 Revise code holding history of various orphan section placements.
1720 Allow orphan sections to place before script specified output
1721 sections. Call lang_output_section_find_by_flags when placement
1722 by name fails. Use lang_insert_orphan.
1723 * emultempl/mmo.em (output_prev_sec_find): Delete.
1724 (struct orphan_save): Delete.
1725 (mmo_place_orphan): Revise code holding history of orphan placement.
1726 Allow orphans to place before existing output sections. Use
1728 * emultempl/pe.em (output_prev_sec_find): Delete.
1729 (struct orphan_save): Delete.
1730 (gld_${EMULATION_NAME}_place_orphan): Revise to suit use of
1733 2004-10-13 Mark Mitchell <mark@codesourcery.com>
1735 * scripttempl/armbpabi.sc: Do not put .gnu.version.* into a
1738 2004-10-13 Alan Modra <amodra@bigpond.net.au>
1741 * ldcref.c (check_section_sym_xref): Delete.
1742 (check_local_sym_xref): New function.
1743 (check_nocrossrefs): Adjust call.
1744 * emultempl/pe.em (struct orphan_save): Add os_tail.
1745 (place_orphan): Backport assorted fixes from elf32.em.
1747 2004-10-12 Bob Wilson <bob.wilson@acm.org>
1749 * emultempl/xtensaelf.em: Use ISO C90 formatting.
1751 2004-10-11 Jakub Jelinek <jakub@redhat.com>
1753 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_ld_so_conf): Avoid
1754 getline for portability.
1756 * emultempl/elf32.em (gld${EMULATION_NAME}_ld_so_conf): New structure.
1757 (gld${EMULATION_NAME}_parse_ld_so_conf,
1758 gld${EMULATION_NAME}_parse_ld_so_conf_include): New functions.
1759 (gld${EMULATION_NAME}_check_ld_so_conf): Use them.
1761 2004-10-11 Alan Modra <amodra@bigpond.net.au>
1764 * ldfile.c (ldfile_try_open_bfd): Ensure dynamic objects are
1765 rejected when linking statically.
1767 2004-10-08 Daniel Jacobowitz <dan@debian.org>
1769 * configure.tgt: Include elf_x86_64 for i[3-7]86-*-solaris2*.
1771 2004-10-07 Bob Wilson <bob.wilson@acm.org>
1773 * ld.texinfo (Xtensa): Describe new linker relaxation to optimize
1774 assembler-generated longcall sequences. Describe new --size-opt
1776 * emulparams/elf32xtensa.sh (OTHER_SECTIONS): Add .xt.prop section.
1777 * emultempl/xtensaelf.em (remove_section,
1778 replace_insn_sec_with_prop_sec, replace_instruction_table_sections,
1779 elf_xtensa_after_open): New.
1780 (OPTION_OPT_SIZEOPT, OPTION_LITERAL_MOVEMENT,
1781 OPTION_NO_LITERAL_MOVEMENT): Define.
1782 (elf32xtensa_size_opt, elf32xtensa_no_literal_movement): New globals.
1783 (PARSE_AND_LIST_LONGOPTS): Add size-opt and [no-]literal-movement.
1784 (PARSE_AND_LIST_OPTIONS): Add --size-opt.
1785 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_OPT_SIZEOPT,
1786 OPTION_LITERAL_MOVEMENT, and OPTION_NO_LITERAL_MOVEMENT.
1787 (LDEMUL_AFTER_OPEN): Set to elf_xtensa_after_open.
1788 * scripttempl/elfxtensa.sc: Update with changes from elf.sc.
1789 * Makefile.am (eelf32xtensa.c): Update dependencies.
1790 * Makefile.in: Regenerate.
1792 2004-10-07 Jeff Baker <jbaker@qnx.com>
1794 * lexsup.c: Handle --warn-shared-textrel option.
1795 (ld_options): Restore alpha sorting of options.
1796 * ldmain.c (main): Initialise warn_shared_info field to FALSE.
1797 * ld.texinfo: Add documentation for --warn-shared-textrel.
1798 * NEWS: Added mention of --warn-shared-textrel option.
1800 2004-10-05 Tomer Levi <Tomer.Levi@nsc.com>
1802 * emultempl/crxelf.em (disable_relaxation): Add.
1803 (crxelf_before_allocation): Enable --relax option by default.
1804 (PARSE_AND_LIST_PROLOGUE): Add OPTION_NO_RELAX.
1805 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --no-relax.
1806 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_NO_RELAX.
1808 2004-10-04 H.J. Lu <hongjiu.lu@intel.com>
1810 * NEWS: Mention SORT_BY_NAME, SORT_BY_ALIGNMENT and
1811 --sort-section name|alignment.
1813 * ld.texinfo: Document SORT_BY_NAME, SORT_BY_ALIGNMENT and
1814 --sort-section name|alignment.
1816 * ld.h (sort_type): New enum.
1817 (wildcard_spec): Change the type of `sorted' to sort_type.
1819 * ldgram.y (SORT): Removed.
1820 (SORT_BY_NAME): Added.
1821 (SORT_BY_ALIGNMENT): Added.
1822 (wildcard_spec): Updated `sorted'. Handle SORT_BY_NAME and
1824 (input_section_spec_no_keep): Updated `sorted'.
1825 (statement): Replace SORT with SORT_BY_NAME.
1827 * ldlang.c (compare_section): New function to compare 2
1828 sections with different sorting schemes.
1829 (wild_sort): Updated. Use compare_section.
1830 (update_wild_statements): New function.
1831 (lang_process): Call update_wild_statements before
1832 map_input_to_output_sections.
1834 * ldlex.l (SORT_BY_NAME): New.
1835 (SORT_BY_ALIGNMENT): New.
1836 (SORT): Return SORT_BY_NAME.
1838 * ldmain.c (sort_section): New. Defined.
1839 (main): Initialize it to none.
1841 * lexsup.c (option_values): Add OPTION_SORT_SECTION.
1842 (ld_options): Add an entry for OPTION_SORT_SECTION.
1843 (parse_args): Handle OPTION_SORT_SECTION.
1845 * mri.c (mri_draw_tree): Updated `sorted'.
1847 2004-10-04 Jakub Jelinek <jakub@redhat.com>
1849 * ldgram.y (DATA_SEGMENT_RELRO_END): Add one argument.
1850 * scripttempl/elf.sc (DATA_SEGMENT_RELRO_END): Add 0 as first
1852 (DATA_SEGMENT_RELRO_GOTPLT_END): Pass $SEPARATE_GOTPLT as first
1853 and . as second argument.
1854 (GOTPLT): Move $DATA_SEGMENT_RELRO_GOTPLT_END before the section.
1855 * ldexp.c (fold_unary): Remove DATA_SEGMENT_RELRO_END handling here.
1856 (fold_binary): Add it here. Insert padding to make relro_end
1857 COMMONPAGESIZE bytes aligned. For DATA_SEGMENT_ALIGN in
1858 exp_dataseg_relro_adjust phase just use previously computed
1860 * ldlang.c (lang_size_sections): Set exp_data_seg.base for
1861 relro_adjust here. Call lang_size_sections_1 once more if there
1862 was too big padding at DATA_SEGMENT_RELRO_END.
1863 * ld.texinfo (DATA_SEGMENT_RELRO_END): Add documentation.
1865 2004-10-01 Paul Brook <paul@codesourcery.com>
1867 * emulparams/armelf.sh: Add unwinding table sections.
1869 2004-09-30 Filip Navara <navaraf@reactos.com>
1871 * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Generate
1872 correct base address for position independant executables.
1873 * pe-dll.c (pe_dll_fill_sections): Don't mark position independant
1874 executables as DLLs.
1876 2004-09-30 Paul Brook <paul@codesourcery.com>
1878 * ld.texinfo: Document --target2=abs.
1879 * emulparms/armsymbian.sh (TARGET2_TYPE): Set.
1881 2004-09-29 Nick Clifton <nickc@redhat.com>
1883 * scripttempl/xstormy16.sc: Only perform the assignments to the
1884 ROM region when not performing a relocatable link. The ROM region
1885 does not start at address 0, but the sections will.
1886 * Makefile.am: Fix linker script dependency for the generation of
1888 * Makefile.in: Regenerate.
1890 2004-09-18 Filip Navara <navaraf@reactos.com>
1892 * emulparams/arm_epoc_pe.sh, emulparams/armpe.sh, emulparams/i386pe.sh,
1893 emulparams/i386pe_posix.sh, emulparams/mcorepe.sh,
1894 emulparams/mipspe.sh, emulparams/ppcpe.sh, scripttempl/pe.sc: Define
1896 * scripttempl/pe.sc: Make the virtual address and file offset synced if
1897 the alignment is lower than the target page size.
1899 2004-09-27 Filip Navara <navaraf@reactos.com>
1901 * emultempl/pe.em (gld_${EMULATION_NAME}_unrecognized_file): Allow
1902 def_file_parse to handle pe_def_file if NULL and prevent crash with
1905 2004-09-27 Alan Modra <amodra@bigpond.net.au>
1907 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Enable
1908 --emit-stub-syms automatically when --emit-relocs.
1910 2004-09-24 Paul Brook <paul@codeosurcery.com>
1912 * scripttempl/elf.sc: Keep .preinit_array, .init_array and
1913 .fini_array sections.
1915 2004-09-19 Andreas Schwab <schwab@suse.de>
1917 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Adjust data segment
1918 base so that relro end is suitably aligned.
1920 2004-09-17 Paul Brook <paul@codesourcery.com>
1922 * ld.texinfo: Rename arm-specific section. Document --target*
1923 * emulparams/armelf_fbsd.sh: Set TARGET2_TYPE.
1924 * emulparams/armelf_linux.sh: Ditto.
1925 * emulparams/armelf_nbsd.sh: Ditto.
1926 * emultempl/armelf.em: Set default for TARGET2_TYPE.
1927 (target2_type): New variable.
1928 (arm_elf_before_allocation): Don't pass target1_type.
1929 (arm_elf_create_output_section_statements): New function.
1930 (PARSE_AND_LIST_PROLOGUE): Add OPTION_TARGET2.
1931 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --target=.
1932 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_TARGET2.
1933 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Set.
1934 * emultempl/armelf_oabi.em (_before_allocation): Remove extra
1935 argument to bfd_elf32_arm_process_before_allocation.
1937 2004-09-17 Alan Modra <amodra@bigpond.net.au>
1939 * ldexp.c (fold_name): Update u.undef.next refs.
1940 * emultempl/pe.em: Likewise.
1941 * emultempl/sunos.em: Likewise.
1943 2004-09-17 Alan Modra <amodra@bigpond.net.au>
1945 * Makefile.am: Run "make dep-am".
1946 * Makefile.in: Regenerate.
1947 * config.in: Regenerate.
1948 * configure: Regenerate.
1949 * aclocal.m4: Regenerate.
1950 * po/ld.pot: Regenerate.
1952 2004-09-16 Tomer Levi <Tomer.Levi@nsc.com>
1954 * scripttempl/elf32crx.sc (.init): Add KEEP for section's *personality*.
1958 2004-09-16 Alan Modra <amodra@bigpond.net.au>
1960 * emultempl/armelf_oabi.em (before_allocation): Add extra zero param
1961 to bfd_elf32_arm_process_before_allocation call.
1963 2004-09-13 Paul Brook <paul@codesourcery.com>
1965 * emulparams/armsymbian.sh: Set TARGET1_IS_REL.
1966 * emultempl/armelf.em: Use TARGET1_IS_REL. Add --target1-{rel,abs}.
1968 2004-09-07 H.J. Lu <hongjiu.lu@intel.com>
1970 * configure: Regenerated with autconfig 2.13.
1972 2004-09-07 Andreas Schwab <schwab@suse.de>
1974 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Apply data segment
1975 alignment before adjusting DATA_SEGMENT_RELRO_END.
1977 2004-09-06 Mark Mitchell <mark@codesourcery.com>
1979 * emulparams/armsymbian.sh: Use armbpabi script.
1980 * scripttempl/armbpabi.sc: New script.
1982 2004-09-02 Mark Mitchell <mark@codesourcery.com>
1984 * Makefile.am (ALL_EMULATIONS): Add earmsymbian.o.
1985 (earmsymbian.c): New target.
1986 * configure.tgt: Use armsymbian emulation for arm*-*-symbianelf*.
1987 * Makefile.in: Regenerated.
1988 * aclocal.m4: Likewise.
1989 * configure: Likewise.
1990 * emulparams/armsymbian.sh: New file.
1992 2004-09-03 Tomer Levi <Tomer.Levi@nsc.com>
1994 * scripttempl/elf32crx.sc: Edit file with comments.
1995 (.init): Add new section.
1997 (.ctor): Control the linkage order.
2000 2004-08-27 Nick Clifton <nickc@redhat.com>
2002 * emultempl/pe.em (after_open): Do not assume that either bfd is
2005 2004-08-26 Alan Modra <amodra@bigpond.net.au>
2007 * ldlang.c (lang_init): Don't compare with TRUE.
2009 2004-08-25 Dmitry Diky <diwil@spec.ru>
2011 * emulparams/msp430all.sh: Fix RAM sizes for all targets.
2012 * scripttempl/elf32msp430.sc: Add .profiler section definition.
2014 2004-08-24 H.J. Lu <hongjiu.lu@intel.com>
2016 * ldlang.c (wildcardp): Defined as a macro with strpbrk.
2018 2004-08-19 Mark Mitchell <mark@codesourcery.com>
2020 * configure.tgt (arm*-*-symbianelf*): New target.
2021 (arm*-*-eabi*): Likewise.
2023 2004-08-19 Jakub Jelinek <jakub@redhat.com>
2025 * emultempl/ppc64elf.em (non_overlapping_opd): New variable.
2026 (ppc_before_allocation): Pass it to ppc64_elf_edit_opd).
2027 (OPTION_NON_OVERLAPPING_OPD): Define.
2028 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Add
2029 --non-overlapping-opd option.
2031 2004-08-18 Alan Modra <amodra@bigpond.net.au>
2034 * ldexp.c (fold_name): Don't call bfd_link_add_undef if the symbol
2035 was already on the undefs list.
2037 2004-08-17 Alan Modra <amodra@bigpond.net.au>
2039 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern): Dot
2040 prefix the symbol field too.
2042 2004-08-13 Alan Modra <amodra@bigpond.net.au>
2044 * ldmain.c (link_callbacks): Remove "error_handler".
2045 * ldmisc.c: Include elf-bfd.h.
2046 (vfinfo): Sort comment. Handle %A. Use %A instead of
2047 bfd_get_section_indent.
2048 (error_handler): Delete.
2049 * ldmisc.h (error_handler): Delete declaration.
2051 2004-08-10 Alan Modra <amodra@bigpond.net.au>
2053 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Call
2054 ppc64_elf_restore_symbols.
2056 2004-08-09 Alan Modra <amodra@bigpond.net.au>
2058 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Error if
2059 .toc is too large on relocatable linking.
2061 2004-08-09 Alan Modra <amodra@bigpond.net.au>
2063 * emultempl/ppc64elf.em (ppc_after_open): Delete.
2064 (LDEMUL_AFTER_OPEN): Don't define.
2066 2004-08-02 Stephane Carrez <stcarrez@nerim.fr>
2068 * ld.texinfo (Top): Document specific options of 68HC11 and 68HC12.
2070 2004-08-01 Stephane Carrez <stcarrez@nerim.fr>
2072 * scripttempl/elfm68hc12.sc: Align text, rodata and data section
2075 2004-07-27 Jason Thorpe <thorpej@wasabisystems.com>
2077 * emulparams/hppanbsd.sh (OUTPUT_FORMAT): Set to "elf32-hppa-netbsd".
2079 2004-07-26 Dmitry Diky <diwil@spec.ru>
2081 * Makefile.am: Add new subtargets: msp430x1610, msp430x1611,
2082 msp430x1612, msp430x415, msp430x417, msp430xG437, msp430xG438,
2084 * configure.tgt: Likewise.
2085 * emulparams/msp430all.sh: Likewise.
2086 * Makefile.in: Regenerate.
2088 2004-07-23 Nick Clifton <nickc@redhat.com>
2090 * emultempl/elf32.em (_place_orphan): Use an already existing
2091 section name if that section does not have any flags set.
2093 2004-07-21 H.J. Lu <hongjiu.lu@intel.com>
2095 * ldlang.c (already_linked_hash_entry): Removed.
2096 (already_linked): Likewise.
2097 (already_linked_table): Likewise.
2098 (section_already_linked): Call bfd_section_already_linked.
2099 (lang_process): Replace already_linked_table_init with
2100 bfd_section_already_linked_table_init and check return. Replace
2101 already_linked_table_free with bfd_section_already_linked_table_free.
2103 2004-07-21 Nick Clifton <nickc@redhat.com>
2105 * ldlang.c (init_os): Make sure that the newly allocated userdata
2106 structure is zeroed out.
2108 2004-07-19 H.J. Lu <hongjiu.lu@intel.com>
2110 * NEWS: Mention the new --add-needed/--no-add-needed and
2111 --as-needed/--no-as-needed options.
2113 2004-07-19 H.J. Lu <hongjiu.lu@intel.com>
2115 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): Also
2116 check the add_needed field.
2117 (dt_needed): New struct.
2118 (gld${EMULATION_NAME}_try_needed): Change the first argument
2119 to a pointer to struct dt_needed. Check the DYN_NO_ADD_NEEDED
2120 bit in the file where the DT_NEEDED entry comes from.
2121 (gld${EMULATION_NAME}_search_needed): Change the second
2122 argument to a pointer to struct dt_needed.
2123 (gld${EMULATION_NAME}_check_ld_so_conf): Updated.
2124 (gld${EMULATION_NAME}_after_open): Likewise.
2126 * ld.texinfo: Add --add-needed document.
2127 * ldlang.c (new_afile): Set p->add_needed.
2128 * ldlang.h (lang_input_statement_type): Add add_needed field.
2129 * ldmain.h (add_needed): Declare.
2130 * ldmain.c (add_needed): New global var.
2131 * lexsup.c (option_values): Add OPTION_ADD_NEEDED and
2132 OPTION_NO_ADD_NEEDED.
2133 (ld_options): Likewise.
2134 (parse_args): Handle them.
2136 2004-07-13 Christof Petig <christof@petig-baender.de>
2138 * emultempl/pe.em (make_import_fixup): Use bfd_get_32 to correct
2139 for endian-ness of extracted addend.
2141 2004-07-13 Danny Smith <dannysmith@usesr.sourceforge.net>
2143 * pe-dll.c (auto_export): Filter on just the import prefix,
2144 "_imp_", not "_imp__".
2146 2004-07-09 Nick Clifton <nickc@redhat.com>
2148 * configure.tgt: Change sh-sybmian-elf to sh-*-symbianelf.
2150 2004-07-06 Tomer Levi <Tomer.Levi@nsc.com>
2152 * Makefile.am (ALL_EMULATIONS): Add eelf32crx.o.
2153 (eelf32crx.c): New target.
2154 * Makefile.in: Regenerate.
2155 * configure.tgt: Handle crx-*-elf*.
2156 * emulparams/elf32crx.sh: New file.
2157 * emultempl/crxelf.em: New file.
2158 * scripttempl/elf32crx.sc: New file.
2159 * NEWS: Mention new target.
2161 2004-07-06 Nick Clifton <nickc@redhat.com>
2163 * Makefile.am: Add eshlsymbian.c.
2164 * Makefile.in: Regenerate.
2165 * configure.tgt: Add sh*-symbian-elf target.
2166 * emulparams/shlsymbian.sh: New file. Configure the
2167 sh-symbian-elf linker scripts.
2168 * scripttemp/elf32sh-symbian.sc: New file. Linker script
2169 template for the sh-symbian-elf target.
2171 2004-07-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2173 * emulparams/hppa64linux.sh: Define PLT_BEFORE_GOT.
2174 * emulparams/hppalinux.sh: Likewise.
2175 * scripttempl/elf.sc: Place .plt just before .got when .plt is in
2176 data segment and PLT_BEFORE_GOT is defined.
2178 2004-07-03 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
2180 * ld.texinfo (WIN32): Document PE weak symbols.
2182 2004-07-02 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2184 * emulparams/shlelf32_linux.sh (COMMONPAGESIZE): Set to 4KB.
2186 2004-07-01 H.J. Lu <hongjiu.lu@intel.com>
2188 * ldmisc.c (vfinfo): Call bfd_get_section_ident to identify
2191 2004-06-29 Alan Modra <amodra@bigpond.net.au>
2193 * ldlang.c (lang_reset_memory_regions): Save last relax pass section
2196 2004-06-24 Alan Modra <amodra@bigpond.net.au>
2198 * ldlang.c (print_output_section_statement): Don't print size before
2200 (IGNORE_SECTION): Remove bfd arg. Update all callers.
2202 * ldexp.c (fold_name): .. See below.
2203 * ldlang.c (section_already_linked, print_output_section_statement,
2204 print_input_section, insert_pad, size_input_section,
2205 lang_check_section_addresses, lang_size_sections_1,
2206 lang_size_sections, lang_do_assignments_1, lang_set_startof,
2207 lang_one_common, lang_reset_memory_regions, lang_process,
2208 lang_abs_symbol_at_end_of, lang_do_version_exports_section): ..
2209 * ldwrite.c (build_link_order, clone_section, ds, split_sections): ..
2210 * pe-dll.c (process_def_file, generate_reloc): ..
2211 * emultempl/elf32.em (gld${EMULATION_NAME}_find_statement_assignment,
2212 gld${EMULATION_NAME}_before_allocation): ..
2213 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): ..
2214 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_before_allocation,
2215 sh64_elf_${EMULATION_NAME}_after_allocation): ..
2216 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): ..
2217 * emultempl/xtensaelf.em (ld_assign_relative_paged_dot,
2218 ld_local_file_relocations_fit, ld_xtensa_insert_page_offsets): Use
2219 "size" instead of "_raw_size" and "_cooked_size". Expand
2220 bfd_section_size macro invocations.
2222 2004-06-22 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
2224 * ld/scripttemp/pe.sc (.CRT): Define ___crt_xc_start__,
2225 ___crt_xc_end__, ___crt_xi_start__, ___crt_xi_end__, ___crt_xl_start__,
2226 ___crt_xp_start__, ___crt_xp_end__, ___crt_xt_start__ and
2228 (.tls): Define ___tls_start__ and ___tls_end__.
2230 2004-06-21 Alexandre Oliva <aoliva@redhat.com>
2232 * emulparams/elf32frvfd.sh (GENERATE_PIE_SCRIPT): Set to yes.
2234 2004-06-18 Adam Nemet <anemet@lnxw.com>
2236 * configure.in: Set EXTRA_SHLIB_EXTENSION to .a for LynxOS.
2237 * configure: Regenerate.
2239 2004-06-15 Jakub Jelinek <jakub@redhat.com>
2241 * scripttempl/elf.sc: Readd KEEP and .gcc_except_table.* to
2242 .gcc_except_table output sections lost accidentally with
2245 2004-06-15 Alan Modra <amodra@bigpond.net.au>
2247 * ldwrite.c (build_link_order): Use bfd_get_section_size
2248 instead of bfd_get_section_size_before_reloc or _raw_size.
2249 * pe-dll.c (process_def_file): Likewise.
2251 2004-06-14 Alan Modra <amodra@bigpond.net.au>
2253 From Richard Wirth <r.wirth@wirthware.de>
2254 * ldlang.c (lang_finish): Don't free lang_definedness_table.
2256 2004-05-29 Alan Modra <amodra@bigpond.net.au>
2258 * ldlang.c (gc_section_callback): Move SEC_EXCLUDE twiddles..
2259 (lang_gc_sections): .. to a LANG_FOR_EACH_INPUT_STATEMENT loop here.
2261 2004-05-28 Alan Modra <amodra@bigpond.net.au>
2263 * ldlang.c: Formatting. Wrap long lines, expand bfd_get_section_flags
2265 * lexsup.c: Formatting. Wrap long lines.
2266 * ldwrite.c: Update copyright date.
2268 * ldlang.c (lang_add_section): Don't twidlle SEC_EXCLUDE here.
2269 (output_section_callback): Nor SEC_KEEP here.
2270 (gc_section_callback): Twiddle SEC_EXCLUDE here.
2271 (lang_gc_wild): Delete. Fold into..
2272 (lang_gc_sections_1): ..here. Only call bfd_gc_sections when garbage
2274 (lang_process): Always call lang_gc_sections.
2275 (lang_place_orphans): Handle SEC_EXCLUDE sections.
2276 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Remove
2279 2004-05-26 H.J. Lu <hongjiu.lu@intel.com>
2281 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Clear
2282 SEC_EXCLUDE on non-SEC_DEBUGGING sections for relocatable link.
2283 * ldlang.c (lang_add_section): Likewise.
2285 2004-05-26 Alan Modra <amodra@bigpond.net.au>
2287 * ldlang.c (lang_add_section): Set SEC_EXCLUDE for SEC_GROUP
2288 sections when doing a final link. Clear SEC_EXCLUDE when doing
2289 a relocable link, except for SEC_DEBUGGING sections.
2290 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Use the
2291 same condition here to drop SEC_EXCLUDE orphan sections.
2293 2004-05-25 Alan Modra <amodra@bigpond.net.au>
2295 * ldlang.c (lang_process): Call bfd_merge_sections later, and
2296 only when not a relocatable link.
2297 (print_input_section): Handle SEC_EXCLUDE sections.
2298 (size_input_section): Don't update dot on SEC_EXCLUDE sections.
2299 (lang_do_assignments_1): Likewise.
2300 * ldwrite.c (build_link_order): Ignore SEC_EXCLUDE input sections.
2301 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Likewise.
2302 * emultempl/hppaelf.em (build_section_lists): Likewise.
2303 * emultempl/ppc64elf.em (build_toc_list): Likewise.
2304 (build_section_lists): Likewise.
2306 2004-05-23 Andreas Schwab <schwab@suse.de>
2308 * ld.texinfo (Options): Fix typo in last change.
2310 2004-05-21 Andy Chittenden <achittenden@bluearc.com>
2312 * ld.h (ld_config_type): Add new field: hash_table_size.
2313 * ldmain.c: Initialise the new field to zero. If it is non-zero
2314 after parsing the linker's command line call
2315 bfd_hash_set_default_size.
2316 * lexsup.c (option_values): Add OPTION_HASH_SIZE.
2317 (ld_options): Add hash-size.
2318 (parse_args): Parse --hash-size option. Allow
2319 --reduce-memory-overheads to set the default hash table size as
2321 * ld.texinfo: Document the new switch. Also mention that
2322 --reduce-memory-overheads can affect the hash table size.
2323 * NEWS: Mention the new feature.
2325 2004-05-19 J"orn Rennecke <joern.rennecke@superh.com>
2327 * NEWS: Mention new linker map file generation and the
2328 --reduce-memory-overheads option.
2329 * ld.texinfo: Document --reduce-memory-overheads option.
2330 * ld.h (map_symbol_def): New struct.
2331 (struct user_section_struct, section_userdata_type): Rename to:
2332 (struct lean_user_section_struct, lean_section_userdata_type).
2333 (struct fat_user_section_struct, fat_section_userdata_type): New.
2334 (SECTION_USERDATA_SIZE): Define.
2335 (args_type): New member reduce_memory_overheads.
2336 * ldlang.c (map_obstack): New static variable.
2337 (init_map_userdata, print_all_symbols, sort_def_symbol): New functions.
2338 (lang_map): Unless command_line.reduce_memory_overheads is set,
2339 initialize lists of defined symbols for each section.
2340 (print_input_section): Unless command_line.reduce_memory_overheads
2341 is set, use print_all_symbols.
2342 (init_os): Use lean_section_userdata_type / SECTION_USERDATA_SIZE.
2343 * ldmain.c (main): Initialize command_line.reduce_memory_overheads.
2344 * lexsup.c (enum option_values): Add OPTION_REDUCE_MEMORY_OVERHEADS.
2345 (ld_options): Add entry for --reduce-memory-overheads.
2346 (parse_args): Handle OPTION_REDUCE_MEMORY_OVERHEADS.
2348 2004-05-19 Jakub Jelinek <jakub@redhat.com>
2350 * ldgram.y (sect_constraint): New.
2351 (ONLY_IF_RO, ONLY_IF_RW): New tokens.
2352 (section): Add sect_constraint. Pass additional argument
2353 to lang_enter_output_section_statement.
2354 * mri.c (mri_draw_tree): Pass additional argument to
2355 lang_enter_output_section_statement.
2356 * emultempl/pe.em (place_orphan): Likewise.
2357 (output_prev_sec_find): Disregard output section statements with
2359 * emultempl/mmo.em (output_prev_sec_find): Likewise.
2360 (mmo_place_orphan): Pass additional argument to
2361 lang_enter_output_section_statement.
2362 * emultempl/elf32.em (output_prev_sec_find): Disregard output section
2363 statements with constraint == -1.
2364 (place_orphan): Pass additional argument to
2365 lang_enter_output_section_statement.
2366 * ldlang.c (lang_enter_overlay_section): Likewise.
2367 (lang_output_section_find_1): New.
2368 (lang_output_section_find): Use it.
2369 (lang_output_section_statement_lookup_1): New.
2370 (lang_output_section_statement_lookup): Use it.
2371 (check_section_callback, check_input_sections): New.
2372 (map_input_to_output_sections): Check if all input sections
2373 are readonly if ONLY_IF_RO or ONLY_IF_RW was seen.
2374 (strip_excluded_output_sections): Disregard output section statements
2375 with constraint == -1.
2376 (lang_record_phdrs): Likewise.
2377 (lang_enter_output_section_statement): Add constraint argument.
2378 Use lang_output_section_statement_lookup_1.
2379 * ldlang.h (lang_output_section_statement_type): Add constraint
2380 and all_input_readonly fields.
2381 (lang_enter_output_section_statement): Adjust prototype.
2382 * ldlex.l (ONLY_IF_RO, ONLY_IF_RW): New tokens.
2383 * scripttempl/elf.sc (.eh_frame, .gcc_except_table): Move into text
2384 segment if all input sections are readonly.
2386 2004-05-19 Adam Nemet <anemet@lnxw.com>
2388 * scripttempl/i386lynx.sc: Remove file.
2390 2004-05-17 Bob Wilson <bob.wilson@acm.org>
2392 * ld.texinfo (Output Section Address): Correct subsection name.
2394 2004-05-17 Adam Nemet <anemet@lnxw.com>
2396 * configure.tgt (powerpc-*-lynxos* case): New case.
2397 * configure.host (i[3-7]86-*-lynxos* case): Remove case.
2398 * emulparams/ppclynx.sh: New file.
2399 * emulparams/i386lynx.sh (SCRIPT_NAME): Update to LynxOS 4.0.
2400 * Makefile.am (ALL_EMULATIONS): Add eppclynx.o
2401 (ei386lynx.c): Update rule to LynxOS 4.0 ELF.
2402 (eppclynx.c): New rule.
2403 * Makefile.in: Regenerate.
2405 2004-05-13 Joel Sherrill <joel@oarcorp.com>
2407 * configure.tgt (or32-*-rtems*): Switch to elf and
2408 support versioned targets.
2410 2004-05-13 Nick Clifton <nickc@redhat.com>
2412 * po/fr.po: Updated French translation.
2414 2004-05-11 Jakub Jelinek <jakub@redhat.com>
2416 * genscripts.sh: Generate -z combreloc -z now -z relro scripts
2417 for binaries, -shared and -pie.
2418 * emulparams/elf_i386.sh (SEPARATE_GOTPLT): Set.
2419 * emulparams/elf_x86_64.sh (SEPARATE_GOTPLT): Set.
2420 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Rename to...
2421 (OTHER_RELRO_SECTIONS): ... this.
2422 * ldlex.l (DATA_SEGMENT_RELRO_END): Add.
2423 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Handle
2424 -z relro and -z norelro.
2425 (gld${EMULATION_NAME}_list_options): Add it to usage.
2426 (gld${EMULATION_NAME}_get_script): Return -z combreloc -z now
2427 -z relro scripts when appropriate.
2428 * scripttempl/elf.sc: Unset SEPARATE_GOTPLT if RELRO_NOW is set.
2429 Create separate .got.plt section if SEPARATE_GOTPLT.
2430 Move sections which are only written during relocation handling
2431 to the beginning of RW segment. If NO_SMALL_DATA, move .got
2432 before .data. Add DATA_SEGMENT_RELRO_END directive.
2433 Include OTHER_RELRO_SECTIONS.
2434 * ldgram.y (DATA_SEGMENT_RELRO_END): Add.
2435 * ldexp.c (exp_print_token): Handle DATA_SEGMENT_RELRO_END.
2436 (fold_unary): Likewise.
2437 (fold_binary): Handle -z relro.
2438 * ldexp.h (struct exp_data_seg): Add exp_dataseg_relro_seen and
2439 exp_dataseg_relro_adjust phases. Add relro_end field.
2440 * ldmain.c (main): Initialize link_info.relro to FALSE.
2441 * ldlang.c (lang_size_sections): Handle -z relro.
2443 2004-05-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
2445 * scripttempl/avr.sc: Do not set LMA for "eeprom" section.
2447 2004-05-07 J"orn Rennecke <joern.rennecke@superh.com>
2449 * ldlang.c (print_padding_statement): Cast size_t to bfd_vma
2450 before printing it with %W.
2452 2004-05-07 Brian Ford <ford@vss.fsi.com>
2453 DJ Delorie <dj@redhat.com>
2455 * emultempl/pe.em (real_flags): New static.
2456 (OPTION_LARGE_ADDRESS_AWARE): New define.
2457 (gld${EMULATION_NAME}_add_options): Add --large-address-aware option.
2458 (gld_${EMULATION_NAME}_list_options): Likewise.
2459 (gld${EMULATION_NAME}_handle_option): Likewise.
2460 (gld_${EMULATION_NAME}_after_open): Pass real_flags to PE private data.
2461 * ld.texinfo: Document it.
2464 2004-05-07 Brian Ford <ford@vss.fsi.com>
2466 * NEWS: Mention DWARF 2 support for i386pe.
2468 2004-05-05 Alexandre Oliva <aoliva@redhat.com>
2470 * emulparams/elf32frvfd.sh (OUTPUT_FORMAT): Switch to new
2473 2004-04-30 Alan Modra <amodra@bigpond.net.au>
2475 * ldlang.c (unique_section_p): Pass section parm, return true on
2477 (output_section_callback): Adjust.
2478 * ldlang.h (unique_section_p): Update prototype.
2479 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust.
2481 2004-04-30 Eric Botcazou <ebotcazou@act-europe.fr>
2483 * ld.texinfo (--gc-sections): Remove restriction for
2486 2004-04-29 Brian Ford <ford@vss.fsi.com>
2488 * scripttempl/pe.sc: Handle .debug* and .gnu.linkonce.wi.* sections
2489 for DWARF 2/3. Update stab section's syntax.
2491 2004-04-29 Alan Modra <amodra@bigpond.net.au>
2493 * pe-dll.c: Revert changes accidentally committed 2004-03-08.
2494 (fill_edata): Correct pointer arithmetic.
2496 2004-04-21 Chris Demetriou <cgd@broadcom.com>
2498 * ld.texinfo: Remove MIPS --embedded-relocs documentation.
2499 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Remove definition.
2500 * emulparams/mipsidt.sh (TEMPLATE_NAME): Use generic.em.
2501 (EXTRA_EM_FILE): Use mipsecoff.em
2502 * emulparams/mipsidtl.sh (TEMPLATE_NAME): Use generic.em.
2503 (EXTRA_EM_FILE): Use mipsecoff.em
2504 * emultempl/mipsecoff.em: Restructure to be included as an
2505 extra emulation file.
2506 (check_sections, gld${EMULATION_NAME}_after_open)
2507 (gld${EMULATION_NAME}_after_allocation)
2508 (gld${EMULATION_NAME}_get_script)
2509 (ld_${EMULATION_NAME}_emulation): Remove
2510 (gld${EMULATION_NAME}_before_parse): Rename to...
2511 (mipsecoff_before_parse): This.
2512 (LDEMUL_BEFORE_PARSE): Define.
2513 * emultempl/mipself.em: Remove file.
2514 * scripttempl/mips.sc (.rel.sdata): Do not include in output.
2515 (__runtime_reloc_start, __runtime_reloc_stop): Stop providing
2517 * Makefile.am: Remove dependencies on emultempl/mipself.em.
2518 * Makefile.in: Regenerate.
2520 2004-04-21 Anil Paranjpe <anilp1@kpitcummins.com>
2522 * ld.texinfo (synthesizing on H8/300): Information about linker
2523 relaxation support for bit manipulation instructions and system
2524 control instructions is added.
2526 2004-04-21 Hans-Peter Nilsson <hp@axis.com>
2528 * NEWS: Mention change in DEFINED semantics.
2530 2004-04-21 Eric Botcazou <ebotcazou@act-europe.fr>
2532 * scripttempl/elf.sc (.text): Add KEEP for .text.*personality*.
2533 (.data): Add KEEP for .gnu.linkonce.d.*personality*.
2534 (.gcc_except_table): Add KEEP for self and accept .gcc_except_table.*.
2536 2004-04-21 Ben Elliston <bje@au.ibm.com>
2538 * ld.texinfo (Simple Example): Add missing punctuation.
2540 2004-04-20 Chris Demetriou <cgd@broadcom.com>
2542 * NEWS: Note that MIPS --embedded-relocs option is deprecated.
2544 2004-04-19 Jakub Jelinek <jakub@redhat.com>
2546 * ldlang.c (lang_do_assignments_1): Handle .tbss output section
2549 2004-04-18 Danny Smith <dannysmith@users.sourceforge.net>
2551 * scriptempl/pe.sc: Put numbered .ctors.* after .ctors
2552 with default priority. Likewise for dtors.
2554 2004-04-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2556 * configure.host: Remove mips*-dec-bsd* target.
2557 * configure.tgt: Likewise.
2559 2004-04-08 Richard Sandiford <rsandifo@redhat.com>
2561 * emulparams/elf32bsmip.sh (EXTRA_EM_FILE): Define to irix.
2562 * emulparams/elf64bmip.sh (EXTRA_EM_FILE): Likewise.
2563 * emulparams/elf32bmipn32.sh (EXTRA_EM_FILE): Likewise.
2564 * emultempl/irix.em: New file.
2565 * Makefile.am (eelf32bsmip.c, eelf32bmipn32.c, eelf64bmip.c): Update
2567 * Makefile.in: Regenerate.
2569 2004-04-01 Paul Brook <paul@codesourcery.com>
2571 * emultempl/armelf.em (byteswap_code): Add.
2572 (arm_elf_before_allocation): Pass extra parameter.
2573 (PARSE_AND_LIST_PROLOGUE): Add OPTION_BE8.
2574 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add be8.
2575 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_BE8.
2576 * emultempl/armelf_oabi.em: Pass extra parameter.
2577 * ld.texinfo: Document --be8.
2579 2004-03-30 Stan Shebs <shebs@apple.com>
2581 Remove long-obsolete MPW support.
2582 * mpw-config.in, mpw-make.sed, mac-ld.r: Remove files.
2583 * Makefile.am (mpw): Remove file-presynthesizing actions.
2584 * Makefile.in: Likewise.
2585 * ldfile.c (slash): Remove MPW case.
2586 * ldlex.l [MPW]: Remove unused definition.
2588 2004-03-30 Galit Heller <Galit.Heller@nsc.com>
2590 * Makefile.am (ALL_EMULATIONS): Add eelf32cr16c.o.
2591 (eelf32cr16c.c): New target.
2592 * Makefile.in: Regenerate.
2593 * configure.tgt: Handle cr16c-*-elf*.
2594 * emulparams/elf32cr16c.sh: New file.
2595 * scripttempl/elfcr16c.sc: Likewise
2596 * NEWS: Mention support for new target.
2598 2004-03-30 Nick Clifton <nickc@redhat.com>
2600 * po/sv.po: Updated Swedish translation.
2602 2004-03-27 Alan Modra <amodra@bigpond.net.au>
2604 * emultempl/elf32.em: Update new bfd_elf_discard_info name.
2605 * emultempl/hppaelf.em: Likewise.
2606 * emultempl/ppc64elf.em: Likewise.
2607 * emultempl/sh64elf.em: Likewise.
2609 2004-03-25 Alan Modra <amodra@bigpond.net.au>
2611 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Update
2612 size_dynamic_sections call.
2614 2004-03-23 Alan Modra <amodra@bigpond.net.au>
2617 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Set
2618 link_info.wrap_char.
2620 2004-03-20 H.J. Lu <hongjiu.lu@intel.com>
2622 * lexsup.c (parse_args): Don't set unresolved_syms_in_objects
2623 or unresolved_syms_in_shared_libs for -Bdynamic and -Bstatic.
2625 2004-03-20 Alexandre Oliva <aoliva@redhat.com>
2627 * emulparams/elf32frvfd.sh (MAXPAGESIZE): Change to 16Kb.
2629 2004-03-19 Alan Modra <amodra@bigpond.net.au>
2631 * config.in: Regenerate.
2632 * po/ld.pot: Regenerate.
2634 2004-03-18 Alan Modra <amodra@bigpond.net.au>
2636 * ld.texinfo: Add --as-needed doco.
2637 * ldmain.c (as_needed): New global var.
2638 * ldmain.h (as_needed): Declare.
2639 * lexsup.c (option_values): Add OPTION_AS_NEEDED and
2640 OPTION_NO_AS_NEEDED.
2641 (ld_options): Likewise.
2642 (parse_args): Handle them.
2643 * ldlang.h (lang_input_statement_type): Add as_needed field.
2644 * ldlang.c (new_afile): Set p->as_needed.
2645 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): New function.
2646 (gld${EMULATION_NAME}_try_needed): Use bfd_elf_set_dyn_lib_class.
2647 (ld_${EMULATION_NAME}_emulation): Set LDEMUL_RECOGNIZED_FILE entry.
2649 * ldlang.c (open_input_bfds): Remove useless cast.
2650 (lang_do_assignments_1): Likewise.
2651 (lang_for_each_input_section): Delete.
2653 2004-03-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
2655 * configure.tgt: Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff*.
2657 2004-03-08 Danny Smith <dannysmith@users.sourceforge.net>
2659 * pe-dll.c (pe_dll_generate_implib): Skip sections marked as
2660 private when building implib.
2662 2004-03-05 Nathan Sidwell <nathan@codesourcery.com>
2664 * ldlang.c (lang_add_section): Don't force SEC_LOAD on
2666 (IGNORE_SECTION): Ignore .tbss sections too.
2667 (lang_size_sections_1): .tbss sections do not advance dot.
2669 2004-03-01 Andreas Schwab <schwab@suse.de>
2671 * ld.texinfo (Options): Fix example for --wrap.
2673 2004-02-25 Danny Smith <dannysmith@users.sourceforge.net>
2675 * pe-dll.c (fill_edata): Check that exported_symbol_sections is
2678 2004-02-23 Ian Lance Taylor <ian@wasabisystems.com>
2680 * ldlang.c (lang_check): Use %P, not %E, in error message.
2682 2004-02-23 Nathan Sidwell <nathan@codesourcery.com>
2684 * ldlang.h (struct lang_output_section_state): Change processed
2686 * ldexp.c (check, invalid): Remove.
2687 (fold_name): Move valid_p assignments. Create undefined symbol
2688 when needed. Directly exampine section's processd flag.
2689 * ldlang.c (lang_output_section_statement_lookup): Adjust
2690 processed field init.
2691 (lang_size_sections_1): Allow LOADADDR when determining section's
2692 VMA. Adjust error message. Fold data statement's expr.
2693 (lang_size_sections): Correctly increment lang_statement_iteration.
2695 2004-02-23 Alan Modra <amodra@bigpond.net.au>
2697 * ldexp.c (fold_tree): Follow indirect symbols.
2699 2004-02-20 Nathan Sidwell <nathan@codesourcery.com>
2701 * ldgram.y (exp): Add two operand ALIGN.
2702 * ldexp.c (fold_binary): Add ALIGN_K case.
2703 * ld.texinfo (ALIGN): Document two operand version.
2705 2004-02-19 Nathan Sidwell <nathan@codesourcery.com>
2707 * ldlang.c (map_input_to_output_sections): Initialize sections
2708 mentioned in a data statement expression.
2709 (lang_do_assignments_1): Add data statement's expression's
2712 2004-02-18 Nathan Sidwell <nathan@codesourcery.com>
2714 * ldgram.y (statement_anywhere): Add assert rule.
2715 * ldlang.c (exp_init_os): Add assert case.
2717 2004-02-14 Andrew Cagney <cagney@redhat.com>
2719 * ldmain.c (remove_output): Call bfd_cache_close.
2721 2004-02-14 Richard Sandiford <rsandifo@redhat.com>
2723 * emulparams/elf32bmipn32-defs.sh (OTHER_SECTIONS): Discard
2724 .MIPS.content* and .MIPS.events* sections.
2726 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
2728 * emulparams/armelf.sh, emulparams/armelf_linux.sh: Move
2729 .note.gnu.arm.ident to after allocated sections. Mark its
2732 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
2734 * emulparams/armelf_linux.sh (COMMONPAGESIZE): Set to 4KB.
2735 * emulparams/elf32bmip.sh (COMMONPAGESIZE): Likewise.
2736 * emulparams/elf32bmipn32.sh (COMMONPAGESIZE): Likewise.
2737 * emulparams/elf32btsmipn32.sh (COMMONPAGESIZE): Likewise.
2738 * emulparams/shlelf_linux.sh (COMMONPAGESIZE): Likewise.
2740 2004-02-05 Nick Clifton <nickc@redhat.com>
2742 * emultempl/pe.em (_after_open): Fix typo in previous delta.
2744 2004-02-04 Danny Smith <dannysmith@users.sourceforge.net>
2746 * emultempl/pe.em (_after_open): Fix thinko in 2003-12-18 patch.
2748 2004-01-28 Alan Modra <amodra@bigpond.net.au>
2750 * genscripts.sh: Fix typo.
2752 * genscripts.sh: Apply $LIBPATH_SUFFIX to $tool_lib and $libdir too.
2754 2004-01-24 Jakub Jelinek <jakub@redhat.com>
2756 * emulparams/elf64_ia64.sh: Put .rela.opd into
2757 OTHER_GOT_RELOC_SECTIONS instead of OTHER_PLT_RELOC_SECTIONS.
2759 2004-01-20 Danny Smith <dannysmith@users.sourceforge.net>
2761 * pe-dll.c (pe_create_import_fixup): Clear WP_TEXT flag.
2762 * ld.texinfo (--omagic): Note that writable text section
2763 does not conform to published PE-COFF specs.
2764 (--enable-auto-import): Likewise.
2766 2004-01-15 Alan Modra <amodra@bigpond.net.au>
2768 * emulparams/elf32ppc.sh (COMMONPAGESIZE): Define.
2770 2004-01-13 Nick Clifton <nickc@redhat.com>
2772 * ldlang.c (lang_get_regions): Add extra parameter 'have_vma'
2773 which if true will prevent the LMA region being used as a
2774 replacement for a default VMA region.
2775 (lang_leave_output_section_statement): Pass extra parameter.
2776 (lang_leave_overlay): Likewise.
2777 * ld.texinfo (Output Section LMA): Document that the LMA
2778 region can be set to the VMA region if no VMA has been set.
2779 * ldlang.h (struct lang_output_section_phdr_list): Create a
2780 typedef for this type. Minor formatting fixes.
2782 2004-01-13 Nick Clifton <nickc@redhat.com>
2784 * ldlang.c (lang_size_sections_1): If dot is advanced, then
2785 assume that the section should be allocated.
2787 2004-01-13 Alan Modra <amodra@bigpond.net.au>
2789 * ldlang.c (IGNORE_SECTION): Don't ignore SEC_ALLOC && !SEC_LOAD
2790 sections. Do ignore SEC_NEVER_LOAD sections.
2791 (lang_size_sections_1): Remove test made redundant with the above.
2793 2004-01-09 Alan Modra <amodra@bigpond.net.au>
2795 * emultempl/ppc64elf.em (ppc_before_allocation): Clear cached
2796 program_header_size.
2798 2004-01-06 Alexandre Oliva <aoliva@redhat.com>
2800 2003-11-28 Alexandre Oliva <aoliva@redhat.com>
2801 * emulparams/elf32frvfd.sh (EMBEDDED): Clear.
2802 2003-11-05 Alexandre Oliva <aoliva@redhat.com>
2803 * emulparams/elf32frvfd.sh (STACK_ADDR): Unset.
2804 (MAXPAGESIZE): Set to 64Kb.
2805 (OTHER_READONLY_SECTIONS): Define __ROFIXUP_LIST__ and
2806 __ROFIXUP_END__. Don't map .rofixup.got any more.
2807 * emulparams/elf32frv.sh (NOP): Set.
2808 2003-10-31 Alexandre Oliva <aoliva@redhat.com>
2809 * configure.tgt: Add frv-*-*linux*.
2810 2003-09-30 Alexandre Oliva <aoliva@redhat.com>
2811 * Makefile.am (ALL_EMULATIONS): Added eelf32frvfd.o.
2812 (eelf32frvfd.c): New.
2813 * configure.tgt <frv-*-*>: Added it to targ_extra_emuls.
2814 * emulparams/elf32frv.sh: Reverted previous two patches.
2815 * emulparams/elf32frvfd.sh: New.
2816 * Makefile.in: Rebuilt.
2817 2003-09-18 Alexandre Oliva <aoliva@redhat.com>
2818 * emulparams/elf32frv.sh (OTHER_READONLY_SECTIONS): Added
2819 .rofixup.got to .rofixup.
2820 2003-09-15 Alexandre Oliva <aoliva@redhat.com>
2821 * emulparams/elf32frv.sh (MAXPAGESIZE): Make it 256KiB, not 256B.
2822 (TEMPLATE_NAME, GENERATE_SHLIB_SCRIPT): Set.
2824 2004-01-05 Jakub Jelinek <jakub@redhat.com>
2826 * emulparams/elf_s390.sh (NO_SMALL_DATA): Set to yes.
2827 * emulparams/elf64_s390.sh (NO_SMALL_DATA): Set to yes.
2829 2004-01-03 Alan Modra <amodra@bigpond.net.au>
2831 * ldexp.c (align_n): Make static.
2832 * ldexp.h (align_n): Delete declaration.
2833 * ldlang.h (lang_enter_output_section_statement): Remove
2835 * ldlang.c (lang_enter_output_section_statement): Likewise.
2836 (TO_ADDR, TO_SIZE): Define.
2837 (opb_shift): New var.
2838 (init_opb): New function.
2839 (print_input_section): Call init_opb and use TO_ADDR.
2840 (print_data_statement, print_reloc_statement): Likewise.
2841 (print_padding_statement): Likewise.
2842 (size_input_section): Use TO_SIZE and TO_ADDR, and global opb_shift.
2843 (lang_check_section_addresses): Likewise.
2844 (lang_size_sections_1): Likewise.
2845 (lang_do_assignments_1): Likewise.
2846 (lang_set_startof): Likewise.
2847 (lang_one_common): Likewise. Combine power_of_two and opb_shift align.
2848 (lang_process): Call init_opb.
2849 (lang_abs_symbol_at_end_of): Use TO_ADDR and global opb_shift.
2850 (lang_enter_overlay_section): Adjust
2851 lang_enter_output_section_statement call.
2852 * ldgram.y: Likewise.
2853 * mri.c (mri_draw_tree): Likewise.
2854 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Likewise.
2855 * emultempl/mmo.em (mmo_place_orphan): Likewise.
2856 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Likewise.
2858 * ldfile.c (ldfile_set_output_arch): Add defarch param.
2859 * ldfile.h (ldfile_set_output_arch): Ditto.
2860 * emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Use
2861 ldfile_set_output_arch.
2862 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Ditto.
2863 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Ditto.
2864 * emultempl/linux.em (gld${EMULATION_NAME}_before_parse): Ditto.
2865 * emultempl/mipsecoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
2866 * emultempl/pe.em (gld${EMULATION_NAME}_before_parse): Ditto.
2867 * emultempl/sunos.em (gld${EMULATION_NAME}_before_parse): Ditto.
2868 * ldgram.y: Adjust ldfile_set_output_arch call.
2869 * emultempl/armcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
2870 * emultempl/armelf.em (gld${EMULATION_NAME}_before_parse): Ditto.
2871 * emultempl/armelf_oabi.em (gld${EMULATION_NAME}_before_parse): Ditto.
2872 * emultempl/generic.em (gld${EMULATION_NAME}_before_parse): Ditto.
2873 * emultempl/gld960c.em (gld960_set_output_arch): Ditto.
2874 * emultempl/m68kcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
2875 * emultempl/ticoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
2877 2004-01-02 Bernardo Innocenti <bernie@develer.com>
2879 * configure.tgt: Add m68k-uClinux target.
2881 For older changes see ChangeLog-0203
2887 version-control: never