1 2005-09-08 Jakub Jelinek <jakub@redhat.com>
3 * ld.texinfo: Document -z {no,}execstack, -z {no,}relro
4 and --eh-frame-hdr options.
6 2005-09-07 Alan Modra <amodra@bigpond.net.au>
8 * ldexp.c (fold_name <SIZEOF>): Return 0 for non-existent section.
9 (exp_fold_tree_1): Print assert message only in final stage of
10 linking. Trigger assertion failure if expression cannot be
13 2005-09-06 H.J. Lu <hongjiu.lu@intel.com>
16 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): Check
17 --just-symbols on DSO.
19 2005-08-18 Alan Modra <amodra@bigpond.net.au>
21 * scripttempl/elf.sc: Remove commented out defines.
23 2005-08-18 Alan Modra <amodra@bigpond.net.au>
25 * emulparams/a29k.sh: Delete.
26 * emulparams/ebmon29k.sh: Delete.
27 * emulparams/sa29200.sh: Delete.
28 * Makefile.am: Remove a29k support.
29 * configure.tgt: Likewise.
30 * ld.texinfo: Likewise.
31 * Makefile.in: Regenerate.
33 2005-08-17 Jakub Jelinek <jakub@redhat.com>
35 * ldgram.y (vers_defns): Don't lose pattern list before
36 extern NAME {}. Handle global, local and extern symbol names.
38 2005-08-17 Kaz Kojima <kkojima@rr.iij4u.or.jp>
40 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_after_allocation):
41 Don't increment rel_count of .cranges here. Set rawsize of .cranges.
43 2005-08-10 Nick Clifton <nickc@redhat.com>
45 * pe-dll.c (pe_exe_fill_sections): Call lang_reset_memory_regions
46 before lang_size_sections.
48 2005-08-09 Alan Modra <amodra@bigpond.net.au>
50 * emulparams/hppa64linux.sh (LARGE_SECTIONS): Remove .tbss.
52 2005-08-08 Eric Doenges <Eric.Doenges@betty-tv.com>
54 * Makefile.am (ALL_EMULATIONS): Add msp430x21xx variants.
55 Add rules to build these emulations.
56 * Makefile.in: Regenerate.
57 * configure.tgt (msp430): Add the new variants to the
58 targ_extra_emuls list.
59 * emulparams/msp430all.sh: Add entries for the msp430x21xx
62 2005-08-05 H.J. Lu <hongjiu.lu@intel.com>
64 * ld.texinfo: Document PROVIDE_HIDDEN.
66 * ldexp.c (exp_fold_tree_1): Hide a provided symbol if asked.
67 (exp_provide): Add and set hidden.
69 * ldexp.h (etree_type): Add hidden to assign.
71 * ldgram.y (PROVIDE_HIDDEN): New.
72 * ldlex.l (PROVIDE_HIDDEN): Likewise.
74 * scripttempl/elf.sc: Use PROVIDE_HIDDEN on array bound
77 2005-08-05 Alan Modra <amodra@bigpond.net.au>
79 * emulparams/elf_x86_64.sh: Revert last change.
80 * scripttempl/elf.sc (REL_LARGE, LARGE_SECTIONS): Define here.
82 2005-08-05 Alan Modra <amodra@bigpond.net.au>
84 * emulparams/armelf.sh (OTHER_BSS_END_SYMBOLS): Split out from
86 * emulparams/armelf_linux.sh: Likewise.
87 * emulparams/armnto.sh: Likewise.
88 * emulparams/criself.sh: Likewise.
89 * emulparams/elf32mcore.sh: Likewise.
90 * emulparams/criself.sh (OTHER_SYMBOLS): Define.
91 * emulparams/crislinux.sh (OTHER_SYMBOLS): Define.
92 (OTHER_END_SYMBOLS): Don't define.
93 * emulparams/elf32fr30.sh: Likewise.
94 * emulparams/elf64mmix.sh: Likewise.
95 * emulparams/hppa64linux.sh: Likewise.
96 * emulparams/m32relf.sh: Likewise.
97 * emulparams/vxworks.sh: Likewise.
98 * scripttempl/armbpabi.sc (OTHER_BSS_SECTIONS): Delete.
99 (OTHER_BSS_END_SYMBOLS): Add.
100 (OTHER_END_SYMBOLS): Move before current end sym definitions.
101 (OTHER_SYMBOLS): Replace OTHER_END_SYMBOLS near end of script.
102 * scripttempl/elf.sc: Likewise.
103 * scripttempl/elf32sh-symbian.sc: Likewise.
104 * scripttempl/elf_chaos.sc: Likewise.
105 * scripttempl/elfxtensa.sc: Likewise.
106 * scripttempl/iq2000.sc: Likewise.
107 * scripttempl/xstormy16.sc: Likewise.
109 * scripttempl/elf.sc (LBSS, LARGE_SECTIONS): Delete.
110 (REL_LDATA, REL_LBSS, REL_LRODATA): Delete.
111 (REL_LARGE, LARGE_SECTIONS): Add.
112 * emulparams/elf_x86_64.sh (LARGE_SECTIONS): Define as script text.
114 * emulparams/hppa64linux.sh (OTHER_BSS_SECTIONS): Don't define.
115 (LARGE_SECTIONS): Define.
116 * emulparams/hppa64linux.sh (OTHER_BSS_SECTIONS): Don't define.
117 (LARGE_SECTIONS): Define.
119 2005-08-04 Alan Modra <amodra@bigpond.net.au>
121 * ldemul.c (ldemul_do_assignments, do_assignments_default): Delete.
122 * ldemul.h (ldemul_do_assignments, do_assignments_default): Delete.
123 (struct ld_emulation_xfer_struct): Remove do_assignments field.
124 * ldlang.c (lang_do_assignments): Don't call ldemul_do_assignments.
125 * emulparams/elf32ppc.sh (SDATA_START_SYMBOLS): New.
126 (SDATA2_START_SYMBOLS, SBSS_START_SYMBOLS, SBSS_END_SYMBOLS): New.
127 * emultempl/aix.em (ld_*_emulation): Delete do_assignments init.
128 * emultempl/armcoff.em: Likewise.
129 * emultempl/beos.em: Likewise.
130 * emultempl/generic.em: Likewise.
131 * emultempl/gld960.em: Likewise.
132 * emultempl/gld960c.em: Likewise.
133 * emultempl/linux.em: Likewise.
134 * emultempl/lnk960.em: Likewise.
135 * emultempl/m68kcoff.em: Likewise.
136 * emultempl/pe.em: Likewise.
137 * emultempl/sunos.em: Likewise.
138 * emultempl/ticoff.em: Likewise.
139 * emultempl/vanilla.em: Likewise.
140 * emultempl/elf32.em: Likewise.
141 (gld*_provide_bound_symbols): Delete.
142 (gld*_provide_init_fini_syms): Delete.
143 (gld*_before_allocation): Don't call ldemul_do_assignments.
144 * emultempl/ppc32elf.em (ppc_do_assignments): Delete.
145 (LDEMUL_DO_ASSIGNMENTS): Delete.
146 * scripttempl/elf.sc: Provide init/fini syms. Add SBSS_START_SYMBOLS,
147 SBSS_END_SYMBOLS, SDATA2_START_SYMBOLS.
149 2005-08-04 Alan Modra <amodra@bigpond.net.au>
151 * Makefile.am (eelf32m32c.c): Fix dependencies.
152 * Makefile.in: Regenerate.
154 2005-08-04 Alan Modra <amodra@bigpond.net.au>
156 * ldemul.c (ldemul_finish): Call ld_emulation->finish unconditionally.
157 (finish_default): New function.
158 * ldemul.h (finish_default): Declare.
159 * emultempl/aix.em (gld*_before_allocation): Call
160 before_allocation_default rather than strip_excluded_output_sections.
161 (ld_*_emulation): Init finish field to finish_default.
162 * emultempl/armcoff.em: Likewise.
163 * emultempl/beos.em: Likewise.
164 * emultempl/elf32.em: Likewise.
165 * emultempl/generic.em: Likewise.
166 * emultempl/gld960.em: Likewise.
167 * emultempl/gld960c.em: Likewise.
168 * emultempl/hppaelf.em: Likewise.
169 * emultempl/linux.em: Likewise.
170 * emultempl/lnk960.em: Likewise.
171 * emultempl/m68kcoff.em: Likewise.
172 * emultempl/mmo.em: Likewise.
173 * emultempl/pe.em: Likewise.
174 * emultempl/ppc64elf.em: Likewise.
175 * emultempl/sunos.em: Likewise.
176 * emultempl/ticoff.em: Likewise.
177 * emultempl/vanilla.em: Likewise.
179 2005-08-03 Alan Modra <amodra@bigpond.net.au>
181 * ldlang.c (exp_init_os): Handle etree_provide.
182 * emulparams/armelf.sh (OTHER_END_SYMBOLS): Rename from..
183 (OTHER_BSS_END_SYMBOLS): ..this.
184 * emulparams/armelf_linux.sh: Likewise.
185 * emulparams/armnto.sh: Likewise.
186 * emulparams/criself.sh: Likewise.
187 * emulparams/crislinux.sh: Likewise.
188 * emulparams/elf32frv.sh: Likewise.
189 * emulparams/elf32mcore.sh: Likewise.
190 * emulparams/elf32ppc.sh: Likewise.
191 * emulparams/elf32ppclinux.sh: Likewise.
192 * emulparams/hppa64linux.sh: Likewise.
193 * scripttempl/armbpabi.sc: Substitute $OTHER_END_SYMBOLS, not
194 $OTHER_BSS_END_SYMBOLS.
195 * scripttempl/elf32sh-symbian.sc: Likewise.
196 * scripttempl/elf_chaos.sc: Likewise.
197 * scripttempl/iq2000.sc: Likewise.
198 * scripttempl/xstormy16.sc: Likewise.
199 * scripttempl/elf.sc: Likewise. Delete __bss_start comment.
200 * scripttempl/elfxtensa.sc: Likewise.
202 2005-07-29 Nick Clifton <nickc@redhat.com>
204 * ldmain.c (main): Allow -shared and -static to be used together.
205 * ld.texinfo (-static): Mention that it is allowed with -shared.
207 2005-07-28 DJ Delorie <dj@redhat.com>
209 * ldlang.c (lang_output_section_statement_lookup_1): Don't cast a
210 unary & address operator, as that breaks GCC's strict aliasing
213 2005-07-25 Jan Hubicka <jh@suse.cz>
214 H.J. Lu <hongjiu.lu@intel.com>
216 * emulparams/elf_x86_64.sh (LARGE_SECTIONS): New.
218 * scripttempl/elf.sc: Updated for large section support.
220 2005-07-21 Ralf Corsepius <ralf.corsepius@rtems.org>
222 * configure.tgt: Remove i[3-7]86-*-rtemself*.
223 Remove sparc-*-rtemself*.
225 2005-07-21 Ben Elliston <bje@gnu.org>
227 * ldgram.y (ldgram_want_filename): Remove unused static.
229 2005-07-20 DJ Delorie <dj@redhat.com>
231 * emulparams/elf32m32c.sh (TEMPLATE_NAME): New.
232 (EXTRA_EM_FILE): New.
234 2005-07-19 H.J. Lu <hongjiu.lu@intel.com>
236 * ldmain.c (main): Reindent.
238 2005-07-19 Paul Brook <paul@codesourcery.com>
240 * configure.host (HOSTING_CRT0): Parse output of gcc --help --verbose
241 to determine dynamic linker name.
243 2005-07-18 Nick Clifton <nickc@redhat.com>
245 * configure.tgt: Restore alpha ordering to list of arches.
247 2005-07-16 Alan Modra <amodra@bigpond.net.au>
249 * emultempl/elf32.em (gld*_provide_init_fini_syms): Prototype.
250 (gld*_before_allocation): Call ldemul_do_assignments rather than
251 gld*_provide_init_fini_syms directly.
252 * emultempl/ppc32elf.em (gld*_after_allocation): Delete.
253 (ppc_do_assignments): New function.
254 (LDEMUL_AFTER_ALLOCATION): Don't define.
255 (LDEMUL_DO_ASSIGNMENTS): Define.
257 2005-07-16 Alan Modra <amodra@bigpond.net.au>
259 * Makefile.am: Run "make dep-am".
260 (emipsidt.c, emipsidtl.c): Depend on generic.em.
261 * Makefile.in: Regenerate.
263 2005-07-15 Alan Modra <amodra@bigpond.net.au>
265 * ldemul.c (ldemul_do_assignments): New function.
266 (do_assignments_default): New function.
267 * ldemul.h (ldemul_do_assignments): Declare.
268 (do_assignments_default): Declare.
269 (struct ld_emulation_xfer_struct): Add do_assignments.
270 * ldlang.c (lang_do_assignments) Call ldemul_do_assignments.
271 * emultempl/aix.em (ld_*_emulation): Init do_assignments field.
272 * emultempl/armcoff.em: Likewise.
273 * emultempl/beos.em: Likewise.
274 * emultempl/generic.em: Likewise.
275 * emultempl/gld960.em: Likewise.
276 * emultempl/gld960c.em: Likewise.
277 * emultempl/linux.em: Likewise.
278 * emultempl/lnk960.em: Likewise.
279 * emultempl/m68kcoff.em: Likewise.
280 * emultempl/pe.em: Likewise.
281 * emultempl/sunos.em: Likewise.
282 * emultempl/ticoff.em: Likewise.
283 * emultempl/vanilla.em: Likewise.
284 * emultempl/elf32.em: Likewise, to call gld*_provide_init_fini_syms.
285 (gld*_find_exp_assignment): Adjust bfd_elf_record_link_assignment call.
287 2005-07-14 Jim Blandy <jimb@redhat.com>
289 Add support for the Renesas M32C and M16C.
290 * Makefile.am (ALL_EMULATIONS): Add eelf32m32c.o.
291 (eelf32m32c.c): New target.
292 * Makefile.in: Regenerated.
293 * configure.tgt: Add case for m32c-*-elf.
294 * emulparams/elf32m32c.sh: New file.
296 2005-07-14 Alan Modra <amodra@bigpond.net.au>
298 * ldlang.c (strip_excluded_output_sections): Don't call
300 * emultempl/elf32.em (gld*_provide_bound_symbols): Move.
301 (gld*_provide_init_fini_syms): Move.
302 (gld*_before_allocation): Call the above from here..
303 (gld*_finish): ..not here. Call _bfd_elf_fix_excluded_sec_syms.
304 * emultempl/hppaelf.em (hppaelf_finish): Likewise.
305 * emultempl/ppc64elf.em (ppc_finish): Likewise.
307 2005-07-10 Ralf Corsepius <ralf.corsepius@rtems.org>
309 * configure.tgt: Remove sparc*-*-rtemsaout*, i[3-7]86-go32-rtems*,
310 i[3-7]86-*-rtemscoff*, hppa*-*-rtems*, mips*el-*-rtems*,
313 2005-07-09 Christopher Faylor <cgf@timesys.com>
315 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse): Enable runtime
316 relocation by default.
317 (compute_dll_image_base): Avoid linking into cygwin dll address space.
319 2005-07-08 Alan Modra <amodra@bigpond.net.au>
321 * ldlang.c (wild_sort): Formatting.
322 (strip_excluded_output_sections): Strip zero size sections here.
323 * emultempl/elf32.em (gld*_strip_empty_sections): Delete.
324 (gld*_finish): Don't call the above.
325 * emultempl/hppaelf.em (hppaelf_finish): Likewise.
326 * emultempl/ppc64elf.em (ppc_finish): Likewise.
328 2005-07-05 Paul Brook <paul@codesourcery.com>
330 * Makefile.am (ALL_EMULATIONS): Add eelf32ppcvxworks.o.
331 (eelf32ppcvxworks.o): Add dependencies.
332 * Makefile.in: Regenerate.
333 * configure.tgt: Add entry for powerpc-vxworks.
334 * emulparams/elf32-ppc.c: Mention elf32ppcvxworks.sh in comment.
335 * emulparams/elf32ppcvxworks.sh: New file.
336 * emultempl/ppc32elf.em (bfd_elf32_powerpc_vxworks_vec): Declare.
337 (is_ppc_elf32_vec): New function.
338 (ppc_after_open, ppc_before_allocation,
339 gld${EMULATION_NAME}_after_allocation): Use it.
341 2005-07-05 Peter S. Mazinger" <ps.m@gmx.net>
343 * emulparams/elf32bmip.sh (GENERATE_PIE_SCRIPT): Define as "yes".
344 * emulparams/elf32bmipn32-defs.sh (GENERATE_PIE_SCRIPT): Define as "yes".
346 2005-07-04 Mike Frysinger <vapier@gentoo.org>
348 * emulparams/hppalinux.sh (GENERATE_PIE_SCRIPT): Fix typo in
351 2005-07-04 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
353 * emulparams/m32relf_linux.sh (GENERATE_PIE_SCRIPT): Set to yes.
355 2005-07-04 Aurelien Jarno <aurel32@debian.org>
357 * emultempl/elf32.em: Enable use of ld.so.conf for *-*-k*bsd-*.
359 2005-07-01 Alan Modra <amodra@bigpond.net.au>
361 * scripttempl/elf.sc (.gcc_except_table): Don't KEEP.
363 2005-06-30 Ben Elliston <bje@gnu.org>
365 * Makefile.am (check-DEJAGNU): Don't search for expect.
366 * Makefile.in: Regenerate.
368 2005-06-30 Ben Elliston <bje@gnu.org>
370 * Makefile.am (EXPECT): Set to expect.
371 (RUNTEST): Likewise, set to runtest.
372 * Makefile.in: Regenerate.
374 2005-06-16 Alexander Klimov <alserkli@inbox.ru>
376 * emultempl/armelf.em: Add quotes to avoid a null test
379 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
381 * ld.texinfo (Command Line Options): Add @item for --hash-size.
383 2005-06-10 Alan Modra <amodra@bigpond.net.au>
385 * scripttempt/elf.sc (.bss): Align tail in a way that allows
386 empty section pruning.
388 2005-06-09 Steve Ellcey <sje@cup.hp.com>
390 * configure.in (AM_BINUTILS_WARNINGS): Add.
391 (BFD_NEED_DECLARATION) Replace with AC_CHECK_DECLS.
392 * config.in: Regenerate.
393 * configure: Regenerate.
394 * sysdep.h (NEED_DECLARATION_*): Replace with HAVE_DECL_*
397 2005-06-09 Alan Modra <amodra@bigpond.net.au>
399 * ldexp.c (fold_unary <ALIGN_K>): Revert last change.
401 2005-06-09 Alan Modra <amodra@bigpond.net.au>
403 * ld.h (lang_phase_type): Move to..
404 * ldexp.h: ..here. Add lang_mark_phase_enum.
405 (node_type): Remove etree_undef and etree_unspec.
406 (exp_data_seg): Delete.
407 (struct ldexp_control, expld): New.
408 (invalid, exp_mark_used_section): Delete.
409 (exp_fold_tree, exp_get_vma, exp_get_value_int, exp_get_fill,
410 exp_get_abs_int): Update prototypes.
411 * ldexp.c (assigning_to_dot): Delete.
413 (make_abs): Operate directly on expld.result. Update all callers.
414 (new_abs): Likewise. Return void.
415 (new_rel_from_abs): Rename from new_rel_from_section.
416 (new_rel, new_rel_from_abs): Operate on expld.result and return void.
418 (fold_unary): Operate on expld.result and return void. Remove
419 "current_section", "allocation_done", "dot", "dotp" and "mark_used"
420 params. Update all callers.
421 (fold_binary, fold_trinary, fold_name, exp_fold_tree_1): Likewise.
422 (fold_unary <ALIGN_K>): Ensure alignment is absolute.
423 (fold_unary <ABSOLUTE>): Use make_abs.
424 (fold_unary <DATA_SEGMENT_END>): Evaluate mark_phase as for
426 (fold_binary <DATA_SEGMENT_ALIGN, DATA_SEGMENT_RELRO_END, >): Ditto.
427 (fold_binary <'%','/'>): Don't error if marking.
428 (fold_name <SIZEOF_HEADERS>): Don't call bfd_sizeof_headers when
430 (fold_name <NAME>): Remove FIXME; -R is handled correctly. Don't
432 (fold_name <ADDR, LOADADDR, SIZEOF>): Don't set SEC_KEEP.
433 (exp_fold_tree_1): Don't error when marking.
434 (exp_fold_tree_1 <etree_rel>): Evaluate in all phases except first.
435 (exp_fold_tree_1 <etree_assign to dot>): Don't check for NULL
436 current section, instead check for NULL dotp.
437 (exp_fold_tree_1 <etree_provide>): Don't evaluate the assignment
438 source unless the symbol is referenced and undefined.
439 (exp_fold_tree): Remove "allocation_done" and "dot" params. Save
441 (exp_fold_tree_no_dot): Remove "current_section", "allocation_done
442 and "mark_used" params. Save params to expld. Update all callers.
443 (exp_assop): Do without temp var.
444 (exp_print_tree <etree_undef>): Delete code.
445 (exp_get_vma): Remove "allocation_done" param. Correct error return.
446 (exp_get_fill, exp_get_abs_int): Likewise.
447 (exp_get_value_int): Remove "allocation_done" param.
448 (exp_mark_used_section): Delete.
449 * ldgram.y (fill_exp): Update exp_get_fill call.
450 (origin_spec, length_spec): Update exp_get_vma call.
451 * ldlang.c (lang_init): Don't bother clearing lang_statement_iteration.
452 (lang_mark_used_section_1, lang_mark_used_section): Delete.
453 (strip_excluded_output_sections): Call one_lang_size_sections_pass in
454 marking mode. Merge old lang_mark_used_section code. Correct handling
455 of output sections with excluded input sections and data statements.
456 Don't drop non-zero sized sections. Don't zap os->bfd_section.
457 Do set SEC_EXCLUDE when appropriate.
458 (print_output_section_statement): Update for changed ldexp.c
460 (print_assignment, lang_size_sections_1): Likewise.
461 (lang_do_assignments_1, lang_enter_output_section_statement): Likewise.
462 (lang_new_phdr, lang_record_phdrs): Likewise.
463 (lang_size_sections): Likewise.
464 (insert_pad): Use following statement if it is a pad, rather than
466 (lang_size_sections_1 <lang_output_section_statement_enum>): Do
467 process ignored output section to set vma and lma, but don't
468 update dot for these sections. Don't error if marking.
469 (lang_size_sections_1 <lang_assignment_statement_enum>): Don't
470 update dot for ignored sections.
471 (lang_size_sections_1 <lang_data_statement_enum>): Don't mark absolute
472 section with SEC_ALLOC.
473 (one_lang_size_sections_pass): New function.
474 (lang_size_sections): Remove first five params. Set expld.phase on
475 entry and exit. Use one_lang_size_sections_pass.
476 (lang_do_assignments): Remove all params. Update all callers.
477 (lang_reset_memory_regions): Clear os->processed for all output
479 * ldlang.h (lang_do_assignments): Update prototype.
480 (lang_size_sections): Likewise.
481 (one_lang_size_sections_pass): Declare.
482 * pe-dll.c (pe_dll_fill_sections, pe_exe_fill_sections): Update
483 lang_size_sections and lang_do_assignments calls.
484 * emultempl/elf32.em (layout_sections_again): Likewise.
485 * emultempl/ppc64elf.em (ppc_before_allocation): Use
486 one_lang_size_sections_pass.
488 2005-06-08 Aldy Hernandez <aldyh@redhat.com>
490 * emulparams/elf32ms1.sh: New.
492 2005-06-07 Eric Christopher <echristo@redhat.com>
494 * Makefile.am (eelf32ms1.c): Use tab.
495 * Makefile.in: Regenerate.
497 2005-06-07 Aldy Hernandez <aldyh@redhat.com>
498 Michael Snyder <msnyder@redhat.com>
499 Stan Cox <scox@redhat.com>
501 * configure.tgt: Same.
503 * Makefile.am (ALL_EMULATIONS): Depend on eelf32ms1.o.
504 (eelf32ms1.c): Add eelf32ms1.c rule.
506 * Makefile.in: Regenerate.
508 2005-06-06 Alan Modra <amodra@bigpond.net.au>
510 * emultempl/ppc64elf.em (ppc_before_allocation): Always run
513 2005-06-05 H.J. Lu <hongjiu.lu@intel.com>
515 * ldexp.c (exp_mark_used_section): Set SEC_KEEP on current
516 section only if the symbol will be defined.
518 2005-06-04 H.J. Lu <hongjiu.lu@intel.com>
521 * ldexp.c (exp_mark_used_section): Set SEC_KEEP on current
522 section for etree_assign, etree_provide and etree_provided.
523 Call fold_binary on etree_binary.
525 * ldlang.c (lang_mark_used_section_1): Handle load base.
527 2005-06-03 Alan Modra <amodra@bigpond.net.au>
529 * ldmain.c (link_callbacks): Add einfo.
530 (add_archive_element): Use passed info, not link_info.
531 (constructor_callback): Likewise.
532 (reloc_overflow): Don't handle null bfd specially.
533 (reloc_dangerous, unattached_reloc): Likewise.
534 * ldmisc.c (vfinfo <B>): Print "ld generated" for null bfd.
535 (vfinfo <C, D, G>): Handle null bfd. Wrap comments.
537 2005-06-02 Alan Modra <amodra@bigpond.net.au>
539 * ldexp.h (etree_value_type): Use "asection *" in place of
540 "struct lang_output_section_statement_struct *" for "section".
541 (exp_fold_tree): Likewise.
542 (exp_mark_used_section): Likewise.
543 * ldexp.c (new_rel, new_rel_from_section, fold_unary, fold_binary,
544 fold_trinary, fold_name, exp_fold_tree_1, exp_fold_tree,
545 exp_mark_used_section): Likewise for "current_section" param.
546 (make_abs, new_abs, exp_binop, exp_unop, exp_get_vma, exp_get_fill,
547 exp_get_abs_int): Adjust for above changes.
548 * ldlang.c (lang_mark_used_section_1, print_assignment,
549 lang_size_sections_1, lang_do_assignments_1): Likewise.
550 * ldexp.c (fold_name): Init entire result struct.
552 2005-06-01 Maciej W. Rozycki <macro@linux-mips.org>
554 * emulparams/elf32btsmip.sh: Unset DATA_ADDR.
556 2005-05-31 Zack Weinberg <zack@codesourcery.com>
558 * ldlang.c (entry_symbol_default): New file-scope global.
559 (lang_finish): Use it, not a hardwired "start".
560 (lang_default_entry): Set it.
561 * ldlang.h: Declare lang_default_entry.
562 * emultempl/beos.em, emultempl/pe.em: Use lang_default_entry,
563 not lang_add_entry, to override default entry point symbol.
565 2005-05-29 Richard Henderson <rth@redhat.com>
567 * emulparams/elf64alpha.sh (PLT): New.
569 * emultempl/alphaelf.em (disable_relaxation): New.
570 (limit_32bit): Rename from elf64alpha_32bit; update all users.
571 (elf64_alpha_use_secureplt): Declare.
572 (bfd_elf64_alpha_vec, bfd_elf64_alpha_freebsd_vec): Declare.
573 (alpha_after_open): New.
574 (alpha_before_allocation): New.
575 (OPTION_NO_RELAX, OPTION_SECUREPLT, OPTION_NO_SECUREPLT): New.
576 (PARSE_AND_LIST_LONGOPTS): Include them.
577 (PARSE_AND_LIST_OPTIONS): Likewise.
578 (PARSE_AND_LIST_ARGS_CASES): Likewise.
579 (LDEMUL_AFTER_OPEN, LDEMUL_BEFORE_ALLOCATION): New.
580 * scripttempl/elf.sc (TEXT_PLT): New.
583 2005-05-27 Andreas Schwab <schwab@suse.de>
585 * configure.host (HOSTING_LIBS): Add libunwind.a if it exists.
587 2005-05-24 Alan Modra <amodra@bigpond.net.au>
589 * emultempl/ppc32elf.em (after_allocation): Don't call
590 ppc_elf_set_sdata_syms when relocatable.
592 2005-05-21 H.J. Lu <hongjiu.lu@intel.com>
594 * Makefile.am (ld.1): Revert the last 2 changes.
595 (info-recursive): Depend on ld.1.
596 * Makefile.in: Regenerated.
598 2005-05-21 H.J. Lu <hongjiu.lu@intel.com>
600 * Makefile.am (ld.1): Depend on "info" instead of
601 "configdoc.texi ldver.texi".
602 * Makefile.in: Regenerated.
604 2005-05-21 H.J. Lu <hongjiu.lu@intel.com>
606 * Makefile.am (ld.1): Depend on "info".
607 * Makefile.in: Regenerated.
609 2005-05-19 Zack Weinberg <zack@codesourcery.com>
611 * Makefile.am: Have 'all' depend on 'info' and 'ld.1'.
612 * Makefile.in: Regenerate.
614 2005-05-17 Zack Weinberg <zack@codesourcery.com>
616 * ld-arm/mixed-app.d: Adjust expected disassembly a little.
618 2005-05-17 Daniel Jacobowitz <dan@codesourcery.com>
620 * Makefile.am (ldver.texi): Don't use $<.
621 * Makefile.in: Regenerated.
623 2005-05-17 Daniel Jacobowitz <dan@codesourcery.com>
625 * Makefile.am (AM_MAKEINFOFLAGS, TEXI2DVI): Explicitly include
626 $(srcdir) before $(BFDDIR)/doc.
627 * Makefile.in: Regenerated.
629 2005-05-17 H.J. Lu <hongjiu.lu@intel.com>
632 * ldexp.c (exp_fold_tree_1): Renamed from exp_fold_tree and
633 take take a bfd_boolean, mark_used. Ignore assert failure if
635 (exp_fold_tree) Call exp_fold_tree_1 with mark_used == FALSE.
636 (exp_fold_tree_no_dot): Updated to take a bfd_boolean,
637 mark_used and pass down.
638 (fold_unary): Likewise.
639 (fold_binary): Likewise.
640 (fold_trinary): Likewise.
641 (exp_binop): Add FALSE to call to exp_fold_tree_no_dot.
642 (exp_trinop): Likewise.
643 (exp_unop): Likewise.
644 (exp_nameop): Likewise.
645 (exp_get_vma): Likewise.
646 (exp_get_fill): Likewise.
647 (exp_get_abs_int): Likewise.
648 (fold_name): Likewise. Set SEC_KEEP in output section flags.
649 (exp_mark_used_section): New.
651 * ldexp.h (exp_mark_used_section): New.
653 * ldlang.c (lang_output_section_statement_lookup_1): Set the
654 ignored field to FALSE.
655 (lang_mark_used_section_1): New.
656 (lang_mark_used_section): Call lang_mark_used_section_1.
657 (strip_excluded_output_sections): Call lang_mark_used_section
658 and check for unused sections.
659 (lang_size_sections_1): Skip an output section if it should
661 (lang_do_assignments_1): Likewise.
662 (lang_process): Don't call lang_mark_used_section here.
664 * ldlang.h (lang_output_section_statement_type): Change
665 all_input_readonly to bitfield. Add ignored.
667 2005-05-17 Lennert Buytenhek <buytenh@wantstofly.org>
668 Peter S. Mazinger" <ps.m@gmx.net>
670 * emulparams/armelf_linux.sh (GENERATE_PIE_SCRIPT): Define as "yes".
671 * emulparams/hppalinux.sh (GENERATE_PIE_SCRIPT): Define as "yes".
673 2005-05-17 Julian Brown <julian@codesourcery.com>
675 * ldlang.c (print_assignment): Do not rely upon a valid result
676 having a section associated with it.
678 2005-05-17 Nick Clifton <nickc@redhat.com>
680 * ldlang.c (Scan_for_self_assignment): Check an assignment tree to
681 see if the same value is being used on the rhs as on the lhs.
682 (print_assignment): Call scan_for_self_assignment and if it
683 returns true, do no display the result of the computation but
684 instead just the final value of the symbol on the lhs.
685 * ld.texinfo: Document this behaviour and provide an example of
688 2005-05-15 Daniel Jacobowitz <dan@codesourcery.com>
690 * Makefile.am (AM_MAKEINFOFLAGS): Define.
692 (ldver.texi): Depend on distributed files instead of built files.
693 (ld.info): Include $(srcdir) in the rule target. Remove actions.
694 (ld.dvi): Remove actions.
695 (MAINTAINERCLEANFILES): Add configdoc.texi.
696 (CONFIG_STATUS_DEPENDENCIES): Add bfd/configure.in.
697 (install-data-local): Renamed from install.
698 (Makefile): Remove explicit dependency.
699 * acinclude.m4: Remove obsolete code.
700 * configure.in: Update AC_PREREQ. Remove extra $CONFIG_SHELL.
701 * Makefile.in, aclocal.m4, config.in, configure: Regenerated.
703 2005-05-11 Bob Wilson <bob.wilson@acm.org>
705 * scripttempl/elfxtensa.sc: Sync up with elf.sc.
706 * emulparams/elf32xtensa.sh (PLT, GOT): Define.
708 2005-05-11 Alan Modra <amodra@bigpond.net.au>
710 * ldgram.y: Add SPECIAL token.
711 (sect_constraint): Handle SPECIAL.
712 * ldlang.c (lang_output_section_find_1): Don't match SPECIAL.
713 (map_input_to_output_sections): Likewise.
714 * ldlex.l (SPECIAL): Define.
715 * emulparams/elf32ppc.sh (DATA_GOT, SDATA_GOT, SEPARATE_GOTPLT,
716 GOT, PLT, GOTPLT): Define.
717 * emultempl/ppc32elf.em (old_plt, old_got): New static vars.
718 (ppc_after_open): New function.
719 (PARSE_AND_LIST_PROLOGUE): Define OPTION_OLD_LPT and OPTION_OLD_GOT.
720 (PARSE_AND_LIST_LONGOPTS): Add "bss-plt" and "sdata-got".
721 (PARSE_AND_LIST_OPTIONS): Document them.
722 (PARSE_AND_LIST_ARGS_CASES): Handle them.
723 (LDEMUL_AFTER_OPEN): Define.
724 * scripttempl/elf.sc (PLT): Don't override existing define.
725 (DATA_GOT, SDATA_GOT): Define and use to enable alternate got
726 placement rather than using NO_SMALL_DATA. Emit GOTPLT for RELRO_NOW.
728 2005-05-10 Alan Modra <amodra@bigpond.net.au>
730 * scripttempl/elf.sc (DATA_SEGMENT_RELRO_GOTPLT_END): Delete.
731 (DATA_SEGMENT_RELRO_END): Use SEPARATE_GOTPLT value.
732 (GOTPLT): Remove DATA_SEGMENT_RELRO_GOTPLT_END. Place after
733 DATA_SEGMENT_RELRO_END in script.
735 2005-05-09 H.J. Lu <hongjiu.lu@intel.com>
737 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
738 Don't use a removed section.
740 2005-05-09 H.J. Lu <hongjiu.lu@intel.com>
742 * ldmain.c (reloc_overflow): Use output_bfd if the symbol
743 is defined in the ABS section.
745 2005-05-06 H.J. Lu <hongjiu.lu@intel.com>
747 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_init_fini_syms):
748 Put back !link_info.relocatable.
750 2005-05-06 H.J. Lu <hongjiu.lu@intel.com>
753 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_init_fini_syms):
754 Just check link_info.executable.
756 2005-05-06 Nick Clifton <nickc@redhat.com>
758 * Update the address and phone number of the FSF organization in
759 the GPL notices in the following files:
760 aclocal.m4, deffile.h, deffilep.y, fdl.texi, ld.h, ldcref.c,
761 ldctor.c, ldctor.h, ldemul.c, ldexp.c, ldexp.h, ldfile.c,
762 ldfile.h, 20ldgram.y, ldint.texinfo, ldlang.c, ldlang.h, ldlex.h,
763 ldlex.l, ldmain.c, ldmain.h, ldmisc.c, ldmisc.h, ldver.c, ldver.h,
764 ldwrite.c, ldwrite.h, lexsup.c, mri.c, mri.h, pe-dll.c, pe-dll.h,
765 sysdep.h, emultempl/aix.em, emultempl/alphaelf.em,
766 emultempl/armcoff.em, emultempl/armelf.em, emultempl/beos.em,
767 emultempl/crxelf.em, emultempl/elf32.em, emultempl/generic.em,
768 emultempl/gld960.em, emultempl/gld960c.em, emultempl/hppaelf.em,
769 emultempl/ia64elf.em, emultempl/irix.em, emultempl/linux.em,
770 emultempl/lnk960.em, emultempl/m68hc1xelf.em,
771 emultempl/m68kcoff.em, emultempl/m68kelf.em,
772 emultempl/mipsecoff.em, emultempl/mmix-elfnmmo.em,
773 emultempl/mmixelf.em, emultempl/mmo.em, emultempl/needrelax.em,
774 emultempl/pe.em, emultempl/ppc32elf.em, emultempl/ppc64elf.em,
775 emultempl/sh64elf.em, emultempl/sunos.em, emultempl/ticoff.em,
776 emultempl/vanilla.em, emultempl/xtensaelf.em
778 2005-05-05 H.J. Lu <hongjiu.lu@intel.com>
780 * scripttempl/elf.sc: Document the usage of __bss_start.
782 2005-05-05 Paul Brook <paul@codesourcery.com>
784 * Makefile.am: Add eelf_i386_vxworks.
785 * Makefile.in: Regenerate.
786 * configure.tgt: Make i?86-*-vxworks use targ_emul=elf_i386_vxworks.
787 * emulparams/elf_i386_vxworks.sh: New file.
788 * emulparams/vxworks.sh: New file.
789 * scripttempl/elf.sc: Add DATA_END_SYMBOLS and ETEXT_NAME.
791 2005-05-04 H.J. Lu <hongjiu.lu@intel.com>
793 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
794 Call _bfd_elf_provide_section_bound_symbols.
796 2005-05-04 Alan Modra <amodra@bigpond.net.au>
798 * ldemul.c: Include bfdlink.h.
799 (ldemul_before_allocation): Assume before_allocation is non-zero.
800 (before_allocation_default): Call strip_excluded_output_sections.
801 * ldlang.c (stripped_excluded_sections): New variable.
802 (lang_add_section): Build input section list for each output
803 section, attached via map_head and map_tail pointers.
804 (strip_excluded_output_sections): Make global. Traverse the
805 input section lists to find which output sections can go. Clear
806 link_order pointers and set stripped_excluded_sections.
807 (lang_process): Call strip_excluded_output_sections.
808 * ldlang.h (strip_excluded_output_sections): Declare.
809 * ldwrite.c: Update throuhout for link_order_head -> map_head change.
810 * emultempl/aix.em (before_allocation): Call
811 strip_excluded_output_sections.
812 * emultempl/armcoff.em (before_allocation): Likewise.
813 * emultempl/beos.em (before_allocation): Likewise.
814 * emultempl/linux.em (before_allocation): Likewise.
815 * emultempl/pe.em (before_allocation): Likewise.
816 * emultempl/sunos.em (before_allocation): Likewise.
817 * emultempl/elf32.em (before_allocation): Likewise. Call
818 bfd_elf_size_dynsym_hash_dynstr too.
819 * emultempl/lnk960.em (lnk960_before_allocation): Delete.
820 (ld_lnk960): Use before_allocation_default.
822 2005-05-02 H.J. Lu <hongjiu.lu@intel.com>
824 * emultempl/elf32.em (gld${EMULATION_NAME}_strip_empty_section):
825 Updated for bfd_section_list_remove change.
826 * ldlang.c (lang_insert_orphan): Likewise.
827 (strip_excluded_output_sections): Likewise.
828 (sort_sections_by_lma): New.
829 (lang_check_section_addresses): Sort the sections before
832 2005-04-29 Ralf Corsepius <ralf.corsepius@rtems.org>
834 * configure.tgt: Add h8300*-*-rtemscoff.
835 Switch h8300*-*-rtems* to elf.
837 2005-04-29 Ben Elliston <bje@au.ibm.com>
839 * ldgram.y (lang_memory_region_type): Make static.
840 (ldgram_want_filename): Likewise.
841 * ldemul.c (ld_emulation): Make static.
842 * ldfile.h (ldfile_find_command_file): Remove extern.
843 * ldfile.c (ldfile_find_command_file): Make static.
844 * ldlang.h (unique_section_list): Remove extern declaration.
845 * ldlang.c (unique_section_list): Make static.
846 * mri.h (symbol_truncate): Remove extern declaration.
847 * mri.c (symbol_truncate): Make static.
848 (order, only_load, address, alias): Likewise.
849 (alignment, subalignment): Likewise.
851 2005-04-27 H.J. Lu <hongjiu.lu@intel.com>
853 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
854 Use the first SEC_ALLOC section which isn't SEC_READONLY or the
855 last SEC_ALLOC section if such a section doesn't exist.
857 2005-04-24 Mark Kettenis <kettenis@gnu.org>
859 * configure.host: Add *-*-openbsd support.
861 2005-04-15 Julian Brown <julian@codesourcery.com>
863 * ld.texinfo: Document --use-blx.
864 * emultempl/armelf.em (use_blx): New variable.
865 (arm_elf_create_output_section_statements): Communicate value of
867 (PARSE_AND_LIST_PROLOGUE): Add OPTION_USE_BLX.
868 (PARSE_AND_LIST_OPTIONS): Add --use-blx option.
869 (PARSE_AND_LIST_ARGS_CASES): Add OPTION_USE_BLX case.
871 2005-04-14 Alan Modra <amodra@bigpond.net.au>
873 * Makefile.am (NO_WERROR): Define. Use instead of -Wno-error.
874 * configure.in: Include ../bfd/warning.m4 contents.
875 * Makefile.in: Regenerate.
876 * configure: Regenerate.
878 2005-04-12 Alan Modra <amodra@bigpond.net.au>
880 * Makefile.am: Run "make dep-am".
881 (ldgram.o, ldlex.o, deffilep.o): Add -Wno-error to command.
882 * Makefile.in: Regenerate.
883 * config.in: Regenerate.
885 2005-04-11 Alan Modra <amodra@bigpond.net.au>
887 * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed): Ignore
888 as_needed libs that were not needed.
889 (gld${EMULATION_NAME}_check_needed): Likewise.
891 2005-04-07 Nick Clifton <nickc@redhat.com>
893 * emultempl/m68kcoff.em: Include ldexp.h and ldlang.h so that
894 ldfile.h can use the lang_input_statement type.
896 2005-04-06 Jakub Jelinek <jakub@redhat.com>
898 * ldlang.c: Formatting.
899 (walk_wild_consider_section): Remember return value from wildcardp.
900 (is_simple_wild): Use strcspn instead of 2 strpbrk calls and strlen.
901 (wild_spec_can_overlap): Use strcspn instead of strpbrk and strlen.
903 2005-04-06 Robert O'Callahan <rocallahan@novell.com>
905 * ld.h (lean_section_userdata_type): Remove.
906 (fat_section_userdata_type): Remove file field.
907 (SECTION_USERDATA_SIZE): Remove.
908 * ldlang.c (init_os): Eliminate initialization of unused
909 lean_section_userdata_type.
911 * ldlang.h (callback_t, walk_wild_section_handler_t): New
913 (struct lang_wild_statement_struct): Add walk_wild_section_handler
914 and handler_data fields.
915 * ldlang.c (callback_t): Removed.
916 (walk_wild_consider_section, walk_wild_section_general,
917 section_iterator_callback, find_section, is_simple_wild,
918 match_simple_wild, walk_wild_section_specs1_wild0,
919 walk_wild_section_specs1_wild1, walk_wild_section_specs2_wild1,
920 walk_wild_section_specs3_wild2, walk_wild_section_specs4_wild2,
921 wild_spec_can_overlap, analyze_walk_wild_section_handler): New
923 (lang_add_wild): Call analyze_walk_wild_section_handler.
924 (walk_wild_section): Renamed to walk_wild_section_general and
925 created a wrapper function.
926 (section_iterator_callback_data): New typedef.
928 2005-04-04 Nick Clifton <nickc@redhat.com>
930 * configure.in: Add a check for <unistd.h> providing a prototype
931 for getopt() which is compatible with the one in
932 include/getopt.h. If so then define HAVE_DECL_GETOPT.
933 * configure: Regenerate.
934 * config.in (HAVE_DECL_GETOPT): Add.
935 * ldemul.c: Include config.h
936 * lexsup.c: Likewise.
937 * emultempl/elf32.sc: Likewise.
939 2005-03-29 Alan Modra <amodra@bigpond.net.au>
941 * emultempl/elf32.em (gld${EMULATION_NAME}_layout_sections_again):
942 New function, extracted from static void gld${EMULATION_NAME}_finish.
943 (gld${EMULATION_NAME}_strip_empty_sections): Likewise.
944 (gld${EMULATION_NAME}_provide_init_fini_syms): Likewise.
945 * emultempl/ppc64elf.em: Revert last change.
946 (ppc_layout_sections_again): Use
947 gld${EMULATION_NAME}_layout_sections_again.
948 (ppc_finish): Don't call gld${EMULATION_NAME}_finish. Instead call
949 gld${EMULATION_NAME}_strip_empty_sections and
950 gld${EMULATION_NAME}_provide_init_fini_syms.
951 * emultempl/hppaelf.em: Similarly.
953 2005-03-29 Alan Modra <amodra@bigpond.net.au>
955 * emultempl/ppc64elf.em (need_laying_out): Delete. Remove all refs.
956 (ppc_finish): Don't call bfd_elf_discard_info.
957 * emultempl/hppaelf.em: Similarly.
959 2005-03-24 Nick Clifton <nickc@redhat.com>
961 * po/fr.po: Updated French translation.
963 2005-03-23 Mike Frysinger <vapier@gentoo.org>
964 Nick Clifton <nickc@redhat.com>
966 * configure.host: Accept any C library to accompany a GNU Linux
967 implementation, not just the GNU C library.
968 * configure.tgt: Likewise.
969 * emultempl/elf32.em: Likewise.
971 2005-03-22 H.J. Lu <hongjiu.lu@intel.com>
973 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols): New
974 (gld${EMULATION_NAME}_finish): Call
975 gld${EMULATION_NAME}_provide_bound_symbols to provide
976 __preinit_array_start, __preinit_array_end, __init_array_start,
977 __init_array_end, __fini_array_start and __fini_array_end.
979 * scripttempl/elf.sc: Don't provide __preinit_array_start,
980 __preinit_array_end, __init_array_start, __init_array_end,
981 __fini_array_start nor __fini_array_end.
983 2005-03-23 Alan Modra <amodra@bigpond.net.au>
985 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Set
986 SEC_EXCLUDE on .gnu.warning sections.
988 2005-03-22 Alan Modra <amodra@bigpond.net.au>
990 * scripttempl/elf.sc (SBSS): Don't provide sbss start and end syms.
992 2005-03-21 Alan Modra <amodra@bigpond.net.au>
994 * emultempl/ppc32elf.em (gld${EMULATION_NAME}_after_allocation): New
996 (LDEMUL_AFTER_ALLOCATION): Define.
998 2005-03-21 Alan Modra <amodra@bigpond.net.au>
1000 * emultempl/ppc64elf.em (ppc_finish): Rename from
1001 gld${EMULATION_NAME}_finish. Call gld${EMULATION_NAME}_finish.
1002 (LDEMUL_FINISH): Update.
1003 * emultempl/hppaelf.em (hppaelf_finish, LDEMUL_FINISH): Likewise.
1004 * emultempl/m68hc1xelf.em (m68hc11elf_finish, LDEMUL_FINISH): Likewise.
1006 2005-03-18 Julian Brown <julian@codesourcery.com>
1008 * scripttempl/armbpapi.sc (.rel.dyn): Add .rel.init_array,
1010 (.rela.dyn): Add .rela.init_array, .rela.fini_array.
1011 (SECTIONS): Add .rel.other, .rela.other, .reli.other after PLT relocs.
1013 2005-03-18 H.J. Lu <hongjiu.lu@intel.com>
1015 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Don't set
1016 bfd_section when removing unused empty output sections for
1017 non-relocatable link.
1019 2005-03-19 Alan Modra <amodra@bigpond.net.au>
1021 * ldlang.c (lang_insert_orphan): Use old section_tail rather than
1022 traversing the bfd section list to find pointer to new section.
1024 2005-03-18 Alan Modra <amodra@bigpond.net.au>
1026 * scripttempl/elf.sc: When CREATE_SHLIB, put .sdata2 and .sbss2
1027 input sections into .sdata and .sbss output respectively.
1029 2005-03-16 David Heine <dlheine@tensilica.com>
1030 Bob Wilson <bob.wilson@acm.org>
1032 * ldlang.c (IGNORE_SECTION): Remove check for zero size.
1033 (lang_check_section_addresses): Ignore zero size sections here.
1035 2005-03-16 H.J. Lu <hongjiu.lu@intel.com>
1037 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Remove
1038 unused empty output sections for non-relocatable link.
1040 * ld.h (args_type): Remove gc_sections.
1042 * ldlang.c (lang_mark_used_section): New.
1043 (lang_gc_sections): Use link_info.gc_sections instead of
1044 command_line.gc_sections.
1045 * ldmain.c (main): Likewise.
1046 * lexsup.c (parse_args): Likewise.
1047 * ldlang.c (lang_process): Call lang_mark_used_section.
1049 * ldmain.c (main): Initialize link_info.gc_sections to FALSE.
1051 2005-03-16 Nick Clifton <nickc@redhat.com>
1052 Ben Elliston <bje@au.ibm.com>
1054 * configure.in (werror): New switch: Add -Werror to the
1055 compiler command line. Enabled by default. Disable via
1057 * configure: Regenerate.
1059 2005-03-16 Alan Modra <amodra@bigpond.net.au>
1061 * emulparams/elf32ppclinux.sh (OTHER_READWRITE_SECTION): Delete.
1062 (OTHER_RELRO_SECTIONS): Set this instead.
1064 2005-03-15 Nick Clifton <nickc@redhat.com>
1066 * NEWS: Add cutoff for changes in 2.16 release.
1068 2005-03-15 Mikkel Krautz <krautz@gmail.com>
1070 * configure.tgt (x86_64-elf): Add target.
1072 2005-03-15 Alan Modra <amodra@bigpond.net.au>
1074 * po/es.po: Commit new Spanish translation.
1076 2005-03-14 Alan Modra <amodra@bigpond.net.au>
1078 * ldexp.c (exp_fold_tree): Ensure return value is initialized.
1079 Tidy etree_assert case.
1081 2005-03-14 Alan Modra <amodra@bigpond.net.au>
1083 * po/tr.po: Commit new Turkish translation.
1085 2005-03-11 Daniel Jacobowitz <dan@codesourcery.com>
1087 * Makefile.am: Remove references to em68klynx.o and esparclynx.o.
1088 * Makefile.in: Regenerated.
1089 * emulparams/m68klynx.sh, emulparams/sparclynx.sh: Remove.
1091 2005-03-07 Nick Clifton <nickc@redhat.com>
1093 * po/fr.po: Updated translation.
1095 2005-03-05 Alan Modra <amodra@bigpond.net.au>
1097 * po/ld.pot: Regenerate.
1099 2005-03-02 Jan Beulich <jbeulich@novell.com>
1101 * ldmain.c (remove_output): Use unlink_if_ordinary instead of unlink.
1102 * pe-dll.c (pe_dll_generate_implib): Likewise.
1104 2005-02-24 Ben Elliston <bje@au.ibm.com>
1106 * ldfile.c: Remove GNU960 conditional code.
1107 * emultempl/gld960.em: Likewise.
1108 * emultempl/gld960c.em: Likewise.
1109 * emultempl/lnk960.em: Likewise.
1111 2005-02-24 Nick Clifton <nickc@redhat.com>
1113 * emultempl/lnk960.em (lnk960_before_parse): Remove redundant
1114 empty string from calls to concat.
1116 2005-02-23 Nick Clifton <nickc@redhat.com>
1118 * emultempl/lnk960.em (lnk960_before_parse): Terminate list of
1119 arguments passed to concat() with a NULL.
1121 * emultempl/m68kcoff.em: Include ldexp.h and ldlang.h because they
1122 define types needed by ldfile.h
1124 2005-02-23 Alan Modra <amodra@bigpond.net.au>
1126 * pe-dll.c: Warning fixes.
1127 * emultempl/sunos.em: Likewise.
1129 2005-02-22 Daniel Jacobowitz <dan@codesourcery.com>
1131 * ldlang.c (section_already_linked): Don't call
1132 bfd_section_already_linked for dynamic objects.
1134 2005-02-22 Alan Modra <amodra@bigpond.net.au>
1136 * ldexp.c: Warning fixes.
1137 * ldwrite.c: Likewise.
1138 * emultempl/elf32.em: Likewise.
1140 2005-02-21 H.J. Lu <hongjiu.lu@intel.com>
1142 * ldlang.c (lang_add_section): Check SEC_TIC54X_BLOCK for TI
1144 (lang_size_sections_1): Check SEC_COFF_SHARED_LIBRARY for COFF
1145 and ECOFF output only.
1147 2005-02-21 Alan Modra <amodra@bigpond.net.au>
1149 * config.in: Regenerate.
1150 * configure: Regenerate.
1152 2005-02-17 Zack Weinberg <zack@codesourcery.com>
1154 * ldexp.c (assigning_to_dot): New global flag.
1155 (fold_name): If assigning_to_dot is true, object immediately to
1156 an undefined symbol.
1157 (exp_fold_tree): Set and clear assigning_to_dot around the
1158 recursive call to exp_fold_tree to process the right-hand side
1159 of an assignment to the location counter.
1161 2005-02-17 Paul Brook <paul@codesourcery.com>
1163 * scripttempl/armbpabi.sc: Add dummy name to version block.
1165 2005-02-17 Alan Modra <amodra@bigpond.net.au>
1167 * ldexp.c (new_abs): Init new.str.
1169 2005-02-15 Mark Mitchell <mark@codesourcery.com>
1171 * configure.in (AC_CHECK_FUNCS): Add glob.
1172 * configure: Regenerated.
1173 * emultempl/elf32.em (<glob.h>): Do not include if HAVE_GLOB is
1175 (gld${EMULATION_NAME}_parse_ld_so_conf_include): Do not use glob
1176 if HAVE_GLOB is not defined.
1178 2005-02-16 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1180 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Define
1181 lib_path if NATIVE is yes.
1183 2005-02-16 Alan Modra <amodra@bigpond.net.au>
1185 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Make
1186 an error creating fake bfd fatal.
1187 (ppc_before_allocation): Continue on after errors.
1188 (gld${EMULATION_NAME}_finish): Likewise.
1190 2005-02-15 Nick Clifton <nickc@redhat.com>
1192 * ldlex.l (YY_NO_UNPUT): Define so that the yy_unput function is
1193 not declared. It is not used and its presence causes a compile
1196 2005-02-11 Zack Weinberg <zack@codesourcery.com>
1198 * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed):
1199 If st.st_ino is zero, do not treat the library as a duplicate.
1201 2005-02-10 Jakub Jelinek <jakub@redhat.com>
1203 * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
1204 Set BFD_LINKER_CREATED on the stubs bfd.
1205 * emultempl/ppc64elf.em (ppc_create_output_section_statements):
1208 2005-02-08 Mark Mitchell <mark@codesourcery.com>
1210 * scripttempl/armbpabi.sc (VERSION): Make special section symbols
1212 (Image$$ER_RO$$Base): Define whenever RELOCATING.
1213 (Image$$ER_RO$$Limit): Likewise.
1214 (SHT$$INIT_ARRAY$$Base): Likewise.
1215 (SHT$$INIT_ARRAY$$Limit): Likeise.
1217 2005-02-10 Ben Elliston <bje@au.ibm.com>
1219 * emultempl/beos.em: Remove #if 0 and #if 1 blocks.
1221 2005-02-08 Richard Sandiford <rsandifo@redhat.com>
1223 * configure.tgt (mips64*el-*-linux-gnu*): Define targ_extra_libpath
1224 to include o32 and n64 emulations.
1225 (mips64*-*-linux-gnu*): Likewise.
1227 2005-02-08 Hans-Peter Nilsson <hp@axis.com>
1229 * ldmain.c (warning_callback, warning_find_reloc): Prepend
1230 "warning: " to warning messages.
1232 2005-02-04 Alan Modra <amodra@bigpond.net.au>
1234 * emultempl/elf32.em (gld${EMULATION_NAME}_find_exp_assignment): Don't
1235 look up symbol for etree_provide here.
1237 2005-02-02 Daniel Jacobowitz <dan@codesourcery.com>
1239 * emulparams/elf32bmip.sh (TEXT_DYNAMIC): Always set.
1241 2005-02-01 Edward Welbourne <eddy@opera.com>
1242 Nick Clifton <nickc@redhat.com>
1244 * ld.texinfo (Source Code Reference): New node describing how to
1245 access linker script defined variables from source code.
1247 2005-02-01 Alan Modra <amodra@bigpond.net.au>
1249 * ld.texinfo: Clarify --as-needed operation.
1251 2005-01-31 Andrew Cagney <cagney@gnu.org>
1253 * configure: Regenerate to track ../gettext.m4.
1255 2005-01-31 Nick Clifton <nickc@redhat.com>
1257 * ldver.c (ldversion): Bump reported copyright date to 2005.
1259 2005-01-31 Nick Clifton <nickc@redhat.com>
1261 * configure.tgt: Remove obsolete targets m68k-lynxos and
1264 2005-01-28 Julian Brown <julian@codesourcery.com>
1266 * emultempl/armelf.em (fix_v4bx): New variable.
1267 (arm_elf_create_output_section_statements): Communicate fix_v4bx flag
1269 (PARSE_AND_LIST_PROLOGUE): Add option token OPTION_FIX_V4BX.
1270 (PARSE_AND_LIST_LONGOPTS): Add option --fix-v4bx.
1271 (PARSE_AND_LIST_OPTIONS): Add option --fix-v4bx.
1272 (PARSE_AND_LIST_ARGS_CASES): Add option OPTION_FIX_V4BX.
1273 * NEWS: Mention --fix-v4bx.
1274 * ld.texinfo: Document --fix-v4bx.
1276 2005-01-25 Mark Mitchell <mark@codesourcery.com>
1278 * emulparams/armsymbian.sh (OTHER_READONLY_SECTIONS): Define, so
1279 as to include .ARM.exidx$${Base,Limit}.
1280 * ld/scripttempl/armbpabi.sc: Move .plt to end of text segment.
1281 Define IMAGE$$ER_RO$${Base,Limit} and SHT$$INIT_ARRAY$${Base,Limit}.
1282 Put .init_array, .fini_array, etc. into the read-only data
1285 2005-01-25 Alan Modra <amodra@bigpond.net.au>
1287 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Formatting.
1288 (gld${EMULATION_NAME}_after_open): Ignore needed libs if they were
1289 only needed by an as-needed lib that didn't get linked.
1291 2005-01-23 Alan Modra <amodra@bigpond.net.au>
1293 * ld.texinfo (Output Section Keywords <CONSTRUCTORS>): Correct
1294 __DTOR_LIST__ description.
1296 2005-01-23 Alan Modra <amodra@bigpond.net.au>
1298 * ld.texinfo (Location Counter <dot outside sections>): Document
1299 effects of orphan section placement, and ". = ." workaround.
1300 * Makefile.in: Regenerate.
1302 2005-01-22 Richard Sandiford <rsandifo@redhat.com>
1304 * emulparams/elf32bmip.sh (OTHER_GOT_SECTIONS): Add ". = .;".
1305 * emulparams/elf32bmipn32-defs.sh (OTHER_GOT_SECTIONS): Likewise.
1307 2005-01-21 Jakub Jelinek <jakub@redhat.com>
1309 * ldgram.y (AS_NEEDED): New token.
1310 (input_list): Handle AS_NEEDED ( input_list ).
1311 * ldlex.l (AS_NEEDED): Add.
1312 * ld.texinfo: Document AS_NEEDED ().
1313 * NEWS: Mention AS_NEEDED ().
1315 2005-01-21 Ben Elliston <bje@au.ibm.com>
1317 * ldlang.c (lang_reasonable_defaults): Remove.
1318 (lang_process): Don't call lang_reasonable_defaults.
1320 * ldexp.c (exp_assop): Remove #if 0'd code.
1321 (exp_print_tree): Likewise.
1322 * ldlang.c (lang_memory_region_lookup): Likewise.
1323 (open_output): Likewise.
1324 (lang_do_assignments_1): Likewise.
1325 (lang_place_orphans): Likewise.
1326 (lang_enter_output_section_statement): Likewise.
1327 (lang_reasonable_defaults): Likewise.
1328 * ldlang.h (struct lang_input_statement_struct): Likewise.
1329 * mri.c (mri_draw_tree): Likewise.
1330 (mri_load): Likewise.
1331 * pe-dll.c (generate_reloc): Likewise.
1332 (make_import_fixup_entry): Likewise.
1333 (pe_as16): Likewise.
1334 * emultempl/beos.em (set_pe_subsystem): Likewise.
1335 * emultempl/hppaelf.em (hppaelf_after_parse): Likewise.
1336 * emultempl/pe.em: Likewise.
1337 * emultempl/xtensaelf.em (xtensa_colocate_literals): Likewise.
1339 2005-01-20 Daniel Jacobowitz <dan@codesourcery.com>
1341 * Makefile.am (ALL_EMULATIONS): Add earmelfb_linux_eabi.o.
1342 (earmelfb_linux_eabi.c): New target.
1343 * Makefile.in: Regenerated.
1344 * configure.tgt (arm*b-*-linux-gnueabi): New target.
1345 * emulparams/armelfb_linux_eabi.sh: New file.
1347 2005-01-20 Nick Hudson <skrll@netbsd.org>
1350 * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
1351 Handle bfd_elf32_hppa_nbsd_vec.
1353 2005-01-19 Richard Sandiford <rsandifo@redhat.com>
1355 * ldmain.h (ld_sysroot): Change type to a constant string.
1356 * ldmain.c (ld_sysroot): Likewise.
1357 (get_relative_sysroot, get_sysroot): New functions, adding command-line
1358 support for changing the sysroot.
1359 (main): Call the new functions.
1360 * lexsup.c (OPTION_SYSROOT): New.
1361 (ld_options): Add --sysroot.
1362 (parse_args): Add a dummy handler for it.
1363 * ld.texinfo (--sysroot): Document.
1364 * NEWS: Mention the new --sysroot option.
1366 2005-01-18 Alan Modra <amodra@bigpond.net.au>
1368 * ldlang.c (section_already_linked): Adjust bfd_link_just_syms call.
1369 (lang_place_orphans): Don't abort on just_syms_flag, instead call
1372 2005-01-16 Danny Smith <dannysmith@users.sourceforge.net>
1374 * defilep.y (def_name, def_library): Combine into...
1375 (def_image_name): New function. Strip name to basename,
1378 2005-01-12 Mark Kettenis <kettenis@gnu.org>
1380 * configure.in: Be sure to invoke config.sub using the shell.
1381 * configure: Regenerate.
1383 2005-01-11 Alan Modra <amodra@bigpond.net.au>
1385 * configure.host: Correct sed patterns for last change.
1387 2005-01-10 Nick Clifton <nickc@redhat.com>
1390 * ldmisc.c (vfinfo): Add an extra argument: is_warning. Use this
1391 to determine whether config.make_executable should be set to FALSE in
1392 conjunction with config.fatal_warnings.
1393 (info_msg, minfo, lfinof): Pass FALSE as the extra argument.
1394 (einfo): Pass TRUE as the extra argument.
1396 2005-01-10 Greg Schaffer <gschafer@zip.com.au>
1398 * configure.host (linux targets): Use "${CC} -dumpspecs" instead
1399 of "${CC} --print-file-name=specs" to appease GCC versions >= 4.0.
1400 (ia64-*-aix): Delete - this target is obsolete, and would be
1401 broken by this patch.
1403 2005-01-06 Eric Botcazou <ebotcazou@libertysurf.fr>
1405 * configure.host (sparc*-*-solaris2*): Rename into sparc-*-solaris2*.
1406 (sparc64-sun-solaris2*): New host.
1408 2005-01-06 Paul Brook <paul@codesourcery.com>
1410 * Makefie.am: Add earmelf_vxworks.
1411 * Makefile.in: Regenerate.
1412 * configure.tgt: Make arm-*-vxworks a separate case.
1413 * emulparams/armelf_vxworks.sh: New function.
1415 2005-01-06 Alan Modra <amodra@bigpond.net.au>
1417 * emultempl/ppc64elf.em (no_multi_toc): New var.
1418 (gld${EMULATION_NAME}_finish): Pass to ppc64_elf_setup_section_lists.
1419 (OPTION_NO_MULTI_TOC): Define.
1420 (PARSE_AND_LIST_LONGOPTS): Add --no-multi-toc support.
1421 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Likewise.
1423 2005-01-05 Nick Clifton <nickc@redhat.com>
1426 * ldmisc.c (vfinfo): Alter output to conform to the GNU Coding
1427 Standard's specification for parsable error messages.
1429 2005-01-04 Paul Brook <paul@codesourcery.com>
1431 * Makefile.am: Correct dependency for earmsymbian.c.
1432 * Makefile.in: Regenerate.
1434 2004-12-28 Danny Smith <dannysmith@users.sourceforge.net>
1436 * emultempl/pe.em (set_pe_subsystem): Change second arg to
1437 lang_add_entry to FALSE.
1439 2004-12-23 Nick Clifton <nickc@redhat.com>
1442 * emulparams/shelf.sh (.stack): Increase stack start address to
1445 2004-12-20 Nick Clifton <nickc@redhat.com>
1447 * ldmain.c (main): Issue an error message if -static and -shared
1450 2004-12-17 Jakub Jelinek <jakub@redhat.com>
1452 * ldexp.h (exp_data_seg): Add min_base and maxpagesize fields.
1453 * ldexp.c (fold_binary) <case DATA_SEGMENT_ALIGN>: Initialize them.
1454 * ldlang.c (lang_size_sections): Use them to avoid wasting virtual
1455 address space at DATA_SEGMENT_ALIGN. Fix computation of expected
1456 PT_GNU_RELRO segment end.
1458 2004-12-14 P.J. Darcy <darcypj@us.ibm.com>
1460 * configure.tgt: Add s390x-ibm-tpf support.
1462 2004-12-16 Martin Kögler <mkoegler@auto.tuwien.ac.at>
1464 * ldmisc.c (vfinfo): Handle the case where %B is passed a NULL
1467 2004-12-07 Ben Elliston <bje@gnu.org>
1469 * ldemul.h: Forward declare struct option.
1471 2004-12-01 Danny Smith <dannysmith@users.sourceforge.net>
1473 * scripttempl/pe.sc (.data): Add .jcr subsection.
1475 2004-11-30 Paul Brook <paul@codesourcery.com>
1477 * emultempl/armelf.em: Ignore -p and -no-pipeline-knowledge.
1479 2004-11-30 Tero Niemela <tero_niemela@yahoo.com>
1481 * Makefile.am: Change LOCALEDIR to $(datadir)/share.
1482 * Makefile.in: Regenerate.
1484 2004-11-26 Melissa Mears <asterisk@graces.dricas.com>
1486 * emultempl/pe.em: Add --subsystem:xbox as well as
1488 * ld.texinfo: (ld_options): Document acceptance of subsystem xbox
1489 and numeric subsystems.
1491 2004-11-24 Alan Modra <amodra@bigpond.net.au>
1493 * ldexp.c (fold_name): Correct PR 338 fix.
1495 2004-11-19 Mark Mitchell <mark@codesourcery.com>
1497 * Makefile.am (ALL_EMULATIONS): Add earmelf_linux_eabi.o.
1498 (earmelf_linux_eabi.c): New target.
1499 * configure.tgt (arm*-*-linux-gnueabi): Handle it.
1500 * emulparams/armelf_linux_eabi.sh: New file.
1501 * Makefile.in: Regenerated.
1503 2004-11-19 Nick Clifton <nickc@redhat.com>
1506 * ld.texinfo (MEMORY): Update the descriptions of the ORIGIN and
1507 LENGTH fields in the MEMORY command, to explicitly state that
1508 symbols cannot be used in their expressions.
1510 2004-11-19 Jon Beniston <jon@beniston.com>
1512 * ld/ldlex.l: Allow ORIGIN and LENGTH in EXPRESSION.
1513 * ld/ldgram.y: Add ORIGIN and LENGTH expressions.
1514 * ld/ldexp.c (fold_name): Implement LENGTH() and ORIGIN() functions
1515 which return the length and origin of a memory.
1516 * ld/ld.texinfo: Document LENGTH() and ORIGIN() functions.
1517 * NEWS: Mention support for ORIGIN and LENGTH operators.
1519 2004-11-17 Daniel Jacobowitz <dan@codesourcery.com>
1521 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Don't use
1522 a dynamic object for stubs.
1524 2004-11-04 Paul Brook <paul@codesourcery.com>
1526 * ld.texinfo: Document --default-imported-symver.
1527 * ldmain.c (main): Set link_info.default_imported_symver.
1528 * lexsup.c (option_values): Add OPTION_DEFAULT_IMPORTED_SYMVER.
1529 (ld_options): Add --default-imported-symver.
1530 (parse_args): Handle OPTION_DEFAULT_IMPORTED_SYMVER.
1532 2004-11-08 Inderpreet Singh <inderpreetb@nioda.hcltech.com>
1533 Vineet Sharma <vineets@noida.hcltech.com>
1535 * Makefile.am: Add entries for new maxq-coff target.
1536 * Makefile.in: Regenerate.
1537 * configure.tgt: Add support for maxq.
1538 * emulparams/maxqcoff.sh: New File.
1539 * scripttempl/maxqcoff.sc: New linker script for target maxq.
1540 * NEWS: Mention the new target.
1542 2004-11-04 Daniel Jacobowitz <dan@debian.org>
1544 * Makefile.am (ALL_EMULATIONS): Remove earmelf_oabi.o.
1545 (earmelf_oabi.c): Remove rule.
1546 * configure.tgt: Remove arm-*-oabi and thumb-*-oabi.
1547 * emulparams/armelf_oabi.sh, emultempl/armelf_oabi.em: Delete files.
1548 * Makefile.in: Regenerated.
1550 2004-11-04 Hans-Peter Nilsson <hp@axis.com>
1552 * configure.tgt (crisv32-*-*): Handle like cris-*-* for non-aout.
1553 * emulparams/criself.sh (INIT_START): Remove emitted "push srp".
1554 (FINI_START): Ditto.
1555 (INIT_END): Remove emitted "jump [sp+]".
1558 2004-11-04 Alan Modra <amodra@bigpond.net.au>
1560 * emultempl/ppc64elf.em (no_tls_opt): Rename from notlsopt.
1561 (no_opd_opt, no_toc_opt): New static vars.
1562 (ppc_before_allocation): Don't edit opt if no_opd_opt. Call
1564 (OPTION_NO_OPD_OPT, OPTION_NO_TOC_OPT): Define.
1565 (PARSE_AND_LIST_LONGOPTS): Add no-opd-optimize and no-toc-optimize.
1566 (PARSE_AND_LIST_OPTIONS): Describe new options.
1567 (PARSE_AND_LIST_ARGS_CASES): Handle them.
1569 2004-10-27 Nick Clifton <nickc@redhat.com>
1571 * emultempl/alphaelf.em (alpha_after_parse): Add extra, NULL,
1572 parameter to invocation of lang_section_start.
1573 * emultempl/aix.em (_handle_option): Likewise.
1575 * Makefile.am (eelf64alpha.c, eelf64alpha_fbsd.c,
1576 eelf64alpha_nbsd.c): Add dependency upon emultempl/alphaelf.em.
1577 * Makefile.in: Regenerate.
1579 2004-10-26 Mark Mitchell <mark@codesourcery.com>
1581 * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Do not emit
1582 __exidx_{start,end} when not relocating.
1584 2004-10-25 Mark Mitchell <mark@codesourcery.com>
1586 * Makefile.in (earmsymbian.c): Depend on armbpabi.sc, not elf.sc.
1587 * ldexp.h (segment_type): New type.
1588 (segments): New variable.
1589 * ldexp.c (segments): New variable.
1590 (exp_print_token): Handle SEGMENT_START.
1591 (fold_binary): Likewise.
1592 * ldgram.y (SEGMENT_START): Declare it as a token.
1593 (exp): Handle SEGMENT_START.
1594 * ldlang.h (lang_address_statement_type): Add segment field.
1595 (lang_section_start): Change prototype.
1596 * ldlang.c (map_input_to_output_sections): Do not process section
1597 assignments if a corresponding SEGMENT_START has already been
1599 (lang_section_start): Add segment parameter.
1600 * ldlex.l (SEGMENT_START): Add it.
1601 * lexsup.c (seg_segment_start): New function.
1602 (parse_args): Use it for -Tbss, -Tdata, and -Ttext.
1603 * ld.texinfo (SEGMENT_START): Document it.
1604 * emulparams/armsymbian.sh (EMBEDDED): Set it.
1605 * scripttempl/armbpabi.sc: Use SEGMENT_START to control segment
1606 base addresses. Do not map relocations.
1607 * NEWS: Mention SEGMENT_START.
1609 2004-10-26 Paul Brook <paul@codesourcery.com>
1611 * ld.texinfo: Document --default-symver.
1612 * ldmain.c (main): Set link_info.create_default_symver.
1613 * lexsup.c (enum option_values): Add OPTION_DEFAULT_SYMVER.
1614 (ld_options): Add default-symver.
1615 (parse_args): Handle OPTION_DEFAULT_SYMVER.
1617 2004-10-24 Danny Smith <dannysmith@users.sourceforge.net>
1619 * pe-dll.c (process_def_file): Don't export all symbols by default if
1620 building a position-independent executable.
1622 2004-10-21 H.J. Lu <hongjiu.lu@intel.com>
1625 * ldmain.c (reloc_overflow): Accept a pointer to struct
1626 bfd_link_hash_entry. Report symbol location for relocation
1629 2004-10-21 H.J. Lu <hongjiu.lu@intel.com>
1631 * genscripts.sh (libpath.exp): Really generate for first
1634 2004-10-19 Danny Smith <dannysmith@users.sourceforge.net>
1636 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Simplify
1637 comparison and replacement of filenames.
1639 2004-10-19 H.J. Lu <hongjiu.lu@intel.com>
1642 * ldlang.c (load_symbols): Use the same -Bdynamic/-Bstatic
1643 option on linker script as the one for linker script.
1645 2004-10-16 Daniel Jacobowitz <dan@debian.org>
1647 * ldlang.c (struct excluded_lib, excluded_libs, add_excluded_libs)
1648 (check_excluded_libs): New.
1649 (load_symbols): Call check_excluded_libs.
1650 * ldlang.h (add_excluded_libs): New prototype.
1651 * emultempl/elf32.em (OPTION_EXCLUDED_LIBS): Define.
1652 (gld${EMULATION_NAME}_add_options): Add --exclude-libs.
1653 (gld${EMULATION_NAME}_handle_option): Handle --exclude-libs.
1654 * ld.texinfo (Command Line Variables): Document --exclude-libs.
1655 (Options Specific to i386 PE Targets): Remove --exclude-libs.
1657 2004-10-15 Alan Modra <amodra@bigpond.net.au>
1659 * ldexp.c (exp_fold_tree): Don't immediately exit ld on a
1660 failing link script assert.
1662 * ldctor.c (ldctor_add_set_entry): Fix comment typo.
1664 2004-10-14 H.J. Lu <hongjiu.lu@intel.com>
1667 * emulparams/elf64_ia64.sh (SMALL_DATA_CTOR): Set.
1668 (SMALL_DATA_DTOR): Set.
1669 * emulparams/elf64_ia64_fbsd.sh (SMALL_DATA_CTOR): Unset.
1670 (SMALL_DATA_DTOR): Unset.
1671 * scripttempl/elf.sc: If SMALL_DATA_CTOR is set, move .ctors
1672 after .data. If SMALL_DATA_DTOR is set, move .dtors after
1675 2004-10-14 Alan Modra <amodra@bigpond.net.au>
1678 * ldlang.h (lang_output_section_statement_type): Make "next" a
1679 struct lang_output_section_statement_struct *.
1680 (struct orphan_save): Move from elf32.em. Add "name" and "flags".
1681 (lang_output_section_find_by_flags, lang_insert_orphan): Declare.
1682 * ldlang.c (lang_output_section_find_1): Adjust for changed
1683 output_section_statement "next".
1684 (strip_excluded_output_sections): Likewise.
1685 (lang_record_phdrs): Likewise.
1686 (lang_output_section_find_by_flags): New function.
1687 (output_prev_sec_find): Move from pe.em. Adjust iterator.
1688 (lang_insert_orphan): New function. Tail end of elf32.em's
1689 place_orphan merged with that from pe.em. Allow bfd_section to
1690 be placed first. New heuristic for placing new output section
1691 statement in existing script, and accompanying split of __start
1692 symbol alignment into a separate assignment to dot.
1693 (lang_add_section): Consistently use output->bfd_section rather than
1694 an alias, section->output_section.
1695 (map_input_to_output_sections): Rename overly long arg. Move
1696 initialization of data_statement output section to here..
1697 (lang_check_section_addresses): ..from here.
1698 (print_assignment): Correct printing of etree_assert.
1699 (print_all_symbols): Don't bomb if userdata is NULL.
1700 (IGNORE_SECTION): Rearrange.
1701 * emultempl/elf32.em (output_rel_find): Adjust interator.
1702 (output_prev_sec_find): Delete.
1703 (struct orphan_save): Delete.
1704 (gld${EMULATION_NAME}_place_orphan): Cater for zero bfd_section
1705 flags without creating a duplicate output section statement.
1706 Revise code holding history of various orphan section placements.
1707 Allow orphan sections to place before script specified output
1708 sections. Call lang_output_section_find_by_flags when placement
1709 by name fails. Use lang_insert_orphan.
1710 * emultempl/mmo.em (output_prev_sec_find): Delete.
1711 (struct orphan_save): Delete.
1712 (mmo_place_orphan): Revise code holding history of orphan placement.
1713 Allow orphans to place before existing output sections. Use
1715 * emultempl/pe.em (output_prev_sec_find): Delete.
1716 (struct orphan_save): Delete.
1717 (gld_${EMULATION_NAME}_place_orphan): Revise to suit use of
1720 2004-10-13 Mark Mitchell <mark@codesourcery.com>
1722 * scripttempl/armbpabi.sc: Do not put .gnu.version.* into a
1725 2004-10-13 Alan Modra <amodra@bigpond.net.au>
1728 * ldcref.c (check_section_sym_xref): Delete.
1729 (check_local_sym_xref): New function.
1730 (check_nocrossrefs): Adjust call.
1731 * emultempl/pe.em (struct orphan_save): Add os_tail.
1732 (place_orphan): Backport assorted fixes from elf32.em.
1734 2004-10-12 Bob Wilson <bob.wilson@acm.org>
1736 * emultempl/xtensaelf.em: Use ISO C90 formatting.
1738 2004-10-11 Jakub Jelinek <jakub@redhat.com>
1740 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_ld_so_conf): Avoid
1741 getline for portability.
1743 * emultempl/elf32.em (gld${EMULATION_NAME}_ld_so_conf): New structure.
1744 (gld${EMULATION_NAME}_parse_ld_so_conf,
1745 gld${EMULATION_NAME}_parse_ld_so_conf_include): New functions.
1746 (gld${EMULATION_NAME}_check_ld_so_conf): Use them.
1748 2004-10-11 Alan Modra <amodra@bigpond.net.au>
1751 * ldfile.c (ldfile_try_open_bfd): Ensure dynamic objects are
1752 rejected when linking statically.
1754 2004-10-08 Daniel Jacobowitz <dan@debian.org>
1756 * configure.tgt: Include elf_x86_64 for i[3-7]86-*-solaris2*.
1758 2004-10-07 Bob Wilson <bob.wilson@acm.org>
1760 * ld.texinfo (Xtensa): Describe new linker relaxation to optimize
1761 assembler-generated longcall sequences. Describe new --size-opt
1763 * emulparams/elf32xtensa.sh (OTHER_SECTIONS): Add .xt.prop section.
1764 * emultempl/xtensaelf.em (remove_section,
1765 replace_insn_sec_with_prop_sec, replace_instruction_table_sections,
1766 elf_xtensa_after_open): New.
1767 (OPTION_OPT_SIZEOPT, OPTION_LITERAL_MOVEMENT,
1768 OPTION_NO_LITERAL_MOVEMENT): Define.
1769 (elf32xtensa_size_opt, elf32xtensa_no_literal_movement): New globals.
1770 (PARSE_AND_LIST_LONGOPTS): Add size-opt and [no-]literal-movement.
1771 (PARSE_AND_LIST_OPTIONS): Add --size-opt.
1772 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_OPT_SIZEOPT,
1773 OPTION_LITERAL_MOVEMENT, and OPTION_NO_LITERAL_MOVEMENT.
1774 (LDEMUL_AFTER_OPEN): Set to elf_xtensa_after_open.
1775 * scripttempl/elfxtensa.sc: Update with changes from elf.sc.
1776 * Makefile.am (eelf32xtensa.c): Update dependencies.
1777 * Makefile.in: Regenerate.
1779 2004-10-07 Jeff Baker <jbaker@qnx.com>
1781 * lexsup.c: Handle --warn-shared-textrel option.
1782 (ld_options): Restore alpha sorting of options.
1783 * ldmain.c (main): Initialise warn_shared_info field to FALSE.
1784 * ld.texinfo: Add documentation for --warn-shared-textrel.
1785 * NEWS: Added mention of --warn-shared-textrel option.
1787 2004-10-05 Tomer Levi <Tomer.Levi@nsc.com>
1789 * emultempl/crxelf.em (disable_relaxation): Add.
1790 (crxelf_before_allocation): Enable --relax option by default.
1791 (PARSE_AND_LIST_PROLOGUE): Add OPTION_NO_RELAX.
1792 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --no-relax.
1793 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_NO_RELAX.
1795 2004-10-04 H.J. Lu <hongjiu.lu@intel.com>
1797 * NEWS: Mention SORT_BY_NAME, SORT_BY_ALIGNMENT and
1798 --sort-section name|alignment.
1800 * ld.texinfo: Document SORT_BY_NAME, SORT_BY_ALIGNMENT and
1801 --sort-section name|alignment.
1803 * ld.h (sort_type): New enum.
1804 (wildcard_spec): Change the type of `sorted' to sort_type.
1806 * ldgram.y (SORT): Removed.
1807 (SORT_BY_NAME): Added.
1808 (SORT_BY_ALIGNMENT): Added.
1809 (wildcard_spec): Updated `sorted'. Handle SORT_BY_NAME and
1811 (input_section_spec_no_keep): Updated `sorted'.
1812 (statement): Replace SORT with SORT_BY_NAME.
1814 * ldlang.c (compare_section): New function to compare 2
1815 sections with different sorting schemes.
1816 (wild_sort): Updated. Use compare_section.
1817 (update_wild_statements): New function.
1818 (lang_process): Call update_wild_statements before
1819 map_input_to_output_sections.
1821 * ldlex.l (SORT_BY_NAME): New.
1822 (SORT_BY_ALIGNMENT): New.
1823 (SORT): Return SORT_BY_NAME.
1825 * ldmain.c (sort_section): New. Defined.
1826 (main): Initialize it to none.
1828 * lexsup.c (option_values): Add OPTION_SORT_SECTION.
1829 (ld_options): Add an entry for OPTION_SORT_SECTION.
1830 (parse_args): Handle OPTION_SORT_SECTION.
1832 * mri.c (mri_draw_tree): Updated `sorted'.
1834 2004-10-04 Jakub Jelinek <jakub@redhat.com>
1836 * ldgram.y (DATA_SEGMENT_RELRO_END): Add one argument.
1837 * scripttempl/elf.sc (DATA_SEGMENT_RELRO_END): Add 0 as first
1839 (DATA_SEGMENT_RELRO_GOTPLT_END): Pass $SEPARATE_GOTPLT as first
1840 and . as second argument.
1841 (GOTPLT): Move $DATA_SEGMENT_RELRO_GOTPLT_END before the section.
1842 * ldexp.c (fold_unary): Remove DATA_SEGMENT_RELRO_END handling here.
1843 (fold_binary): Add it here. Insert padding to make relro_end
1844 COMMONPAGESIZE bytes aligned. For DATA_SEGMENT_ALIGN in
1845 exp_dataseg_relro_adjust phase just use previously computed
1847 * ldlang.c (lang_size_sections): Set exp_data_seg.base for
1848 relro_adjust here. Call lang_size_sections_1 once more if there
1849 was too big padding at DATA_SEGMENT_RELRO_END.
1850 * ld.texinfo (DATA_SEGMENT_RELRO_END): Add documentation.
1852 2004-10-01 Paul Brook <paul@codesourcery.com>
1854 * emulparams/armelf.sh: Add unwinding table sections.
1856 2004-09-30 Filip Navara <navaraf@reactos.com>
1858 * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Generate
1859 correct base address for position independant executables.
1860 * pe-dll.c (pe_dll_fill_sections): Don't mark position independant
1861 executables as DLLs.
1863 2004-09-30 Paul Brook <paul@codesourcery.com>
1865 * ld.texinfo: Document --target2=abs.
1866 * emulparms/armsymbian.sh (TARGET2_TYPE): Set.
1868 2004-09-29 Nick Clifton <nickc@redhat.com>
1870 * scripttempl/xstormy16.sc: Only perform the assignments to the
1871 ROM region when not performing a relocatable link. The ROM region
1872 does not start at address 0, but the sections will.
1873 * Makefile.am: Fix linker script dependency for the generation of
1875 * Makefile.in: Regenerate.
1877 2004-09-18 Filip Navara <navaraf@reactos.com>
1879 * emulparams/arm_epoc_pe.sh, emulparams/armpe.sh, emulparams/i386pe.sh,
1880 emulparams/i386pe_posix.sh, emulparams/mcorepe.sh,
1881 emulparams/mipspe.sh, emulparams/ppcpe.sh, scripttempl/pe.sc: Define
1883 * scripttempl/pe.sc: Make the virtual address and file offset synced if
1884 the alignment is lower than the target page size.
1886 2004-09-27 Filip Navara <navaraf@reactos.com>
1888 * emultempl/pe.em (gld_${EMULATION_NAME}_unrecognized_file): Allow
1889 def_file_parse to handle pe_def_file if NULL and prevent crash with
1892 2004-09-27 Alan Modra <amodra@bigpond.net.au>
1894 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Enable
1895 --emit-stub-syms automatically when --emit-relocs.
1897 2004-09-24 Paul Brook <paul@codeosurcery.com>
1899 * scripttempl/elf.sc: Keep .preinit_array, .init_array and
1900 .fini_array sections.
1902 2004-09-19 Andreas Schwab <schwab@suse.de>
1904 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Adjust data segment
1905 base so that relro end is suitably aligned.
1907 2004-09-17 Paul Brook <paul@codesourcery.com>
1909 * ld.texinfo: Rename arm-specific section. Document --target*
1910 * emulparams/armelf_fbsd.sh: Set TARGET2_TYPE.
1911 * emulparams/armelf_linux.sh: Ditto.
1912 * emulparams/armelf_nbsd.sh: Ditto.
1913 * emultempl/armelf.em: Set default for TARGET2_TYPE.
1914 (target2_type): New variable.
1915 (arm_elf_before_allocation): Don't pass target1_type.
1916 (arm_elf_create_output_section_statements): New function.
1917 (PARSE_AND_LIST_PROLOGUE): Add OPTION_TARGET2.
1918 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --target=.
1919 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_TARGET2.
1920 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Set.
1921 * emultempl/armelf_oabi.em (_before_allocation): Remove extra
1922 argument to bfd_elf32_arm_process_before_allocation.
1924 2004-09-17 Alan Modra <amodra@bigpond.net.au>
1926 * ldexp.c (fold_name): Update u.undef.next refs.
1927 * emultempl/pe.em: Likewise.
1928 * emultempl/sunos.em: Likewise.
1930 2004-09-17 Alan Modra <amodra@bigpond.net.au>
1932 * Makefile.am: Run "make dep-am".
1933 * Makefile.in: Regenerate.
1934 * config.in: Regenerate.
1935 * configure: Regenerate.
1936 * aclocal.m4: Regenerate.
1937 * po/ld.pot: Regenerate.
1939 2004-09-16 Tomer Levi <Tomer.Levi@nsc.com>
1941 * scripttempl/elf32crx.sc (.init): Add KEEP for section's *personality*.
1945 2004-09-16 Alan Modra <amodra@bigpond.net.au>
1947 * emultempl/armelf_oabi.em (before_allocation): Add extra zero param
1948 to bfd_elf32_arm_process_before_allocation call.
1950 2004-09-13 Paul Brook <paul@codesourcery.com>
1952 * emulparams/armsymbian.sh: Set TARGET1_IS_REL.
1953 * emultempl/armelf.em: Use TARGET1_IS_REL. Add --target1-{rel,abs}.
1955 2004-09-07 H.J. Lu <hongjiu.lu@intel.com>
1957 * configure: Regenerated with autconfig 2.13.
1959 2004-09-07 Andreas Schwab <schwab@suse.de>
1961 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Apply data segment
1962 alignment before adjusting DATA_SEGMENT_RELRO_END.
1964 2004-09-06 Mark Mitchell <mark@codesourcery.com>
1966 * emulparams/armsymbian.sh: Use armbpabi script.
1967 * scripttempl/armbpabi.sc: New script.
1969 2004-09-02 Mark Mitchell <mark@codesourcery.com>
1971 * Makefile.am (ALL_EMULATIONS): Add earmsymbian.o.
1972 (earmsymbian.c): New target.
1973 * configure.tgt: Use armsymbian emulation for arm*-*-symbianelf*.
1974 * Makefile.in: Regenerated.
1975 * aclocal.m4: Likewise.
1976 * configure: Likewise.
1977 * emulparams/armsymbian.sh: New file.
1979 2004-09-03 Tomer Levi <Tomer.Levi@nsc.com>
1981 * scripttempl/elf32crx.sc: Edit file with comments.
1982 (.init): Add new section.
1984 (.ctor): Control the linkage order.
1987 2004-08-27 Nick Clifton <nickc@redhat.com>
1989 * emultempl/pe.em (after_open): Do not assume that either bfd is
1992 2004-08-26 Alan Modra <amodra@bigpond.net.au>
1994 * ldlang.c (lang_init): Don't compare with TRUE.
1996 2004-08-25 Dmitry Diky <diwil@spec.ru>
1998 * emulparams/msp430all.sh: Fix RAM sizes for all targets.
1999 * scripttempl/elf32msp430.sc: Add .profiler section definition.
2001 2004-08-24 H.J. Lu <hongjiu.lu@intel.com>
2003 * ldlang.c (wildcardp): Defined as a macro with strpbrk.
2005 2004-08-19 Mark Mitchell <mark@codesourcery.com>
2007 * configure.tgt (arm*-*-symbianelf*): New target.
2008 (arm*-*-eabi*): Likewise.
2010 2004-08-19 Jakub Jelinek <jakub@redhat.com>
2012 * emultempl/ppc64elf.em (non_overlapping_opd): New variable.
2013 (ppc_before_allocation): Pass it to ppc64_elf_edit_opd).
2014 (OPTION_NON_OVERLAPPING_OPD): Define.
2015 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Add
2016 --non-overlapping-opd option.
2018 2004-08-18 Alan Modra <amodra@bigpond.net.au>
2021 * ldexp.c (fold_name): Don't call bfd_link_add_undef if the symbol
2022 was already on the undefs list.
2024 2004-08-17 Alan Modra <amodra@bigpond.net.au>
2026 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern): Dot
2027 prefix the symbol field too.
2029 2004-08-13 Alan Modra <amodra@bigpond.net.au>
2031 * ldmain.c (link_callbacks): Remove "error_handler".
2032 * ldmisc.c: Include elf-bfd.h.
2033 (vfinfo): Sort comment. Handle %A. Use %A instead of
2034 bfd_get_section_indent.
2035 (error_handler): Delete.
2036 * ldmisc.h (error_handler): Delete declaration.
2038 2004-08-10 Alan Modra <amodra@bigpond.net.au>
2040 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Call
2041 ppc64_elf_restore_symbols.
2043 2004-08-09 Alan Modra <amodra@bigpond.net.au>
2045 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Error if
2046 .toc is too large on relocatable linking.
2048 2004-08-09 Alan Modra <amodra@bigpond.net.au>
2050 * emultempl/ppc64elf.em (ppc_after_open): Delete.
2051 (LDEMUL_AFTER_OPEN): Don't define.
2053 2004-08-02 Stephane Carrez <stcarrez@nerim.fr>
2055 * ld.texinfo (Top): Document specific options of 68HC11 and 68HC12.
2057 2004-08-01 Stephane Carrez <stcarrez@nerim.fr>
2059 * scripttempl/elfm68hc12.sc: Align text, rodata and data section
2062 2004-07-27 Jason Thorpe <thorpej@wasabisystems.com>
2064 * emulparams/hppanbsd.sh (OUTPUT_FORMAT): Set to "elf32-hppa-netbsd".
2066 2004-07-26 Dmitry Diky <diwil@spec.ru>
2068 * Makefile.am: Add new subtargets: msp430x1610, msp430x1611,
2069 msp430x1612, msp430x415, msp430x417, msp430xG437, msp430xG438,
2071 * configure.tgt: Likewise.
2072 * emulparams/msp430all.sh: Likewise.
2073 * Makefile.in: Regenerate.
2075 2004-07-23 Nick Clifton <nickc@redhat.com>
2077 * emultempl/elf32.em (_place_orphan): Use an already existing
2078 section name if that section does not have any flags set.
2080 2004-07-21 H.J. Lu <hongjiu.lu@intel.com>
2082 * ldlang.c (already_linked_hash_entry): Removed.
2083 (already_linked): Likewise.
2084 (already_linked_table): Likewise.
2085 (section_already_linked): Call bfd_section_already_linked.
2086 (lang_process): Replace already_linked_table_init with
2087 bfd_section_already_linked_table_init and check return. Replace
2088 already_linked_table_free with bfd_section_already_linked_table_free.
2090 2004-07-21 Nick Clifton <nickc@redhat.com>
2092 * ldlang.c (init_os): Make sure that the newly allocated userdata
2093 structure is zeroed out.
2095 2004-07-19 H.J. Lu <hongjiu.lu@intel.com>
2097 * NEWS: Mention the new --add-needed/--no-add-needed and
2098 --as-needed/--no-as-needed options.
2100 2004-07-19 H.J. Lu <hongjiu.lu@intel.com>
2102 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): Also
2103 check the add_needed field.
2104 (dt_needed): New struct.
2105 (gld${EMULATION_NAME}_try_needed): Change the first argument
2106 to a pointer to struct dt_needed. Check the DYN_NO_ADD_NEEDED
2107 bit in the file where the DT_NEEDED entry comes from.
2108 (gld${EMULATION_NAME}_search_needed): Change the second
2109 argument to a pointer to struct dt_needed.
2110 (gld${EMULATION_NAME}_check_ld_so_conf): Updated.
2111 (gld${EMULATION_NAME}_after_open): Likewise.
2113 * ld.texinfo: Add --add-needed document.
2114 * ldlang.c (new_afile): Set p->add_needed.
2115 * ldlang.h (lang_input_statement_type): Add add_needed field.
2116 * ldmain.h (add_needed): Declare.
2117 * ldmain.c (add_needed): New global var.
2118 * lexsup.c (option_values): Add OPTION_ADD_NEEDED and
2119 OPTION_NO_ADD_NEEDED.
2120 (ld_options): Likewise.
2121 (parse_args): Handle them.
2123 2004-07-13 Christof Petig <christof@petig-baender.de>
2125 * emultempl/pe.em (make_import_fixup): Use bfd_get_32 to correct
2126 for endian-ness of extracted addend.
2128 2004-07-13 Danny Smith <dannysmith@usesr.sourceforge.net>
2130 * pe-dll.c (auto_export): Filter on just the import prefix,
2131 "_imp_", not "_imp__".
2133 2004-07-09 Nick Clifton <nickc@redhat.com>
2135 * configure.tgt: Change sh-sybmian-elf to sh-*-symbianelf.
2137 2004-07-06 Tomer Levi <Tomer.Levi@nsc.com>
2139 * Makefile.am (ALL_EMULATIONS): Add eelf32crx.o.
2140 (eelf32crx.c): New target.
2141 * Makefile.in: Regenerate.
2142 * configure.tgt: Handle crx-*-elf*.
2143 * emulparams/elf32crx.sh: New file.
2144 * emultempl/crxelf.em: New file.
2145 * scripttempl/elf32crx.sc: New file.
2146 * NEWS: Mention new target.
2148 2004-07-06 Nick Clifton <nickc@redhat.com>
2150 * Makefile.am: Add eshlsymbian.c.
2151 * Makefile.in: Regenerate.
2152 * configure.tgt: Add sh*-symbian-elf target.
2153 * emulparams/shlsymbian.sh: New file. Configure the
2154 sh-symbian-elf linker scripts.
2155 * scripttemp/elf32sh-symbian.sc: New file. Linker script
2156 template for the sh-symbian-elf target.
2158 2004-07-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2160 * emulparams/hppa64linux.sh: Define PLT_BEFORE_GOT.
2161 * emulparams/hppalinux.sh: Likewise.
2162 * scripttempl/elf.sc: Place .plt just before .got when .plt is in
2163 data segment and PLT_BEFORE_GOT is defined.
2165 2004-07-03 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
2167 * ld.texinfo (WIN32): Document PE weak symbols.
2169 2004-07-02 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2171 * emulparams/shlelf32_linux.sh (COMMONPAGESIZE): Set to 4KB.
2173 2004-07-01 H.J. Lu <hongjiu.lu@intel.com>
2175 * ldmisc.c (vfinfo): Call bfd_get_section_ident to identify
2178 2004-06-29 Alan Modra <amodra@bigpond.net.au>
2180 * ldlang.c (lang_reset_memory_regions): Save last relax pass section
2183 2004-06-24 Alan Modra <amodra@bigpond.net.au>
2185 * ldlang.c (print_output_section_statement): Don't print size before
2187 (IGNORE_SECTION): Remove bfd arg. Update all callers.
2189 * ldexp.c (fold_name): .. See below.
2190 * ldlang.c (section_already_linked, print_output_section_statement,
2191 print_input_section, insert_pad, size_input_section,
2192 lang_check_section_addresses, lang_size_sections_1,
2193 lang_size_sections, lang_do_assignments_1, lang_set_startof,
2194 lang_one_common, lang_reset_memory_regions, lang_process,
2195 lang_abs_symbol_at_end_of, lang_do_version_exports_section): ..
2196 * ldwrite.c (build_link_order, clone_section, ds, split_sections): ..
2197 * pe-dll.c (process_def_file, generate_reloc): ..
2198 * emultempl/elf32.em (gld${EMULATION_NAME}_find_statement_assignment,
2199 gld${EMULATION_NAME}_before_allocation): ..
2200 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): ..
2201 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_before_allocation,
2202 sh64_elf_${EMULATION_NAME}_after_allocation): ..
2203 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): ..
2204 * emultempl/xtensaelf.em (ld_assign_relative_paged_dot,
2205 ld_local_file_relocations_fit, ld_xtensa_insert_page_offsets): Use
2206 "size" instead of "_raw_size" and "_cooked_size". Expand
2207 bfd_section_size macro invocations.
2209 2004-06-22 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
2211 * ld/scripttemp/pe.sc (.CRT): Define ___crt_xc_start__,
2212 ___crt_xc_end__, ___crt_xi_start__, ___crt_xi_end__, ___crt_xl_start__,
2213 ___crt_xp_start__, ___crt_xp_end__, ___crt_xt_start__ and
2215 (.tls): Define ___tls_start__ and ___tls_end__.
2217 2004-06-21 Alexandre Oliva <aoliva@redhat.com>
2219 * emulparams/elf32frvfd.sh (GENERATE_PIE_SCRIPT): Set to yes.
2221 2004-06-18 Adam Nemet <anemet@lnxw.com>
2223 * configure.in: Set EXTRA_SHLIB_EXTENSION to .a for LynxOS.
2224 * configure: Regenerate.
2226 2004-06-15 Jakub Jelinek <jakub@redhat.com>
2228 * scripttempl/elf.sc: Readd KEEP and .gcc_except_table.* to
2229 .gcc_except_table output sections lost accidentally with
2232 2004-06-15 Alan Modra <amodra@bigpond.net.au>
2234 * ldwrite.c (build_link_order): Use bfd_get_section_size
2235 instead of bfd_get_section_size_before_reloc or _raw_size.
2236 * pe-dll.c (process_def_file): Likewise.
2238 2004-06-14 Alan Modra <amodra@bigpond.net.au>
2240 From Richard Wirth <r.wirth@wirthware.de>
2241 * ldlang.c (lang_finish): Don't free lang_definedness_table.
2243 2004-05-29 Alan Modra <amodra@bigpond.net.au>
2245 * ldlang.c (gc_section_callback): Move SEC_EXCLUDE twiddles..
2246 (lang_gc_sections): .. to a LANG_FOR_EACH_INPUT_STATEMENT loop here.
2248 2004-05-28 Alan Modra <amodra@bigpond.net.au>
2250 * ldlang.c: Formatting. Wrap long lines, expand bfd_get_section_flags
2252 * lexsup.c: Formatting. Wrap long lines.
2253 * ldwrite.c: Update copyright date.
2255 * ldlang.c (lang_add_section): Don't twidlle SEC_EXCLUDE here.
2256 (output_section_callback): Nor SEC_KEEP here.
2257 (gc_section_callback): Twiddle SEC_EXCLUDE here.
2258 (lang_gc_wild): Delete. Fold into..
2259 (lang_gc_sections_1): ..here. Only call bfd_gc_sections when garbage
2261 (lang_process): Always call lang_gc_sections.
2262 (lang_place_orphans): Handle SEC_EXCLUDE sections.
2263 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Remove
2266 2004-05-26 H.J. Lu <hongjiu.lu@intel.com>
2268 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Clear
2269 SEC_EXCLUDE on non-SEC_DEBUGGING sections for relocatable link.
2270 * ldlang.c (lang_add_section): Likewise.
2272 2004-05-26 Alan Modra <amodra@bigpond.net.au>
2274 * ldlang.c (lang_add_section): Set SEC_EXCLUDE for SEC_GROUP
2275 sections when doing a final link. Clear SEC_EXCLUDE when doing
2276 a relocable link, except for SEC_DEBUGGING sections.
2277 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Use the
2278 same condition here to drop SEC_EXCLUDE orphan sections.
2280 2004-05-25 Alan Modra <amodra@bigpond.net.au>
2282 * ldlang.c (lang_process): Call bfd_merge_sections later, and
2283 only when not a relocatable link.
2284 (print_input_section): Handle SEC_EXCLUDE sections.
2285 (size_input_section): Don't update dot on SEC_EXCLUDE sections.
2286 (lang_do_assignments_1): Likewise.
2287 * ldwrite.c (build_link_order): Ignore SEC_EXCLUDE input sections.
2288 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Likewise.
2289 * emultempl/hppaelf.em (build_section_lists): Likewise.
2290 * emultempl/ppc64elf.em (build_toc_list): Likewise.
2291 (build_section_lists): Likewise.
2293 2004-05-23 Andreas Schwab <schwab@suse.de>
2295 * ld.texinfo (Options): Fix typo in last change.
2297 2004-05-21 Andy Chittenden <achittenden@bluearc.com>
2299 * ld.h (ld_config_type): Add new field: hash_table_size.
2300 * ldmain.c: Initialise the new field to zero. If it is non-zero
2301 after parsing the linker's command line call
2302 bfd_hash_set_default_size.
2303 * lexsup.c (option_values): Add OPTION_HASH_SIZE.
2304 (ld_options): Add hash-size.
2305 (parse_args): Parse --hash-size option. Allow
2306 --reduce-memory-overheads to set the default hash table size as
2308 * ld.texinfo: Document the new switch. Also mention that
2309 --reduce-memory-overheads can affect the hash table size.
2310 * NEWS: Mention the new feature.
2312 2004-05-19 J"orn Rennecke <joern.rennecke@superh.com>
2314 * NEWS: Mention new linker map file generation and the
2315 --reduce-memory-overheads option.
2316 * ld.texinfo: Document --reduce-memory-overheads option.
2317 * ld.h (map_symbol_def): New struct.
2318 (struct user_section_struct, section_userdata_type): Rename to:
2319 (struct lean_user_section_struct, lean_section_userdata_type).
2320 (struct fat_user_section_struct, fat_section_userdata_type): New.
2321 (SECTION_USERDATA_SIZE): Define.
2322 (args_type): New member reduce_memory_overheads.
2323 * ldlang.c (map_obstack): New static variable.
2324 (init_map_userdata, print_all_symbols, sort_def_symbol): New functions.
2325 (lang_map): Unless command_line.reduce_memory_overheads is set,
2326 initialize lists of defined symbols for each section.
2327 (print_input_section): Unless command_line.reduce_memory_overheads
2328 is set, use print_all_symbols.
2329 (init_os): Use lean_section_userdata_type / SECTION_USERDATA_SIZE.
2330 * ldmain.c (main): Initialize command_line.reduce_memory_overheads.
2331 * lexsup.c (enum option_values): Add OPTION_REDUCE_MEMORY_OVERHEADS.
2332 (ld_options): Add entry for --reduce-memory-overheads.
2333 (parse_args): Handle OPTION_REDUCE_MEMORY_OVERHEADS.
2335 2004-05-19 Jakub Jelinek <jakub@redhat.com>
2337 * ldgram.y (sect_constraint): New.
2338 (ONLY_IF_RO, ONLY_IF_RW): New tokens.
2339 (section): Add sect_constraint. Pass additional argument
2340 to lang_enter_output_section_statement.
2341 * mri.c (mri_draw_tree): Pass additional argument to
2342 lang_enter_output_section_statement.
2343 * emultempl/pe.em (place_orphan): Likewise.
2344 (output_prev_sec_find): Disregard output section statements with
2346 * emultempl/mmo.em (output_prev_sec_find): Likewise.
2347 (mmo_place_orphan): Pass additional argument to
2348 lang_enter_output_section_statement.
2349 * emultempl/elf32.em (output_prev_sec_find): Disregard output section
2350 statements with constraint == -1.
2351 (place_orphan): Pass additional argument to
2352 lang_enter_output_section_statement.
2353 * ldlang.c (lang_enter_overlay_section): Likewise.
2354 (lang_output_section_find_1): New.
2355 (lang_output_section_find): Use it.
2356 (lang_output_section_statement_lookup_1): New.
2357 (lang_output_section_statement_lookup): Use it.
2358 (check_section_callback, check_input_sections): New.
2359 (map_input_to_output_sections): Check if all input sections
2360 are readonly if ONLY_IF_RO or ONLY_IF_RW was seen.
2361 (strip_excluded_output_sections): Disregard output section statements
2362 with constraint == -1.
2363 (lang_record_phdrs): Likewise.
2364 (lang_enter_output_section_statement): Add constraint argument.
2365 Use lang_output_section_statement_lookup_1.
2366 * ldlang.h (lang_output_section_statement_type): Add constraint
2367 and all_input_readonly fields.
2368 (lang_enter_output_section_statement): Adjust prototype.
2369 * ldlex.l (ONLY_IF_RO, ONLY_IF_RW): New tokens.
2370 * scripttempl/elf.sc (.eh_frame, .gcc_except_table): Move into text
2371 segment if all input sections are readonly.
2373 2004-05-19 Adam Nemet <anemet@lnxw.com>
2375 * scripttempl/i386lynx.sc: Remove file.
2377 2004-05-17 Bob Wilson <bob.wilson@acm.org>
2379 * ld.texinfo (Output Section Address): Correct subsection name.
2381 2004-05-17 Adam Nemet <anemet@lnxw.com>
2383 * configure.tgt (powerpc-*-lynxos* case): New case.
2384 * configure.host (i[3-7]86-*-lynxos* case): Remove case.
2385 * emulparams/ppclynx.sh: New file.
2386 * emulparams/i386lynx.sh (SCRIPT_NAME): Update to LynxOS 4.0.
2387 * Makefile.am (ALL_EMULATIONS): Add eppclynx.o
2388 (ei386lynx.c): Update rule to LynxOS 4.0 ELF.
2389 (eppclynx.c): New rule.
2390 * Makefile.in: Regenerate.
2392 2004-05-13 Joel Sherrill <joel@oarcorp.com>
2394 * configure.tgt (or32-*-rtems*): Switch to elf and
2395 support versioned targets.
2397 2004-05-13 Nick Clifton <nickc@redhat.com>
2399 * po/fr.po: Updated French translation.
2401 2004-05-11 Jakub Jelinek <jakub@redhat.com>
2403 * genscripts.sh: Generate -z combreloc -z now -z relro scripts
2404 for binaries, -shared and -pie.
2405 * emulparams/elf_i386.sh (SEPARATE_GOTPLT): Set.
2406 * emulparams/elf_x86_64.sh (SEPARATE_GOTPLT): Set.
2407 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Rename to...
2408 (OTHER_RELRO_SECTIONS): ... this.
2409 * ldlex.l (DATA_SEGMENT_RELRO_END): Add.
2410 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Handle
2411 -z relro and -z norelro.
2412 (gld${EMULATION_NAME}_list_options): Add it to usage.
2413 (gld${EMULATION_NAME}_get_script): Return -z combreloc -z now
2414 -z relro scripts when appropriate.
2415 * scripttempl/elf.sc: Unset SEPARATE_GOTPLT if RELRO_NOW is set.
2416 Create separate .got.plt section if SEPARATE_GOTPLT.
2417 Move sections which are only written during relocation handling
2418 to the beginning of RW segment. If NO_SMALL_DATA, move .got
2419 before .data. Add DATA_SEGMENT_RELRO_END directive.
2420 Include OTHER_RELRO_SECTIONS.
2421 * ldgram.y (DATA_SEGMENT_RELRO_END): Add.
2422 * ldexp.c (exp_print_token): Handle DATA_SEGMENT_RELRO_END.
2423 (fold_unary): Likewise.
2424 (fold_binary): Handle -z relro.
2425 * ldexp.h (struct exp_data_seg): Add exp_dataseg_relro_seen and
2426 exp_dataseg_relro_adjust phases. Add relro_end field.
2427 * ldmain.c (main): Initialize link_info.relro to FALSE.
2428 * ldlang.c (lang_size_sections): Handle -z relro.
2430 2004-05-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
2432 * scripttempl/avr.sc: Do not set LMA for "eeprom" section.
2434 2004-05-07 J"orn Rennecke <joern.rennecke@superh.com>
2436 * ldlang.c (print_padding_statement): Cast size_t to bfd_vma
2437 before printing it with %W.
2439 2004-05-07 Brian Ford <ford@vss.fsi.com>
2440 DJ Delorie <dj@redhat.com>
2442 * emultempl/pe.em (real_flags): New static.
2443 (OPTION_LARGE_ADDRESS_AWARE): New define.
2444 (gld${EMULATION_NAME}_add_options): Add --large-address-aware option.
2445 (gld_${EMULATION_NAME}_list_options): Likewise.
2446 (gld${EMULATION_NAME}_handle_option): Likewise.
2447 (gld_${EMULATION_NAME}_after_open): Pass real_flags to PE private data.
2448 * ld.texinfo: Document it.
2451 2004-05-07 Brian Ford <ford@vss.fsi.com>
2453 * NEWS: Mention DWARF 2 support for i386pe.
2455 2004-05-05 Alexandre Oliva <aoliva@redhat.com>
2457 * emulparams/elf32frvfd.sh (OUTPUT_FORMAT): Switch to new
2460 2004-04-30 Alan Modra <amodra@bigpond.net.au>
2462 * ldlang.c (unique_section_p): Pass section parm, return true on
2464 (output_section_callback): Adjust.
2465 * ldlang.h (unique_section_p): Update prototype.
2466 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust.
2468 2004-04-30 Eric Botcazou <ebotcazou@act-europe.fr>
2470 * ld.texinfo (--gc-sections): Remove restriction for
2473 2004-04-29 Brian Ford <ford@vss.fsi.com>
2475 * scripttempl/pe.sc: Handle .debug* and .gnu.linkonce.wi.* sections
2476 for DWARF 2/3. Update stab section's syntax.
2478 2004-04-29 Alan Modra <amodra@bigpond.net.au>
2480 * pe-dll.c: Revert changes accidentally committed 2004-03-08.
2481 (fill_edata): Correct pointer arithmetic.
2483 2004-04-21 Chris Demetriou <cgd@broadcom.com>
2485 * ld.texinfo: Remove MIPS --embedded-relocs documentation.
2486 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Remove definition.
2487 * emulparams/mipsidt.sh (TEMPLATE_NAME): Use generic.em.
2488 (EXTRA_EM_FILE): Use mipsecoff.em
2489 * emulparams/mipsidtl.sh (TEMPLATE_NAME): Use generic.em.
2490 (EXTRA_EM_FILE): Use mipsecoff.em
2491 * emultempl/mipsecoff.em: Restructure to be included as an
2492 extra emulation file.
2493 (check_sections, gld${EMULATION_NAME}_after_open)
2494 (gld${EMULATION_NAME}_after_allocation)
2495 (gld${EMULATION_NAME}_get_script)
2496 (ld_${EMULATION_NAME}_emulation): Remove
2497 (gld${EMULATION_NAME}_before_parse): Rename to...
2498 (mipsecoff_before_parse): This.
2499 (LDEMUL_BEFORE_PARSE): Define.
2500 * emultempl/mipself.em: Remove file.
2501 * scripttempl/mips.sc (.rel.sdata): Do not include in output.
2502 (__runtime_reloc_start, __runtime_reloc_stop): Stop providing
2504 * Makefile.am: Remove dependencies on emultempl/mipself.em.
2505 * Makefile.in: Regenerate.
2507 2004-04-21 Anil Paranjpe <anilp1@kpitcummins.com>
2509 * ld.texinfo (synthesizing on H8/300): Information about linker
2510 relaxation support for bit manipulation instructions and system
2511 control instructions is added.
2513 2004-04-21 Hans-Peter Nilsson <hp@axis.com>
2515 * NEWS: Mention change in DEFINED semantics.
2517 2004-04-21 Eric Botcazou <ebotcazou@act-europe.fr>
2519 * scripttempl/elf.sc (.text): Add KEEP for .text.*personality*.
2520 (.data): Add KEEP for .gnu.linkonce.d.*personality*.
2521 (.gcc_except_table): Add KEEP for self and accept .gcc_except_table.*.
2523 2004-04-21 Ben Elliston <bje@au.ibm.com>
2525 * ld.texinfo (Simple Example): Add missing punctuation.
2527 2004-04-20 Chris Demetriou <cgd@broadcom.com>
2529 * NEWS: Note that MIPS --embedded-relocs option is deprecated.
2531 2004-04-19 Jakub Jelinek <jakub@redhat.com>
2533 * ldlang.c (lang_do_assignments_1): Handle .tbss output section
2536 2004-04-18 Danny Smith <dannysmith@users.sourceforge.net>
2538 * scriptempl/pe.sc: Put numbered .ctors.* after .ctors
2539 with default priority. Likewise for dtors.
2541 2004-04-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2543 * configure.host: Remove mips*-dec-bsd* target.
2544 * configure.tgt: Likewise.
2546 2004-04-08 Richard Sandiford <rsandifo@redhat.com>
2548 * emulparams/elf32bsmip.sh (EXTRA_EM_FILE): Define to irix.
2549 * emulparams/elf64bmip.sh (EXTRA_EM_FILE): Likewise.
2550 * emulparams/elf32bmipn32.sh (EXTRA_EM_FILE): Likewise.
2551 * emultempl/irix.em: New file.
2552 * Makefile.am (eelf32bsmip.c, eelf32bmipn32.c, eelf64bmip.c): Update
2554 * Makefile.in: Regenerate.
2556 2004-04-01 Paul Brook <paul@codesourcery.com>
2558 * emultempl/armelf.em (byteswap_code): Add.
2559 (arm_elf_before_allocation): Pass extra parameter.
2560 (PARSE_AND_LIST_PROLOGUE): Add OPTION_BE8.
2561 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add be8.
2562 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_BE8.
2563 * emultempl/armelf_oabi.em: Pass extra parameter.
2564 * ld.texinfo: Document --be8.
2566 2004-03-30 Stan Shebs <shebs@apple.com>
2568 Remove long-obsolete MPW support.
2569 * mpw-config.in, mpw-make.sed, mac-ld.r: Remove files.
2570 * Makefile.am (mpw): Remove file-presynthesizing actions.
2571 * Makefile.in: Likewise.
2572 * ldfile.c (slash): Remove MPW case.
2573 * ldlex.l [MPW]: Remove unused definition.
2575 2004-03-30 Galit Heller <Galit.Heller@nsc.com>
2577 * Makefile.am (ALL_EMULATIONS): Add eelf32cr16c.o.
2578 (eelf32cr16c.c): New target.
2579 * Makefile.in: Regenerate.
2580 * configure.tgt: Handle cr16c-*-elf*.
2581 * emulparams/elf32cr16c.sh: New file.
2582 * scripttempl/elfcr16c.sc: Likewise
2583 * NEWS: Mention support for new target.
2585 2004-03-30 Nick Clifton <nickc@redhat.com>
2587 * po/sv.po: Updated Swedish translation.
2589 2004-03-27 Alan Modra <amodra@bigpond.net.au>
2591 * emultempl/elf32.em: Update new bfd_elf_discard_info name.
2592 * emultempl/hppaelf.em: Likewise.
2593 * emultempl/ppc64elf.em: Likewise.
2594 * emultempl/sh64elf.em: Likewise.
2596 2004-03-25 Alan Modra <amodra@bigpond.net.au>
2598 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Update
2599 size_dynamic_sections call.
2601 2004-03-23 Alan Modra <amodra@bigpond.net.au>
2604 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Set
2605 link_info.wrap_char.
2607 2004-03-20 H.J. Lu <hongjiu.lu@intel.com>
2609 * lexsup.c (parse_args): Don't set unresolved_syms_in_objects
2610 or unresolved_syms_in_shared_libs for -Bdynamic and -Bstatic.
2612 2004-03-20 Alexandre Oliva <aoliva@redhat.com>
2614 * emulparams/elf32frvfd.sh (MAXPAGESIZE): Change to 16Kb.
2616 2004-03-19 Alan Modra <amodra@bigpond.net.au>
2618 * config.in: Regenerate.
2619 * po/ld.pot: Regenerate.
2621 2004-03-18 Alan Modra <amodra@bigpond.net.au>
2623 * ld.texinfo: Add --as-needed doco.
2624 * ldmain.c (as_needed): New global var.
2625 * ldmain.h (as_needed): Declare.
2626 * lexsup.c (option_values): Add OPTION_AS_NEEDED and
2627 OPTION_NO_AS_NEEDED.
2628 (ld_options): Likewise.
2629 (parse_args): Handle them.
2630 * ldlang.h (lang_input_statement_type): Add as_needed field.
2631 * ldlang.c (new_afile): Set p->as_needed.
2632 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): New function.
2633 (gld${EMULATION_NAME}_try_needed): Use bfd_elf_set_dyn_lib_class.
2634 (ld_${EMULATION_NAME}_emulation): Set LDEMUL_RECOGNIZED_FILE entry.
2636 * ldlang.c (open_input_bfds): Remove useless cast.
2637 (lang_do_assignments_1): Likewise.
2638 (lang_for_each_input_section): Delete.
2640 2004-03-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
2642 * configure.tgt: Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff*.
2644 2004-03-08 Danny Smith <dannysmith@users.sourceforge.net>
2646 * pe-dll.c (pe_dll_generate_implib): Skip sections marked as
2647 private when building implib.
2649 2004-03-05 Nathan Sidwell <nathan@codesourcery.com>
2651 * ldlang.c (lang_add_section): Don't force SEC_LOAD on
2653 (IGNORE_SECTION): Ignore .tbss sections too.
2654 (lang_size_sections_1): .tbss sections do not advance dot.
2656 2004-03-01 Andreas Schwab <schwab@suse.de>
2658 * ld.texinfo (Options): Fix example for --wrap.
2660 2004-02-25 Danny Smith <dannysmith@users.sourceforge.net>
2662 * pe-dll.c (fill_edata): Check that exported_symbol_sections is
2665 2004-02-23 Ian Lance Taylor <ian@wasabisystems.com>
2667 * ldlang.c (lang_check): Use %P, not %E, in error message.
2669 2004-02-23 Nathan Sidwell <nathan@codesourcery.com>
2671 * ldlang.h (struct lang_output_section_state): Change processed
2673 * ldexp.c (check, invalid): Remove.
2674 (fold_name): Move valid_p assignments. Create undefined symbol
2675 when needed. Directly exampine section's processd flag.
2676 * ldlang.c (lang_output_section_statement_lookup): Adjust
2677 processed field init.
2678 (lang_size_sections_1): Allow LOADADDR when determining section's
2679 VMA. Adjust error message. Fold data statement's expr.
2680 (lang_size_sections): Correctly increment lang_statement_iteration.
2682 2004-02-23 Alan Modra <amodra@bigpond.net.au>
2684 * ldexp.c (fold_tree): Follow indirect symbols.
2686 2004-02-20 Nathan Sidwell <nathan@codesourcery.com>
2688 * ldgram.y (exp): Add two operand ALIGN.
2689 * ldexp.c (fold_binary): Add ALIGN_K case.
2690 * ld.texinfo (ALIGN): Document two operand version.
2692 2004-02-19 Nathan Sidwell <nathan@codesourcery.com>
2694 * ldlang.c (map_input_to_output_sections): Initialize sections
2695 mentioned in a data statement expression.
2696 (lang_do_assignments_1): Add data statement's expression's
2699 2004-02-18 Nathan Sidwell <nathan@codesourcery.com>
2701 * ldgram.y (statement_anywhere): Add assert rule.
2702 * ldlang.c (exp_init_os): Add assert case.
2704 2004-02-14 Andrew Cagney <cagney@redhat.com>
2706 * ldmain.c (remove_output): Call bfd_cache_close.
2708 2004-02-14 Richard Sandiford <rsandifo@redhat.com>
2710 * emulparams/elf32bmipn32-defs.sh (OTHER_SECTIONS): Discard
2711 .MIPS.content* and .MIPS.events* sections.
2713 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
2715 * emulparams/armelf.sh, emulparams/armelf_linux.sh: Move
2716 .note.gnu.arm.ident to after allocated sections. Mark its
2719 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
2721 * emulparams/armelf_linux.sh (COMMONPAGESIZE): Set to 4KB.
2722 * emulparams/elf32bmip.sh (COMMONPAGESIZE): Likewise.
2723 * emulparams/elf32bmipn32.sh (COMMONPAGESIZE): Likewise.
2724 * emulparams/elf32btsmipn32.sh (COMMONPAGESIZE): Likewise.
2725 * emulparams/shlelf_linux.sh (COMMONPAGESIZE): Likewise.
2727 2004-02-05 Nick Clifton <nickc@redhat.com>
2729 * emultempl/pe.em (_after_open): Fix typo in previous delta.
2731 2004-02-04 Danny Smith <dannysmith@users.sourceforge.net>
2733 * emultempl/pe.em (_after_open): Fix thinko in 2003-12-18 patch.
2735 2004-01-28 Alan Modra <amodra@bigpond.net.au>
2737 * genscripts.sh: Fix typo.
2739 * genscripts.sh: Apply $LIBPATH_SUFFIX to $tool_lib and $libdir too.
2741 2004-01-24 Jakub Jelinek <jakub@redhat.com>
2743 * emulparams/elf64_ia64.sh: Put .rela.opd into
2744 OTHER_GOT_RELOC_SECTIONS instead of OTHER_PLT_RELOC_SECTIONS.
2746 2004-01-20 Danny Smith <dannysmith@users.sourceforge.net>
2748 * pe-dll.c (pe_create_import_fixup): Clear WP_TEXT flag.
2749 * ld.texinfo (--omagic): Note that writable text section
2750 does not conform to published PE-COFF specs.
2751 (--enable-auto-import): Likewise.
2753 2004-01-15 Alan Modra <amodra@bigpond.net.au>
2755 * emulparams/elf32ppc.sh (COMMONPAGESIZE): Define.
2757 2004-01-13 Nick Clifton <nickc@redhat.com>
2759 * ldlang.c (lang_get_regions): Add extra parameter 'have_vma'
2760 which if true will prevent the LMA region being used as a
2761 replacement for a default VMA region.
2762 (lang_leave_output_section_statement): Pass extra parameter.
2763 (lang_leave_overlay): Likewise.
2764 * ld.texinfo (Output Section LMA): Document that the LMA
2765 region can be set to the VMA region if no VMA has been set.
2766 * ldlang.h (struct lang_output_section_phdr_list): Create a
2767 typedef for this type. Minor formatting fixes.
2769 2004-01-13 Nick Clifton <nickc@redhat.com>
2771 * ldlang.c (lang_size_sections_1): If dot is advanced, then
2772 assume that the section should be allocated.
2774 2004-01-13 Alan Modra <amodra@bigpond.net.au>
2776 * ldlang.c (IGNORE_SECTION): Don't ignore SEC_ALLOC && !SEC_LOAD
2777 sections. Do ignore SEC_NEVER_LOAD sections.
2778 (lang_size_sections_1): Remove test made redundant with the above.
2780 2004-01-09 Alan Modra <amodra@bigpond.net.au>
2782 * emultempl/ppc64elf.em (ppc_before_allocation): Clear cached
2783 program_header_size.
2785 2004-01-06 Alexandre Oliva <aoliva@redhat.com>
2787 2003-11-28 Alexandre Oliva <aoliva@redhat.com>
2788 * emulparams/elf32frvfd.sh (EMBEDDED): Clear.
2789 2003-11-05 Alexandre Oliva <aoliva@redhat.com>
2790 * emulparams/elf32frvfd.sh (STACK_ADDR): Unset.
2791 (MAXPAGESIZE): Set to 64Kb.
2792 (OTHER_READONLY_SECTIONS): Define __ROFIXUP_LIST__ and
2793 __ROFIXUP_END__. Don't map .rofixup.got any more.
2794 * emulparams/elf32frv.sh (NOP): Set.
2795 2003-10-31 Alexandre Oliva <aoliva@redhat.com>
2796 * configure.tgt: Add frv-*-*linux*.
2797 2003-09-30 Alexandre Oliva <aoliva@redhat.com>
2798 * Makefile.am (ALL_EMULATIONS): Added eelf32frvfd.o.
2799 (eelf32frvfd.c): New.
2800 * configure.tgt <frv-*-*>: Added it to targ_extra_emuls.
2801 * emulparams/elf32frv.sh: Reverted previous two patches.
2802 * emulparams/elf32frvfd.sh: New.
2803 * Makefile.in: Rebuilt.
2804 2003-09-18 Alexandre Oliva <aoliva@redhat.com>
2805 * emulparams/elf32frv.sh (OTHER_READONLY_SECTIONS): Added
2806 .rofixup.got to .rofixup.
2807 2003-09-15 Alexandre Oliva <aoliva@redhat.com>
2808 * emulparams/elf32frv.sh (MAXPAGESIZE): Make it 256KiB, not 256B.
2809 (TEMPLATE_NAME, GENERATE_SHLIB_SCRIPT): Set.
2811 2004-01-05 Jakub Jelinek <jakub@redhat.com>
2813 * emulparams/elf_s390.sh (NO_SMALL_DATA): Set to yes.
2814 * emulparams/elf64_s390.sh (NO_SMALL_DATA): Set to yes.
2816 2004-01-03 Alan Modra <amodra@bigpond.net.au>
2818 * ldexp.c (align_n): Make static.
2819 * ldexp.h (align_n): Delete declaration.
2820 * ldlang.h (lang_enter_output_section_statement): Remove
2822 * ldlang.c (lang_enter_output_section_statement): Likewise.
2823 (TO_ADDR, TO_SIZE): Define.
2824 (opb_shift): New var.
2825 (init_opb): New function.
2826 (print_input_section): Call init_opb and use TO_ADDR.
2827 (print_data_statement, print_reloc_statement): Likewise.
2828 (print_padding_statement): Likewise.
2829 (size_input_section): Use TO_SIZE and TO_ADDR, and global opb_shift.
2830 (lang_check_section_addresses): Likewise.
2831 (lang_size_sections_1): Likewise.
2832 (lang_do_assignments_1): Likewise.
2833 (lang_set_startof): Likewise.
2834 (lang_one_common): Likewise. Combine power_of_two and opb_shift align.
2835 (lang_process): Call init_opb.
2836 (lang_abs_symbol_at_end_of): Use TO_ADDR and global opb_shift.
2837 (lang_enter_overlay_section): Adjust
2838 lang_enter_output_section_statement call.
2839 * ldgram.y: Likewise.
2840 * mri.c (mri_draw_tree): Likewise.
2841 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Likewise.
2842 * emultempl/mmo.em (mmo_place_orphan): Likewise.
2843 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Likewise.
2845 * ldfile.c (ldfile_set_output_arch): Add defarch param.
2846 * ldfile.h (ldfile_set_output_arch): Ditto.
2847 * emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Use
2848 ldfile_set_output_arch.
2849 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Ditto.
2850 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Ditto.
2851 * emultempl/linux.em (gld${EMULATION_NAME}_before_parse): Ditto.
2852 * emultempl/mipsecoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
2853 * emultempl/pe.em (gld${EMULATION_NAME}_before_parse): Ditto.
2854 * emultempl/sunos.em (gld${EMULATION_NAME}_before_parse): Ditto.
2855 * ldgram.y: Adjust ldfile_set_output_arch call.
2856 * emultempl/armcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
2857 * emultempl/armelf.em (gld${EMULATION_NAME}_before_parse): Ditto.
2858 * emultempl/armelf_oabi.em (gld${EMULATION_NAME}_before_parse): Ditto.
2859 * emultempl/generic.em (gld${EMULATION_NAME}_before_parse): Ditto.
2860 * emultempl/gld960c.em (gld960_set_output_arch): Ditto.
2861 * emultempl/m68kcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
2862 * emultempl/ticoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
2864 2004-01-02 Bernardo Innocenti <bernie@develer.com>
2866 * configure.tgt: Add m68k-uClinux target.
2868 For older changes see ChangeLog-0203
2874 version-control: never