1 2005-09-30 Matthias Kurz <mk@baerlap.north.de>
3 * ld.h: Prevent the inclusion of <libintl.h> from the Solaris
4 version of <locale.h> when ENABLE_NLS is not defined.
6 2005-09-27 H.J. Lu <hongjiu.lu@intel.com>
8 * ld.texinfo (ALIGN): Document it as forcing output section
11 * ldgram.y (ALIGN): Support it for forcing output section
14 2005-09-20 Alan Modra <amodra@bigpond.net.au>
16 * ldlang.h (lang_output_section_statement_struct): Change type of
17 "processed" to bfd_boolean.
18 * ldexp.c (fold_name): Update references to os->processed.
19 * ldlang.c (lang_output_section_statement_lookup_1): Likewise.
20 (lang_size_sections_1): Likewise.
21 (lang_reset_memory_regions): Likewise.
24 * ldlang.c (lang_size_sections_1): Process addr_tree earlier,
25 so that unused output section statements affect dot.
27 2005-09-08 Jakub Jelinek <jakub@redhat.com>
29 * ld.texinfo: Document -z {no,}execstack, -z {no,}relro
30 and --eh-frame-hdr options.
32 2005-09-07 Alan Modra <amodra@bigpond.net.au>
34 * ldexp.c (fold_name <SIZEOF>): Return 0 for non-existent section.
35 (exp_fold_tree_1): Print assert message only in final stage of
36 linking. Trigger assertion failure if expression cannot be
39 2005-09-06 H.J. Lu <hongjiu.lu@intel.com>
42 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): Check
43 --just-symbols on DSO.
45 2005-08-18 Alan Modra <amodra@bigpond.net.au>
47 * scripttempl/elf.sc: Remove commented out defines.
49 2005-08-18 Alan Modra <amodra@bigpond.net.au>
51 * emulparams/a29k.sh: Delete.
52 * emulparams/ebmon29k.sh: Delete.
53 * emulparams/sa29200.sh: Delete.
54 * Makefile.am: Remove a29k support.
55 * configure.tgt: Likewise.
56 * ld.texinfo: Likewise.
57 * Makefile.in: Regenerate.
59 2005-08-17 Jakub Jelinek <jakub@redhat.com>
61 * ldgram.y (vers_defns): Don't lose pattern list before
62 extern NAME {}. Handle global, local and extern symbol names.
64 2005-08-17 Kaz Kojima <kkojima@rr.iij4u.or.jp>
66 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_after_allocation):
67 Don't increment rel_count of .cranges here. Set rawsize of .cranges.
69 2005-08-10 Nick Clifton <nickc@redhat.com>
71 * pe-dll.c (pe_exe_fill_sections): Call lang_reset_memory_regions
72 before lang_size_sections.
74 2005-08-09 Alan Modra <amodra@bigpond.net.au>
76 * emulparams/hppa64linux.sh (LARGE_SECTIONS): Remove .tbss.
78 2005-08-08 Eric Doenges <Eric.Doenges@betty-tv.com>
80 * Makefile.am (ALL_EMULATIONS): Add msp430x21xx variants.
81 Add rules to build these emulations.
82 * Makefile.in: Regenerate.
83 * configure.tgt (msp430): Add the new variants to the
84 targ_extra_emuls list.
85 * emulparams/msp430all.sh: Add entries for the msp430x21xx
88 2005-08-05 H.J. Lu <hongjiu.lu@intel.com>
90 * ld.texinfo: Document PROVIDE_HIDDEN.
92 * ldexp.c (exp_fold_tree_1): Hide a provided symbol if asked.
93 (exp_provide): Add and set hidden.
95 * ldexp.h (etree_type): Add hidden to assign.
97 * ldgram.y (PROVIDE_HIDDEN): New.
98 * ldlex.l (PROVIDE_HIDDEN): Likewise.
100 * scripttempl/elf.sc: Use PROVIDE_HIDDEN on array bound
103 2005-08-05 Alan Modra <amodra@bigpond.net.au>
105 * emulparams/elf_x86_64.sh: Revert last change.
106 * scripttempl/elf.sc (REL_LARGE, LARGE_SECTIONS): Define here.
108 2005-08-05 Alan Modra <amodra@bigpond.net.au>
110 * emulparams/armelf.sh (OTHER_BSS_END_SYMBOLS): Split out from
112 * emulparams/armelf_linux.sh: Likewise.
113 * emulparams/armnto.sh: Likewise.
114 * emulparams/criself.sh: Likewise.
115 * emulparams/elf32mcore.sh: Likewise.
116 * emulparams/criself.sh (OTHER_SYMBOLS): Define.
117 * emulparams/crislinux.sh (OTHER_SYMBOLS): Define.
118 (OTHER_END_SYMBOLS): Don't define.
119 * emulparams/elf32fr30.sh: Likewise.
120 * emulparams/elf64mmix.sh: Likewise.
121 * emulparams/hppa64linux.sh: Likewise.
122 * emulparams/m32relf.sh: Likewise.
123 * emulparams/vxworks.sh: Likewise.
124 * scripttempl/armbpabi.sc (OTHER_BSS_SECTIONS): Delete.
125 (OTHER_BSS_END_SYMBOLS): Add.
126 (OTHER_END_SYMBOLS): Move before current end sym definitions.
127 (OTHER_SYMBOLS): Replace OTHER_END_SYMBOLS near end of script.
128 * scripttempl/elf.sc: Likewise.
129 * scripttempl/elf32sh-symbian.sc: Likewise.
130 * scripttempl/elf_chaos.sc: Likewise.
131 * scripttempl/elfxtensa.sc: Likewise.
132 * scripttempl/iq2000.sc: Likewise.
133 * scripttempl/xstormy16.sc: Likewise.
135 * scripttempl/elf.sc (LBSS, LARGE_SECTIONS): Delete.
136 (REL_LDATA, REL_LBSS, REL_LRODATA): Delete.
137 (REL_LARGE, LARGE_SECTIONS): Add.
138 * emulparams/elf_x86_64.sh (LARGE_SECTIONS): Define as script text.
140 * emulparams/hppa64linux.sh (OTHER_BSS_SECTIONS): Don't define.
141 (LARGE_SECTIONS): Define.
142 * emulparams/hppa64linux.sh (OTHER_BSS_SECTIONS): Don't define.
143 (LARGE_SECTIONS): Define.
145 2005-08-04 Alan Modra <amodra@bigpond.net.au>
147 * ldemul.c (ldemul_do_assignments, do_assignments_default): Delete.
148 * ldemul.h (ldemul_do_assignments, do_assignments_default): Delete.
149 (struct ld_emulation_xfer_struct): Remove do_assignments field.
150 * ldlang.c (lang_do_assignments): Don't call ldemul_do_assignments.
151 * emulparams/elf32ppc.sh (SDATA_START_SYMBOLS): New.
152 (SDATA2_START_SYMBOLS, SBSS_START_SYMBOLS, SBSS_END_SYMBOLS): New.
153 * emultempl/aix.em (ld_*_emulation): Delete do_assignments init.
154 * emultempl/armcoff.em: Likewise.
155 * emultempl/beos.em: Likewise.
156 * emultempl/generic.em: Likewise.
157 * emultempl/gld960.em: Likewise.
158 * emultempl/gld960c.em: Likewise.
159 * emultempl/linux.em: Likewise.
160 * emultempl/lnk960.em: Likewise.
161 * emultempl/m68kcoff.em: Likewise.
162 * emultempl/pe.em: Likewise.
163 * emultempl/sunos.em: Likewise.
164 * emultempl/ticoff.em: Likewise.
165 * emultempl/vanilla.em: Likewise.
166 * emultempl/elf32.em: Likewise.
167 (gld*_provide_bound_symbols): Delete.
168 (gld*_provide_init_fini_syms): Delete.
169 (gld*_before_allocation): Don't call ldemul_do_assignments.
170 * emultempl/ppc32elf.em (ppc_do_assignments): Delete.
171 (LDEMUL_DO_ASSIGNMENTS): Delete.
172 * scripttempl/elf.sc: Provide init/fini syms. Add SBSS_START_SYMBOLS,
173 SBSS_END_SYMBOLS, SDATA2_START_SYMBOLS.
175 2005-08-04 Alan Modra <amodra@bigpond.net.au>
177 * Makefile.am (eelf32m32c.c): Fix dependencies.
178 * Makefile.in: Regenerate.
180 2005-08-04 Alan Modra <amodra@bigpond.net.au>
182 * ldemul.c (ldemul_finish): Call ld_emulation->finish unconditionally.
183 (finish_default): New function.
184 * ldemul.h (finish_default): Declare.
185 * emultempl/aix.em (gld*_before_allocation): Call
186 before_allocation_default rather than strip_excluded_output_sections.
187 (ld_*_emulation): Init finish field to finish_default.
188 * emultempl/armcoff.em: Likewise.
189 * emultempl/beos.em: Likewise.
190 * emultempl/elf32.em: Likewise.
191 * emultempl/generic.em: Likewise.
192 * emultempl/gld960.em: Likewise.
193 * emultempl/gld960c.em: Likewise.
194 * emultempl/hppaelf.em: Likewise.
195 * emultempl/linux.em: Likewise.
196 * emultempl/lnk960.em: Likewise.
197 * emultempl/m68kcoff.em: Likewise.
198 * emultempl/mmo.em: Likewise.
199 * emultempl/pe.em: Likewise.
200 * emultempl/ppc64elf.em: Likewise.
201 * emultempl/sunos.em: Likewise.
202 * emultempl/ticoff.em: Likewise.
203 * emultempl/vanilla.em: Likewise.
205 2005-08-03 Alan Modra <amodra@bigpond.net.au>
207 * ldlang.c (exp_init_os): Handle etree_provide.
208 * emulparams/armelf.sh (OTHER_END_SYMBOLS): Rename from..
209 (OTHER_BSS_END_SYMBOLS): ..this.
210 * emulparams/armelf_linux.sh: Likewise.
211 * emulparams/armnto.sh: Likewise.
212 * emulparams/criself.sh: Likewise.
213 * emulparams/crislinux.sh: Likewise.
214 * emulparams/elf32frv.sh: Likewise.
215 * emulparams/elf32mcore.sh: Likewise.
216 * emulparams/elf32ppc.sh: Likewise.
217 * emulparams/elf32ppclinux.sh: Likewise.
218 * emulparams/hppa64linux.sh: Likewise.
219 * scripttempl/armbpabi.sc: Substitute $OTHER_END_SYMBOLS, not
220 $OTHER_BSS_END_SYMBOLS.
221 * scripttempl/elf32sh-symbian.sc: Likewise.
222 * scripttempl/elf_chaos.sc: Likewise.
223 * scripttempl/iq2000.sc: Likewise.
224 * scripttempl/xstormy16.sc: Likewise.
225 * scripttempl/elf.sc: Likewise. Delete __bss_start comment.
226 * scripttempl/elfxtensa.sc: Likewise.
228 2005-07-29 Nick Clifton <nickc@redhat.com>
230 * ldmain.c (main): Allow -shared and -static to be used together.
231 * ld.texinfo (-static): Mention that it is allowed with -shared.
233 2005-07-28 DJ Delorie <dj@redhat.com>
235 * ldlang.c (lang_output_section_statement_lookup_1): Don't cast a
236 unary & address operator, as that breaks GCC's strict aliasing
239 2005-07-25 Jan Hubicka <jh@suse.cz>
240 H.J. Lu <hongjiu.lu@intel.com>
242 * emulparams/elf_x86_64.sh (LARGE_SECTIONS): New.
244 * scripttempl/elf.sc: Updated for large section support.
246 2005-07-21 Ralf Corsepius <ralf.corsepius@rtems.org>
248 * configure.tgt: Remove i[3-7]86-*-rtemself*.
249 Remove sparc-*-rtemself*.
251 2005-07-21 Ben Elliston <bje@gnu.org>
253 * ldgram.y (ldgram_want_filename): Remove unused static.
255 2005-07-20 DJ Delorie <dj@redhat.com>
257 * emulparams/elf32m32c.sh (TEMPLATE_NAME): New.
258 (EXTRA_EM_FILE): New.
260 2005-07-19 H.J. Lu <hongjiu.lu@intel.com>
262 * ldmain.c (main): Reindent.
264 2005-07-19 Paul Brook <paul@codesourcery.com>
266 * configure.host (HOSTING_CRT0): Parse output of gcc --help --verbose
267 to determine dynamic linker name.
269 2005-07-18 Nick Clifton <nickc@redhat.com>
271 * configure.tgt: Restore alpha ordering to list of arches.
273 2005-07-16 Alan Modra <amodra@bigpond.net.au>
275 * emultempl/elf32.em (gld*_provide_init_fini_syms): Prototype.
276 (gld*_before_allocation): Call ldemul_do_assignments rather than
277 gld*_provide_init_fini_syms directly.
278 * emultempl/ppc32elf.em (gld*_after_allocation): Delete.
279 (ppc_do_assignments): New function.
280 (LDEMUL_AFTER_ALLOCATION): Don't define.
281 (LDEMUL_DO_ASSIGNMENTS): Define.
283 2005-07-16 Alan Modra <amodra@bigpond.net.au>
285 * Makefile.am: Run "make dep-am".
286 (emipsidt.c, emipsidtl.c): Depend on generic.em.
287 * Makefile.in: Regenerate.
289 2005-07-15 Alan Modra <amodra@bigpond.net.au>
291 * ldemul.c (ldemul_do_assignments): New function.
292 (do_assignments_default): New function.
293 * ldemul.h (ldemul_do_assignments): Declare.
294 (do_assignments_default): Declare.
295 (struct ld_emulation_xfer_struct): Add do_assignments.
296 * ldlang.c (lang_do_assignments) Call ldemul_do_assignments.
297 * emultempl/aix.em (ld_*_emulation): Init do_assignments field.
298 * emultempl/armcoff.em: Likewise.
299 * emultempl/beos.em: Likewise.
300 * emultempl/generic.em: Likewise.
301 * emultempl/gld960.em: Likewise.
302 * emultempl/gld960c.em: Likewise.
303 * emultempl/linux.em: Likewise.
304 * emultempl/lnk960.em: Likewise.
305 * emultempl/m68kcoff.em: Likewise.
306 * emultempl/pe.em: Likewise.
307 * emultempl/sunos.em: Likewise.
308 * emultempl/ticoff.em: Likewise.
309 * emultempl/vanilla.em: Likewise.
310 * emultempl/elf32.em: Likewise, to call gld*_provide_init_fini_syms.
311 (gld*_find_exp_assignment): Adjust bfd_elf_record_link_assignment call.
313 2005-07-14 Jim Blandy <jimb@redhat.com>
315 Add support for the Renesas M32C and M16C.
316 * Makefile.am (ALL_EMULATIONS): Add eelf32m32c.o.
317 (eelf32m32c.c): New target.
318 * Makefile.in: Regenerated.
319 * configure.tgt: Add case for m32c-*-elf.
320 * emulparams/elf32m32c.sh: New file.
322 2005-07-14 Alan Modra <amodra@bigpond.net.au>
324 * ldlang.c (strip_excluded_output_sections): Don't call
326 * emultempl/elf32.em (gld*_provide_bound_symbols): Move.
327 (gld*_provide_init_fini_syms): Move.
328 (gld*_before_allocation): Call the above from here..
329 (gld*_finish): ..not here. Call _bfd_elf_fix_excluded_sec_syms.
330 * emultempl/hppaelf.em (hppaelf_finish): Likewise.
331 * emultempl/ppc64elf.em (ppc_finish): Likewise.
333 2005-07-10 Ralf Corsepius <ralf.corsepius@rtems.org>
335 * configure.tgt: Remove sparc*-*-rtemsaout*, i[3-7]86-go32-rtems*,
336 i[3-7]86-*-rtemscoff*, hppa*-*-rtems*, mips*el-*-rtems*,
339 2005-07-09 Christopher Faylor <cgf@timesys.com>
341 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse): Enable runtime
342 relocation by default.
343 (compute_dll_image_base): Avoid linking into cygwin dll address space.
345 2005-07-08 Alan Modra <amodra@bigpond.net.au>
347 * ldlang.c (wild_sort): Formatting.
348 (strip_excluded_output_sections): Strip zero size sections here.
349 * emultempl/elf32.em (gld*_strip_empty_sections): Delete.
350 (gld*_finish): Don't call the above.
351 * emultempl/hppaelf.em (hppaelf_finish): Likewise.
352 * emultempl/ppc64elf.em (ppc_finish): Likewise.
354 2005-07-05 Paul Brook <paul@codesourcery.com>
356 * Makefile.am (ALL_EMULATIONS): Add eelf32ppcvxworks.o.
357 (eelf32ppcvxworks.o): Add dependencies.
358 * Makefile.in: Regenerate.
359 * configure.tgt: Add entry for powerpc-vxworks.
360 * emulparams/elf32-ppc.c: Mention elf32ppcvxworks.sh in comment.
361 * emulparams/elf32ppcvxworks.sh: New file.
362 * emultempl/ppc32elf.em (bfd_elf32_powerpc_vxworks_vec): Declare.
363 (is_ppc_elf32_vec): New function.
364 (ppc_after_open, ppc_before_allocation,
365 gld${EMULATION_NAME}_after_allocation): Use it.
367 2005-07-05 Peter S. Mazinger" <ps.m@gmx.net>
369 * emulparams/elf32bmip.sh (GENERATE_PIE_SCRIPT): Define as "yes".
370 * emulparams/elf32bmipn32-defs.sh (GENERATE_PIE_SCRIPT): Define as "yes".
372 2005-07-04 Mike Frysinger <vapier@gentoo.org>
374 * emulparams/hppalinux.sh (GENERATE_PIE_SCRIPT): Fix typo in
377 2005-07-04 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
379 * emulparams/m32relf_linux.sh (GENERATE_PIE_SCRIPT): Set to yes.
381 2005-07-04 Aurelien Jarno <aurel32@debian.org>
383 * emultempl/elf32.em: Enable use of ld.so.conf for *-*-k*bsd-*.
385 2005-07-01 Alan Modra <amodra@bigpond.net.au>
387 * scripttempl/elf.sc (.gcc_except_table): Don't KEEP.
389 2005-06-30 Ben Elliston <bje@gnu.org>
391 * Makefile.am (check-DEJAGNU): Don't search for expect.
392 * Makefile.in: Regenerate.
394 2005-06-30 Ben Elliston <bje@gnu.org>
396 * Makefile.am (EXPECT): Set to expect.
397 (RUNTEST): Likewise, set to runtest.
398 * Makefile.in: Regenerate.
400 2005-06-16 Alexander Klimov <alserkli@inbox.ru>
402 * emultempl/armelf.em: Add quotes to avoid a null test
405 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
407 * ld.texinfo (Command Line Options): Add @item for --hash-size.
409 2005-06-10 Alan Modra <amodra@bigpond.net.au>
411 * scripttempt/elf.sc (.bss): Align tail in a way that allows
412 empty section pruning.
414 2005-06-09 Steve Ellcey <sje@cup.hp.com>
416 * configure.in (AM_BINUTILS_WARNINGS): Add.
417 (BFD_NEED_DECLARATION) Replace with AC_CHECK_DECLS.
418 * config.in: Regenerate.
419 * configure: Regenerate.
420 * sysdep.h (NEED_DECLARATION_*): Replace with HAVE_DECL_*
423 2005-06-09 Alan Modra <amodra@bigpond.net.au>
425 * ldexp.c (fold_unary <ALIGN_K>): Revert last change.
427 2005-06-09 Alan Modra <amodra@bigpond.net.au>
429 * ld.h (lang_phase_type): Move to..
430 * ldexp.h: ..here. Add lang_mark_phase_enum.
431 (node_type): Remove etree_undef and etree_unspec.
432 (exp_data_seg): Delete.
433 (struct ldexp_control, expld): New.
434 (invalid, exp_mark_used_section): Delete.
435 (exp_fold_tree, exp_get_vma, exp_get_value_int, exp_get_fill,
436 exp_get_abs_int): Update prototypes.
437 * ldexp.c (assigning_to_dot): Delete.
439 (make_abs): Operate directly on expld.result. Update all callers.
440 (new_abs): Likewise. Return void.
441 (new_rel_from_abs): Rename from new_rel_from_section.
442 (new_rel, new_rel_from_abs): Operate on expld.result and return void.
444 (fold_unary): Operate on expld.result and return void. Remove
445 "current_section", "allocation_done", "dot", "dotp" and "mark_used"
446 params. Update all callers.
447 (fold_binary, fold_trinary, fold_name, exp_fold_tree_1): Likewise.
448 (fold_unary <ALIGN_K>): Ensure alignment is absolute.
449 (fold_unary <ABSOLUTE>): Use make_abs.
450 (fold_unary <DATA_SEGMENT_END>): Evaluate mark_phase as for
452 (fold_binary <DATA_SEGMENT_ALIGN, DATA_SEGMENT_RELRO_END, >): Ditto.
453 (fold_binary <'%','/'>): Don't error if marking.
454 (fold_name <SIZEOF_HEADERS>): Don't call bfd_sizeof_headers when
456 (fold_name <NAME>): Remove FIXME; -R is handled correctly. Don't
458 (fold_name <ADDR, LOADADDR, SIZEOF>): Don't set SEC_KEEP.
459 (exp_fold_tree_1): Don't error when marking.
460 (exp_fold_tree_1 <etree_rel>): Evaluate in all phases except first.
461 (exp_fold_tree_1 <etree_assign to dot>): Don't check for NULL
462 current section, instead check for NULL dotp.
463 (exp_fold_tree_1 <etree_provide>): Don't evaluate the assignment
464 source unless the symbol is referenced and undefined.
465 (exp_fold_tree): Remove "allocation_done" and "dot" params. Save
467 (exp_fold_tree_no_dot): Remove "current_section", "allocation_done
468 and "mark_used" params. Save params to expld. Update all callers.
469 (exp_assop): Do without temp var.
470 (exp_print_tree <etree_undef>): Delete code.
471 (exp_get_vma): Remove "allocation_done" param. Correct error return.
472 (exp_get_fill, exp_get_abs_int): Likewise.
473 (exp_get_value_int): Remove "allocation_done" param.
474 (exp_mark_used_section): Delete.
475 * ldgram.y (fill_exp): Update exp_get_fill call.
476 (origin_spec, length_spec): Update exp_get_vma call.
477 * ldlang.c (lang_init): Don't bother clearing lang_statement_iteration.
478 (lang_mark_used_section_1, lang_mark_used_section): Delete.
479 (strip_excluded_output_sections): Call one_lang_size_sections_pass in
480 marking mode. Merge old lang_mark_used_section code. Correct handling
481 of output sections with excluded input sections and data statements.
482 Don't drop non-zero sized sections. Don't zap os->bfd_section.
483 Do set SEC_EXCLUDE when appropriate.
484 (print_output_section_statement): Update for changed ldexp.c
486 (print_assignment, lang_size_sections_1): Likewise.
487 (lang_do_assignments_1, lang_enter_output_section_statement): Likewise.
488 (lang_new_phdr, lang_record_phdrs): Likewise.
489 (lang_size_sections): Likewise.
490 (insert_pad): Use following statement if it is a pad, rather than
492 (lang_size_sections_1 <lang_output_section_statement_enum>): Do
493 process ignored output section to set vma and lma, but don't
494 update dot for these sections. Don't error if marking.
495 (lang_size_sections_1 <lang_assignment_statement_enum>): Don't
496 update dot for ignored sections.
497 (lang_size_sections_1 <lang_data_statement_enum>): Don't mark absolute
498 section with SEC_ALLOC.
499 (one_lang_size_sections_pass): New function.
500 (lang_size_sections): Remove first five params. Set expld.phase on
501 entry and exit. Use one_lang_size_sections_pass.
502 (lang_do_assignments): Remove all params. Update all callers.
503 (lang_reset_memory_regions): Clear os->processed for all output
505 * ldlang.h (lang_do_assignments): Update prototype.
506 (lang_size_sections): Likewise.
507 (one_lang_size_sections_pass): Declare.
508 * pe-dll.c (pe_dll_fill_sections, pe_exe_fill_sections): Update
509 lang_size_sections and lang_do_assignments calls.
510 * emultempl/elf32.em (layout_sections_again): Likewise.
511 * emultempl/ppc64elf.em (ppc_before_allocation): Use
512 one_lang_size_sections_pass.
514 2005-06-08 Aldy Hernandez <aldyh@redhat.com>
516 * emulparams/elf32ms1.sh: New.
518 2005-06-07 Eric Christopher <echristo@redhat.com>
520 * Makefile.am (eelf32ms1.c): Use tab.
521 * Makefile.in: Regenerate.
523 2005-06-07 Aldy Hernandez <aldyh@redhat.com>
524 Michael Snyder <msnyder@redhat.com>
525 Stan Cox <scox@redhat.com>
527 * configure.tgt: Same.
529 * Makefile.am (ALL_EMULATIONS): Depend on eelf32ms1.o.
530 (eelf32ms1.c): Add eelf32ms1.c rule.
532 * Makefile.in: Regenerate.
534 2005-06-06 Alan Modra <amodra@bigpond.net.au>
536 * emultempl/ppc64elf.em (ppc_before_allocation): Always run
539 2005-06-05 H.J. Lu <hongjiu.lu@intel.com>
541 * ldexp.c (exp_mark_used_section): Set SEC_KEEP on current
542 section only if the symbol will be defined.
544 2005-06-04 H.J. Lu <hongjiu.lu@intel.com>
547 * ldexp.c (exp_mark_used_section): Set SEC_KEEP on current
548 section for etree_assign, etree_provide and etree_provided.
549 Call fold_binary on etree_binary.
551 * ldlang.c (lang_mark_used_section_1): Handle load base.
553 2005-06-03 Alan Modra <amodra@bigpond.net.au>
555 * ldmain.c (link_callbacks): Add einfo.
556 (add_archive_element): Use passed info, not link_info.
557 (constructor_callback): Likewise.
558 (reloc_overflow): Don't handle null bfd specially.
559 (reloc_dangerous, unattached_reloc): Likewise.
560 * ldmisc.c (vfinfo <B>): Print "ld generated" for null bfd.
561 (vfinfo <C, D, G>): Handle null bfd. Wrap comments.
563 2005-06-02 Alan Modra <amodra@bigpond.net.au>
565 * ldexp.h (etree_value_type): Use "asection *" in place of
566 "struct lang_output_section_statement_struct *" for "section".
567 (exp_fold_tree): Likewise.
568 (exp_mark_used_section): Likewise.
569 * ldexp.c (new_rel, new_rel_from_section, fold_unary, fold_binary,
570 fold_trinary, fold_name, exp_fold_tree_1, exp_fold_tree,
571 exp_mark_used_section): Likewise for "current_section" param.
572 (make_abs, new_abs, exp_binop, exp_unop, exp_get_vma, exp_get_fill,
573 exp_get_abs_int): Adjust for above changes.
574 * ldlang.c (lang_mark_used_section_1, print_assignment,
575 lang_size_sections_1, lang_do_assignments_1): Likewise.
576 * ldexp.c (fold_name): Init entire result struct.
578 2005-06-01 Maciej W. Rozycki <macro@linux-mips.org>
580 * emulparams/elf32btsmip.sh: Unset DATA_ADDR.
582 2005-05-31 Zack Weinberg <zack@codesourcery.com>
584 * ldlang.c (entry_symbol_default): New file-scope global.
585 (lang_finish): Use it, not a hardwired "start".
586 (lang_default_entry): Set it.
587 * ldlang.h: Declare lang_default_entry.
588 * emultempl/beos.em, emultempl/pe.em: Use lang_default_entry,
589 not lang_add_entry, to override default entry point symbol.
591 2005-05-29 Richard Henderson <rth@redhat.com>
593 * emulparams/elf64alpha.sh (PLT): New.
595 * emultempl/alphaelf.em (disable_relaxation): New.
596 (limit_32bit): Rename from elf64alpha_32bit; update all users.
597 (elf64_alpha_use_secureplt): Declare.
598 (bfd_elf64_alpha_vec, bfd_elf64_alpha_freebsd_vec): Declare.
599 (alpha_after_open): New.
600 (alpha_before_allocation): New.
601 (OPTION_NO_RELAX, OPTION_SECUREPLT, OPTION_NO_SECUREPLT): New.
602 (PARSE_AND_LIST_LONGOPTS): Include them.
603 (PARSE_AND_LIST_OPTIONS): Likewise.
604 (PARSE_AND_LIST_ARGS_CASES): Likewise.
605 (LDEMUL_AFTER_OPEN, LDEMUL_BEFORE_ALLOCATION): New.
606 * scripttempl/elf.sc (TEXT_PLT): New.
609 2005-05-27 Andreas Schwab <schwab@suse.de>
611 * configure.host (HOSTING_LIBS): Add libunwind.a if it exists.
613 2005-05-24 Alan Modra <amodra@bigpond.net.au>
615 * emultempl/ppc32elf.em (after_allocation): Don't call
616 ppc_elf_set_sdata_syms when relocatable.
618 2005-05-21 H.J. Lu <hongjiu.lu@intel.com>
620 * Makefile.am (ld.1): Revert the last 2 changes.
621 (info-recursive): Depend on ld.1.
622 * Makefile.in: Regenerated.
624 2005-05-21 H.J. Lu <hongjiu.lu@intel.com>
626 * Makefile.am (ld.1): Depend on "info" instead of
627 "configdoc.texi ldver.texi".
628 * Makefile.in: Regenerated.
630 2005-05-21 H.J. Lu <hongjiu.lu@intel.com>
632 * Makefile.am (ld.1): Depend on "info".
633 * Makefile.in: Regenerated.
635 2005-05-19 Zack Weinberg <zack@codesourcery.com>
637 * Makefile.am: Have 'all' depend on 'info' and 'ld.1'.
638 * Makefile.in: Regenerate.
640 2005-05-17 Zack Weinberg <zack@codesourcery.com>
642 * ld-arm/mixed-app.d: Adjust expected disassembly a little.
644 2005-05-17 Daniel Jacobowitz <dan@codesourcery.com>
646 * Makefile.am (ldver.texi): Don't use $<.
647 * Makefile.in: Regenerated.
649 2005-05-17 Daniel Jacobowitz <dan@codesourcery.com>
651 * Makefile.am (AM_MAKEINFOFLAGS, TEXI2DVI): Explicitly include
652 $(srcdir) before $(BFDDIR)/doc.
653 * Makefile.in: Regenerated.
655 2005-05-17 H.J. Lu <hongjiu.lu@intel.com>
658 * ldexp.c (exp_fold_tree_1): Renamed from exp_fold_tree and
659 take take a bfd_boolean, mark_used. Ignore assert failure if
661 (exp_fold_tree) Call exp_fold_tree_1 with mark_used == FALSE.
662 (exp_fold_tree_no_dot): Updated to take a bfd_boolean,
663 mark_used and pass down.
664 (fold_unary): Likewise.
665 (fold_binary): Likewise.
666 (fold_trinary): Likewise.
667 (exp_binop): Add FALSE to call to exp_fold_tree_no_dot.
668 (exp_trinop): Likewise.
669 (exp_unop): Likewise.
670 (exp_nameop): Likewise.
671 (exp_get_vma): Likewise.
672 (exp_get_fill): Likewise.
673 (exp_get_abs_int): Likewise.
674 (fold_name): Likewise. Set SEC_KEEP in output section flags.
675 (exp_mark_used_section): New.
677 * ldexp.h (exp_mark_used_section): New.
679 * ldlang.c (lang_output_section_statement_lookup_1): Set the
680 ignored field to FALSE.
681 (lang_mark_used_section_1): New.
682 (lang_mark_used_section): Call lang_mark_used_section_1.
683 (strip_excluded_output_sections): Call lang_mark_used_section
684 and check for unused sections.
685 (lang_size_sections_1): Skip an output section if it should
687 (lang_do_assignments_1): Likewise.
688 (lang_process): Don't call lang_mark_used_section here.
690 * ldlang.h (lang_output_section_statement_type): Change
691 all_input_readonly to bitfield. Add ignored.
693 2005-05-17 Lennert Buytenhek <buytenh@wantstofly.org>
694 Peter S. Mazinger" <ps.m@gmx.net>
696 * emulparams/armelf_linux.sh (GENERATE_PIE_SCRIPT): Define as "yes".
697 * emulparams/hppalinux.sh (GENERATE_PIE_SCRIPT): Define as "yes".
699 2005-05-17 Julian Brown <julian@codesourcery.com>
701 * ldlang.c (print_assignment): Do not rely upon a valid result
702 having a section associated with it.
704 2005-05-17 Nick Clifton <nickc@redhat.com>
706 * ldlang.c (Scan_for_self_assignment): Check an assignment tree to
707 see if the same value is being used on the rhs as on the lhs.
708 (print_assignment): Call scan_for_self_assignment and if it
709 returns true, do no display the result of the computation but
710 instead just the final value of the symbol on the lhs.
711 * ld.texinfo: Document this behaviour and provide an example of
714 2005-05-15 Daniel Jacobowitz <dan@codesourcery.com>
716 * Makefile.am (AM_MAKEINFOFLAGS): Define.
718 (ldver.texi): Depend on distributed files instead of built files.
719 (ld.info): Include $(srcdir) in the rule target. Remove actions.
720 (ld.dvi): Remove actions.
721 (MAINTAINERCLEANFILES): Add configdoc.texi.
722 (CONFIG_STATUS_DEPENDENCIES): Add bfd/configure.in.
723 (install-data-local): Renamed from install.
724 (Makefile): Remove explicit dependency.
725 * acinclude.m4: Remove obsolete code.
726 * configure.in: Update AC_PREREQ. Remove extra $CONFIG_SHELL.
727 * Makefile.in, aclocal.m4, config.in, configure: Regenerated.
729 2005-05-11 Bob Wilson <bob.wilson@acm.org>
731 * scripttempl/elfxtensa.sc: Sync up with elf.sc.
732 * emulparams/elf32xtensa.sh (PLT, GOT): Define.
734 2005-05-11 Alan Modra <amodra@bigpond.net.au>
736 * ldgram.y: Add SPECIAL token.
737 (sect_constraint): Handle SPECIAL.
738 * ldlang.c (lang_output_section_find_1): Don't match SPECIAL.
739 (map_input_to_output_sections): Likewise.
740 * ldlex.l (SPECIAL): Define.
741 * emulparams/elf32ppc.sh (DATA_GOT, SDATA_GOT, SEPARATE_GOTPLT,
742 GOT, PLT, GOTPLT): Define.
743 * emultempl/ppc32elf.em (old_plt, old_got): New static vars.
744 (ppc_after_open): New function.
745 (PARSE_AND_LIST_PROLOGUE): Define OPTION_OLD_LPT and OPTION_OLD_GOT.
746 (PARSE_AND_LIST_LONGOPTS): Add "bss-plt" and "sdata-got".
747 (PARSE_AND_LIST_OPTIONS): Document them.
748 (PARSE_AND_LIST_ARGS_CASES): Handle them.
749 (LDEMUL_AFTER_OPEN): Define.
750 * scripttempl/elf.sc (PLT): Don't override existing define.
751 (DATA_GOT, SDATA_GOT): Define and use to enable alternate got
752 placement rather than using NO_SMALL_DATA. Emit GOTPLT for RELRO_NOW.
754 2005-05-10 Alan Modra <amodra@bigpond.net.au>
756 * scripttempl/elf.sc (DATA_SEGMENT_RELRO_GOTPLT_END): Delete.
757 (DATA_SEGMENT_RELRO_END): Use SEPARATE_GOTPLT value.
758 (GOTPLT): Remove DATA_SEGMENT_RELRO_GOTPLT_END. Place after
759 DATA_SEGMENT_RELRO_END in script.
761 2005-05-09 H.J. Lu <hongjiu.lu@intel.com>
763 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
764 Don't use a removed section.
766 2005-05-09 H.J. Lu <hongjiu.lu@intel.com>
768 * ldmain.c (reloc_overflow): Use output_bfd if the symbol
769 is defined in the ABS section.
771 2005-05-06 H.J. Lu <hongjiu.lu@intel.com>
773 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_init_fini_syms):
774 Put back !link_info.relocatable.
776 2005-05-06 H.J. Lu <hongjiu.lu@intel.com>
779 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_init_fini_syms):
780 Just check link_info.executable.
782 2005-05-06 Nick Clifton <nickc@redhat.com>
784 * Update the address and phone number of the FSF organization in
785 the GPL notices in the following files:
786 aclocal.m4, deffile.h, deffilep.y, fdl.texi, ld.h, ldcref.c,
787 ldctor.c, ldctor.h, ldemul.c, ldexp.c, ldexp.h, ldfile.c,
788 ldfile.h, 20ldgram.y, ldint.texinfo, ldlang.c, ldlang.h, ldlex.h,
789 ldlex.l, ldmain.c, ldmain.h, ldmisc.c, ldmisc.h, ldver.c, ldver.h,
790 ldwrite.c, ldwrite.h, lexsup.c, mri.c, mri.h, pe-dll.c, pe-dll.h,
791 sysdep.h, emultempl/aix.em, emultempl/alphaelf.em,
792 emultempl/armcoff.em, emultempl/armelf.em, emultempl/beos.em,
793 emultempl/crxelf.em, emultempl/elf32.em, emultempl/generic.em,
794 emultempl/gld960.em, emultempl/gld960c.em, emultempl/hppaelf.em,
795 emultempl/ia64elf.em, emultempl/irix.em, emultempl/linux.em,
796 emultempl/lnk960.em, emultempl/m68hc1xelf.em,
797 emultempl/m68kcoff.em, emultempl/m68kelf.em,
798 emultempl/mipsecoff.em, emultempl/mmix-elfnmmo.em,
799 emultempl/mmixelf.em, emultempl/mmo.em, emultempl/needrelax.em,
800 emultempl/pe.em, emultempl/ppc32elf.em, emultempl/ppc64elf.em,
801 emultempl/sh64elf.em, emultempl/sunos.em, emultempl/ticoff.em,
802 emultempl/vanilla.em, emultempl/xtensaelf.em
804 2005-05-05 H.J. Lu <hongjiu.lu@intel.com>
806 * scripttempl/elf.sc: Document the usage of __bss_start.
808 2005-05-05 Paul Brook <paul@codesourcery.com>
810 * Makefile.am: Add eelf_i386_vxworks.
811 * Makefile.in: Regenerate.
812 * configure.tgt: Make i?86-*-vxworks use targ_emul=elf_i386_vxworks.
813 * emulparams/elf_i386_vxworks.sh: New file.
814 * emulparams/vxworks.sh: New file.
815 * scripttempl/elf.sc: Add DATA_END_SYMBOLS and ETEXT_NAME.
817 2005-05-04 H.J. Lu <hongjiu.lu@intel.com>
819 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
820 Call _bfd_elf_provide_section_bound_symbols.
822 2005-05-04 Alan Modra <amodra@bigpond.net.au>
824 * ldemul.c: Include bfdlink.h.
825 (ldemul_before_allocation): Assume before_allocation is non-zero.
826 (before_allocation_default): Call strip_excluded_output_sections.
827 * ldlang.c (stripped_excluded_sections): New variable.
828 (lang_add_section): Build input section list for each output
829 section, attached via map_head and map_tail pointers.
830 (strip_excluded_output_sections): Make global. Traverse the
831 input section lists to find which output sections can go. Clear
832 link_order pointers and set stripped_excluded_sections.
833 (lang_process): Call strip_excluded_output_sections.
834 * ldlang.h (strip_excluded_output_sections): Declare.
835 * ldwrite.c: Update throuhout for link_order_head -> map_head change.
836 * emultempl/aix.em (before_allocation): Call
837 strip_excluded_output_sections.
838 * emultempl/armcoff.em (before_allocation): Likewise.
839 * emultempl/beos.em (before_allocation): Likewise.
840 * emultempl/linux.em (before_allocation): Likewise.
841 * emultempl/pe.em (before_allocation): Likewise.
842 * emultempl/sunos.em (before_allocation): Likewise.
843 * emultempl/elf32.em (before_allocation): Likewise. Call
844 bfd_elf_size_dynsym_hash_dynstr too.
845 * emultempl/lnk960.em (lnk960_before_allocation): Delete.
846 (ld_lnk960): Use before_allocation_default.
848 2005-05-02 H.J. Lu <hongjiu.lu@intel.com>
850 * emultempl/elf32.em (gld${EMULATION_NAME}_strip_empty_section):
851 Updated for bfd_section_list_remove change.
852 * ldlang.c (lang_insert_orphan): Likewise.
853 (strip_excluded_output_sections): Likewise.
854 (sort_sections_by_lma): New.
855 (lang_check_section_addresses): Sort the sections before
858 2005-04-29 Ralf Corsepius <ralf.corsepius@rtems.org>
860 * configure.tgt: Add h8300*-*-rtemscoff.
861 Switch h8300*-*-rtems* to elf.
863 2005-04-29 Ben Elliston <bje@au.ibm.com>
865 * ldgram.y (lang_memory_region_type): Make static.
866 (ldgram_want_filename): Likewise.
867 * ldemul.c (ld_emulation): Make static.
868 * ldfile.h (ldfile_find_command_file): Remove extern.
869 * ldfile.c (ldfile_find_command_file): Make static.
870 * ldlang.h (unique_section_list): Remove extern declaration.
871 * ldlang.c (unique_section_list): Make static.
872 * mri.h (symbol_truncate): Remove extern declaration.
873 * mri.c (symbol_truncate): Make static.
874 (order, only_load, address, alias): Likewise.
875 (alignment, subalignment): Likewise.
877 2005-04-27 H.J. Lu <hongjiu.lu@intel.com>
879 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
880 Use the first SEC_ALLOC section which isn't SEC_READONLY or the
881 last SEC_ALLOC section if such a section doesn't exist.
883 2005-04-24 Mark Kettenis <kettenis@gnu.org>
885 * configure.host: Add *-*-openbsd support.
887 2005-04-15 Julian Brown <julian@codesourcery.com>
889 * ld.texinfo: Document --use-blx.
890 * emultempl/armelf.em (use_blx): New variable.
891 (arm_elf_create_output_section_statements): Communicate value of
893 (PARSE_AND_LIST_PROLOGUE): Add OPTION_USE_BLX.
894 (PARSE_AND_LIST_OPTIONS): Add --use-blx option.
895 (PARSE_AND_LIST_ARGS_CASES): Add OPTION_USE_BLX case.
897 2005-04-14 Alan Modra <amodra@bigpond.net.au>
899 * Makefile.am (NO_WERROR): Define. Use instead of -Wno-error.
900 * configure.in: Include ../bfd/warning.m4 contents.
901 * Makefile.in: Regenerate.
902 * configure: Regenerate.
904 2005-04-12 Alan Modra <amodra@bigpond.net.au>
906 * Makefile.am: Run "make dep-am".
907 (ldgram.o, ldlex.o, deffilep.o): Add -Wno-error to command.
908 * Makefile.in: Regenerate.
909 * config.in: Regenerate.
911 2005-04-11 Alan Modra <amodra@bigpond.net.au>
913 * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed): Ignore
914 as_needed libs that were not needed.
915 (gld${EMULATION_NAME}_check_needed): Likewise.
917 2005-04-07 Nick Clifton <nickc@redhat.com>
919 * emultempl/m68kcoff.em: Include ldexp.h and ldlang.h so that
920 ldfile.h can use the lang_input_statement type.
922 2005-04-06 Jakub Jelinek <jakub@redhat.com>
924 * ldlang.c: Formatting.
925 (walk_wild_consider_section): Remember return value from wildcardp.
926 (is_simple_wild): Use strcspn instead of 2 strpbrk calls and strlen.
927 (wild_spec_can_overlap): Use strcspn instead of strpbrk and strlen.
929 2005-04-06 Robert O'Callahan <rocallahan@novell.com>
931 * ld.h (lean_section_userdata_type): Remove.
932 (fat_section_userdata_type): Remove file field.
933 (SECTION_USERDATA_SIZE): Remove.
934 * ldlang.c (init_os): Eliminate initialization of unused
935 lean_section_userdata_type.
937 * ldlang.h (callback_t, walk_wild_section_handler_t): New
939 (struct lang_wild_statement_struct): Add walk_wild_section_handler
940 and handler_data fields.
941 * ldlang.c (callback_t): Removed.
942 (walk_wild_consider_section, walk_wild_section_general,
943 section_iterator_callback, find_section, is_simple_wild,
944 match_simple_wild, walk_wild_section_specs1_wild0,
945 walk_wild_section_specs1_wild1, walk_wild_section_specs2_wild1,
946 walk_wild_section_specs3_wild2, walk_wild_section_specs4_wild2,
947 wild_spec_can_overlap, analyze_walk_wild_section_handler): New
949 (lang_add_wild): Call analyze_walk_wild_section_handler.
950 (walk_wild_section): Renamed to walk_wild_section_general and
951 created a wrapper function.
952 (section_iterator_callback_data): New typedef.
954 2005-04-04 Nick Clifton <nickc@redhat.com>
956 * configure.in: Add a check for <unistd.h> providing a prototype
957 for getopt() which is compatible with the one in
958 include/getopt.h. If so then define HAVE_DECL_GETOPT.
959 * configure: Regenerate.
960 * config.in (HAVE_DECL_GETOPT): Add.
961 * ldemul.c: Include config.h
962 * lexsup.c: Likewise.
963 * emultempl/elf32.sc: Likewise.
965 2005-03-29 Alan Modra <amodra@bigpond.net.au>
967 * emultempl/elf32.em (gld${EMULATION_NAME}_layout_sections_again):
968 New function, extracted from static void gld${EMULATION_NAME}_finish.
969 (gld${EMULATION_NAME}_strip_empty_sections): Likewise.
970 (gld${EMULATION_NAME}_provide_init_fini_syms): Likewise.
971 * emultempl/ppc64elf.em: Revert last change.
972 (ppc_layout_sections_again): Use
973 gld${EMULATION_NAME}_layout_sections_again.
974 (ppc_finish): Don't call gld${EMULATION_NAME}_finish. Instead call
975 gld${EMULATION_NAME}_strip_empty_sections and
976 gld${EMULATION_NAME}_provide_init_fini_syms.
977 * emultempl/hppaelf.em: Similarly.
979 2005-03-29 Alan Modra <amodra@bigpond.net.au>
981 * emultempl/ppc64elf.em (need_laying_out): Delete. Remove all refs.
982 (ppc_finish): Don't call bfd_elf_discard_info.
983 * emultempl/hppaelf.em: Similarly.
985 2005-03-24 Nick Clifton <nickc@redhat.com>
987 * po/fr.po: Updated French translation.
989 2005-03-23 Mike Frysinger <vapier@gentoo.org>
990 Nick Clifton <nickc@redhat.com>
992 * configure.host: Accept any C library to accompany a GNU Linux
993 implementation, not just the GNU C library.
994 * configure.tgt: Likewise.
995 * emultempl/elf32.em: Likewise.
997 2005-03-22 H.J. Lu <hongjiu.lu@intel.com>
999 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols): New
1000 (gld${EMULATION_NAME}_finish): Call
1001 gld${EMULATION_NAME}_provide_bound_symbols to provide
1002 __preinit_array_start, __preinit_array_end, __init_array_start,
1003 __init_array_end, __fini_array_start and __fini_array_end.
1005 * scripttempl/elf.sc: Don't provide __preinit_array_start,
1006 __preinit_array_end, __init_array_start, __init_array_end,
1007 __fini_array_start nor __fini_array_end.
1009 2005-03-23 Alan Modra <amodra@bigpond.net.au>
1011 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Set
1012 SEC_EXCLUDE on .gnu.warning sections.
1014 2005-03-22 Alan Modra <amodra@bigpond.net.au>
1016 * scripttempl/elf.sc (SBSS): Don't provide sbss start and end syms.
1018 2005-03-21 Alan Modra <amodra@bigpond.net.au>
1020 * emultempl/ppc32elf.em (gld${EMULATION_NAME}_after_allocation): New
1022 (LDEMUL_AFTER_ALLOCATION): Define.
1024 2005-03-21 Alan Modra <amodra@bigpond.net.au>
1026 * emultempl/ppc64elf.em (ppc_finish): Rename from
1027 gld${EMULATION_NAME}_finish. Call gld${EMULATION_NAME}_finish.
1028 (LDEMUL_FINISH): Update.
1029 * emultempl/hppaelf.em (hppaelf_finish, LDEMUL_FINISH): Likewise.
1030 * emultempl/m68hc1xelf.em (m68hc11elf_finish, LDEMUL_FINISH): Likewise.
1032 2005-03-18 Julian Brown <julian@codesourcery.com>
1034 * scripttempl/armbpapi.sc (.rel.dyn): Add .rel.init_array,
1036 (.rela.dyn): Add .rela.init_array, .rela.fini_array.
1037 (SECTIONS): Add .rel.other, .rela.other, .reli.other after PLT relocs.
1039 2005-03-18 H.J. Lu <hongjiu.lu@intel.com>
1041 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Don't set
1042 bfd_section when removing unused empty output sections for
1043 non-relocatable link.
1045 2005-03-19 Alan Modra <amodra@bigpond.net.au>
1047 * ldlang.c (lang_insert_orphan): Use old section_tail rather than
1048 traversing the bfd section list to find pointer to new section.
1050 2005-03-18 Alan Modra <amodra@bigpond.net.au>
1052 * scripttempl/elf.sc: When CREATE_SHLIB, put .sdata2 and .sbss2
1053 input sections into .sdata and .sbss output respectively.
1055 2005-03-16 David Heine <dlheine@tensilica.com>
1056 Bob Wilson <bob.wilson@acm.org>
1058 * ldlang.c (IGNORE_SECTION): Remove check for zero size.
1059 (lang_check_section_addresses): Ignore zero size sections here.
1061 2005-03-16 H.J. Lu <hongjiu.lu@intel.com>
1063 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Remove
1064 unused empty output sections for non-relocatable link.
1066 * ld.h (args_type): Remove gc_sections.
1068 * ldlang.c (lang_mark_used_section): New.
1069 (lang_gc_sections): Use link_info.gc_sections instead of
1070 command_line.gc_sections.
1071 * ldmain.c (main): Likewise.
1072 * lexsup.c (parse_args): Likewise.
1073 * ldlang.c (lang_process): Call lang_mark_used_section.
1075 * ldmain.c (main): Initialize link_info.gc_sections to FALSE.
1077 2005-03-16 Nick Clifton <nickc@redhat.com>
1078 Ben Elliston <bje@au.ibm.com>
1080 * configure.in (werror): New switch: Add -Werror to the
1081 compiler command line. Enabled by default. Disable via
1083 * configure: Regenerate.
1085 2005-03-16 Alan Modra <amodra@bigpond.net.au>
1087 * emulparams/elf32ppclinux.sh (OTHER_READWRITE_SECTION): Delete.
1088 (OTHER_RELRO_SECTIONS): Set this instead.
1090 2005-03-15 Nick Clifton <nickc@redhat.com>
1092 * NEWS: Add cutoff for changes in 2.16 release.
1094 2005-03-15 Mikkel Krautz <krautz@gmail.com>
1096 * configure.tgt (x86_64-elf): Add target.
1098 2005-03-15 Alan Modra <amodra@bigpond.net.au>
1100 * po/es.po: Commit new Spanish translation.
1102 2005-03-14 Alan Modra <amodra@bigpond.net.au>
1104 * ldexp.c (exp_fold_tree): Ensure return value is initialized.
1105 Tidy etree_assert case.
1107 2005-03-14 Alan Modra <amodra@bigpond.net.au>
1109 * po/tr.po: Commit new Turkish translation.
1111 2005-03-11 Daniel Jacobowitz <dan@codesourcery.com>
1113 * Makefile.am: Remove references to em68klynx.o and esparclynx.o.
1114 * Makefile.in: Regenerated.
1115 * emulparams/m68klynx.sh, emulparams/sparclynx.sh: Remove.
1117 2005-03-07 Nick Clifton <nickc@redhat.com>
1119 * po/fr.po: Updated translation.
1121 2005-03-05 Alan Modra <amodra@bigpond.net.au>
1123 * po/ld.pot: Regenerate.
1125 2005-03-02 Jan Beulich <jbeulich@novell.com>
1127 * ldmain.c (remove_output): Use unlink_if_ordinary instead of unlink.
1128 * pe-dll.c (pe_dll_generate_implib): Likewise.
1130 2005-02-24 Ben Elliston <bje@au.ibm.com>
1132 * ldfile.c: Remove GNU960 conditional code.
1133 * emultempl/gld960.em: Likewise.
1134 * emultempl/gld960c.em: Likewise.
1135 * emultempl/lnk960.em: Likewise.
1137 2005-02-24 Nick Clifton <nickc@redhat.com>
1139 * emultempl/lnk960.em (lnk960_before_parse): Remove redundant
1140 empty string from calls to concat.
1142 2005-02-23 Nick Clifton <nickc@redhat.com>
1144 * emultempl/lnk960.em (lnk960_before_parse): Terminate list of
1145 arguments passed to concat() with a NULL.
1147 * emultempl/m68kcoff.em: Include ldexp.h and ldlang.h because they
1148 define types needed by ldfile.h
1150 2005-02-23 Alan Modra <amodra@bigpond.net.au>
1152 * pe-dll.c: Warning fixes.
1153 * emultempl/sunos.em: Likewise.
1155 2005-02-22 Daniel Jacobowitz <dan@codesourcery.com>
1157 * ldlang.c (section_already_linked): Don't call
1158 bfd_section_already_linked for dynamic objects.
1160 2005-02-22 Alan Modra <amodra@bigpond.net.au>
1162 * ldexp.c: Warning fixes.
1163 * ldwrite.c: Likewise.
1164 * emultempl/elf32.em: Likewise.
1166 2005-02-21 H.J. Lu <hongjiu.lu@intel.com>
1168 * ldlang.c (lang_add_section): Check SEC_TIC54X_BLOCK for TI
1170 (lang_size_sections_1): Check SEC_COFF_SHARED_LIBRARY for COFF
1171 and ECOFF output only.
1173 2005-02-21 Alan Modra <amodra@bigpond.net.au>
1175 * config.in: Regenerate.
1176 * configure: Regenerate.
1178 2005-02-17 Zack Weinberg <zack@codesourcery.com>
1180 * ldexp.c (assigning_to_dot): New global flag.
1181 (fold_name): If assigning_to_dot is true, object immediately to
1182 an undefined symbol.
1183 (exp_fold_tree): Set and clear assigning_to_dot around the
1184 recursive call to exp_fold_tree to process the right-hand side
1185 of an assignment to the location counter.
1187 2005-02-17 Paul Brook <paul@codesourcery.com>
1189 * scripttempl/armbpabi.sc: Add dummy name to version block.
1191 2005-02-17 Alan Modra <amodra@bigpond.net.au>
1193 * ldexp.c (new_abs): Init new.str.
1195 2005-02-15 Mark Mitchell <mark@codesourcery.com>
1197 * configure.in (AC_CHECK_FUNCS): Add glob.
1198 * configure: Regenerated.
1199 * emultempl/elf32.em (<glob.h>): Do not include if HAVE_GLOB is
1201 (gld${EMULATION_NAME}_parse_ld_so_conf_include): Do not use glob
1202 if HAVE_GLOB is not defined.
1204 2005-02-16 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1206 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Define
1207 lib_path if NATIVE is yes.
1209 2005-02-16 Alan Modra <amodra@bigpond.net.au>
1211 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Make
1212 an error creating fake bfd fatal.
1213 (ppc_before_allocation): Continue on after errors.
1214 (gld${EMULATION_NAME}_finish): Likewise.
1216 2005-02-15 Nick Clifton <nickc@redhat.com>
1218 * ldlex.l (YY_NO_UNPUT): Define so that the yy_unput function is
1219 not declared. It is not used and its presence causes a compile
1222 2005-02-11 Zack Weinberg <zack@codesourcery.com>
1224 * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed):
1225 If st.st_ino is zero, do not treat the library as a duplicate.
1227 2005-02-10 Jakub Jelinek <jakub@redhat.com>
1229 * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
1230 Set BFD_LINKER_CREATED on the stubs bfd.
1231 * emultempl/ppc64elf.em (ppc_create_output_section_statements):
1234 2005-02-08 Mark Mitchell <mark@codesourcery.com>
1236 * scripttempl/armbpabi.sc (VERSION): Make special section symbols
1238 (Image$$ER_RO$$Base): Define whenever RELOCATING.
1239 (Image$$ER_RO$$Limit): Likewise.
1240 (SHT$$INIT_ARRAY$$Base): Likewise.
1241 (SHT$$INIT_ARRAY$$Limit): Likeise.
1243 2005-02-10 Ben Elliston <bje@au.ibm.com>
1245 * emultempl/beos.em: Remove #if 0 and #if 1 blocks.
1247 2005-02-08 Richard Sandiford <rsandifo@redhat.com>
1249 * configure.tgt (mips64*el-*-linux-gnu*): Define targ_extra_libpath
1250 to include o32 and n64 emulations.
1251 (mips64*-*-linux-gnu*): Likewise.
1253 2005-02-08 Hans-Peter Nilsson <hp@axis.com>
1255 * ldmain.c (warning_callback, warning_find_reloc): Prepend
1256 "warning: " to warning messages.
1258 2005-02-04 Alan Modra <amodra@bigpond.net.au>
1260 * emultempl/elf32.em (gld${EMULATION_NAME}_find_exp_assignment): Don't
1261 look up symbol for etree_provide here.
1263 2005-02-02 Daniel Jacobowitz <dan@codesourcery.com>
1265 * emulparams/elf32bmip.sh (TEXT_DYNAMIC): Always set.
1267 2005-02-01 Edward Welbourne <eddy@opera.com>
1268 Nick Clifton <nickc@redhat.com>
1270 * ld.texinfo (Source Code Reference): New node describing how to
1271 access linker script defined variables from source code.
1273 2005-02-01 Alan Modra <amodra@bigpond.net.au>
1275 * ld.texinfo: Clarify --as-needed operation.
1277 2005-01-31 Andrew Cagney <cagney@gnu.org>
1279 * configure: Regenerate to track ../gettext.m4.
1281 2005-01-31 Nick Clifton <nickc@redhat.com>
1283 * ldver.c (ldversion): Bump reported copyright date to 2005.
1285 2005-01-31 Nick Clifton <nickc@redhat.com>
1287 * configure.tgt: Remove obsolete targets m68k-lynxos and
1290 2005-01-28 Julian Brown <julian@codesourcery.com>
1292 * emultempl/armelf.em (fix_v4bx): New variable.
1293 (arm_elf_create_output_section_statements): Communicate fix_v4bx flag
1295 (PARSE_AND_LIST_PROLOGUE): Add option token OPTION_FIX_V4BX.
1296 (PARSE_AND_LIST_LONGOPTS): Add option --fix-v4bx.
1297 (PARSE_AND_LIST_OPTIONS): Add option --fix-v4bx.
1298 (PARSE_AND_LIST_ARGS_CASES): Add option OPTION_FIX_V4BX.
1299 * NEWS: Mention --fix-v4bx.
1300 * ld.texinfo: Document --fix-v4bx.
1302 2005-01-25 Mark Mitchell <mark@codesourcery.com>
1304 * emulparams/armsymbian.sh (OTHER_READONLY_SECTIONS): Define, so
1305 as to include .ARM.exidx$${Base,Limit}.
1306 * ld/scripttempl/armbpabi.sc: Move .plt to end of text segment.
1307 Define IMAGE$$ER_RO$${Base,Limit} and SHT$$INIT_ARRAY$${Base,Limit}.
1308 Put .init_array, .fini_array, etc. into the read-only data
1311 2005-01-25 Alan Modra <amodra@bigpond.net.au>
1313 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Formatting.
1314 (gld${EMULATION_NAME}_after_open): Ignore needed libs if they were
1315 only needed by an as-needed lib that didn't get linked.
1317 2005-01-23 Alan Modra <amodra@bigpond.net.au>
1319 * ld.texinfo (Output Section Keywords <CONSTRUCTORS>): Correct
1320 __DTOR_LIST__ description.
1322 2005-01-23 Alan Modra <amodra@bigpond.net.au>
1324 * ld.texinfo (Location Counter <dot outside sections>): Document
1325 effects of orphan section placement, and ". = ." workaround.
1326 * Makefile.in: Regenerate.
1328 2005-01-22 Richard Sandiford <rsandifo@redhat.com>
1330 * emulparams/elf32bmip.sh (OTHER_GOT_SECTIONS): Add ". = .;".
1331 * emulparams/elf32bmipn32-defs.sh (OTHER_GOT_SECTIONS): Likewise.
1333 2005-01-21 Jakub Jelinek <jakub@redhat.com>
1335 * ldgram.y (AS_NEEDED): New token.
1336 (input_list): Handle AS_NEEDED ( input_list ).
1337 * ldlex.l (AS_NEEDED): Add.
1338 * ld.texinfo: Document AS_NEEDED ().
1339 * NEWS: Mention AS_NEEDED ().
1341 2005-01-21 Ben Elliston <bje@au.ibm.com>
1343 * ldlang.c (lang_reasonable_defaults): Remove.
1344 (lang_process): Don't call lang_reasonable_defaults.
1346 * ldexp.c (exp_assop): Remove #if 0'd code.
1347 (exp_print_tree): Likewise.
1348 * ldlang.c (lang_memory_region_lookup): Likewise.
1349 (open_output): Likewise.
1350 (lang_do_assignments_1): Likewise.
1351 (lang_place_orphans): Likewise.
1352 (lang_enter_output_section_statement): Likewise.
1353 (lang_reasonable_defaults): Likewise.
1354 * ldlang.h (struct lang_input_statement_struct): Likewise.
1355 * mri.c (mri_draw_tree): Likewise.
1356 (mri_load): Likewise.
1357 * pe-dll.c (generate_reloc): Likewise.
1358 (make_import_fixup_entry): Likewise.
1359 (pe_as16): Likewise.
1360 * emultempl/beos.em (set_pe_subsystem): Likewise.
1361 * emultempl/hppaelf.em (hppaelf_after_parse): Likewise.
1362 * emultempl/pe.em: Likewise.
1363 * emultempl/xtensaelf.em (xtensa_colocate_literals): Likewise.
1365 2005-01-20 Daniel Jacobowitz <dan@codesourcery.com>
1367 * Makefile.am (ALL_EMULATIONS): Add earmelfb_linux_eabi.o.
1368 (earmelfb_linux_eabi.c): New target.
1369 * Makefile.in: Regenerated.
1370 * configure.tgt (arm*b-*-linux-gnueabi): New target.
1371 * emulparams/armelfb_linux_eabi.sh: New file.
1373 2005-01-20 Nick Hudson <skrll@netbsd.org>
1376 * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
1377 Handle bfd_elf32_hppa_nbsd_vec.
1379 2005-01-19 Richard Sandiford <rsandifo@redhat.com>
1381 * ldmain.h (ld_sysroot): Change type to a constant string.
1382 * ldmain.c (ld_sysroot): Likewise.
1383 (get_relative_sysroot, get_sysroot): New functions, adding command-line
1384 support for changing the sysroot.
1385 (main): Call the new functions.
1386 * lexsup.c (OPTION_SYSROOT): New.
1387 (ld_options): Add --sysroot.
1388 (parse_args): Add a dummy handler for it.
1389 * ld.texinfo (--sysroot): Document.
1390 * NEWS: Mention the new --sysroot option.
1392 2005-01-18 Alan Modra <amodra@bigpond.net.au>
1394 * ldlang.c (section_already_linked): Adjust bfd_link_just_syms call.
1395 (lang_place_orphans): Don't abort on just_syms_flag, instead call
1398 2005-01-16 Danny Smith <dannysmith@users.sourceforge.net>
1400 * defilep.y (def_name, def_library): Combine into...
1401 (def_image_name): New function. Strip name to basename,
1404 2005-01-12 Mark Kettenis <kettenis@gnu.org>
1406 * configure.in: Be sure to invoke config.sub using the shell.
1407 * configure: Regenerate.
1409 2005-01-11 Alan Modra <amodra@bigpond.net.au>
1411 * configure.host: Correct sed patterns for last change.
1413 2005-01-10 Nick Clifton <nickc@redhat.com>
1416 * ldmisc.c (vfinfo): Add an extra argument: is_warning. Use this
1417 to determine whether config.make_executable should be set to FALSE in
1418 conjunction with config.fatal_warnings.
1419 (info_msg, minfo, lfinof): Pass FALSE as the extra argument.
1420 (einfo): Pass TRUE as the extra argument.
1422 2005-01-10 Greg Schaffer <gschafer@zip.com.au>
1424 * configure.host (linux targets): Use "${CC} -dumpspecs" instead
1425 of "${CC} --print-file-name=specs" to appease GCC versions >= 4.0.
1426 (ia64-*-aix): Delete - this target is obsolete, and would be
1427 broken by this patch.
1429 2005-01-06 Eric Botcazou <ebotcazou@libertysurf.fr>
1431 * configure.host (sparc*-*-solaris2*): Rename into sparc-*-solaris2*.
1432 (sparc64-sun-solaris2*): New host.
1434 2005-01-06 Paul Brook <paul@codesourcery.com>
1436 * Makefie.am: Add earmelf_vxworks.
1437 * Makefile.in: Regenerate.
1438 * configure.tgt: Make arm-*-vxworks a separate case.
1439 * emulparams/armelf_vxworks.sh: New function.
1441 2005-01-06 Alan Modra <amodra@bigpond.net.au>
1443 * emultempl/ppc64elf.em (no_multi_toc): New var.
1444 (gld${EMULATION_NAME}_finish): Pass to ppc64_elf_setup_section_lists.
1445 (OPTION_NO_MULTI_TOC): Define.
1446 (PARSE_AND_LIST_LONGOPTS): Add --no-multi-toc support.
1447 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Likewise.
1449 2005-01-05 Nick Clifton <nickc@redhat.com>
1452 * ldmisc.c (vfinfo): Alter output to conform to the GNU Coding
1453 Standard's specification for parsable error messages.
1455 2005-01-04 Paul Brook <paul@codesourcery.com>
1457 * Makefile.am: Correct dependency for earmsymbian.c.
1458 * Makefile.in: Regenerate.
1460 2004-12-28 Danny Smith <dannysmith@users.sourceforge.net>
1462 * emultempl/pe.em (set_pe_subsystem): Change second arg to
1463 lang_add_entry to FALSE.
1465 2004-12-23 Nick Clifton <nickc@redhat.com>
1468 * emulparams/shelf.sh (.stack): Increase stack start address to
1471 2004-12-20 Nick Clifton <nickc@redhat.com>
1473 * ldmain.c (main): Issue an error message if -static and -shared
1476 2004-12-17 Jakub Jelinek <jakub@redhat.com>
1478 * ldexp.h (exp_data_seg): Add min_base and maxpagesize fields.
1479 * ldexp.c (fold_binary) <case DATA_SEGMENT_ALIGN>: Initialize them.
1480 * ldlang.c (lang_size_sections): Use them to avoid wasting virtual
1481 address space at DATA_SEGMENT_ALIGN. Fix computation of expected
1482 PT_GNU_RELRO segment end.
1484 2004-12-14 P.J. Darcy <darcypj@us.ibm.com>
1486 * configure.tgt: Add s390x-ibm-tpf support.
1488 2004-12-16 Martin Kögler <mkoegler@auto.tuwien.ac.at>
1490 * ldmisc.c (vfinfo): Handle the case where %B is passed a NULL
1493 2004-12-07 Ben Elliston <bje@gnu.org>
1495 * ldemul.h: Forward declare struct option.
1497 2004-12-01 Danny Smith <dannysmith@users.sourceforge.net>
1499 * scripttempl/pe.sc (.data): Add .jcr subsection.
1501 2004-11-30 Paul Brook <paul@codesourcery.com>
1503 * emultempl/armelf.em: Ignore -p and -no-pipeline-knowledge.
1505 2004-11-30 Tero Niemela <tero_niemela@yahoo.com>
1507 * Makefile.am: Change LOCALEDIR to $(datadir)/share.
1508 * Makefile.in: Regenerate.
1510 2004-11-26 Melissa Mears <asterisk@graces.dricas.com>
1512 * emultempl/pe.em: Add --subsystem:xbox as well as
1514 * ld.texinfo: (ld_options): Document acceptance of subsystem xbox
1515 and numeric subsystems.
1517 2004-11-24 Alan Modra <amodra@bigpond.net.au>
1519 * ldexp.c (fold_name): Correct PR 338 fix.
1521 2004-11-19 Mark Mitchell <mark@codesourcery.com>
1523 * Makefile.am (ALL_EMULATIONS): Add earmelf_linux_eabi.o.
1524 (earmelf_linux_eabi.c): New target.
1525 * configure.tgt (arm*-*-linux-gnueabi): Handle it.
1526 * emulparams/armelf_linux_eabi.sh: New file.
1527 * Makefile.in: Regenerated.
1529 2004-11-19 Nick Clifton <nickc@redhat.com>
1532 * ld.texinfo (MEMORY): Update the descriptions of the ORIGIN and
1533 LENGTH fields in the MEMORY command, to explicitly state that
1534 symbols cannot be used in their expressions.
1536 2004-11-19 Jon Beniston <jon@beniston.com>
1538 * ld/ldlex.l: Allow ORIGIN and LENGTH in EXPRESSION.
1539 * ld/ldgram.y: Add ORIGIN and LENGTH expressions.
1540 * ld/ldexp.c (fold_name): Implement LENGTH() and ORIGIN() functions
1541 which return the length and origin of a memory.
1542 * ld/ld.texinfo: Document LENGTH() and ORIGIN() functions.
1543 * NEWS: Mention support for ORIGIN and LENGTH operators.
1545 2004-11-17 Daniel Jacobowitz <dan@codesourcery.com>
1547 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Don't use
1548 a dynamic object for stubs.
1550 2004-11-04 Paul Brook <paul@codesourcery.com>
1552 * ld.texinfo: Document --default-imported-symver.
1553 * ldmain.c (main): Set link_info.default_imported_symver.
1554 * lexsup.c (option_values): Add OPTION_DEFAULT_IMPORTED_SYMVER.
1555 (ld_options): Add --default-imported-symver.
1556 (parse_args): Handle OPTION_DEFAULT_IMPORTED_SYMVER.
1558 2004-11-08 Inderpreet Singh <inderpreetb@nioda.hcltech.com>
1559 Vineet Sharma <vineets@noida.hcltech.com>
1561 * Makefile.am: Add entries for new maxq-coff target.
1562 * Makefile.in: Regenerate.
1563 * configure.tgt: Add support for maxq.
1564 * emulparams/maxqcoff.sh: New File.
1565 * scripttempl/maxqcoff.sc: New linker script for target maxq.
1566 * NEWS: Mention the new target.
1568 2004-11-04 Daniel Jacobowitz <dan@debian.org>
1570 * Makefile.am (ALL_EMULATIONS): Remove earmelf_oabi.o.
1571 (earmelf_oabi.c): Remove rule.
1572 * configure.tgt: Remove arm-*-oabi and thumb-*-oabi.
1573 * emulparams/armelf_oabi.sh, emultempl/armelf_oabi.em: Delete files.
1574 * Makefile.in: Regenerated.
1576 2004-11-04 Hans-Peter Nilsson <hp@axis.com>
1578 * configure.tgt (crisv32-*-*): Handle like cris-*-* for non-aout.
1579 * emulparams/criself.sh (INIT_START): Remove emitted "push srp".
1580 (FINI_START): Ditto.
1581 (INIT_END): Remove emitted "jump [sp+]".
1584 2004-11-04 Alan Modra <amodra@bigpond.net.au>
1586 * emultempl/ppc64elf.em (no_tls_opt): Rename from notlsopt.
1587 (no_opd_opt, no_toc_opt): New static vars.
1588 (ppc_before_allocation): Don't edit opt if no_opd_opt. Call
1590 (OPTION_NO_OPD_OPT, OPTION_NO_TOC_OPT): Define.
1591 (PARSE_AND_LIST_LONGOPTS): Add no-opd-optimize and no-toc-optimize.
1592 (PARSE_AND_LIST_OPTIONS): Describe new options.
1593 (PARSE_AND_LIST_ARGS_CASES): Handle them.
1595 2004-10-27 Nick Clifton <nickc@redhat.com>
1597 * emultempl/alphaelf.em (alpha_after_parse): Add extra, NULL,
1598 parameter to invocation of lang_section_start.
1599 * emultempl/aix.em (_handle_option): Likewise.
1601 * Makefile.am (eelf64alpha.c, eelf64alpha_fbsd.c,
1602 eelf64alpha_nbsd.c): Add dependency upon emultempl/alphaelf.em.
1603 * Makefile.in: Regenerate.
1605 2004-10-26 Mark Mitchell <mark@codesourcery.com>
1607 * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Do not emit
1608 __exidx_{start,end} when not relocating.
1610 2004-10-25 Mark Mitchell <mark@codesourcery.com>
1612 * Makefile.in (earmsymbian.c): Depend on armbpabi.sc, not elf.sc.
1613 * ldexp.h (segment_type): New type.
1614 (segments): New variable.
1615 * ldexp.c (segments): New variable.
1616 (exp_print_token): Handle SEGMENT_START.
1617 (fold_binary): Likewise.
1618 * ldgram.y (SEGMENT_START): Declare it as a token.
1619 (exp): Handle SEGMENT_START.
1620 * ldlang.h (lang_address_statement_type): Add segment field.
1621 (lang_section_start): Change prototype.
1622 * ldlang.c (map_input_to_output_sections): Do not process section
1623 assignments if a corresponding SEGMENT_START has already been
1625 (lang_section_start): Add segment parameter.
1626 * ldlex.l (SEGMENT_START): Add it.
1627 * lexsup.c (seg_segment_start): New function.
1628 (parse_args): Use it for -Tbss, -Tdata, and -Ttext.
1629 * ld.texinfo (SEGMENT_START): Document it.
1630 * emulparams/armsymbian.sh (EMBEDDED): Set it.
1631 * scripttempl/armbpabi.sc: Use SEGMENT_START to control segment
1632 base addresses. Do not map relocations.
1633 * NEWS: Mention SEGMENT_START.
1635 2004-10-26 Paul Brook <paul@codesourcery.com>
1637 * ld.texinfo: Document --default-symver.
1638 * ldmain.c (main): Set link_info.create_default_symver.
1639 * lexsup.c (enum option_values): Add OPTION_DEFAULT_SYMVER.
1640 (ld_options): Add default-symver.
1641 (parse_args): Handle OPTION_DEFAULT_SYMVER.
1643 2004-10-24 Danny Smith <dannysmith@users.sourceforge.net>
1645 * pe-dll.c (process_def_file): Don't export all symbols by default if
1646 building a position-independent executable.
1648 2004-10-21 H.J. Lu <hongjiu.lu@intel.com>
1651 * ldmain.c (reloc_overflow): Accept a pointer to struct
1652 bfd_link_hash_entry. Report symbol location for relocation
1655 2004-10-21 H.J. Lu <hongjiu.lu@intel.com>
1657 * genscripts.sh (libpath.exp): Really generate for first
1660 2004-10-19 Danny Smith <dannysmith@users.sourceforge.net>
1662 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Simplify
1663 comparison and replacement of filenames.
1665 2004-10-19 H.J. Lu <hongjiu.lu@intel.com>
1668 * ldlang.c (load_symbols): Use the same -Bdynamic/-Bstatic
1669 option on linker script as the one for linker script.
1671 2004-10-16 Daniel Jacobowitz <dan@debian.org>
1673 * ldlang.c (struct excluded_lib, excluded_libs, add_excluded_libs)
1674 (check_excluded_libs): New.
1675 (load_symbols): Call check_excluded_libs.
1676 * ldlang.h (add_excluded_libs): New prototype.
1677 * emultempl/elf32.em (OPTION_EXCLUDED_LIBS): Define.
1678 (gld${EMULATION_NAME}_add_options): Add --exclude-libs.
1679 (gld${EMULATION_NAME}_handle_option): Handle --exclude-libs.
1680 * ld.texinfo (Command Line Variables): Document --exclude-libs.
1681 (Options Specific to i386 PE Targets): Remove --exclude-libs.
1683 2004-10-15 Alan Modra <amodra@bigpond.net.au>
1685 * ldexp.c (exp_fold_tree): Don't immediately exit ld on a
1686 failing link script assert.
1688 * ldctor.c (ldctor_add_set_entry): Fix comment typo.
1690 2004-10-14 H.J. Lu <hongjiu.lu@intel.com>
1693 * emulparams/elf64_ia64.sh (SMALL_DATA_CTOR): Set.
1694 (SMALL_DATA_DTOR): Set.
1695 * emulparams/elf64_ia64_fbsd.sh (SMALL_DATA_CTOR): Unset.
1696 (SMALL_DATA_DTOR): Unset.
1697 * scripttempl/elf.sc: If SMALL_DATA_CTOR is set, move .ctors
1698 after .data. If SMALL_DATA_DTOR is set, move .dtors after
1701 2004-10-14 Alan Modra <amodra@bigpond.net.au>
1704 * ldlang.h (lang_output_section_statement_type): Make "next" a
1705 struct lang_output_section_statement_struct *.
1706 (struct orphan_save): Move from elf32.em. Add "name" and "flags".
1707 (lang_output_section_find_by_flags, lang_insert_orphan): Declare.
1708 * ldlang.c (lang_output_section_find_1): Adjust for changed
1709 output_section_statement "next".
1710 (strip_excluded_output_sections): Likewise.
1711 (lang_record_phdrs): Likewise.
1712 (lang_output_section_find_by_flags): New function.
1713 (output_prev_sec_find): Move from pe.em. Adjust iterator.
1714 (lang_insert_orphan): New function. Tail end of elf32.em's
1715 place_orphan merged with that from pe.em. Allow bfd_section to
1716 be placed first. New heuristic for placing new output section
1717 statement in existing script, and accompanying split of __start
1718 symbol alignment into a separate assignment to dot.
1719 (lang_add_section): Consistently use output->bfd_section rather than
1720 an alias, section->output_section.
1721 (map_input_to_output_sections): Rename overly long arg. Move
1722 initialization of data_statement output section to here..
1723 (lang_check_section_addresses): ..from here.
1724 (print_assignment): Correct printing of etree_assert.
1725 (print_all_symbols): Don't bomb if userdata is NULL.
1726 (IGNORE_SECTION): Rearrange.
1727 * emultempl/elf32.em (output_rel_find): Adjust interator.
1728 (output_prev_sec_find): Delete.
1729 (struct orphan_save): Delete.
1730 (gld${EMULATION_NAME}_place_orphan): Cater for zero bfd_section
1731 flags without creating a duplicate output section statement.
1732 Revise code holding history of various orphan section placements.
1733 Allow orphan sections to place before script specified output
1734 sections. Call lang_output_section_find_by_flags when placement
1735 by name fails. Use lang_insert_orphan.
1736 * emultempl/mmo.em (output_prev_sec_find): Delete.
1737 (struct orphan_save): Delete.
1738 (mmo_place_orphan): Revise code holding history of orphan placement.
1739 Allow orphans to place before existing output sections. Use
1741 * emultempl/pe.em (output_prev_sec_find): Delete.
1742 (struct orphan_save): Delete.
1743 (gld_${EMULATION_NAME}_place_orphan): Revise to suit use of
1746 2004-10-13 Mark Mitchell <mark@codesourcery.com>
1748 * scripttempl/armbpabi.sc: Do not put .gnu.version.* into a
1751 2004-10-13 Alan Modra <amodra@bigpond.net.au>
1754 * ldcref.c (check_section_sym_xref): Delete.
1755 (check_local_sym_xref): New function.
1756 (check_nocrossrefs): Adjust call.
1757 * emultempl/pe.em (struct orphan_save): Add os_tail.
1758 (place_orphan): Backport assorted fixes from elf32.em.
1760 2004-10-12 Bob Wilson <bob.wilson@acm.org>
1762 * emultempl/xtensaelf.em: Use ISO C90 formatting.
1764 2004-10-11 Jakub Jelinek <jakub@redhat.com>
1766 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_ld_so_conf): Avoid
1767 getline for portability.
1769 * emultempl/elf32.em (gld${EMULATION_NAME}_ld_so_conf): New structure.
1770 (gld${EMULATION_NAME}_parse_ld_so_conf,
1771 gld${EMULATION_NAME}_parse_ld_so_conf_include): New functions.
1772 (gld${EMULATION_NAME}_check_ld_so_conf): Use them.
1774 2004-10-11 Alan Modra <amodra@bigpond.net.au>
1777 * ldfile.c (ldfile_try_open_bfd): Ensure dynamic objects are
1778 rejected when linking statically.
1780 2004-10-08 Daniel Jacobowitz <dan@debian.org>
1782 * configure.tgt: Include elf_x86_64 for i[3-7]86-*-solaris2*.
1784 2004-10-07 Bob Wilson <bob.wilson@acm.org>
1786 * ld.texinfo (Xtensa): Describe new linker relaxation to optimize
1787 assembler-generated longcall sequences. Describe new --size-opt
1789 * emulparams/elf32xtensa.sh (OTHER_SECTIONS): Add .xt.prop section.
1790 * emultempl/xtensaelf.em (remove_section,
1791 replace_insn_sec_with_prop_sec, replace_instruction_table_sections,
1792 elf_xtensa_after_open): New.
1793 (OPTION_OPT_SIZEOPT, OPTION_LITERAL_MOVEMENT,
1794 OPTION_NO_LITERAL_MOVEMENT): Define.
1795 (elf32xtensa_size_opt, elf32xtensa_no_literal_movement): New globals.
1796 (PARSE_AND_LIST_LONGOPTS): Add size-opt and [no-]literal-movement.
1797 (PARSE_AND_LIST_OPTIONS): Add --size-opt.
1798 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_OPT_SIZEOPT,
1799 OPTION_LITERAL_MOVEMENT, and OPTION_NO_LITERAL_MOVEMENT.
1800 (LDEMUL_AFTER_OPEN): Set to elf_xtensa_after_open.
1801 * scripttempl/elfxtensa.sc: Update with changes from elf.sc.
1802 * Makefile.am (eelf32xtensa.c): Update dependencies.
1803 * Makefile.in: Regenerate.
1805 2004-10-07 Jeff Baker <jbaker@qnx.com>
1807 * lexsup.c: Handle --warn-shared-textrel option.
1808 (ld_options): Restore alpha sorting of options.
1809 * ldmain.c (main): Initialise warn_shared_info field to FALSE.
1810 * ld.texinfo: Add documentation for --warn-shared-textrel.
1811 * NEWS: Added mention of --warn-shared-textrel option.
1813 2004-10-05 Tomer Levi <Tomer.Levi@nsc.com>
1815 * emultempl/crxelf.em (disable_relaxation): Add.
1816 (crxelf_before_allocation): Enable --relax option by default.
1817 (PARSE_AND_LIST_PROLOGUE): Add OPTION_NO_RELAX.
1818 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --no-relax.
1819 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_NO_RELAX.
1821 2004-10-04 H.J. Lu <hongjiu.lu@intel.com>
1823 * NEWS: Mention SORT_BY_NAME, SORT_BY_ALIGNMENT and
1824 --sort-section name|alignment.
1826 * ld.texinfo: Document SORT_BY_NAME, SORT_BY_ALIGNMENT and
1827 --sort-section name|alignment.
1829 * ld.h (sort_type): New enum.
1830 (wildcard_spec): Change the type of `sorted' to sort_type.
1832 * ldgram.y (SORT): Removed.
1833 (SORT_BY_NAME): Added.
1834 (SORT_BY_ALIGNMENT): Added.
1835 (wildcard_spec): Updated `sorted'. Handle SORT_BY_NAME and
1837 (input_section_spec_no_keep): Updated `sorted'.
1838 (statement): Replace SORT with SORT_BY_NAME.
1840 * ldlang.c (compare_section): New function to compare 2
1841 sections with different sorting schemes.
1842 (wild_sort): Updated. Use compare_section.
1843 (update_wild_statements): New function.
1844 (lang_process): Call update_wild_statements before
1845 map_input_to_output_sections.
1847 * ldlex.l (SORT_BY_NAME): New.
1848 (SORT_BY_ALIGNMENT): New.
1849 (SORT): Return SORT_BY_NAME.
1851 * ldmain.c (sort_section): New. Defined.
1852 (main): Initialize it to none.
1854 * lexsup.c (option_values): Add OPTION_SORT_SECTION.
1855 (ld_options): Add an entry for OPTION_SORT_SECTION.
1856 (parse_args): Handle OPTION_SORT_SECTION.
1858 * mri.c (mri_draw_tree): Updated `sorted'.
1860 2004-10-04 Jakub Jelinek <jakub@redhat.com>
1862 * ldgram.y (DATA_SEGMENT_RELRO_END): Add one argument.
1863 * scripttempl/elf.sc (DATA_SEGMENT_RELRO_END): Add 0 as first
1865 (DATA_SEGMENT_RELRO_GOTPLT_END): Pass $SEPARATE_GOTPLT as first
1866 and . as second argument.
1867 (GOTPLT): Move $DATA_SEGMENT_RELRO_GOTPLT_END before the section.
1868 * ldexp.c (fold_unary): Remove DATA_SEGMENT_RELRO_END handling here.
1869 (fold_binary): Add it here. Insert padding to make relro_end
1870 COMMONPAGESIZE bytes aligned. For DATA_SEGMENT_ALIGN in
1871 exp_dataseg_relro_adjust phase just use previously computed
1873 * ldlang.c (lang_size_sections): Set exp_data_seg.base for
1874 relro_adjust here. Call lang_size_sections_1 once more if there
1875 was too big padding at DATA_SEGMENT_RELRO_END.
1876 * ld.texinfo (DATA_SEGMENT_RELRO_END): Add documentation.
1878 2004-10-01 Paul Brook <paul@codesourcery.com>
1880 * emulparams/armelf.sh: Add unwinding table sections.
1882 2004-09-30 Filip Navara <navaraf@reactos.com>
1884 * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Generate
1885 correct base address for position independant executables.
1886 * pe-dll.c (pe_dll_fill_sections): Don't mark position independant
1887 executables as DLLs.
1889 2004-09-30 Paul Brook <paul@codesourcery.com>
1891 * ld.texinfo: Document --target2=abs.
1892 * emulparms/armsymbian.sh (TARGET2_TYPE): Set.
1894 2004-09-29 Nick Clifton <nickc@redhat.com>
1896 * scripttempl/xstormy16.sc: Only perform the assignments to the
1897 ROM region when not performing a relocatable link. The ROM region
1898 does not start at address 0, but the sections will.
1899 * Makefile.am: Fix linker script dependency for the generation of
1901 * Makefile.in: Regenerate.
1903 2004-09-18 Filip Navara <navaraf@reactos.com>
1905 * emulparams/arm_epoc_pe.sh, emulparams/armpe.sh, emulparams/i386pe.sh,
1906 emulparams/i386pe_posix.sh, emulparams/mcorepe.sh,
1907 emulparams/mipspe.sh, emulparams/ppcpe.sh, scripttempl/pe.sc: Define
1909 * scripttempl/pe.sc: Make the virtual address and file offset synced if
1910 the alignment is lower than the target page size.
1912 2004-09-27 Filip Navara <navaraf@reactos.com>
1914 * emultempl/pe.em (gld_${EMULATION_NAME}_unrecognized_file): Allow
1915 def_file_parse to handle pe_def_file if NULL and prevent crash with
1918 2004-09-27 Alan Modra <amodra@bigpond.net.au>
1920 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Enable
1921 --emit-stub-syms automatically when --emit-relocs.
1923 2004-09-24 Paul Brook <paul@codeosurcery.com>
1925 * scripttempl/elf.sc: Keep .preinit_array, .init_array and
1926 .fini_array sections.
1928 2004-09-19 Andreas Schwab <schwab@suse.de>
1930 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Adjust data segment
1931 base so that relro end is suitably aligned.
1933 2004-09-17 Paul Brook <paul@codesourcery.com>
1935 * ld.texinfo: Rename arm-specific section. Document --target*
1936 * emulparams/armelf_fbsd.sh: Set TARGET2_TYPE.
1937 * emulparams/armelf_linux.sh: Ditto.
1938 * emulparams/armelf_nbsd.sh: Ditto.
1939 * emultempl/armelf.em: Set default for TARGET2_TYPE.
1940 (target2_type): New variable.
1941 (arm_elf_before_allocation): Don't pass target1_type.
1942 (arm_elf_create_output_section_statements): New function.
1943 (PARSE_AND_LIST_PROLOGUE): Add OPTION_TARGET2.
1944 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --target=.
1945 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_TARGET2.
1946 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Set.
1947 * emultempl/armelf_oabi.em (_before_allocation): Remove extra
1948 argument to bfd_elf32_arm_process_before_allocation.
1950 2004-09-17 Alan Modra <amodra@bigpond.net.au>
1952 * ldexp.c (fold_name): Update u.undef.next refs.
1953 * emultempl/pe.em: Likewise.
1954 * emultempl/sunos.em: Likewise.
1956 2004-09-17 Alan Modra <amodra@bigpond.net.au>
1958 * Makefile.am: Run "make dep-am".
1959 * Makefile.in: Regenerate.
1960 * config.in: Regenerate.
1961 * configure: Regenerate.
1962 * aclocal.m4: Regenerate.
1963 * po/ld.pot: Regenerate.
1965 2004-09-16 Tomer Levi <Tomer.Levi@nsc.com>
1967 * scripttempl/elf32crx.sc (.init): Add KEEP for section's *personality*.
1971 2004-09-16 Alan Modra <amodra@bigpond.net.au>
1973 * emultempl/armelf_oabi.em (before_allocation): Add extra zero param
1974 to bfd_elf32_arm_process_before_allocation call.
1976 2004-09-13 Paul Brook <paul@codesourcery.com>
1978 * emulparams/armsymbian.sh: Set TARGET1_IS_REL.
1979 * emultempl/armelf.em: Use TARGET1_IS_REL. Add --target1-{rel,abs}.
1981 2004-09-07 H.J. Lu <hongjiu.lu@intel.com>
1983 * configure: Regenerated with autconfig 2.13.
1985 2004-09-07 Andreas Schwab <schwab@suse.de>
1987 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Apply data segment
1988 alignment before adjusting DATA_SEGMENT_RELRO_END.
1990 2004-09-06 Mark Mitchell <mark@codesourcery.com>
1992 * emulparams/armsymbian.sh: Use armbpabi script.
1993 * scripttempl/armbpabi.sc: New script.
1995 2004-09-02 Mark Mitchell <mark@codesourcery.com>
1997 * Makefile.am (ALL_EMULATIONS): Add earmsymbian.o.
1998 (earmsymbian.c): New target.
1999 * configure.tgt: Use armsymbian emulation for arm*-*-symbianelf*.
2000 * Makefile.in: Regenerated.
2001 * aclocal.m4: Likewise.
2002 * configure: Likewise.
2003 * emulparams/armsymbian.sh: New file.
2005 2004-09-03 Tomer Levi <Tomer.Levi@nsc.com>
2007 * scripttempl/elf32crx.sc: Edit file with comments.
2008 (.init): Add new section.
2010 (.ctor): Control the linkage order.
2013 2004-08-27 Nick Clifton <nickc@redhat.com>
2015 * emultempl/pe.em (after_open): Do not assume that either bfd is
2018 2004-08-26 Alan Modra <amodra@bigpond.net.au>
2020 * ldlang.c (lang_init): Don't compare with TRUE.
2022 2004-08-25 Dmitry Diky <diwil@spec.ru>
2024 * emulparams/msp430all.sh: Fix RAM sizes for all targets.
2025 * scripttempl/elf32msp430.sc: Add .profiler section definition.
2027 2004-08-24 H.J. Lu <hongjiu.lu@intel.com>
2029 * ldlang.c (wildcardp): Defined as a macro with strpbrk.
2031 2004-08-19 Mark Mitchell <mark@codesourcery.com>
2033 * configure.tgt (arm*-*-symbianelf*): New target.
2034 (arm*-*-eabi*): Likewise.
2036 2004-08-19 Jakub Jelinek <jakub@redhat.com>
2038 * emultempl/ppc64elf.em (non_overlapping_opd): New variable.
2039 (ppc_before_allocation): Pass it to ppc64_elf_edit_opd).
2040 (OPTION_NON_OVERLAPPING_OPD): Define.
2041 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Add
2042 --non-overlapping-opd option.
2044 2004-08-18 Alan Modra <amodra@bigpond.net.au>
2047 * ldexp.c (fold_name): Don't call bfd_link_add_undef if the symbol
2048 was already on the undefs list.
2050 2004-08-17 Alan Modra <amodra@bigpond.net.au>
2052 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern): Dot
2053 prefix the symbol field too.
2055 2004-08-13 Alan Modra <amodra@bigpond.net.au>
2057 * ldmain.c (link_callbacks): Remove "error_handler".
2058 * ldmisc.c: Include elf-bfd.h.
2059 (vfinfo): Sort comment. Handle %A. Use %A instead of
2060 bfd_get_section_indent.
2061 (error_handler): Delete.
2062 * ldmisc.h (error_handler): Delete declaration.
2064 2004-08-10 Alan Modra <amodra@bigpond.net.au>
2066 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Call
2067 ppc64_elf_restore_symbols.
2069 2004-08-09 Alan Modra <amodra@bigpond.net.au>
2071 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Error if
2072 .toc is too large on relocatable linking.
2074 2004-08-09 Alan Modra <amodra@bigpond.net.au>
2076 * emultempl/ppc64elf.em (ppc_after_open): Delete.
2077 (LDEMUL_AFTER_OPEN): Don't define.
2079 2004-08-02 Stephane Carrez <stcarrez@nerim.fr>
2081 * ld.texinfo (Top): Document specific options of 68HC11 and 68HC12.
2083 2004-08-01 Stephane Carrez <stcarrez@nerim.fr>
2085 * scripttempl/elfm68hc12.sc: Align text, rodata and data section
2088 2004-07-27 Jason Thorpe <thorpej@wasabisystems.com>
2090 * emulparams/hppanbsd.sh (OUTPUT_FORMAT): Set to "elf32-hppa-netbsd".
2092 2004-07-26 Dmitry Diky <diwil@spec.ru>
2094 * Makefile.am: Add new subtargets: msp430x1610, msp430x1611,
2095 msp430x1612, msp430x415, msp430x417, msp430xG437, msp430xG438,
2097 * configure.tgt: Likewise.
2098 * emulparams/msp430all.sh: Likewise.
2099 * Makefile.in: Regenerate.
2101 2004-07-23 Nick Clifton <nickc@redhat.com>
2103 * emultempl/elf32.em (_place_orphan): Use an already existing
2104 section name if that section does not have any flags set.
2106 2004-07-21 H.J. Lu <hongjiu.lu@intel.com>
2108 * ldlang.c (already_linked_hash_entry): Removed.
2109 (already_linked): Likewise.
2110 (already_linked_table): Likewise.
2111 (section_already_linked): Call bfd_section_already_linked.
2112 (lang_process): Replace already_linked_table_init with
2113 bfd_section_already_linked_table_init and check return. Replace
2114 already_linked_table_free with bfd_section_already_linked_table_free.
2116 2004-07-21 Nick Clifton <nickc@redhat.com>
2118 * ldlang.c (init_os): Make sure that the newly allocated userdata
2119 structure is zeroed out.
2121 2004-07-19 H.J. Lu <hongjiu.lu@intel.com>
2123 * NEWS: Mention the new --add-needed/--no-add-needed and
2124 --as-needed/--no-as-needed options.
2126 2004-07-19 H.J. Lu <hongjiu.lu@intel.com>
2128 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): Also
2129 check the add_needed field.
2130 (dt_needed): New struct.
2131 (gld${EMULATION_NAME}_try_needed): Change the first argument
2132 to a pointer to struct dt_needed. Check the DYN_NO_ADD_NEEDED
2133 bit in the file where the DT_NEEDED entry comes from.
2134 (gld${EMULATION_NAME}_search_needed): Change the second
2135 argument to a pointer to struct dt_needed.
2136 (gld${EMULATION_NAME}_check_ld_so_conf): Updated.
2137 (gld${EMULATION_NAME}_after_open): Likewise.
2139 * ld.texinfo: Add --add-needed document.
2140 * ldlang.c (new_afile): Set p->add_needed.
2141 * ldlang.h (lang_input_statement_type): Add add_needed field.
2142 * ldmain.h (add_needed): Declare.
2143 * ldmain.c (add_needed): New global var.
2144 * lexsup.c (option_values): Add OPTION_ADD_NEEDED and
2145 OPTION_NO_ADD_NEEDED.
2146 (ld_options): Likewise.
2147 (parse_args): Handle them.
2149 2004-07-13 Christof Petig <christof@petig-baender.de>
2151 * emultempl/pe.em (make_import_fixup): Use bfd_get_32 to correct
2152 for endian-ness of extracted addend.
2154 2004-07-13 Danny Smith <dannysmith@usesr.sourceforge.net>
2156 * pe-dll.c (auto_export): Filter on just the import prefix,
2157 "_imp_", not "_imp__".
2159 2004-07-09 Nick Clifton <nickc@redhat.com>
2161 * configure.tgt: Change sh-sybmian-elf to sh-*-symbianelf.
2163 2004-07-06 Tomer Levi <Tomer.Levi@nsc.com>
2165 * Makefile.am (ALL_EMULATIONS): Add eelf32crx.o.
2166 (eelf32crx.c): New target.
2167 * Makefile.in: Regenerate.
2168 * configure.tgt: Handle crx-*-elf*.
2169 * emulparams/elf32crx.sh: New file.
2170 * emultempl/crxelf.em: New file.
2171 * scripttempl/elf32crx.sc: New file.
2172 * NEWS: Mention new target.
2174 2004-07-06 Nick Clifton <nickc@redhat.com>
2176 * Makefile.am: Add eshlsymbian.c.
2177 * Makefile.in: Regenerate.
2178 * configure.tgt: Add sh*-symbian-elf target.
2179 * emulparams/shlsymbian.sh: New file. Configure the
2180 sh-symbian-elf linker scripts.
2181 * scripttemp/elf32sh-symbian.sc: New file. Linker script
2182 template for the sh-symbian-elf target.
2184 2004-07-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2186 * emulparams/hppa64linux.sh: Define PLT_BEFORE_GOT.
2187 * emulparams/hppalinux.sh: Likewise.
2188 * scripttempl/elf.sc: Place .plt just before .got when .plt is in
2189 data segment and PLT_BEFORE_GOT is defined.
2191 2004-07-03 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
2193 * ld.texinfo (WIN32): Document PE weak symbols.
2195 2004-07-02 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2197 * emulparams/shlelf32_linux.sh (COMMONPAGESIZE): Set to 4KB.
2199 2004-07-01 H.J. Lu <hongjiu.lu@intel.com>
2201 * ldmisc.c (vfinfo): Call bfd_get_section_ident to identify
2204 2004-06-29 Alan Modra <amodra@bigpond.net.au>
2206 * ldlang.c (lang_reset_memory_regions): Save last relax pass section
2209 2004-06-24 Alan Modra <amodra@bigpond.net.au>
2211 * ldlang.c (print_output_section_statement): Don't print size before
2213 (IGNORE_SECTION): Remove bfd arg. Update all callers.
2215 * ldexp.c (fold_name): .. See below.
2216 * ldlang.c (section_already_linked, print_output_section_statement,
2217 print_input_section, insert_pad, size_input_section,
2218 lang_check_section_addresses, lang_size_sections_1,
2219 lang_size_sections, lang_do_assignments_1, lang_set_startof,
2220 lang_one_common, lang_reset_memory_regions, lang_process,
2221 lang_abs_symbol_at_end_of, lang_do_version_exports_section): ..
2222 * ldwrite.c (build_link_order, clone_section, ds, split_sections): ..
2223 * pe-dll.c (process_def_file, generate_reloc): ..
2224 * emultempl/elf32.em (gld${EMULATION_NAME}_find_statement_assignment,
2225 gld${EMULATION_NAME}_before_allocation): ..
2226 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): ..
2227 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_before_allocation,
2228 sh64_elf_${EMULATION_NAME}_after_allocation): ..
2229 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): ..
2230 * emultempl/xtensaelf.em (ld_assign_relative_paged_dot,
2231 ld_local_file_relocations_fit, ld_xtensa_insert_page_offsets): Use
2232 "size" instead of "_raw_size" and "_cooked_size". Expand
2233 bfd_section_size macro invocations.
2235 2004-06-22 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
2237 * ld/scripttemp/pe.sc (.CRT): Define ___crt_xc_start__,
2238 ___crt_xc_end__, ___crt_xi_start__, ___crt_xi_end__, ___crt_xl_start__,
2239 ___crt_xp_start__, ___crt_xp_end__, ___crt_xt_start__ and
2241 (.tls): Define ___tls_start__ and ___tls_end__.
2243 2004-06-21 Alexandre Oliva <aoliva@redhat.com>
2245 * emulparams/elf32frvfd.sh (GENERATE_PIE_SCRIPT): Set to yes.
2247 2004-06-18 Adam Nemet <anemet@lnxw.com>
2249 * configure.in: Set EXTRA_SHLIB_EXTENSION to .a for LynxOS.
2250 * configure: Regenerate.
2252 2004-06-15 Jakub Jelinek <jakub@redhat.com>
2254 * scripttempl/elf.sc: Readd KEEP and .gcc_except_table.* to
2255 .gcc_except_table output sections lost accidentally with
2258 2004-06-15 Alan Modra <amodra@bigpond.net.au>
2260 * ldwrite.c (build_link_order): Use bfd_get_section_size
2261 instead of bfd_get_section_size_before_reloc or _raw_size.
2262 * pe-dll.c (process_def_file): Likewise.
2264 2004-06-14 Alan Modra <amodra@bigpond.net.au>
2266 From Richard Wirth <r.wirth@wirthware.de>
2267 * ldlang.c (lang_finish): Don't free lang_definedness_table.
2269 2004-05-29 Alan Modra <amodra@bigpond.net.au>
2271 * ldlang.c (gc_section_callback): Move SEC_EXCLUDE twiddles..
2272 (lang_gc_sections): .. to a LANG_FOR_EACH_INPUT_STATEMENT loop here.
2274 2004-05-28 Alan Modra <amodra@bigpond.net.au>
2276 * ldlang.c: Formatting. Wrap long lines, expand bfd_get_section_flags
2278 * lexsup.c: Formatting. Wrap long lines.
2279 * ldwrite.c: Update copyright date.
2281 * ldlang.c (lang_add_section): Don't twidlle SEC_EXCLUDE here.
2282 (output_section_callback): Nor SEC_KEEP here.
2283 (gc_section_callback): Twiddle SEC_EXCLUDE here.
2284 (lang_gc_wild): Delete. Fold into..
2285 (lang_gc_sections_1): ..here. Only call bfd_gc_sections when garbage
2287 (lang_process): Always call lang_gc_sections.
2288 (lang_place_orphans): Handle SEC_EXCLUDE sections.
2289 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Remove
2292 2004-05-26 H.J. Lu <hongjiu.lu@intel.com>
2294 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Clear
2295 SEC_EXCLUDE on non-SEC_DEBUGGING sections for relocatable link.
2296 * ldlang.c (lang_add_section): Likewise.
2298 2004-05-26 Alan Modra <amodra@bigpond.net.au>
2300 * ldlang.c (lang_add_section): Set SEC_EXCLUDE for SEC_GROUP
2301 sections when doing a final link. Clear SEC_EXCLUDE when doing
2302 a relocable link, except for SEC_DEBUGGING sections.
2303 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Use the
2304 same condition here to drop SEC_EXCLUDE orphan sections.
2306 2004-05-25 Alan Modra <amodra@bigpond.net.au>
2308 * ldlang.c (lang_process): Call bfd_merge_sections later, and
2309 only when not a relocatable link.
2310 (print_input_section): Handle SEC_EXCLUDE sections.
2311 (size_input_section): Don't update dot on SEC_EXCLUDE sections.
2312 (lang_do_assignments_1): Likewise.
2313 * ldwrite.c (build_link_order): Ignore SEC_EXCLUDE input sections.
2314 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Likewise.
2315 * emultempl/hppaelf.em (build_section_lists): Likewise.
2316 * emultempl/ppc64elf.em (build_toc_list): Likewise.
2317 (build_section_lists): Likewise.
2319 2004-05-23 Andreas Schwab <schwab@suse.de>
2321 * ld.texinfo (Options): Fix typo in last change.
2323 2004-05-21 Andy Chittenden <achittenden@bluearc.com>
2325 * ld.h (ld_config_type): Add new field: hash_table_size.
2326 * ldmain.c: Initialise the new field to zero. If it is non-zero
2327 after parsing the linker's command line call
2328 bfd_hash_set_default_size.
2329 * lexsup.c (option_values): Add OPTION_HASH_SIZE.
2330 (ld_options): Add hash-size.
2331 (parse_args): Parse --hash-size option. Allow
2332 --reduce-memory-overheads to set the default hash table size as
2334 * ld.texinfo: Document the new switch. Also mention that
2335 --reduce-memory-overheads can affect the hash table size.
2336 * NEWS: Mention the new feature.
2338 2004-05-19 J"orn Rennecke <joern.rennecke@superh.com>
2340 * NEWS: Mention new linker map file generation and the
2341 --reduce-memory-overheads option.
2342 * ld.texinfo: Document --reduce-memory-overheads option.
2343 * ld.h (map_symbol_def): New struct.
2344 (struct user_section_struct, section_userdata_type): Rename to:
2345 (struct lean_user_section_struct, lean_section_userdata_type).
2346 (struct fat_user_section_struct, fat_section_userdata_type): New.
2347 (SECTION_USERDATA_SIZE): Define.
2348 (args_type): New member reduce_memory_overheads.
2349 * ldlang.c (map_obstack): New static variable.
2350 (init_map_userdata, print_all_symbols, sort_def_symbol): New functions.
2351 (lang_map): Unless command_line.reduce_memory_overheads is set,
2352 initialize lists of defined symbols for each section.
2353 (print_input_section): Unless command_line.reduce_memory_overheads
2354 is set, use print_all_symbols.
2355 (init_os): Use lean_section_userdata_type / SECTION_USERDATA_SIZE.
2356 * ldmain.c (main): Initialize command_line.reduce_memory_overheads.
2357 * lexsup.c (enum option_values): Add OPTION_REDUCE_MEMORY_OVERHEADS.
2358 (ld_options): Add entry for --reduce-memory-overheads.
2359 (parse_args): Handle OPTION_REDUCE_MEMORY_OVERHEADS.
2361 2004-05-19 Jakub Jelinek <jakub@redhat.com>
2363 * ldgram.y (sect_constraint): New.
2364 (ONLY_IF_RO, ONLY_IF_RW): New tokens.
2365 (section): Add sect_constraint. Pass additional argument
2366 to lang_enter_output_section_statement.
2367 * mri.c (mri_draw_tree): Pass additional argument to
2368 lang_enter_output_section_statement.
2369 * emultempl/pe.em (place_orphan): Likewise.
2370 (output_prev_sec_find): Disregard output section statements with
2372 * emultempl/mmo.em (output_prev_sec_find): Likewise.
2373 (mmo_place_orphan): Pass additional argument to
2374 lang_enter_output_section_statement.
2375 * emultempl/elf32.em (output_prev_sec_find): Disregard output section
2376 statements with constraint == -1.
2377 (place_orphan): Pass additional argument to
2378 lang_enter_output_section_statement.
2379 * ldlang.c (lang_enter_overlay_section): Likewise.
2380 (lang_output_section_find_1): New.
2381 (lang_output_section_find): Use it.
2382 (lang_output_section_statement_lookup_1): New.
2383 (lang_output_section_statement_lookup): Use it.
2384 (check_section_callback, check_input_sections): New.
2385 (map_input_to_output_sections): Check if all input sections
2386 are readonly if ONLY_IF_RO or ONLY_IF_RW was seen.
2387 (strip_excluded_output_sections): Disregard output section statements
2388 with constraint == -1.
2389 (lang_record_phdrs): Likewise.
2390 (lang_enter_output_section_statement): Add constraint argument.
2391 Use lang_output_section_statement_lookup_1.
2392 * ldlang.h (lang_output_section_statement_type): Add constraint
2393 and all_input_readonly fields.
2394 (lang_enter_output_section_statement): Adjust prototype.
2395 * ldlex.l (ONLY_IF_RO, ONLY_IF_RW): New tokens.
2396 * scripttempl/elf.sc (.eh_frame, .gcc_except_table): Move into text
2397 segment if all input sections are readonly.
2399 2004-05-19 Adam Nemet <anemet@lnxw.com>
2401 * scripttempl/i386lynx.sc: Remove file.
2403 2004-05-17 Bob Wilson <bob.wilson@acm.org>
2405 * ld.texinfo (Output Section Address): Correct subsection name.
2407 2004-05-17 Adam Nemet <anemet@lnxw.com>
2409 * configure.tgt (powerpc-*-lynxos* case): New case.
2410 * configure.host (i[3-7]86-*-lynxos* case): Remove case.
2411 * emulparams/ppclynx.sh: New file.
2412 * emulparams/i386lynx.sh (SCRIPT_NAME): Update to LynxOS 4.0.
2413 * Makefile.am (ALL_EMULATIONS): Add eppclynx.o
2414 (ei386lynx.c): Update rule to LynxOS 4.0 ELF.
2415 (eppclynx.c): New rule.
2416 * Makefile.in: Regenerate.
2418 2004-05-13 Joel Sherrill <joel@oarcorp.com>
2420 * configure.tgt (or32-*-rtems*): Switch to elf and
2421 support versioned targets.
2423 2004-05-13 Nick Clifton <nickc@redhat.com>
2425 * po/fr.po: Updated French translation.
2427 2004-05-11 Jakub Jelinek <jakub@redhat.com>
2429 * genscripts.sh: Generate -z combreloc -z now -z relro scripts
2430 for binaries, -shared and -pie.
2431 * emulparams/elf_i386.sh (SEPARATE_GOTPLT): Set.
2432 * emulparams/elf_x86_64.sh (SEPARATE_GOTPLT): Set.
2433 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Rename to...
2434 (OTHER_RELRO_SECTIONS): ... this.
2435 * ldlex.l (DATA_SEGMENT_RELRO_END): Add.
2436 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Handle
2437 -z relro and -z norelro.
2438 (gld${EMULATION_NAME}_list_options): Add it to usage.
2439 (gld${EMULATION_NAME}_get_script): Return -z combreloc -z now
2440 -z relro scripts when appropriate.
2441 * scripttempl/elf.sc: Unset SEPARATE_GOTPLT if RELRO_NOW is set.
2442 Create separate .got.plt section if SEPARATE_GOTPLT.
2443 Move sections which are only written during relocation handling
2444 to the beginning of RW segment. If NO_SMALL_DATA, move .got
2445 before .data. Add DATA_SEGMENT_RELRO_END directive.
2446 Include OTHER_RELRO_SECTIONS.
2447 * ldgram.y (DATA_SEGMENT_RELRO_END): Add.
2448 * ldexp.c (exp_print_token): Handle DATA_SEGMENT_RELRO_END.
2449 (fold_unary): Likewise.
2450 (fold_binary): Handle -z relro.
2451 * ldexp.h (struct exp_data_seg): Add exp_dataseg_relro_seen and
2452 exp_dataseg_relro_adjust phases. Add relro_end field.
2453 * ldmain.c (main): Initialize link_info.relro to FALSE.
2454 * ldlang.c (lang_size_sections): Handle -z relro.
2456 2004-05-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
2458 * scripttempl/avr.sc: Do not set LMA for "eeprom" section.
2460 2004-05-07 J"orn Rennecke <joern.rennecke@superh.com>
2462 * ldlang.c (print_padding_statement): Cast size_t to bfd_vma
2463 before printing it with %W.
2465 2004-05-07 Brian Ford <ford@vss.fsi.com>
2466 DJ Delorie <dj@redhat.com>
2468 * emultempl/pe.em (real_flags): New static.
2469 (OPTION_LARGE_ADDRESS_AWARE): New define.
2470 (gld${EMULATION_NAME}_add_options): Add --large-address-aware option.
2471 (gld_${EMULATION_NAME}_list_options): Likewise.
2472 (gld${EMULATION_NAME}_handle_option): Likewise.
2473 (gld_${EMULATION_NAME}_after_open): Pass real_flags to PE private data.
2474 * ld.texinfo: Document it.
2477 2004-05-07 Brian Ford <ford@vss.fsi.com>
2479 * NEWS: Mention DWARF 2 support for i386pe.
2481 2004-05-05 Alexandre Oliva <aoliva@redhat.com>
2483 * emulparams/elf32frvfd.sh (OUTPUT_FORMAT): Switch to new
2486 2004-04-30 Alan Modra <amodra@bigpond.net.au>
2488 * ldlang.c (unique_section_p): Pass section parm, return true on
2490 (output_section_callback): Adjust.
2491 * ldlang.h (unique_section_p): Update prototype.
2492 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust.
2494 2004-04-30 Eric Botcazou <ebotcazou@act-europe.fr>
2496 * ld.texinfo (--gc-sections): Remove restriction for
2499 2004-04-29 Brian Ford <ford@vss.fsi.com>
2501 * scripttempl/pe.sc: Handle .debug* and .gnu.linkonce.wi.* sections
2502 for DWARF 2/3. Update stab section's syntax.
2504 2004-04-29 Alan Modra <amodra@bigpond.net.au>
2506 * pe-dll.c: Revert changes accidentally committed 2004-03-08.
2507 (fill_edata): Correct pointer arithmetic.
2509 2004-04-21 Chris Demetriou <cgd@broadcom.com>
2511 * ld.texinfo: Remove MIPS --embedded-relocs documentation.
2512 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Remove definition.
2513 * emulparams/mipsidt.sh (TEMPLATE_NAME): Use generic.em.
2514 (EXTRA_EM_FILE): Use mipsecoff.em
2515 * emulparams/mipsidtl.sh (TEMPLATE_NAME): Use generic.em.
2516 (EXTRA_EM_FILE): Use mipsecoff.em
2517 * emultempl/mipsecoff.em: Restructure to be included as an
2518 extra emulation file.
2519 (check_sections, gld${EMULATION_NAME}_after_open)
2520 (gld${EMULATION_NAME}_after_allocation)
2521 (gld${EMULATION_NAME}_get_script)
2522 (ld_${EMULATION_NAME}_emulation): Remove
2523 (gld${EMULATION_NAME}_before_parse): Rename to...
2524 (mipsecoff_before_parse): This.
2525 (LDEMUL_BEFORE_PARSE): Define.
2526 * emultempl/mipself.em: Remove file.
2527 * scripttempl/mips.sc (.rel.sdata): Do not include in output.
2528 (__runtime_reloc_start, __runtime_reloc_stop): Stop providing
2530 * Makefile.am: Remove dependencies on emultempl/mipself.em.
2531 * Makefile.in: Regenerate.
2533 2004-04-21 Anil Paranjpe <anilp1@kpitcummins.com>
2535 * ld.texinfo (synthesizing on H8/300): Information about linker
2536 relaxation support for bit manipulation instructions and system
2537 control instructions is added.
2539 2004-04-21 Hans-Peter Nilsson <hp@axis.com>
2541 * NEWS: Mention change in DEFINED semantics.
2543 2004-04-21 Eric Botcazou <ebotcazou@act-europe.fr>
2545 * scripttempl/elf.sc (.text): Add KEEP for .text.*personality*.
2546 (.data): Add KEEP for .gnu.linkonce.d.*personality*.
2547 (.gcc_except_table): Add KEEP for self and accept .gcc_except_table.*.
2549 2004-04-21 Ben Elliston <bje@au.ibm.com>
2551 * ld.texinfo (Simple Example): Add missing punctuation.
2553 2004-04-20 Chris Demetriou <cgd@broadcom.com>
2555 * NEWS: Note that MIPS --embedded-relocs option is deprecated.
2557 2004-04-19 Jakub Jelinek <jakub@redhat.com>
2559 * ldlang.c (lang_do_assignments_1): Handle .tbss output section
2562 2004-04-18 Danny Smith <dannysmith@users.sourceforge.net>
2564 * scriptempl/pe.sc: Put numbered .ctors.* after .ctors
2565 with default priority. Likewise for dtors.
2567 2004-04-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2569 * configure.host: Remove mips*-dec-bsd* target.
2570 * configure.tgt: Likewise.
2572 2004-04-08 Richard Sandiford <rsandifo@redhat.com>
2574 * emulparams/elf32bsmip.sh (EXTRA_EM_FILE): Define to irix.
2575 * emulparams/elf64bmip.sh (EXTRA_EM_FILE): Likewise.
2576 * emulparams/elf32bmipn32.sh (EXTRA_EM_FILE): Likewise.
2577 * emultempl/irix.em: New file.
2578 * Makefile.am (eelf32bsmip.c, eelf32bmipn32.c, eelf64bmip.c): Update
2580 * Makefile.in: Regenerate.
2582 2004-04-01 Paul Brook <paul@codesourcery.com>
2584 * emultempl/armelf.em (byteswap_code): Add.
2585 (arm_elf_before_allocation): Pass extra parameter.
2586 (PARSE_AND_LIST_PROLOGUE): Add OPTION_BE8.
2587 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add be8.
2588 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_BE8.
2589 * emultempl/armelf_oabi.em: Pass extra parameter.
2590 * ld.texinfo: Document --be8.
2592 2004-03-30 Stan Shebs <shebs@apple.com>
2594 Remove long-obsolete MPW support.
2595 * mpw-config.in, mpw-make.sed, mac-ld.r: Remove files.
2596 * Makefile.am (mpw): Remove file-presynthesizing actions.
2597 * Makefile.in: Likewise.
2598 * ldfile.c (slash): Remove MPW case.
2599 * ldlex.l [MPW]: Remove unused definition.
2601 2004-03-30 Galit Heller <Galit.Heller@nsc.com>
2603 * Makefile.am (ALL_EMULATIONS): Add eelf32cr16c.o.
2604 (eelf32cr16c.c): New target.
2605 * Makefile.in: Regenerate.
2606 * configure.tgt: Handle cr16c-*-elf*.
2607 * emulparams/elf32cr16c.sh: New file.
2608 * scripttempl/elfcr16c.sc: Likewise
2609 * NEWS: Mention support for new target.
2611 2004-03-30 Nick Clifton <nickc@redhat.com>
2613 * po/sv.po: Updated Swedish translation.
2615 2004-03-27 Alan Modra <amodra@bigpond.net.au>
2617 * emultempl/elf32.em: Update new bfd_elf_discard_info name.
2618 * emultempl/hppaelf.em: Likewise.
2619 * emultempl/ppc64elf.em: Likewise.
2620 * emultempl/sh64elf.em: Likewise.
2622 2004-03-25 Alan Modra <amodra@bigpond.net.au>
2624 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Update
2625 size_dynamic_sections call.
2627 2004-03-23 Alan Modra <amodra@bigpond.net.au>
2630 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Set
2631 link_info.wrap_char.
2633 2004-03-20 H.J. Lu <hongjiu.lu@intel.com>
2635 * lexsup.c (parse_args): Don't set unresolved_syms_in_objects
2636 or unresolved_syms_in_shared_libs for -Bdynamic and -Bstatic.
2638 2004-03-20 Alexandre Oliva <aoliva@redhat.com>
2640 * emulparams/elf32frvfd.sh (MAXPAGESIZE): Change to 16Kb.
2642 2004-03-19 Alan Modra <amodra@bigpond.net.au>
2644 * config.in: Regenerate.
2645 * po/ld.pot: Regenerate.
2647 2004-03-18 Alan Modra <amodra@bigpond.net.au>
2649 * ld.texinfo: Add --as-needed doco.
2650 * ldmain.c (as_needed): New global var.
2651 * ldmain.h (as_needed): Declare.
2652 * lexsup.c (option_values): Add OPTION_AS_NEEDED and
2653 OPTION_NO_AS_NEEDED.
2654 (ld_options): Likewise.
2655 (parse_args): Handle them.
2656 * ldlang.h (lang_input_statement_type): Add as_needed field.
2657 * ldlang.c (new_afile): Set p->as_needed.
2658 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): New function.
2659 (gld${EMULATION_NAME}_try_needed): Use bfd_elf_set_dyn_lib_class.
2660 (ld_${EMULATION_NAME}_emulation): Set LDEMUL_RECOGNIZED_FILE entry.
2662 * ldlang.c (open_input_bfds): Remove useless cast.
2663 (lang_do_assignments_1): Likewise.
2664 (lang_for_each_input_section): Delete.
2666 2004-03-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
2668 * configure.tgt: Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff*.
2670 2004-03-08 Danny Smith <dannysmith@users.sourceforge.net>
2672 * pe-dll.c (pe_dll_generate_implib): Skip sections marked as
2673 private when building implib.
2675 2004-03-05 Nathan Sidwell <nathan@codesourcery.com>
2677 * ldlang.c (lang_add_section): Don't force SEC_LOAD on
2679 (IGNORE_SECTION): Ignore .tbss sections too.
2680 (lang_size_sections_1): .tbss sections do not advance dot.
2682 2004-03-01 Andreas Schwab <schwab@suse.de>
2684 * ld.texinfo (Options): Fix example for --wrap.
2686 2004-02-25 Danny Smith <dannysmith@users.sourceforge.net>
2688 * pe-dll.c (fill_edata): Check that exported_symbol_sections is
2691 2004-02-23 Ian Lance Taylor <ian@wasabisystems.com>
2693 * ldlang.c (lang_check): Use %P, not %E, in error message.
2695 2004-02-23 Nathan Sidwell <nathan@codesourcery.com>
2697 * ldlang.h (struct lang_output_section_state): Change processed
2699 * ldexp.c (check, invalid): Remove.
2700 (fold_name): Move valid_p assignments. Create undefined symbol
2701 when needed. Directly exampine section's processd flag.
2702 * ldlang.c (lang_output_section_statement_lookup): Adjust
2703 processed field init.
2704 (lang_size_sections_1): Allow LOADADDR when determining section's
2705 VMA. Adjust error message. Fold data statement's expr.
2706 (lang_size_sections): Correctly increment lang_statement_iteration.
2708 2004-02-23 Alan Modra <amodra@bigpond.net.au>
2710 * ldexp.c (fold_tree): Follow indirect symbols.
2712 2004-02-20 Nathan Sidwell <nathan@codesourcery.com>
2714 * ldgram.y (exp): Add two operand ALIGN.
2715 * ldexp.c (fold_binary): Add ALIGN_K case.
2716 * ld.texinfo (ALIGN): Document two operand version.
2718 2004-02-19 Nathan Sidwell <nathan@codesourcery.com>
2720 * ldlang.c (map_input_to_output_sections): Initialize sections
2721 mentioned in a data statement expression.
2722 (lang_do_assignments_1): Add data statement's expression's
2725 2004-02-18 Nathan Sidwell <nathan@codesourcery.com>
2727 * ldgram.y (statement_anywhere): Add assert rule.
2728 * ldlang.c (exp_init_os): Add assert case.
2730 2004-02-14 Andrew Cagney <cagney@redhat.com>
2732 * ldmain.c (remove_output): Call bfd_cache_close.
2734 2004-02-14 Richard Sandiford <rsandifo@redhat.com>
2736 * emulparams/elf32bmipn32-defs.sh (OTHER_SECTIONS): Discard
2737 .MIPS.content* and .MIPS.events* sections.
2739 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
2741 * emulparams/armelf.sh, emulparams/armelf_linux.sh: Move
2742 .note.gnu.arm.ident to after allocated sections. Mark its
2745 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
2747 * emulparams/armelf_linux.sh (COMMONPAGESIZE): Set to 4KB.
2748 * emulparams/elf32bmip.sh (COMMONPAGESIZE): Likewise.
2749 * emulparams/elf32bmipn32.sh (COMMONPAGESIZE): Likewise.
2750 * emulparams/elf32btsmipn32.sh (COMMONPAGESIZE): Likewise.
2751 * emulparams/shlelf_linux.sh (COMMONPAGESIZE): Likewise.
2753 2004-02-05 Nick Clifton <nickc@redhat.com>
2755 * emultempl/pe.em (_after_open): Fix typo in previous delta.
2757 2004-02-04 Danny Smith <dannysmith@users.sourceforge.net>
2759 * emultempl/pe.em (_after_open): Fix thinko in 2003-12-18 patch.
2761 2004-01-28 Alan Modra <amodra@bigpond.net.au>
2763 * genscripts.sh: Fix typo.
2765 * genscripts.sh: Apply $LIBPATH_SUFFIX to $tool_lib and $libdir too.
2767 2004-01-24 Jakub Jelinek <jakub@redhat.com>
2769 * emulparams/elf64_ia64.sh: Put .rela.opd into
2770 OTHER_GOT_RELOC_SECTIONS instead of OTHER_PLT_RELOC_SECTIONS.
2772 2004-01-20 Danny Smith <dannysmith@users.sourceforge.net>
2774 * pe-dll.c (pe_create_import_fixup): Clear WP_TEXT flag.
2775 * ld.texinfo (--omagic): Note that writable text section
2776 does not conform to published PE-COFF specs.
2777 (--enable-auto-import): Likewise.
2779 2004-01-15 Alan Modra <amodra@bigpond.net.au>
2781 * emulparams/elf32ppc.sh (COMMONPAGESIZE): Define.
2783 2004-01-13 Nick Clifton <nickc@redhat.com>
2785 * ldlang.c (lang_get_regions): Add extra parameter 'have_vma'
2786 which if true will prevent the LMA region being used as a
2787 replacement for a default VMA region.
2788 (lang_leave_output_section_statement): Pass extra parameter.
2789 (lang_leave_overlay): Likewise.
2790 * ld.texinfo (Output Section LMA): Document that the LMA
2791 region can be set to the VMA region if no VMA has been set.
2792 * ldlang.h (struct lang_output_section_phdr_list): Create a
2793 typedef for this type. Minor formatting fixes.
2795 2004-01-13 Nick Clifton <nickc@redhat.com>
2797 * ldlang.c (lang_size_sections_1): If dot is advanced, then
2798 assume that the section should be allocated.
2800 2004-01-13 Alan Modra <amodra@bigpond.net.au>
2802 * ldlang.c (IGNORE_SECTION): Don't ignore SEC_ALLOC && !SEC_LOAD
2803 sections. Do ignore SEC_NEVER_LOAD sections.
2804 (lang_size_sections_1): Remove test made redundant with the above.
2806 2004-01-09 Alan Modra <amodra@bigpond.net.au>
2808 * emultempl/ppc64elf.em (ppc_before_allocation): Clear cached
2809 program_header_size.
2811 2004-01-06 Alexandre Oliva <aoliva@redhat.com>
2813 2003-11-28 Alexandre Oliva <aoliva@redhat.com>
2814 * emulparams/elf32frvfd.sh (EMBEDDED): Clear.
2815 2003-11-05 Alexandre Oliva <aoliva@redhat.com>
2816 * emulparams/elf32frvfd.sh (STACK_ADDR): Unset.
2817 (MAXPAGESIZE): Set to 64Kb.
2818 (OTHER_READONLY_SECTIONS): Define __ROFIXUP_LIST__ and
2819 __ROFIXUP_END__. Don't map .rofixup.got any more.
2820 * emulparams/elf32frv.sh (NOP): Set.
2821 2003-10-31 Alexandre Oliva <aoliva@redhat.com>
2822 * configure.tgt: Add frv-*-*linux*.
2823 2003-09-30 Alexandre Oliva <aoliva@redhat.com>
2824 * Makefile.am (ALL_EMULATIONS): Added eelf32frvfd.o.
2825 (eelf32frvfd.c): New.
2826 * configure.tgt <frv-*-*>: Added it to targ_extra_emuls.
2827 * emulparams/elf32frv.sh: Reverted previous two patches.
2828 * emulparams/elf32frvfd.sh: New.
2829 * Makefile.in: Rebuilt.
2830 2003-09-18 Alexandre Oliva <aoliva@redhat.com>
2831 * emulparams/elf32frv.sh (OTHER_READONLY_SECTIONS): Added
2832 .rofixup.got to .rofixup.
2833 2003-09-15 Alexandre Oliva <aoliva@redhat.com>
2834 * emulparams/elf32frv.sh (MAXPAGESIZE): Make it 256KiB, not 256B.
2835 (TEMPLATE_NAME, GENERATE_SHLIB_SCRIPT): Set.
2837 2004-01-05 Jakub Jelinek <jakub@redhat.com>
2839 * emulparams/elf_s390.sh (NO_SMALL_DATA): Set to yes.
2840 * emulparams/elf64_s390.sh (NO_SMALL_DATA): Set to yes.
2842 2004-01-03 Alan Modra <amodra@bigpond.net.au>
2844 * ldexp.c (align_n): Make static.
2845 * ldexp.h (align_n): Delete declaration.
2846 * ldlang.h (lang_enter_output_section_statement): Remove
2848 * ldlang.c (lang_enter_output_section_statement): Likewise.
2849 (TO_ADDR, TO_SIZE): Define.
2850 (opb_shift): New var.
2851 (init_opb): New function.
2852 (print_input_section): Call init_opb and use TO_ADDR.
2853 (print_data_statement, print_reloc_statement): Likewise.
2854 (print_padding_statement): Likewise.
2855 (size_input_section): Use TO_SIZE and TO_ADDR, and global opb_shift.
2856 (lang_check_section_addresses): Likewise.
2857 (lang_size_sections_1): Likewise.
2858 (lang_do_assignments_1): Likewise.
2859 (lang_set_startof): Likewise.
2860 (lang_one_common): Likewise. Combine power_of_two and opb_shift align.
2861 (lang_process): Call init_opb.
2862 (lang_abs_symbol_at_end_of): Use TO_ADDR and global opb_shift.
2863 (lang_enter_overlay_section): Adjust
2864 lang_enter_output_section_statement call.
2865 * ldgram.y: Likewise.
2866 * mri.c (mri_draw_tree): Likewise.
2867 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Likewise.
2868 * emultempl/mmo.em (mmo_place_orphan): Likewise.
2869 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Likewise.
2871 * ldfile.c (ldfile_set_output_arch): Add defarch param.
2872 * ldfile.h (ldfile_set_output_arch): Ditto.
2873 * emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Use
2874 ldfile_set_output_arch.
2875 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Ditto.
2876 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Ditto.
2877 * emultempl/linux.em (gld${EMULATION_NAME}_before_parse): Ditto.
2878 * emultempl/mipsecoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
2879 * emultempl/pe.em (gld${EMULATION_NAME}_before_parse): Ditto.
2880 * emultempl/sunos.em (gld${EMULATION_NAME}_before_parse): Ditto.
2881 * ldgram.y: Adjust ldfile_set_output_arch call.
2882 * emultempl/armcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
2883 * emultempl/armelf.em (gld${EMULATION_NAME}_before_parse): Ditto.
2884 * emultempl/armelf_oabi.em (gld${EMULATION_NAME}_before_parse): Ditto.
2885 * emultempl/generic.em (gld${EMULATION_NAME}_before_parse): Ditto.
2886 * emultempl/gld960c.em (gld960_set_output_arch): Ditto.
2887 * emultempl/m68kcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
2888 * emultempl/ticoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
2890 2004-01-02 Bernardo Innocenti <bernie@develer.com>
2892 * configure.tgt: Add m68k-uClinux target.
2894 For older changes see ChangeLog-0203
2900 version-control: never