1 2005-10-05 Danny Smith <dannysmith@users.sourceforge.net>
3 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse): Set
4 default entry symbol to ENTRY here.
5 * scripttempl/pe.sc: Not here.
7 2005-09-30 James E Wilson <wilson@specifix.com>
9 * ldlang.c (lang_startup): Add missing ": " to einfo call.
11 2005-09-30 H.J. Lu <hongjiu.lu@intel.com>
13 * Makefile.am: Run "make dep-am".
14 * Makefile.in: Regenerated.
15 * aclocal.m4: Likewise.
17 2005-09-30 H.J. Lu <hongjiu.lu@intel.com>
19 * ldlang.c (output_statement_hash_entry): New type.
20 (output_statement_table): New variable for hash table.
21 (output_statement_newfunc): New function.
22 (output_statement_table_init): Likewise.
23 (output_statement_table_free): Likewise.
24 (lang_init): Call output_statement_table_init.
25 (lang_finish): Renamed to ...
27 (lang_process): Updated.
28 (lang_finish): New function.
29 (lang_output_section_find_1): Use hash table.
30 (lang_output_section_statement_lookup_1): Likewise.
32 * ldlang.h (lang_finish): New.
34 * ldmain.c (main): Call lang_finish.
36 2005-09-30 Mark Mitchell <mark@codesourcery.com>
38 * ldmain.c (main): Use expandargv.
40 2005-09-30 Catherine Moore <clm@cm00re.com>
42 * Makefile.am: Bfin support.
43 * Makefile.in: Regenerated.
44 * aclocal.m4: Regenerated.
45 * configure.tgt: Bfin support.
46 * emulparams/bfin.sh: New file.
47 * emultempl/bfin.em: New file.
49 2005-09-30 Matthias Kurz <mk@baerlap.north.de>
51 * ld.h: Prevent the inclusion of <libintl.h> from the Solaris
52 version of <locale.h> when ENABLE_NLS is not defined.
54 2005-09-27 H.J. Lu <hongjiu.lu@intel.com>
56 * ld.texinfo (ALIGN): Document it as forcing output section
59 * ldgram.y (ALIGN): Support it for forcing output section
62 2005-09-20 Alan Modra <amodra@bigpond.net.au>
64 * ldlang.h (lang_output_section_statement_struct): Change type of
65 "processed" to bfd_boolean.
66 * ldexp.c (fold_name): Update references to os->processed.
67 * ldlang.c (lang_output_section_statement_lookup_1): Likewise.
68 (lang_size_sections_1): Likewise.
69 (lang_reset_memory_regions): Likewise.
72 * ldlang.c (lang_size_sections_1): Process addr_tree earlier,
73 so that unused output section statements affect dot.
75 2005-09-08 Jakub Jelinek <jakub@redhat.com>
77 * ld.texinfo: Document -z {no,}execstack, -z {no,}relro
78 and --eh-frame-hdr options.
80 2005-09-07 Alan Modra <amodra@bigpond.net.au>
82 * ldexp.c (fold_name <SIZEOF>): Return 0 for non-existent section.
83 (exp_fold_tree_1): Print assert message only in final stage of
84 linking. Trigger assertion failure if expression cannot be
87 2005-09-06 H.J. Lu <hongjiu.lu@intel.com>
90 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): Check
91 --just-symbols on DSO.
93 2005-08-18 Alan Modra <amodra@bigpond.net.au>
95 * scripttempl/elf.sc: Remove commented out defines.
97 2005-08-18 Alan Modra <amodra@bigpond.net.au>
99 * emulparams/a29k.sh: Delete.
100 * emulparams/ebmon29k.sh: Delete.
101 * emulparams/sa29200.sh: Delete.
102 * Makefile.am: Remove a29k support.
103 * configure.tgt: Likewise.
104 * ld.texinfo: Likewise.
105 * Makefile.in: Regenerate.
107 2005-08-17 Jakub Jelinek <jakub@redhat.com>
109 * ldgram.y (vers_defns): Don't lose pattern list before
110 extern NAME {}. Handle global, local and extern symbol names.
112 2005-08-17 Kaz Kojima <kkojima@rr.iij4u.or.jp>
114 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_after_allocation):
115 Don't increment rel_count of .cranges here. Set rawsize of .cranges.
117 2005-08-10 Nick Clifton <nickc@redhat.com>
119 * pe-dll.c (pe_exe_fill_sections): Call lang_reset_memory_regions
120 before lang_size_sections.
122 2005-08-09 Alan Modra <amodra@bigpond.net.au>
124 * emulparams/hppa64linux.sh (LARGE_SECTIONS): Remove .tbss.
126 2005-08-08 Eric Doenges <Eric.Doenges@betty-tv.com>
128 * Makefile.am (ALL_EMULATIONS): Add msp430x21xx variants.
129 Add rules to build these emulations.
130 * Makefile.in: Regenerate.
131 * configure.tgt (msp430): Add the new variants to the
132 targ_extra_emuls list.
133 * emulparams/msp430all.sh: Add entries for the msp430x21xx
136 2005-08-05 H.J. Lu <hongjiu.lu@intel.com>
138 * ld.texinfo: Document PROVIDE_HIDDEN.
140 * ldexp.c (exp_fold_tree_1): Hide a provided symbol if asked.
141 (exp_provide): Add and set hidden.
143 * ldexp.h (etree_type): Add hidden to assign.
145 * ldgram.y (PROVIDE_HIDDEN): New.
146 * ldlex.l (PROVIDE_HIDDEN): Likewise.
148 * scripttempl/elf.sc: Use PROVIDE_HIDDEN on array bound
151 2005-08-05 Alan Modra <amodra@bigpond.net.au>
153 * emulparams/elf_x86_64.sh: Revert last change.
154 * scripttempl/elf.sc (REL_LARGE, LARGE_SECTIONS): Define here.
156 2005-08-05 Alan Modra <amodra@bigpond.net.au>
158 * emulparams/armelf.sh (OTHER_BSS_END_SYMBOLS): Split out from
160 * emulparams/armelf_linux.sh: Likewise.
161 * emulparams/armnto.sh: Likewise.
162 * emulparams/criself.sh: Likewise.
163 * emulparams/elf32mcore.sh: Likewise.
164 * emulparams/criself.sh (OTHER_SYMBOLS): Define.
165 * emulparams/crislinux.sh (OTHER_SYMBOLS): Define.
166 (OTHER_END_SYMBOLS): Don't define.
167 * emulparams/elf32fr30.sh: Likewise.
168 * emulparams/elf64mmix.sh: Likewise.
169 * emulparams/hppa64linux.sh: Likewise.
170 * emulparams/m32relf.sh: Likewise.
171 * emulparams/vxworks.sh: Likewise.
172 * scripttempl/armbpabi.sc (OTHER_BSS_SECTIONS): Delete.
173 (OTHER_BSS_END_SYMBOLS): Add.
174 (OTHER_END_SYMBOLS): Move before current end sym definitions.
175 (OTHER_SYMBOLS): Replace OTHER_END_SYMBOLS near end of script.
176 * scripttempl/elf.sc: Likewise.
177 * scripttempl/elf32sh-symbian.sc: Likewise.
178 * scripttempl/elf_chaos.sc: Likewise.
179 * scripttempl/elfxtensa.sc: Likewise.
180 * scripttempl/iq2000.sc: Likewise.
181 * scripttempl/xstormy16.sc: Likewise.
183 * scripttempl/elf.sc (LBSS, LARGE_SECTIONS): Delete.
184 (REL_LDATA, REL_LBSS, REL_LRODATA): Delete.
185 (REL_LARGE, LARGE_SECTIONS): Add.
186 * emulparams/elf_x86_64.sh (LARGE_SECTIONS): Define as script text.
188 * emulparams/hppa64linux.sh (OTHER_BSS_SECTIONS): Don't define.
189 (LARGE_SECTIONS): Define.
190 * emulparams/hppa64linux.sh (OTHER_BSS_SECTIONS): Don't define.
191 (LARGE_SECTIONS): Define.
193 2005-08-04 Alan Modra <amodra@bigpond.net.au>
195 * ldemul.c (ldemul_do_assignments, do_assignments_default): Delete.
196 * ldemul.h (ldemul_do_assignments, do_assignments_default): Delete.
197 (struct ld_emulation_xfer_struct): Remove do_assignments field.
198 * ldlang.c (lang_do_assignments): Don't call ldemul_do_assignments.
199 * emulparams/elf32ppc.sh (SDATA_START_SYMBOLS): New.
200 (SDATA2_START_SYMBOLS, SBSS_START_SYMBOLS, SBSS_END_SYMBOLS): New.
201 * emultempl/aix.em (ld_*_emulation): Delete do_assignments init.
202 * emultempl/armcoff.em: Likewise.
203 * emultempl/beos.em: Likewise.
204 * emultempl/generic.em: Likewise.
205 * emultempl/gld960.em: Likewise.
206 * emultempl/gld960c.em: Likewise.
207 * emultempl/linux.em: Likewise.
208 * emultempl/lnk960.em: Likewise.
209 * emultempl/m68kcoff.em: Likewise.
210 * emultempl/pe.em: Likewise.
211 * emultempl/sunos.em: Likewise.
212 * emultempl/ticoff.em: Likewise.
213 * emultempl/vanilla.em: Likewise.
214 * emultempl/elf32.em: Likewise.
215 (gld*_provide_bound_symbols): Delete.
216 (gld*_provide_init_fini_syms): Delete.
217 (gld*_before_allocation): Don't call ldemul_do_assignments.
218 * emultempl/ppc32elf.em (ppc_do_assignments): Delete.
219 (LDEMUL_DO_ASSIGNMENTS): Delete.
220 * scripttempl/elf.sc: Provide init/fini syms. Add SBSS_START_SYMBOLS,
221 SBSS_END_SYMBOLS, SDATA2_START_SYMBOLS.
223 2005-08-04 Alan Modra <amodra@bigpond.net.au>
225 * Makefile.am (eelf32m32c.c): Fix dependencies.
226 * Makefile.in: Regenerate.
228 2005-08-04 Alan Modra <amodra@bigpond.net.au>
230 * ldemul.c (ldemul_finish): Call ld_emulation->finish unconditionally.
231 (finish_default): New function.
232 * ldemul.h (finish_default): Declare.
233 * emultempl/aix.em (gld*_before_allocation): Call
234 before_allocation_default rather than strip_excluded_output_sections.
235 (ld_*_emulation): Init finish field to finish_default.
236 * emultempl/armcoff.em: Likewise.
237 * emultempl/beos.em: Likewise.
238 * emultempl/elf32.em: Likewise.
239 * emultempl/generic.em: Likewise.
240 * emultempl/gld960.em: Likewise.
241 * emultempl/gld960c.em: Likewise.
242 * emultempl/hppaelf.em: Likewise.
243 * emultempl/linux.em: Likewise.
244 * emultempl/lnk960.em: Likewise.
245 * emultempl/m68kcoff.em: Likewise.
246 * emultempl/mmo.em: Likewise.
247 * emultempl/pe.em: Likewise.
248 * emultempl/ppc64elf.em: Likewise.
249 * emultempl/sunos.em: Likewise.
250 * emultempl/ticoff.em: Likewise.
251 * emultempl/vanilla.em: Likewise.
253 2005-08-03 Alan Modra <amodra@bigpond.net.au>
255 * ldlang.c (exp_init_os): Handle etree_provide.
256 * emulparams/armelf.sh (OTHER_END_SYMBOLS): Rename from..
257 (OTHER_BSS_END_SYMBOLS): ..this.
258 * emulparams/armelf_linux.sh: Likewise.
259 * emulparams/armnto.sh: Likewise.
260 * emulparams/criself.sh: Likewise.
261 * emulparams/crislinux.sh: Likewise.
262 * emulparams/elf32frv.sh: Likewise.
263 * emulparams/elf32mcore.sh: Likewise.
264 * emulparams/elf32ppc.sh: Likewise.
265 * emulparams/elf32ppclinux.sh: Likewise.
266 * emulparams/hppa64linux.sh: Likewise.
267 * scripttempl/armbpabi.sc: Substitute $OTHER_END_SYMBOLS, not
268 $OTHER_BSS_END_SYMBOLS.
269 * scripttempl/elf32sh-symbian.sc: Likewise.
270 * scripttempl/elf_chaos.sc: Likewise.
271 * scripttempl/iq2000.sc: Likewise.
272 * scripttempl/xstormy16.sc: Likewise.
273 * scripttempl/elf.sc: Likewise. Delete __bss_start comment.
274 * scripttempl/elfxtensa.sc: Likewise.
276 2005-07-29 Nick Clifton <nickc@redhat.com>
278 * ldmain.c (main): Allow -shared and -static to be used together.
279 * ld.texinfo (-static): Mention that it is allowed with -shared.
281 2005-07-28 DJ Delorie <dj@redhat.com>
283 * ldlang.c (lang_output_section_statement_lookup_1): Don't cast a
284 unary & address operator, as that breaks GCC's strict aliasing
287 2005-07-25 Jan Hubicka <jh@suse.cz>
288 H.J. Lu <hongjiu.lu@intel.com>
290 * emulparams/elf_x86_64.sh (LARGE_SECTIONS): New.
292 * scripttempl/elf.sc: Updated for large section support.
294 2005-07-21 Ralf Corsepius <ralf.corsepius@rtems.org>
296 * configure.tgt: Remove i[3-7]86-*-rtemself*.
297 Remove sparc-*-rtemself*.
299 2005-07-21 Ben Elliston <bje@gnu.org>
301 * ldgram.y (ldgram_want_filename): Remove unused static.
303 2005-07-20 DJ Delorie <dj@redhat.com>
305 * emulparams/elf32m32c.sh (TEMPLATE_NAME): New.
306 (EXTRA_EM_FILE): New.
308 2005-07-19 H.J. Lu <hongjiu.lu@intel.com>
310 * ldmain.c (main): Reindent.
312 2005-07-19 Paul Brook <paul@codesourcery.com>
314 * configure.host (HOSTING_CRT0): Parse output of gcc --help --verbose
315 to determine dynamic linker name.
317 2005-07-18 Nick Clifton <nickc@redhat.com>
319 * configure.tgt: Restore alpha ordering to list of arches.
321 2005-07-16 Alan Modra <amodra@bigpond.net.au>
323 * emultempl/elf32.em (gld*_provide_init_fini_syms): Prototype.
324 (gld*_before_allocation): Call ldemul_do_assignments rather than
325 gld*_provide_init_fini_syms directly.
326 * emultempl/ppc32elf.em (gld*_after_allocation): Delete.
327 (ppc_do_assignments): New function.
328 (LDEMUL_AFTER_ALLOCATION): Don't define.
329 (LDEMUL_DO_ASSIGNMENTS): Define.
331 2005-07-16 Alan Modra <amodra@bigpond.net.au>
333 * Makefile.am: Run "make dep-am".
334 (emipsidt.c, emipsidtl.c): Depend on generic.em.
335 * Makefile.in: Regenerate.
337 2005-07-15 Alan Modra <amodra@bigpond.net.au>
339 * ldemul.c (ldemul_do_assignments): New function.
340 (do_assignments_default): New function.
341 * ldemul.h (ldemul_do_assignments): Declare.
342 (do_assignments_default): Declare.
343 (struct ld_emulation_xfer_struct): Add do_assignments.
344 * ldlang.c (lang_do_assignments) Call ldemul_do_assignments.
345 * emultempl/aix.em (ld_*_emulation): Init do_assignments field.
346 * emultempl/armcoff.em: Likewise.
347 * emultempl/beos.em: Likewise.
348 * emultempl/generic.em: Likewise.
349 * emultempl/gld960.em: Likewise.
350 * emultempl/gld960c.em: Likewise.
351 * emultempl/linux.em: Likewise.
352 * emultempl/lnk960.em: Likewise.
353 * emultempl/m68kcoff.em: Likewise.
354 * emultempl/pe.em: Likewise.
355 * emultempl/sunos.em: Likewise.
356 * emultempl/ticoff.em: Likewise.
357 * emultempl/vanilla.em: Likewise.
358 * emultempl/elf32.em: Likewise, to call gld*_provide_init_fini_syms.
359 (gld*_find_exp_assignment): Adjust bfd_elf_record_link_assignment call.
361 2005-07-14 Jim Blandy <jimb@redhat.com>
363 Add support for the Renesas M32C and M16C.
364 * Makefile.am (ALL_EMULATIONS): Add eelf32m32c.o.
365 (eelf32m32c.c): New target.
366 * Makefile.in: Regenerated.
367 * configure.tgt: Add case for m32c-*-elf.
368 * emulparams/elf32m32c.sh: New file.
370 2005-07-14 Alan Modra <amodra@bigpond.net.au>
372 * ldlang.c (strip_excluded_output_sections): Don't call
374 * emultempl/elf32.em (gld*_provide_bound_symbols): Move.
375 (gld*_provide_init_fini_syms): Move.
376 (gld*_before_allocation): Call the above from here..
377 (gld*_finish): ..not here. Call _bfd_elf_fix_excluded_sec_syms.
378 * emultempl/hppaelf.em (hppaelf_finish): Likewise.
379 * emultempl/ppc64elf.em (ppc_finish): Likewise.
381 2005-07-10 Ralf Corsepius <ralf.corsepius@rtems.org>
383 * configure.tgt: Remove sparc*-*-rtemsaout*, i[3-7]86-go32-rtems*,
384 i[3-7]86-*-rtemscoff*, hppa*-*-rtems*, mips*el-*-rtems*,
387 2005-07-09 Christopher Faylor <cgf@timesys.com>
389 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse): Enable runtime
390 relocation by default.
391 (compute_dll_image_base): Avoid linking into cygwin dll address space.
393 2005-07-08 Alan Modra <amodra@bigpond.net.au>
395 * ldlang.c (wild_sort): Formatting.
396 (strip_excluded_output_sections): Strip zero size sections here.
397 * emultempl/elf32.em (gld*_strip_empty_sections): Delete.
398 (gld*_finish): Don't call the above.
399 * emultempl/hppaelf.em (hppaelf_finish): Likewise.
400 * emultempl/ppc64elf.em (ppc_finish): Likewise.
402 2005-07-05 Paul Brook <paul@codesourcery.com>
404 * Makefile.am (ALL_EMULATIONS): Add eelf32ppcvxworks.o.
405 (eelf32ppcvxworks.o): Add dependencies.
406 * Makefile.in: Regenerate.
407 * configure.tgt: Add entry for powerpc-vxworks.
408 * emulparams/elf32-ppc.c: Mention elf32ppcvxworks.sh in comment.
409 * emulparams/elf32ppcvxworks.sh: New file.
410 * emultempl/ppc32elf.em (bfd_elf32_powerpc_vxworks_vec): Declare.
411 (is_ppc_elf32_vec): New function.
412 (ppc_after_open, ppc_before_allocation,
413 gld${EMULATION_NAME}_after_allocation): Use it.
415 2005-07-05 Peter S. Mazinger" <ps.m@gmx.net>
417 * emulparams/elf32bmip.sh (GENERATE_PIE_SCRIPT): Define as "yes".
418 * emulparams/elf32bmipn32-defs.sh (GENERATE_PIE_SCRIPT): Define as "yes".
420 2005-07-04 Mike Frysinger <vapier@gentoo.org>
422 * emulparams/hppalinux.sh (GENERATE_PIE_SCRIPT): Fix typo in
425 2005-07-04 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
427 * emulparams/m32relf_linux.sh (GENERATE_PIE_SCRIPT): Set to yes.
429 2005-07-04 Aurelien Jarno <aurel32@debian.org>
431 * emultempl/elf32.em: Enable use of ld.so.conf for *-*-k*bsd-*.
433 2005-07-01 Alan Modra <amodra@bigpond.net.au>
435 * scripttempl/elf.sc (.gcc_except_table): Don't KEEP.
437 2005-06-30 Ben Elliston <bje@gnu.org>
439 * Makefile.am (check-DEJAGNU): Don't search for expect.
440 * Makefile.in: Regenerate.
442 2005-06-30 Ben Elliston <bje@gnu.org>
444 * Makefile.am (EXPECT): Set to expect.
445 (RUNTEST): Likewise, set to runtest.
446 * Makefile.in: Regenerate.
448 2005-06-16 Alexander Klimov <alserkli@inbox.ru>
450 * emultempl/armelf.em: Add quotes to avoid a null test
453 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
455 * ld.texinfo (Command Line Options): Add @item for --hash-size.
457 2005-06-10 Alan Modra <amodra@bigpond.net.au>
459 * scripttempt/elf.sc (.bss): Align tail in a way that allows
460 empty section pruning.
462 2005-06-09 Steve Ellcey <sje@cup.hp.com>
464 * configure.in (AM_BINUTILS_WARNINGS): Add.
465 (BFD_NEED_DECLARATION) Replace with AC_CHECK_DECLS.
466 * config.in: Regenerate.
467 * configure: Regenerate.
468 * sysdep.h (NEED_DECLARATION_*): Replace with HAVE_DECL_*
471 2005-06-09 Alan Modra <amodra@bigpond.net.au>
473 * ldexp.c (fold_unary <ALIGN_K>): Revert last change.
475 2005-06-09 Alan Modra <amodra@bigpond.net.au>
477 * ld.h (lang_phase_type): Move to..
478 * ldexp.h: ..here. Add lang_mark_phase_enum.
479 (node_type): Remove etree_undef and etree_unspec.
480 (exp_data_seg): Delete.
481 (struct ldexp_control, expld): New.
482 (invalid, exp_mark_used_section): Delete.
483 (exp_fold_tree, exp_get_vma, exp_get_value_int, exp_get_fill,
484 exp_get_abs_int): Update prototypes.
485 * ldexp.c (assigning_to_dot): Delete.
487 (make_abs): Operate directly on expld.result. Update all callers.
488 (new_abs): Likewise. Return void.
489 (new_rel_from_abs): Rename from new_rel_from_section.
490 (new_rel, new_rel_from_abs): Operate on expld.result and return void.
492 (fold_unary): Operate on expld.result and return void. Remove
493 "current_section", "allocation_done", "dot", "dotp" and "mark_used"
494 params. Update all callers.
495 (fold_binary, fold_trinary, fold_name, exp_fold_tree_1): Likewise.
496 (fold_unary <ALIGN_K>): Ensure alignment is absolute.
497 (fold_unary <ABSOLUTE>): Use make_abs.
498 (fold_unary <DATA_SEGMENT_END>): Evaluate mark_phase as for
500 (fold_binary <DATA_SEGMENT_ALIGN, DATA_SEGMENT_RELRO_END, >): Ditto.
501 (fold_binary <'%','/'>): Don't error if marking.
502 (fold_name <SIZEOF_HEADERS>): Don't call bfd_sizeof_headers when
504 (fold_name <NAME>): Remove FIXME; -R is handled correctly. Don't
506 (fold_name <ADDR, LOADADDR, SIZEOF>): Don't set SEC_KEEP.
507 (exp_fold_tree_1): Don't error when marking.
508 (exp_fold_tree_1 <etree_rel>): Evaluate in all phases except first.
509 (exp_fold_tree_1 <etree_assign to dot>): Don't check for NULL
510 current section, instead check for NULL dotp.
511 (exp_fold_tree_1 <etree_provide>): Don't evaluate the assignment
512 source unless the symbol is referenced and undefined.
513 (exp_fold_tree): Remove "allocation_done" and "dot" params. Save
515 (exp_fold_tree_no_dot): Remove "current_section", "allocation_done
516 and "mark_used" params. Save params to expld. Update all callers.
517 (exp_assop): Do without temp var.
518 (exp_print_tree <etree_undef>): Delete code.
519 (exp_get_vma): Remove "allocation_done" param. Correct error return.
520 (exp_get_fill, exp_get_abs_int): Likewise.
521 (exp_get_value_int): Remove "allocation_done" param.
522 (exp_mark_used_section): Delete.
523 * ldgram.y (fill_exp): Update exp_get_fill call.
524 (origin_spec, length_spec): Update exp_get_vma call.
525 * ldlang.c (lang_init): Don't bother clearing lang_statement_iteration.
526 (lang_mark_used_section_1, lang_mark_used_section): Delete.
527 (strip_excluded_output_sections): Call one_lang_size_sections_pass in
528 marking mode. Merge old lang_mark_used_section code. Correct handling
529 of output sections with excluded input sections and data statements.
530 Don't drop non-zero sized sections. Don't zap os->bfd_section.
531 Do set SEC_EXCLUDE when appropriate.
532 (print_output_section_statement): Update for changed ldexp.c
534 (print_assignment, lang_size_sections_1): Likewise.
535 (lang_do_assignments_1, lang_enter_output_section_statement): Likewise.
536 (lang_new_phdr, lang_record_phdrs): Likewise.
537 (lang_size_sections): Likewise.
538 (insert_pad): Use following statement if it is a pad, rather than
540 (lang_size_sections_1 <lang_output_section_statement_enum>): Do
541 process ignored output section to set vma and lma, but don't
542 update dot for these sections. Don't error if marking.
543 (lang_size_sections_1 <lang_assignment_statement_enum>): Don't
544 update dot for ignored sections.
545 (lang_size_sections_1 <lang_data_statement_enum>): Don't mark absolute
546 section with SEC_ALLOC.
547 (one_lang_size_sections_pass): New function.
548 (lang_size_sections): Remove first five params. Set expld.phase on
549 entry and exit. Use one_lang_size_sections_pass.
550 (lang_do_assignments): Remove all params. Update all callers.
551 (lang_reset_memory_regions): Clear os->processed for all output
553 * ldlang.h (lang_do_assignments): Update prototype.
554 (lang_size_sections): Likewise.
555 (one_lang_size_sections_pass): Declare.
556 * pe-dll.c (pe_dll_fill_sections, pe_exe_fill_sections): Update
557 lang_size_sections and lang_do_assignments calls.
558 * emultempl/elf32.em (layout_sections_again): Likewise.
559 * emultempl/ppc64elf.em (ppc_before_allocation): Use
560 one_lang_size_sections_pass.
562 2005-06-08 Aldy Hernandez <aldyh@redhat.com>
564 * emulparams/elf32ms1.sh: New.
566 2005-06-07 Eric Christopher <echristo@redhat.com>
568 * Makefile.am (eelf32ms1.c): Use tab.
569 * Makefile.in: Regenerate.
571 2005-06-07 Aldy Hernandez <aldyh@redhat.com>
572 Michael Snyder <msnyder@redhat.com>
573 Stan Cox <scox@redhat.com>
575 * configure.tgt: Same.
577 * Makefile.am (ALL_EMULATIONS): Depend on eelf32ms1.o.
578 (eelf32ms1.c): Add eelf32ms1.c rule.
580 * Makefile.in: Regenerate.
582 2005-06-06 Alan Modra <amodra@bigpond.net.au>
584 * emultempl/ppc64elf.em (ppc_before_allocation): Always run
587 2005-06-05 H.J. Lu <hongjiu.lu@intel.com>
589 * ldexp.c (exp_mark_used_section): Set SEC_KEEP on current
590 section only if the symbol will be defined.
592 2005-06-04 H.J. Lu <hongjiu.lu@intel.com>
595 * ldexp.c (exp_mark_used_section): Set SEC_KEEP on current
596 section for etree_assign, etree_provide and etree_provided.
597 Call fold_binary on etree_binary.
599 * ldlang.c (lang_mark_used_section_1): Handle load base.
601 2005-06-03 Alan Modra <amodra@bigpond.net.au>
603 * ldmain.c (link_callbacks): Add einfo.
604 (add_archive_element): Use passed info, not link_info.
605 (constructor_callback): Likewise.
606 (reloc_overflow): Don't handle null bfd specially.
607 (reloc_dangerous, unattached_reloc): Likewise.
608 * ldmisc.c (vfinfo <B>): Print "ld generated" for null bfd.
609 (vfinfo <C, D, G>): Handle null bfd. Wrap comments.
611 2005-06-02 Alan Modra <amodra@bigpond.net.au>
613 * ldexp.h (etree_value_type): Use "asection *" in place of
614 "struct lang_output_section_statement_struct *" for "section".
615 (exp_fold_tree): Likewise.
616 (exp_mark_used_section): Likewise.
617 * ldexp.c (new_rel, new_rel_from_section, fold_unary, fold_binary,
618 fold_trinary, fold_name, exp_fold_tree_1, exp_fold_tree,
619 exp_mark_used_section): Likewise for "current_section" param.
620 (make_abs, new_abs, exp_binop, exp_unop, exp_get_vma, exp_get_fill,
621 exp_get_abs_int): Adjust for above changes.
622 * ldlang.c (lang_mark_used_section_1, print_assignment,
623 lang_size_sections_1, lang_do_assignments_1): Likewise.
624 * ldexp.c (fold_name): Init entire result struct.
626 2005-06-01 Maciej W. Rozycki <macro@linux-mips.org>
628 * emulparams/elf32btsmip.sh: Unset DATA_ADDR.
630 2005-05-31 Zack Weinberg <zack@codesourcery.com>
632 * ldlang.c (entry_symbol_default): New file-scope global.
633 (lang_finish): Use it, not a hardwired "start".
634 (lang_default_entry): Set it.
635 * ldlang.h: Declare lang_default_entry.
636 * emultempl/beos.em, emultempl/pe.em: Use lang_default_entry,
637 not lang_add_entry, to override default entry point symbol.
639 2005-05-29 Richard Henderson <rth@redhat.com>
641 * emulparams/elf64alpha.sh (PLT): New.
643 * emultempl/alphaelf.em (disable_relaxation): New.
644 (limit_32bit): Rename from elf64alpha_32bit; update all users.
645 (elf64_alpha_use_secureplt): Declare.
646 (bfd_elf64_alpha_vec, bfd_elf64_alpha_freebsd_vec): Declare.
647 (alpha_after_open): New.
648 (alpha_before_allocation): New.
649 (OPTION_NO_RELAX, OPTION_SECUREPLT, OPTION_NO_SECUREPLT): New.
650 (PARSE_AND_LIST_LONGOPTS): Include them.
651 (PARSE_AND_LIST_OPTIONS): Likewise.
652 (PARSE_AND_LIST_ARGS_CASES): Likewise.
653 (LDEMUL_AFTER_OPEN, LDEMUL_BEFORE_ALLOCATION): New.
654 * scripttempl/elf.sc (TEXT_PLT): New.
657 2005-05-27 Andreas Schwab <schwab@suse.de>
659 * configure.host (HOSTING_LIBS): Add libunwind.a if it exists.
661 2005-05-24 Alan Modra <amodra@bigpond.net.au>
663 * emultempl/ppc32elf.em (after_allocation): Don't call
664 ppc_elf_set_sdata_syms when relocatable.
666 2005-05-21 H.J. Lu <hongjiu.lu@intel.com>
668 * Makefile.am (ld.1): Revert the last 2 changes.
669 (info-recursive): Depend on ld.1.
670 * Makefile.in: Regenerated.
672 2005-05-21 H.J. Lu <hongjiu.lu@intel.com>
674 * Makefile.am (ld.1): Depend on "info" instead of
675 "configdoc.texi ldver.texi".
676 * Makefile.in: Regenerated.
678 2005-05-21 H.J. Lu <hongjiu.lu@intel.com>
680 * Makefile.am (ld.1): Depend on "info".
681 * Makefile.in: Regenerated.
683 2005-05-19 Zack Weinberg <zack@codesourcery.com>
685 * Makefile.am: Have 'all' depend on 'info' and 'ld.1'.
686 * Makefile.in: Regenerate.
688 2005-05-17 Zack Weinberg <zack@codesourcery.com>
690 * ld-arm/mixed-app.d: Adjust expected disassembly a little.
692 2005-05-17 Daniel Jacobowitz <dan@codesourcery.com>
694 * Makefile.am (ldver.texi): Don't use $<.
695 * Makefile.in: Regenerated.
697 2005-05-17 Daniel Jacobowitz <dan@codesourcery.com>
699 * Makefile.am (AM_MAKEINFOFLAGS, TEXI2DVI): Explicitly include
700 $(srcdir) before $(BFDDIR)/doc.
701 * Makefile.in: Regenerated.
703 2005-05-17 H.J. Lu <hongjiu.lu@intel.com>
706 * ldexp.c (exp_fold_tree_1): Renamed from exp_fold_tree and
707 take take a bfd_boolean, mark_used. Ignore assert failure if
709 (exp_fold_tree) Call exp_fold_tree_1 with mark_used == FALSE.
710 (exp_fold_tree_no_dot): Updated to take a bfd_boolean,
711 mark_used and pass down.
712 (fold_unary): Likewise.
713 (fold_binary): Likewise.
714 (fold_trinary): Likewise.
715 (exp_binop): Add FALSE to call to exp_fold_tree_no_dot.
716 (exp_trinop): Likewise.
717 (exp_unop): Likewise.
718 (exp_nameop): Likewise.
719 (exp_get_vma): Likewise.
720 (exp_get_fill): Likewise.
721 (exp_get_abs_int): Likewise.
722 (fold_name): Likewise. Set SEC_KEEP in output section flags.
723 (exp_mark_used_section): New.
725 * ldexp.h (exp_mark_used_section): New.
727 * ldlang.c (lang_output_section_statement_lookup_1): Set the
728 ignored field to FALSE.
729 (lang_mark_used_section_1): New.
730 (lang_mark_used_section): Call lang_mark_used_section_1.
731 (strip_excluded_output_sections): Call lang_mark_used_section
732 and check for unused sections.
733 (lang_size_sections_1): Skip an output section if it should
735 (lang_do_assignments_1): Likewise.
736 (lang_process): Don't call lang_mark_used_section here.
738 * ldlang.h (lang_output_section_statement_type): Change
739 all_input_readonly to bitfield. Add ignored.
741 2005-05-17 Lennert Buytenhek <buytenh@wantstofly.org>
742 Peter S. Mazinger" <ps.m@gmx.net>
744 * emulparams/armelf_linux.sh (GENERATE_PIE_SCRIPT): Define as "yes".
745 * emulparams/hppalinux.sh (GENERATE_PIE_SCRIPT): Define as "yes".
747 2005-05-17 Julian Brown <julian@codesourcery.com>
749 * ldlang.c (print_assignment): Do not rely upon a valid result
750 having a section associated with it.
752 2005-05-17 Nick Clifton <nickc@redhat.com>
754 * ldlang.c (Scan_for_self_assignment): Check an assignment tree to
755 see if the same value is being used on the rhs as on the lhs.
756 (print_assignment): Call scan_for_self_assignment and if it
757 returns true, do no display the result of the computation but
758 instead just the final value of the symbol on the lhs.
759 * ld.texinfo: Document this behaviour and provide an example of
762 2005-05-15 Daniel Jacobowitz <dan@codesourcery.com>
764 * Makefile.am (AM_MAKEINFOFLAGS): Define.
766 (ldver.texi): Depend on distributed files instead of built files.
767 (ld.info): Include $(srcdir) in the rule target. Remove actions.
768 (ld.dvi): Remove actions.
769 (MAINTAINERCLEANFILES): Add configdoc.texi.
770 (CONFIG_STATUS_DEPENDENCIES): Add bfd/configure.in.
771 (install-data-local): Renamed from install.
772 (Makefile): Remove explicit dependency.
773 * acinclude.m4: Remove obsolete code.
774 * configure.in: Update AC_PREREQ. Remove extra $CONFIG_SHELL.
775 * Makefile.in, aclocal.m4, config.in, configure: Regenerated.
777 2005-05-11 Bob Wilson <bob.wilson@acm.org>
779 * scripttempl/elfxtensa.sc: Sync up with elf.sc.
780 * emulparams/elf32xtensa.sh (PLT, GOT): Define.
782 2005-05-11 Alan Modra <amodra@bigpond.net.au>
784 * ldgram.y: Add SPECIAL token.
785 (sect_constraint): Handle SPECIAL.
786 * ldlang.c (lang_output_section_find_1): Don't match SPECIAL.
787 (map_input_to_output_sections): Likewise.
788 * ldlex.l (SPECIAL): Define.
789 * emulparams/elf32ppc.sh (DATA_GOT, SDATA_GOT, SEPARATE_GOTPLT,
790 GOT, PLT, GOTPLT): Define.
791 * emultempl/ppc32elf.em (old_plt, old_got): New static vars.
792 (ppc_after_open): New function.
793 (PARSE_AND_LIST_PROLOGUE): Define OPTION_OLD_LPT and OPTION_OLD_GOT.
794 (PARSE_AND_LIST_LONGOPTS): Add "bss-plt" and "sdata-got".
795 (PARSE_AND_LIST_OPTIONS): Document them.
796 (PARSE_AND_LIST_ARGS_CASES): Handle them.
797 (LDEMUL_AFTER_OPEN): Define.
798 * scripttempl/elf.sc (PLT): Don't override existing define.
799 (DATA_GOT, SDATA_GOT): Define and use to enable alternate got
800 placement rather than using NO_SMALL_DATA. Emit GOTPLT for RELRO_NOW.
802 2005-05-10 Alan Modra <amodra@bigpond.net.au>
804 * scripttempl/elf.sc (DATA_SEGMENT_RELRO_GOTPLT_END): Delete.
805 (DATA_SEGMENT_RELRO_END): Use SEPARATE_GOTPLT value.
806 (GOTPLT): Remove DATA_SEGMENT_RELRO_GOTPLT_END. Place after
807 DATA_SEGMENT_RELRO_END in script.
809 2005-05-09 H.J. Lu <hongjiu.lu@intel.com>
811 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
812 Don't use a removed section.
814 2005-05-09 H.J. Lu <hongjiu.lu@intel.com>
816 * ldmain.c (reloc_overflow): Use output_bfd if the symbol
817 is defined in the ABS section.
819 2005-05-06 H.J. Lu <hongjiu.lu@intel.com>
821 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_init_fini_syms):
822 Put back !link_info.relocatable.
824 2005-05-06 H.J. Lu <hongjiu.lu@intel.com>
827 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_init_fini_syms):
828 Just check link_info.executable.
830 2005-05-06 Nick Clifton <nickc@redhat.com>
832 * Update the address and phone number of the FSF organization in
833 the GPL notices in the following files:
834 aclocal.m4, deffile.h, deffilep.y, fdl.texi, ld.h, ldcref.c,
835 ldctor.c, ldctor.h, ldemul.c, ldexp.c, ldexp.h, ldfile.c,
836 ldfile.h, 20ldgram.y, ldint.texinfo, ldlang.c, ldlang.h, ldlex.h,
837 ldlex.l, ldmain.c, ldmain.h, ldmisc.c, ldmisc.h, ldver.c, ldver.h,
838 ldwrite.c, ldwrite.h, lexsup.c, mri.c, mri.h, pe-dll.c, pe-dll.h,
839 sysdep.h, emultempl/aix.em, emultempl/alphaelf.em,
840 emultempl/armcoff.em, emultempl/armelf.em, emultempl/beos.em,
841 emultempl/crxelf.em, emultempl/elf32.em, emultempl/generic.em,
842 emultempl/gld960.em, emultempl/gld960c.em, emultempl/hppaelf.em,
843 emultempl/ia64elf.em, emultempl/irix.em, emultempl/linux.em,
844 emultempl/lnk960.em, emultempl/m68hc1xelf.em,
845 emultempl/m68kcoff.em, emultempl/m68kelf.em,
846 emultempl/mipsecoff.em, emultempl/mmix-elfnmmo.em,
847 emultempl/mmixelf.em, emultempl/mmo.em, emultempl/needrelax.em,
848 emultempl/pe.em, emultempl/ppc32elf.em, emultempl/ppc64elf.em,
849 emultempl/sh64elf.em, emultempl/sunos.em, emultempl/ticoff.em,
850 emultempl/vanilla.em, emultempl/xtensaelf.em
852 2005-05-05 H.J. Lu <hongjiu.lu@intel.com>
854 * scripttempl/elf.sc: Document the usage of __bss_start.
856 2005-05-05 Paul Brook <paul@codesourcery.com>
858 * Makefile.am: Add eelf_i386_vxworks.
859 * Makefile.in: Regenerate.
860 * configure.tgt: Make i?86-*-vxworks use targ_emul=elf_i386_vxworks.
861 * emulparams/elf_i386_vxworks.sh: New file.
862 * emulparams/vxworks.sh: New file.
863 * scripttempl/elf.sc: Add DATA_END_SYMBOLS and ETEXT_NAME.
865 2005-05-04 H.J. Lu <hongjiu.lu@intel.com>
867 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
868 Call _bfd_elf_provide_section_bound_symbols.
870 2005-05-04 Alan Modra <amodra@bigpond.net.au>
872 * ldemul.c: Include bfdlink.h.
873 (ldemul_before_allocation): Assume before_allocation is non-zero.
874 (before_allocation_default): Call strip_excluded_output_sections.
875 * ldlang.c (stripped_excluded_sections): New variable.
876 (lang_add_section): Build input section list for each output
877 section, attached via map_head and map_tail pointers.
878 (strip_excluded_output_sections): Make global. Traverse the
879 input section lists to find which output sections can go. Clear
880 link_order pointers and set stripped_excluded_sections.
881 (lang_process): Call strip_excluded_output_sections.
882 * ldlang.h (strip_excluded_output_sections): Declare.
883 * ldwrite.c: Update throuhout for link_order_head -> map_head change.
884 * emultempl/aix.em (before_allocation): Call
885 strip_excluded_output_sections.
886 * emultempl/armcoff.em (before_allocation): Likewise.
887 * emultempl/beos.em (before_allocation): Likewise.
888 * emultempl/linux.em (before_allocation): Likewise.
889 * emultempl/pe.em (before_allocation): Likewise.
890 * emultempl/sunos.em (before_allocation): Likewise.
891 * emultempl/elf32.em (before_allocation): Likewise. Call
892 bfd_elf_size_dynsym_hash_dynstr too.
893 * emultempl/lnk960.em (lnk960_before_allocation): Delete.
894 (ld_lnk960): Use before_allocation_default.
896 2005-05-02 H.J. Lu <hongjiu.lu@intel.com>
898 * emultempl/elf32.em (gld${EMULATION_NAME}_strip_empty_section):
899 Updated for bfd_section_list_remove change.
900 * ldlang.c (lang_insert_orphan): Likewise.
901 (strip_excluded_output_sections): Likewise.
902 (sort_sections_by_lma): New.
903 (lang_check_section_addresses): Sort the sections before
906 2005-04-29 Ralf Corsepius <ralf.corsepius@rtems.org>
908 * configure.tgt: Add h8300*-*-rtemscoff.
909 Switch h8300*-*-rtems* to elf.
911 2005-04-29 Ben Elliston <bje@au.ibm.com>
913 * ldgram.y (lang_memory_region_type): Make static.
914 (ldgram_want_filename): Likewise.
915 * ldemul.c (ld_emulation): Make static.
916 * ldfile.h (ldfile_find_command_file): Remove extern.
917 * ldfile.c (ldfile_find_command_file): Make static.
918 * ldlang.h (unique_section_list): Remove extern declaration.
919 * ldlang.c (unique_section_list): Make static.
920 * mri.h (symbol_truncate): Remove extern declaration.
921 * mri.c (symbol_truncate): Make static.
922 (order, only_load, address, alias): Likewise.
923 (alignment, subalignment): Likewise.
925 2005-04-27 H.J. Lu <hongjiu.lu@intel.com>
927 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
928 Use the first SEC_ALLOC section which isn't SEC_READONLY or the
929 last SEC_ALLOC section if such a section doesn't exist.
931 2005-04-24 Mark Kettenis <kettenis@gnu.org>
933 * configure.host: Add *-*-openbsd support.
935 2005-04-15 Julian Brown <julian@codesourcery.com>
937 * ld.texinfo: Document --use-blx.
938 * emultempl/armelf.em (use_blx): New variable.
939 (arm_elf_create_output_section_statements): Communicate value of
941 (PARSE_AND_LIST_PROLOGUE): Add OPTION_USE_BLX.
942 (PARSE_AND_LIST_OPTIONS): Add --use-blx option.
943 (PARSE_AND_LIST_ARGS_CASES): Add OPTION_USE_BLX case.
945 2005-04-14 Alan Modra <amodra@bigpond.net.au>
947 * Makefile.am (NO_WERROR): Define. Use instead of -Wno-error.
948 * configure.in: Include ../bfd/warning.m4 contents.
949 * Makefile.in: Regenerate.
950 * configure: Regenerate.
952 2005-04-12 Alan Modra <amodra@bigpond.net.au>
954 * Makefile.am: Run "make dep-am".
955 (ldgram.o, ldlex.o, deffilep.o): Add -Wno-error to command.
956 * Makefile.in: Regenerate.
957 * config.in: Regenerate.
959 2005-04-11 Alan Modra <amodra@bigpond.net.au>
961 * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed): Ignore
962 as_needed libs that were not needed.
963 (gld${EMULATION_NAME}_check_needed): Likewise.
965 2005-04-07 Nick Clifton <nickc@redhat.com>
967 * emultempl/m68kcoff.em: Include ldexp.h and ldlang.h so that
968 ldfile.h can use the lang_input_statement type.
970 2005-04-06 Jakub Jelinek <jakub@redhat.com>
972 * ldlang.c: Formatting.
973 (walk_wild_consider_section): Remember return value from wildcardp.
974 (is_simple_wild): Use strcspn instead of 2 strpbrk calls and strlen.
975 (wild_spec_can_overlap): Use strcspn instead of strpbrk and strlen.
977 2005-04-06 Robert O'Callahan <rocallahan@novell.com>
979 * ld.h (lean_section_userdata_type): Remove.
980 (fat_section_userdata_type): Remove file field.
981 (SECTION_USERDATA_SIZE): Remove.
982 * ldlang.c (init_os): Eliminate initialization of unused
983 lean_section_userdata_type.
985 * ldlang.h (callback_t, walk_wild_section_handler_t): New
987 (struct lang_wild_statement_struct): Add walk_wild_section_handler
988 and handler_data fields.
989 * ldlang.c (callback_t): Removed.
990 (walk_wild_consider_section, walk_wild_section_general,
991 section_iterator_callback, find_section, is_simple_wild,
992 match_simple_wild, walk_wild_section_specs1_wild0,
993 walk_wild_section_specs1_wild1, walk_wild_section_specs2_wild1,
994 walk_wild_section_specs3_wild2, walk_wild_section_specs4_wild2,
995 wild_spec_can_overlap, analyze_walk_wild_section_handler): New
997 (lang_add_wild): Call analyze_walk_wild_section_handler.
998 (walk_wild_section): Renamed to walk_wild_section_general and
999 created a wrapper function.
1000 (section_iterator_callback_data): New typedef.
1002 2005-04-04 Nick Clifton <nickc@redhat.com>
1004 * configure.in: Add a check for <unistd.h> providing a prototype
1005 for getopt() which is compatible with the one in
1006 include/getopt.h. If so then define HAVE_DECL_GETOPT.
1007 * configure: Regenerate.
1008 * config.in (HAVE_DECL_GETOPT): Add.
1009 * ldemul.c: Include config.h
1010 * lexsup.c: Likewise.
1011 * emultempl/elf32.sc: Likewise.
1013 2005-03-29 Alan Modra <amodra@bigpond.net.au>
1015 * emultempl/elf32.em (gld${EMULATION_NAME}_layout_sections_again):
1016 New function, extracted from static void gld${EMULATION_NAME}_finish.
1017 (gld${EMULATION_NAME}_strip_empty_sections): Likewise.
1018 (gld${EMULATION_NAME}_provide_init_fini_syms): Likewise.
1019 * emultempl/ppc64elf.em: Revert last change.
1020 (ppc_layout_sections_again): Use
1021 gld${EMULATION_NAME}_layout_sections_again.
1022 (ppc_finish): Don't call gld${EMULATION_NAME}_finish. Instead call
1023 gld${EMULATION_NAME}_strip_empty_sections and
1024 gld${EMULATION_NAME}_provide_init_fini_syms.
1025 * emultempl/hppaelf.em: Similarly.
1027 2005-03-29 Alan Modra <amodra@bigpond.net.au>
1029 * emultempl/ppc64elf.em (need_laying_out): Delete. Remove all refs.
1030 (ppc_finish): Don't call bfd_elf_discard_info.
1031 * emultempl/hppaelf.em: Similarly.
1033 2005-03-24 Nick Clifton <nickc@redhat.com>
1035 * po/fr.po: Updated French translation.
1037 2005-03-23 Mike Frysinger <vapier@gentoo.org>
1038 Nick Clifton <nickc@redhat.com>
1040 * configure.host: Accept any C library to accompany a GNU Linux
1041 implementation, not just the GNU C library.
1042 * configure.tgt: Likewise.
1043 * emultempl/elf32.em: Likewise.
1045 2005-03-22 H.J. Lu <hongjiu.lu@intel.com>
1047 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols): New
1048 (gld${EMULATION_NAME}_finish): Call
1049 gld${EMULATION_NAME}_provide_bound_symbols to provide
1050 __preinit_array_start, __preinit_array_end, __init_array_start,
1051 __init_array_end, __fini_array_start and __fini_array_end.
1053 * scripttempl/elf.sc: Don't provide __preinit_array_start,
1054 __preinit_array_end, __init_array_start, __init_array_end,
1055 __fini_array_start nor __fini_array_end.
1057 2005-03-23 Alan Modra <amodra@bigpond.net.au>
1059 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Set
1060 SEC_EXCLUDE on .gnu.warning sections.
1062 2005-03-22 Alan Modra <amodra@bigpond.net.au>
1064 * scripttempl/elf.sc (SBSS): Don't provide sbss start and end syms.
1066 2005-03-21 Alan Modra <amodra@bigpond.net.au>
1068 * emultempl/ppc32elf.em (gld${EMULATION_NAME}_after_allocation): New
1070 (LDEMUL_AFTER_ALLOCATION): Define.
1072 2005-03-21 Alan Modra <amodra@bigpond.net.au>
1074 * emultempl/ppc64elf.em (ppc_finish): Rename from
1075 gld${EMULATION_NAME}_finish. Call gld${EMULATION_NAME}_finish.
1076 (LDEMUL_FINISH): Update.
1077 * emultempl/hppaelf.em (hppaelf_finish, LDEMUL_FINISH): Likewise.
1078 * emultempl/m68hc1xelf.em (m68hc11elf_finish, LDEMUL_FINISH): Likewise.
1080 2005-03-18 Julian Brown <julian@codesourcery.com>
1082 * scripttempl/armbpapi.sc (.rel.dyn): Add .rel.init_array,
1084 (.rela.dyn): Add .rela.init_array, .rela.fini_array.
1085 (SECTIONS): Add .rel.other, .rela.other, .reli.other after PLT relocs.
1087 2005-03-18 H.J. Lu <hongjiu.lu@intel.com>
1089 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Don't set
1090 bfd_section when removing unused empty output sections for
1091 non-relocatable link.
1093 2005-03-19 Alan Modra <amodra@bigpond.net.au>
1095 * ldlang.c (lang_insert_orphan): Use old section_tail rather than
1096 traversing the bfd section list to find pointer to new section.
1098 2005-03-18 Alan Modra <amodra@bigpond.net.au>
1100 * scripttempl/elf.sc: When CREATE_SHLIB, put .sdata2 and .sbss2
1101 input sections into .sdata and .sbss output respectively.
1103 2005-03-16 David Heine <dlheine@tensilica.com>
1104 Bob Wilson <bob.wilson@acm.org>
1106 * ldlang.c (IGNORE_SECTION): Remove check for zero size.
1107 (lang_check_section_addresses): Ignore zero size sections here.
1109 2005-03-16 H.J. Lu <hongjiu.lu@intel.com>
1111 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Remove
1112 unused empty output sections for non-relocatable link.
1114 * ld.h (args_type): Remove gc_sections.
1116 * ldlang.c (lang_mark_used_section): New.
1117 (lang_gc_sections): Use link_info.gc_sections instead of
1118 command_line.gc_sections.
1119 * ldmain.c (main): Likewise.
1120 * lexsup.c (parse_args): Likewise.
1121 * ldlang.c (lang_process): Call lang_mark_used_section.
1123 * ldmain.c (main): Initialize link_info.gc_sections to FALSE.
1125 2005-03-16 Nick Clifton <nickc@redhat.com>
1126 Ben Elliston <bje@au.ibm.com>
1128 * configure.in (werror): New switch: Add -Werror to the
1129 compiler command line. Enabled by default. Disable via
1131 * configure: Regenerate.
1133 2005-03-16 Alan Modra <amodra@bigpond.net.au>
1135 * emulparams/elf32ppclinux.sh (OTHER_READWRITE_SECTION): Delete.
1136 (OTHER_RELRO_SECTIONS): Set this instead.
1138 2005-03-15 Nick Clifton <nickc@redhat.com>
1140 * NEWS: Add cutoff for changes in 2.16 release.
1142 2005-03-15 Mikkel Krautz <krautz@gmail.com>
1144 * configure.tgt (x86_64-elf): Add target.
1146 2005-03-15 Alan Modra <amodra@bigpond.net.au>
1148 * po/es.po: Commit new Spanish translation.
1150 2005-03-14 Alan Modra <amodra@bigpond.net.au>
1152 * ldexp.c (exp_fold_tree): Ensure return value is initialized.
1153 Tidy etree_assert case.
1155 2005-03-14 Alan Modra <amodra@bigpond.net.au>
1157 * po/tr.po: Commit new Turkish translation.
1159 2005-03-11 Daniel Jacobowitz <dan@codesourcery.com>
1161 * Makefile.am: Remove references to em68klynx.o and esparclynx.o.
1162 * Makefile.in: Regenerated.
1163 * emulparams/m68klynx.sh, emulparams/sparclynx.sh: Remove.
1165 2005-03-07 Nick Clifton <nickc@redhat.com>
1167 * po/fr.po: Updated translation.
1169 2005-03-05 Alan Modra <amodra@bigpond.net.au>
1171 * po/ld.pot: Regenerate.
1173 2005-03-02 Jan Beulich <jbeulich@novell.com>
1175 * ldmain.c (remove_output): Use unlink_if_ordinary instead of unlink.
1176 * pe-dll.c (pe_dll_generate_implib): Likewise.
1178 2005-02-24 Ben Elliston <bje@au.ibm.com>
1180 * ldfile.c: Remove GNU960 conditional code.
1181 * emultempl/gld960.em: Likewise.
1182 * emultempl/gld960c.em: Likewise.
1183 * emultempl/lnk960.em: Likewise.
1185 2005-02-24 Nick Clifton <nickc@redhat.com>
1187 * emultempl/lnk960.em (lnk960_before_parse): Remove redundant
1188 empty string from calls to concat.
1190 2005-02-23 Nick Clifton <nickc@redhat.com>
1192 * emultempl/lnk960.em (lnk960_before_parse): Terminate list of
1193 arguments passed to concat() with a NULL.
1195 * emultempl/m68kcoff.em: Include ldexp.h and ldlang.h because they
1196 define types needed by ldfile.h
1198 2005-02-23 Alan Modra <amodra@bigpond.net.au>
1200 * pe-dll.c: Warning fixes.
1201 * emultempl/sunos.em: Likewise.
1203 2005-02-22 Daniel Jacobowitz <dan@codesourcery.com>
1205 * ldlang.c (section_already_linked): Don't call
1206 bfd_section_already_linked for dynamic objects.
1208 2005-02-22 Alan Modra <amodra@bigpond.net.au>
1210 * ldexp.c: Warning fixes.
1211 * ldwrite.c: Likewise.
1212 * emultempl/elf32.em: Likewise.
1214 2005-02-21 H.J. Lu <hongjiu.lu@intel.com>
1216 * ldlang.c (lang_add_section): Check SEC_TIC54X_BLOCK for TI
1218 (lang_size_sections_1): Check SEC_COFF_SHARED_LIBRARY for COFF
1219 and ECOFF output only.
1221 2005-02-21 Alan Modra <amodra@bigpond.net.au>
1223 * config.in: Regenerate.
1224 * configure: Regenerate.
1226 2005-02-17 Zack Weinberg <zack@codesourcery.com>
1228 * ldexp.c (assigning_to_dot): New global flag.
1229 (fold_name): If assigning_to_dot is true, object immediately to
1230 an undefined symbol.
1231 (exp_fold_tree): Set and clear assigning_to_dot around the
1232 recursive call to exp_fold_tree to process the right-hand side
1233 of an assignment to the location counter.
1235 2005-02-17 Paul Brook <paul@codesourcery.com>
1237 * scripttempl/armbpabi.sc: Add dummy name to version block.
1239 2005-02-17 Alan Modra <amodra@bigpond.net.au>
1241 * ldexp.c (new_abs): Init new.str.
1243 2005-02-15 Mark Mitchell <mark@codesourcery.com>
1245 * configure.in (AC_CHECK_FUNCS): Add glob.
1246 * configure: Regenerated.
1247 * emultempl/elf32.em (<glob.h>): Do not include if HAVE_GLOB is
1249 (gld${EMULATION_NAME}_parse_ld_so_conf_include): Do not use glob
1250 if HAVE_GLOB is not defined.
1252 2005-02-16 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1254 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Define
1255 lib_path if NATIVE is yes.
1257 2005-02-16 Alan Modra <amodra@bigpond.net.au>
1259 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Make
1260 an error creating fake bfd fatal.
1261 (ppc_before_allocation): Continue on after errors.
1262 (gld${EMULATION_NAME}_finish): Likewise.
1264 2005-02-15 Nick Clifton <nickc@redhat.com>
1266 * ldlex.l (YY_NO_UNPUT): Define so that the yy_unput function is
1267 not declared. It is not used and its presence causes a compile
1270 2005-02-11 Zack Weinberg <zack@codesourcery.com>
1272 * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed):
1273 If st.st_ino is zero, do not treat the library as a duplicate.
1275 2005-02-10 Jakub Jelinek <jakub@redhat.com>
1277 * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
1278 Set BFD_LINKER_CREATED on the stubs bfd.
1279 * emultempl/ppc64elf.em (ppc_create_output_section_statements):
1282 2005-02-08 Mark Mitchell <mark@codesourcery.com>
1284 * scripttempl/armbpabi.sc (VERSION): Make special section symbols
1286 (Image$$ER_RO$$Base): Define whenever RELOCATING.
1287 (Image$$ER_RO$$Limit): Likewise.
1288 (SHT$$INIT_ARRAY$$Base): Likewise.
1289 (SHT$$INIT_ARRAY$$Limit): Likeise.
1291 2005-02-10 Ben Elliston <bje@au.ibm.com>
1293 * emultempl/beos.em: Remove #if 0 and #if 1 blocks.
1295 2005-02-08 Richard Sandiford <rsandifo@redhat.com>
1297 * configure.tgt (mips64*el-*-linux-gnu*): Define targ_extra_libpath
1298 to include o32 and n64 emulations.
1299 (mips64*-*-linux-gnu*): Likewise.
1301 2005-02-08 Hans-Peter Nilsson <hp@axis.com>
1303 * ldmain.c (warning_callback, warning_find_reloc): Prepend
1304 "warning: " to warning messages.
1306 2005-02-04 Alan Modra <amodra@bigpond.net.au>
1308 * emultempl/elf32.em (gld${EMULATION_NAME}_find_exp_assignment): Don't
1309 look up symbol for etree_provide here.
1311 2005-02-02 Daniel Jacobowitz <dan@codesourcery.com>
1313 * emulparams/elf32bmip.sh (TEXT_DYNAMIC): Always set.
1315 2005-02-01 Edward Welbourne <eddy@opera.com>
1316 Nick Clifton <nickc@redhat.com>
1318 * ld.texinfo (Source Code Reference): New node describing how to
1319 access linker script defined variables from source code.
1321 2005-02-01 Alan Modra <amodra@bigpond.net.au>
1323 * ld.texinfo: Clarify --as-needed operation.
1325 2005-01-31 Andrew Cagney <cagney@gnu.org>
1327 * configure: Regenerate to track ../gettext.m4.
1329 2005-01-31 Nick Clifton <nickc@redhat.com>
1331 * ldver.c (ldversion): Bump reported copyright date to 2005.
1333 2005-01-31 Nick Clifton <nickc@redhat.com>
1335 * configure.tgt: Remove obsolete targets m68k-lynxos and
1338 2005-01-28 Julian Brown <julian@codesourcery.com>
1340 * emultempl/armelf.em (fix_v4bx): New variable.
1341 (arm_elf_create_output_section_statements): Communicate fix_v4bx flag
1343 (PARSE_AND_LIST_PROLOGUE): Add option token OPTION_FIX_V4BX.
1344 (PARSE_AND_LIST_LONGOPTS): Add option --fix-v4bx.
1345 (PARSE_AND_LIST_OPTIONS): Add option --fix-v4bx.
1346 (PARSE_AND_LIST_ARGS_CASES): Add option OPTION_FIX_V4BX.
1347 * NEWS: Mention --fix-v4bx.
1348 * ld.texinfo: Document --fix-v4bx.
1350 2005-01-25 Mark Mitchell <mark@codesourcery.com>
1352 * emulparams/armsymbian.sh (OTHER_READONLY_SECTIONS): Define, so
1353 as to include .ARM.exidx$${Base,Limit}.
1354 * ld/scripttempl/armbpabi.sc: Move .plt to end of text segment.
1355 Define IMAGE$$ER_RO$${Base,Limit} and SHT$$INIT_ARRAY$${Base,Limit}.
1356 Put .init_array, .fini_array, etc. into the read-only data
1359 2005-01-25 Alan Modra <amodra@bigpond.net.au>
1361 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Formatting.
1362 (gld${EMULATION_NAME}_after_open): Ignore needed libs if they were
1363 only needed by an as-needed lib that didn't get linked.
1365 2005-01-23 Alan Modra <amodra@bigpond.net.au>
1367 * ld.texinfo (Output Section Keywords <CONSTRUCTORS>): Correct
1368 __DTOR_LIST__ description.
1370 2005-01-23 Alan Modra <amodra@bigpond.net.au>
1372 * ld.texinfo (Location Counter <dot outside sections>): Document
1373 effects of orphan section placement, and ". = ." workaround.
1374 * Makefile.in: Regenerate.
1376 2005-01-22 Richard Sandiford <rsandifo@redhat.com>
1378 * emulparams/elf32bmip.sh (OTHER_GOT_SECTIONS): Add ". = .;".
1379 * emulparams/elf32bmipn32-defs.sh (OTHER_GOT_SECTIONS): Likewise.
1381 2005-01-21 Jakub Jelinek <jakub@redhat.com>
1383 * ldgram.y (AS_NEEDED): New token.
1384 (input_list): Handle AS_NEEDED ( input_list ).
1385 * ldlex.l (AS_NEEDED): Add.
1386 * ld.texinfo: Document AS_NEEDED ().
1387 * NEWS: Mention AS_NEEDED ().
1389 2005-01-21 Ben Elliston <bje@au.ibm.com>
1391 * ldlang.c (lang_reasonable_defaults): Remove.
1392 (lang_process): Don't call lang_reasonable_defaults.
1394 * ldexp.c (exp_assop): Remove #if 0'd code.
1395 (exp_print_tree): Likewise.
1396 * ldlang.c (lang_memory_region_lookup): Likewise.
1397 (open_output): Likewise.
1398 (lang_do_assignments_1): Likewise.
1399 (lang_place_orphans): Likewise.
1400 (lang_enter_output_section_statement): Likewise.
1401 (lang_reasonable_defaults): Likewise.
1402 * ldlang.h (struct lang_input_statement_struct): Likewise.
1403 * mri.c (mri_draw_tree): Likewise.
1404 (mri_load): Likewise.
1405 * pe-dll.c (generate_reloc): Likewise.
1406 (make_import_fixup_entry): Likewise.
1407 (pe_as16): Likewise.
1408 * emultempl/beos.em (set_pe_subsystem): Likewise.
1409 * emultempl/hppaelf.em (hppaelf_after_parse): Likewise.
1410 * emultempl/pe.em: Likewise.
1411 * emultempl/xtensaelf.em (xtensa_colocate_literals): Likewise.
1413 2005-01-20 Daniel Jacobowitz <dan@codesourcery.com>
1415 * Makefile.am (ALL_EMULATIONS): Add earmelfb_linux_eabi.o.
1416 (earmelfb_linux_eabi.c): New target.
1417 * Makefile.in: Regenerated.
1418 * configure.tgt (arm*b-*-linux-gnueabi): New target.
1419 * emulparams/armelfb_linux_eabi.sh: New file.
1421 2005-01-20 Nick Hudson <skrll@netbsd.org>
1424 * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
1425 Handle bfd_elf32_hppa_nbsd_vec.
1427 2005-01-19 Richard Sandiford <rsandifo@redhat.com>
1429 * ldmain.h (ld_sysroot): Change type to a constant string.
1430 * ldmain.c (ld_sysroot): Likewise.
1431 (get_relative_sysroot, get_sysroot): New functions, adding command-line
1432 support for changing the sysroot.
1433 (main): Call the new functions.
1434 * lexsup.c (OPTION_SYSROOT): New.
1435 (ld_options): Add --sysroot.
1436 (parse_args): Add a dummy handler for it.
1437 * ld.texinfo (--sysroot): Document.
1438 * NEWS: Mention the new --sysroot option.
1440 2005-01-18 Alan Modra <amodra@bigpond.net.au>
1442 * ldlang.c (section_already_linked): Adjust bfd_link_just_syms call.
1443 (lang_place_orphans): Don't abort on just_syms_flag, instead call
1446 2005-01-16 Danny Smith <dannysmith@users.sourceforge.net>
1448 * defilep.y (def_name, def_library): Combine into...
1449 (def_image_name): New function. Strip name to basename,
1452 2005-01-12 Mark Kettenis <kettenis@gnu.org>
1454 * configure.in: Be sure to invoke config.sub using the shell.
1455 * configure: Regenerate.
1457 2005-01-11 Alan Modra <amodra@bigpond.net.au>
1459 * configure.host: Correct sed patterns for last change.
1461 2005-01-10 Nick Clifton <nickc@redhat.com>
1464 * ldmisc.c (vfinfo): Add an extra argument: is_warning. Use this
1465 to determine whether config.make_executable should be set to FALSE in
1466 conjunction with config.fatal_warnings.
1467 (info_msg, minfo, lfinof): Pass FALSE as the extra argument.
1468 (einfo): Pass TRUE as the extra argument.
1470 2005-01-10 Greg Schaffer <gschafer@zip.com.au>
1472 * configure.host (linux targets): Use "${CC} -dumpspecs" instead
1473 of "${CC} --print-file-name=specs" to appease GCC versions >= 4.0.
1474 (ia64-*-aix): Delete - this target is obsolete, and would be
1475 broken by this patch.
1477 2005-01-06 Eric Botcazou <ebotcazou@libertysurf.fr>
1479 * configure.host (sparc*-*-solaris2*): Rename into sparc-*-solaris2*.
1480 (sparc64-sun-solaris2*): New host.
1482 2005-01-06 Paul Brook <paul@codesourcery.com>
1484 * Makefie.am: Add earmelf_vxworks.
1485 * Makefile.in: Regenerate.
1486 * configure.tgt: Make arm-*-vxworks a separate case.
1487 * emulparams/armelf_vxworks.sh: New function.
1489 2005-01-06 Alan Modra <amodra@bigpond.net.au>
1491 * emultempl/ppc64elf.em (no_multi_toc): New var.
1492 (gld${EMULATION_NAME}_finish): Pass to ppc64_elf_setup_section_lists.
1493 (OPTION_NO_MULTI_TOC): Define.
1494 (PARSE_AND_LIST_LONGOPTS): Add --no-multi-toc support.
1495 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Likewise.
1497 2005-01-05 Nick Clifton <nickc@redhat.com>
1500 * ldmisc.c (vfinfo): Alter output to conform to the GNU Coding
1501 Standard's specification for parsable error messages.
1503 2005-01-04 Paul Brook <paul@codesourcery.com>
1505 * Makefile.am: Correct dependency for earmsymbian.c.
1506 * Makefile.in: Regenerate.
1508 2004-12-28 Danny Smith <dannysmith@users.sourceforge.net>
1510 * emultempl/pe.em (set_pe_subsystem): Change second arg to
1511 lang_add_entry to FALSE.
1513 2004-12-23 Nick Clifton <nickc@redhat.com>
1516 * emulparams/shelf.sh (.stack): Increase stack start address to
1519 2004-12-20 Nick Clifton <nickc@redhat.com>
1521 * ldmain.c (main): Issue an error message if -static and -shared
1524 2004-12-17 Jakub Jelinek <jakub@redhat.com>
1526 * ldexp.h (exp_data_seg): Add min_base and maxpagesize fields.
1527 * ldexp.c (fold_binary) <case DATA_SEGMENT_ALIGN>: Initialize them.
1528 * ldlang.c (lang_size_sections): Use them to avoid wasting virtual
1529 address space at DATA_SEGMENT_ALIGN. Fix computation of expected
1530 PT_GNU_RELRO segment end.
1532 2004-12-14 P.J. Darcy <darcypj@us.ibm.com>
1534 * configure.tgt: Add s390x-ibm-tpf support.
1536 2004-12-16 Martin Kögler <mkoegler@auto.tuwien.ac.at>
1538 * ldmisc.c (vfinfo): Handle the case where %B is passed a NULL
1541 2004-12-07 Ben Elliston <bje@gnu.org>
1543 * ldemul.h: Forward declare struct option.
1545 2004-12-01 Danny Smith <dannysmith@users.sourceforge.net>
1547 * scripttempl/pe.sc (.data): Add .jcr subsection.
1549 2004-11-30 Paul Brook <paul@codesourcery.com>
1551 * emultempl/armelf.em: Ignore -p and -no-pipeline-knowledge.
1553 2004-11-30 Tero Niemela <tero_niemela@yahoo.com>
1555 * Makefile.am: Change LOCALEDIR to $(datadir)/share.
1556 * Makefile.in: Regenerate.
1558 2004-11-26 Melissa Mears <asterisk@graces.dricas.com>
1560 * emultempl/pe.em: Add --subsystem:xbox as well as
1562 * ld.texinfo: (ld_options): Document acceptance of subsystem xbox
1563 and numeric subsystems.
1565 2004-11-24 Alan Modra <amodra@bigpond.net.au>
1567 * ldexp.c (fold_name): Correct PR 338 fix.
1569 2004-11-19 Mark Mitchell <mark@codesourcery.com>
1571 * Makefile.am (ALL_EMULATIONS): Add earmelf_linux_eabi.o.
1572 (earmelf_linux_eabi.c): New target.
1573 * configure.tgt (arm*-*-linux-gnueabi): Handle it.
1574 * emulparams/armelf_linux_eabi.sh: New file.
1575 * Makefile.in: Regenerated.
1577 2004-11-19 Nick Clifton <nickc@redhat.com>
1580 * ld.texinfo (MEMORY): Update the descriptions of the ORIGIN and
1581 LENGTH fields in the MEMORY command, to explicitly state that
1582 symbols cannot be used in their expressions.
1584 2004-11-19 Jon Beniston <jon@beniston.com>
1586 * ld/ldlex.l: Allow ORIGIN and LENGTH in EXPRESSION.
1587 * ld/ldgram.y: Add ORIGIN and LENGTH expressions.
1588 * ld/ldexp.c (fold_name): Implement LENGTH() and ORIGIN() functions
1589 which return the length and origin of a memory.
1590 * ld/ld.texinfo: Document LENGTH() and ORIGIN() functions.
1591 * NEWS: Mention support for ORIGIN and LENGTH operators.
1593 2004-11-17 Daniel Jacobowitz <dan@codesourcery.com>
1595 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Don't use
1596 a dynamic object for stubs.
1598 2004-11-04 Paul Brook <paul@codesourcery.com>
1600 * ld.texinfo: Document --default-imported-symver.
1601 * ldmain.c (main): Set link_info.default_imported_symver.
1602 * lexsup.c (option_values): Add OPTION_DEFAULT_IMPORTED_SYMVER.
1603 (ld_options): Add --default-imported-symver.
1604 (parse_args): Handle OPTION_DEFAULT_IMPORTED_SYMVER.
1606 2004-11-08 Inderpreet Singh <inderpreetb@nioda.hcltech.com>
1607 Vineet Sharma <vineets@noida.hcltech.com>
1609 * Makefile.am: Add entries for new maxq-coff target.
1610 * Makefile.in: Regenerate.
1611 * configure.tgt: Add support for maxq.
1612 * emulparams/maxqcoff.sh: New File.
1613 * scripttempl/maxqcoff.sc: New linker script for target maxq.
1614 * NEWS: Mention the new target.
1616 2004-11-04 Daniel Jacobowitz <dan@debian.org>
1618 * Makefile.am (ALL_EMULATIONS): Remove earmelf_oabi.o.
1619 (earmelf_oabi.c): Remove rule.
1620 * configure.tgt: Remove arm-*-oabi and thumb-*-oabi.
1621 * emulparams/armelf_oabi.sh, emultempl/armelf_oabi.em: Delete files.
1622 * Makefile.in: Regenerated.
1624 2004-11-04 Hans-Peter Nilsson <hp@axis.com>
1626 * configure.tgt (crisv32-*-*): Handle like cris-*-* for non-aout.
1627 * emulparams/criself.sh (INIT_START): Remove emitted "push srp".
1628 (FINI_START): Ditto.
1629 (INIT_END): Remove emitted "jump [sp+]".
1632 2004-11-04 Alan Modra <amodra@bigpond.net.au>
1634 * emultempl/ppc64elf.em (no_tls_opt): Rename from notlsopt.
1635 (no_opd_opt, no_toc_opt): New static vars.
1636 (ppc_before_allocation): Don't edit opt if no_opd_opt. Call
1638 (OPTION_NO_OPD_OPT, OPTION_NO_TOC_OPT): Define.
1639 (PARSE_AND_LIST_LONGOPTS): Add no-opd-optimize and no-toc-optimize.
1640 (PARSE_AND_LIST_OPTIONS): Describe new options.
1641 (PARSE_AND_LIST_ARGS_CASES): Handle them.
1643 2004-10-27 Nick Clifton <nickc@redhat.com>
1645 * emultempl/alphaelf.em (alpha_after_parse): Add extra, NULL,
1646 parameter to invocation of lang_section_start.
1647 * emultempl/aix.em (_handle_option): Likewise.
1649 * Makefile.am (eelf64alpha.c, eelf64alpha_fbsd.c,
1650 eelf64alpha_nbsd.c): Add dependency upon emultempl/alphaelf.em.
1651 * Makefile.in: Regenerate.
1653 2004-10-26 Mark Mitchell <mark@codesourcery.com>
1655 * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Do not emit
1656 __exidx_{start,end} when not relocating.
1658 2004-10-25 Mark Mitchell <mark@codesourcery.com>
1660 * Makefile.in (earmsymbian.c): Depend on armbpabi.sc, not elf.sc.
1661 * ldexp.h (segment_type): New type.
1662 (segments): New variable.
1663 * ldexp.c (segments): New variable.
1664 (exp_print_token): Handle SEGMENT_START.
1665 (fold_binary): Likewise.
1666 * ldgram.y (SEGMENT_START): Declare it as a token.
1667 (exp): Handle SEGMENT_START.
1668 * ldlang.h (lang_address_statement_type): Add segment field.
1669 (lang_section_start): Change prototype.
1670 * ldlang.c (map_input_to_output_sections): Do not process section
1671 assignments if a corresponding SEGMENT_START has already been
1673 (lang_section_start): Add segment parameter.
1674 * ldlex.l (SEGMENT_START): Add it.
1675 * lexsup.c (seg_segment_start): New function.
1676 (parse_args): Use it for -Tbss, -Tdata, and -Ttext.
1677 * ld.texinfo (SEGMENT_START): Document it.
1678 * emulparams/armsymbian.sh (EMBEDDED): Set it.
1679 * scripttempl/armbpabi.sc: Use SEGMENT_START to control segment
1680 base addresses. Do not map relocations.
1681 * NEWS: Mention SEGMENT_START.
1683 2004-10-26 Paul Brook <paul@codesourcery.com>
1685 * ld.texinfo: Document --default-symver.
1686 * ldmain.c (main): Set link_info.create_default_symver.
1687 * lexsup.c (enum option_values): Add OPTION_DEFAULT_SYMVER.
1688 (ld_options): Add default-symver.
1689 (parse_args): Handle OPTION_DEFAULT_SYMVER.
1691 2004-10-24 Danny Smith <dannysmith@users.sourceforge.net>
1693 * pe-dll.c (process_def_file): Don't export all symbols by default if
1694 building a position-independent executable.
1696 2004-10-21 H.J. Lu <hongjiu.lu@intel.com>
1699 * ldmain.c (reloc_overflow): Accept a pointer to struct
1700 bfd_link_hash_entry. Report symbol location for relocation
1703 2004-10-21 H.J. Lu <hongjiu.lu@intel.com>
1705 * genscripts.sh (libpath.exp): Really generate for first
1708 2004-10-19 Danny Smith <dannysmith@users.sourceforge.net>
1710 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Simplify
1711 comparison and replacement of filenames.
1713 2004-10-19 H.J. Lu <hongjiu.lu@intel.com>
1716 * ldlang.c (load_symbols): Use the same -Bdynamic/-Bstatic
1717 option on linker script as the one for linker script.
1719 2004-10-16 Daniel Jacobowitz <dan@debian.org>
1721 * ldlang.c (struct excluded_lib, excluded_libs, add_excluded_libs)
1722 (check_excluded_libs): New.
1723 (load_symbols): Call check_excluded_libs.
1724 * ldlang.h (add_excluded_libs): New prototype.
1725 * emultempl/elf32.em (OPTION_EXCLUDED_LIBS): Define.
1726 (gld${EMULATION_NAME}_add_options): Add --exclude-libs.
1727 (gld${EMULATION_NAME}_handle_option): Handle --exclude-libs.
1728 * ld.texinfo (Command Line Variables): Document --exclude-libs.
1729 (Options Specific to i386 PE Targets): Remove --exclude-libs.
1731 2004-10-15 Alan Modra <amodra@bigpond.net.au>
1733 * ldexp.c (exp_fold_tree): Don't immediately exit ld on a
1734 failing link script assert.
1736 * ldctor.c (ldctor_add_set_entry): Fix comment typo.
1738 2004-10-14 H.J. Lu <hongjiu.lu@intel.com>
1741 * emulparams/elf64_ia64.sh (SMALL_DATA_CTOR): Set.
1742 (SMALL_DATA_DTOR): Set.
1743 * emulparams/elf64_ia64_fbsd.sh (SMALL_DATA_CTOR): Unset.
1744 (SMALL_DATA_DTOR): Unset.
1745 * scripttempl/elf.sc: If SMALL_DATA_CTOR is set, move .ctors
1746 after .data. If SMALL_DATA_DTOR is set, move .dtors after
1749 2004-10-14 Alan Modra <amodra@bigpond.net.au>
1752 * ldlang.h (lang_output_section_statement_type): Make "next" a
1753 struct lang_output_section_statement_struct *.
1754 (struct orphan_save): Move from elf32.em. Add "name" and "flags".
1755 (lang_output_section_find_by_flags, lang_insert_orphan): Declare.
1756 * ldlang.c (lang_output_section_find_1): Adjust for changed
1757 output_section_statement "next".
1758 (strip_excluded_output_sections): Likewise.
1759 (lang_record_phdrs): Likewise.
1760 (lang_output_section_find_by_flags): New function.
1761 (output_prev_sec_find): Move from pe.em. Adjust iterator.
1762 (lang_insert_orphan): New function. Tail end of elf32.em's
1763 place_orphan merged with that from pe.em. Allow bfd_section to
1764 be placed first. New heuristic for placing new output section
1765 statement in existing script, and accompanying split of __start
1766 symbol alignment into a separate assignment to dot.
1767 (lang_add_section): Consistently use output->bfd_section rather than
1768 an alias, section->output_section.
1769 (map_input_to_output_sections): Rename overly long arg. Move
1770 initialization of data_statement output section to here..
1771 (lang_check_section_addresses): ..from here.
1772 (print_assignment): Correct printing of etree_assert.
1773 (print_all_symbols): Don't bomb if userdata is NULL.
1774 (IGNORE_SECTION): Rearrange.
1775 * emultempl/elf32.em (output_rel_find): Adjust interator.
1776 (output_prev_sec_find): Delete.
1777 (struct orphan_save): Delete.
1778 (gld${EMULATION_NAME}_place_orphan): Cater for zero bfd_section
1779 flags without creating a duplicate output section statement.
1780 Revise code holding history of various orphan section placements.
1781 Allow orphan sections to place before script specified output
1782 sections. Call lang_output_section_find_by_flags when placement
1783 by name fails. Use lang_insert_orphan.
1784 * emultempl/mmo.em (output_prev_sec_find): Delete.
1785 (struct orphan_save): Delete.
1786 (mmo_place_orphan): Revise code holding history of orphan placement.
1787 Allow orphans to place before existing output sections. Use
1789 * emultempl/pe.em (output_prev_sec_find): Delete.
1790 (struct orphan_save): Delete.
1791 (gld_${EMULATION_NAME}_place_orphan): Revise to suit use of
1794 2004-10-13 Mark Mitchell <mark@codesourcery.com>
1796 * scripttempl/armbpabi.sc: Do not put .gnu.version.* into a
1799 2004-10-13 Alan Modra <amodra@bigpond.net.au>
1802 * ldcref.c (check_section_sym_xref): Delete.
1803 (check_local_sym_xref): New function.
1804 (check_nocrossrefs): Adjust call.
1805 * emultempl/pe.em (struct orphan_save): Add os_tail.
1806 (place_orphan): Backport assorted fixes from elf32.em.
1808 2004-10-12 Bob Wilson <bob.wilson@acm.org>
1810 * emultempl/xtensaelf.em: Use ISO C90 formatting.
1812 2004-10-11 Jakub Jelinek <jakub@redhat.com>
1814 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_ld_so_conf): Avoid
1815 getline for portability.
1817 * emultempl/elf32.em (gld${EMULATION_NAME}_ld_so_conf): New structure.
1818 (gld${EMULATION_NAME}_parse_ld_so_conf,
1819 gld${EMULATION_NAME}_parse_ld_so_conf_include): New functions.
1820 (gld${EMULATION_NAME}_check_ld_so_conf): Use them.
1822 2004-10-11 Alan Modra <amodra@bigpond.net.au>
1825 * ldfile.c (ldfile_try_open_bfd): Ensure dynamic objects are
1826 rejected when linking statically.
1828 2004-10-08 Daniel Jacobowitz <dan@debian.org>
1830 * configure.tgt: Include elf_x86_64 for i[3-7]86-*-solaris2*.
1832 2004-10-07 Bob Wilson <bob.wilson@acm.org>
1834 * ld.texinfo (Xtensa): Describe new linker relaxation to optimize
1835 assembler-generated longcall sequences. Describe new --size-opt
1837 * emulparams/elf32xtensa.sh (OTHER_SECTIONS): Add .xt.prop section.
1838 * emultempl/xtensaelf.em (remove_section,
1839 replace_insn_sec_with_prop_sec, replace_instruction_table_sections,
1840 elf_xtensa_after_open): New.
1841 (OPTION_OPT_SIZEOPT, OPTION_LITERAL_MOVEMENT,
1842 OPTION_NO_LITERAL_MOVEMENT): Define.
1843 (elf32xtensa_size_opt, elf32xtensa_no_literal_movement): New globals.
1844 (PARSE_AND_LIST_LONGOPTS): Add size-opt and [no-]literal-movement.
1845 (PARSE_AND_LIST_OPTIONS): Add --size-opt.
1846 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_OPT_SIZEOPT,
1847 OPTION_LITERAL_MOVEMENT, and OPTION_NO_LITERAL_MOVEMENT.
1848 (LDEMUL_AFTER_OPEN): Set to elf_xtensa_after_open.
1849 * scripttempl/elfxtensa.sc: Update with changes from elf.sc.
1850 * Makefile.am (eelf32xtensa.c): Update dependencies.
1851 * Makefile.in: Regenerate.
1853 2004-10-07 Jeff Baker <jbaker@qnx.com>
1855 * lexsup.c: Handle --warn-shared-textrel option.
1856 (ld_options): Restore alpha sorting of options.
1857 * ldmain.c (main): Initialise warn_shared_info field to FALSE.
1858 * ld.texinfo: Add documentation for --warn-shared-textrel.
1859 * NEWS: Added mention of --warn-shared-textrel option.
1861 2004-10-05 Tomer Levi <Tomer.Levi@nsc.com>
1863 * emultempl/crxelf.em (disable_relaxation): Add.
1864 (crxelf_before_allocation): Enable --relax option by default.
1865 (PARSE_AND_LIST_PROLOGUE): Add OPTION_NO_RELAX.
1866 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --no-relax.
1867 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_NO_RELAX.
1869 2004-10-04 H.J. Lu <hongjiu.lu@intel.com>
1871 * NEWS: Mention SORT_BY_NAME, SORT_BY_ALIGNMENT and
1872 --sort-section name|alignment.
1874 * ld.texinfo: Document SORT_BY_NAME, SORT_BY_ALIGNMENT and
1875 --sort-section name|alignment.
1877 * ld.h (sort_type): New enum.
1878 (wildcard_spec): Change the type of `sorted' to sort_type.
1880 * ldgram.y (SORT): Removed.
1881 (SORT_BY_NAME): Added.
1882 (SORT_BY_ALIGNMENT): Added.
1883 (wildcard_spec): Updated `sorted'. Handle SORT_BY_NAME and
1885 (input_section_spec_no_keep): Updated `sorted'.
1886 (statement): Replace SORT with SORT_BY_NAME.
1888 * ldlang.c (compare_section): New function to compare 2
1889 sections with different sorting schemes.
1890 (wild_sort): Updated. Use compare_section.
1891 (update_wild_statements): New function.
1892 (lang_process): Call update_wild_statements before
1893 map_input_to_output_sections.
1895 * ldlex.l (SORT_BY_NAME): New.
1896 (SORT_BY_ALIGNMENT): New.
1897 (SORT): Return SORT_BY_NAME.
1899 * ldmain.c (sort_section): New. Defined.
1900 (main): Initialize it to none.
1902 * lexsup.c (option_values): Add OPTION_SORT_SECTION.
1903 (ld_options): Add an entry for OPTION_SORT_SECTION.
1904 (parse_args): Handle OPTION_SORT_SECTION.
1906 * mri.c (mri_draw_tree): Updated `sorted'.
1908 2004-10-04 Jakub Jelinek <jakub@redhat.com>
1910 * ldgram.y (DATA_SEGMENT_RELRO_END): Add one argument.
1911 * scripttempl/elf.sc (DATA_SEGMENT_RELRO_END): Add 0 as first
1913 (DATA_SEGMENT_RELRO_GOTPLT_END): Pass $SEPARATE_GOTPLT as first
1914 and . as second argument.
1915 (GOTPLT): Move $DATA_SEGMENT_RELRO_GOTPLT_END before the section.
1916 * ldexp.c (fold_unary): Remove DATA_SEGMENT_RELRO_END handling here.
1917 (fold_binary): Add it here. Insert padding to make relro_end
1918 COMMONPAGESIZE bytes aligned. For DATA_SEGMENT_ALIGN in
1919 exp_dataseg_relro_adjust phase just use previously computed
1921 * ldlang.c (lang_size_sections): Set exp_data_seg.base for
1922 relro_adjust here. Call lang_size_sections_1 once more if there
1923 was too big padding at DATA_SEGMENT_RELRO_END.
1924 * ld.texinfo (DATA_SEGMENT_RELRO_END): Add documentation.
1926 2004-10-01 Paul Brook <paul@codesourcery.com>
1928 * emulparams/armelf.sh: Add unwinding table sections.
1930 2004-09-30 Filip Navara <navaraf@reactos.com>
1932 * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Generate
1933 correct base address for position independant executables.
1934 * pe-dll.c (pe_dll_fill_sections): Don't mark position independant
1935 executables as DLLs.
1937 2004-09-30 Paul Brook <paul@codesourcery.com>
1939 * ld.texinfo: Document --target2=abs.
1940 * emulparms/armsymbian.sh (TARGET2_TYPE): Set.
1942 2004-09-29 Nick Clifton <nickc@redhat.com>
1944 * scripttempl/xstormy16.sc: Only perform the assignments to the
1945 ROM region when not performing a relocatable link. The ROM region
1946 does not start at address 0, but the sections will.
1947 * Makefile.am: Fix linker script dependency for the generation of
1949 * Makefile.in: Regenerate.
1951 2004-09-18 Filip Navara <navaraf@reactos.com>
1953 * emulparams/arm_epoc_pe.sh, emulparams/armpe.sh, emulparams/i386pe.sh,
1954 emulparams/i386pe_posix.sh, emulparams/mcorepe.sh,
1955 emulparams/mipspe.sh, emulparams/ppcpe.sh, scripttempl/pe.sc: Define
1957 * scripttempl/pe.sc: Make the virtual address and file offset synced if
1958 the alignment is lower than the target page size.
1960 2004-09-27 Filip Navara <navaraf@reactos.com>
1962 * emultempl/pe.em (gld_${EMULATION_NAME}_unrecognized_file): Allow
1963 def_file_parse to handle pe_def_file if NULL and prevent crash with
1966 2004-09-27 Alan Modra <amodra@bigpond.net.au>
1968 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Enable
1969 --emit-stub-syms automatically when --emit-relocs.
1971 2004-09-24 Paul Brook <paul@codeosurcery.com>
1973 * scripttempl/elf.sc: Keep .preinit_array, .init_array and
1974 .fini_array sections.
1976 2004-09-19 Andreas Schwab <schwab@suse.de>
1978 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Adjust data segment
1979 base so that relro end is suitably aligned.
1981 2004-09-17 Paul Brook <paul@codesourcery.com>
1983 * ld.texinfo: Rename arm-specific section. Document --target*
1984 * emulparams/armelf_fbsd.sh: Set TARGET2_TYPE.
1985 * emulparams/armelf_linux.sh: Ditto.
1986 * emulparams/armelf_nbsd.sh: Ditto.
1987 * emultempl/armelf.em: Set default for TARGET2_TYPE.
1988 (target2_type): New variable.
1989 (arm_elf_before_allocation): Don't pass target1_type.
1990 (arm_elf_create_output_section_statements): New function.
1991 (PARSE_AND_LIST_PROLOGUE): Add OPTION_TARGET2.
1992 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --target=.
1993 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_TARGET2.
1994 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Set.
1995 * emultempl/armelf_oabi.em (_before_allocation): Remove extra
1996 argument to bfd_elf32_arm_process_before_allocation.
1998 2004-09-17 Alan Modra <amodra@bigpond.net.au>
2000 * ldexp.c (fold_name): Update u.undef.next refs.
2001 * emultempl/pe.em: Likewise.
2002 * emultempl/sunos.em: Likewise.
2004 2004-09-17 Alan Modra <amodra@bigpond.net.au>
2006 * Makefile.am: Run "make dep-am".
2007 * Makefile.in: Regenerate.
2008 * config.in: Regenerate.
2009 * configure: Regenerate.
2010 * aclocal.m4: Regenerate.
2011 * po/ld.pot: Regenerate.
2013 2004-09-16 Tomer Levi <Tomer.Levi@nsc.com>
2015 * scripttempl/elf32crx.sc (.init): Add KEEP for section's *personality*.
2019 2004-09-16 Alan Modra <amodra@bigpond.net.au>
2021 * emultempl/armelf_oabi.em (before_allocation): Add extra zero param
2022 to bfd_elf32_arm_process_before_allocation call.
2024 2004-09-13 Paul Brook <paul@codesourcery.com>
2026 * emulparams/armsymbian.sh: Set TARGET1_IS_REL.
2027 * emultempl/armelf.em: Use TARGET1_IS_REL. Add --target1-{rel,abs}.
2029 2004-09-07 H.J. Lu <hongjiu.lu@intel.com>
2031 * configure: Regenerated with autconfig 2.13.
2033 2004-09-07 Andreas Schwab <schwab@suse.de>
2035 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Apply data segment
2036 alignment before adjusting DATA_SEGMENT_RELRO_END.
2038 2004-09-06 Mark Mitchell <mark@codesourcery.com>
2040 * emulparams/armsymbian.sh: Use armbpabi script.
2041 * scripttempl/armbpabi.sc: New script.
2043 2004-09-02 Mark Mitchell <mark@codesourcery.com>
2045 * Makefile.am (ALL_EMULATIONS): Add earmsymbian.o.
2046 (earmsymbian.c): New target.
2047 * configure.tgt: Use armsymbian emulation for arm*-*-symbianelf*.
2048 * Makefile.in: Regenerated.
2049 * aclocal.m4: Likewise.
2050 * configure: Likewise.
2051 * emulparams/armsymbian.sh: New file.
2053 2004-09-03 Tomer Levi <Tomer.Levi@nsc.com>
2055 * scripttempl/elf32crx.sc: Edit file with comments.
2056 (.init): Add new section.
2058 (.ctor): Control the linkage order.
2061 2004-08-27 Nick Clifton <nickc@redhat.com>
2063 * emultempl/pe.em (after_open): Do not assume that either bfd is
2066 2004-08-26 Alan Modra <amodra@bigpond.net.au>
2068 * ldlang.c (lang_init): Don't compare with TRUE.
2070 2004-08-25 Dmitry Diky <diwil@spec.ru>
2072 * emulparams/msp430all.sh: Fix RAM sizes for all targets.
2073 * scripttempl/elf32msp430.sc: Add .profiler section definition.
2075 2004-08-24 H.J. Lu <hongjiu.lu@intel.com>
2077 * ldlang.c (wildcardp): Defined as a macro with strpbrk.
2079 2004-08-19 Mark Mitchell <mark@codesourcery.com>
2081 * configure.tgt (arm*-*-symbianelf*): New target.
2082 (arm*-*-eabi*): Likewise.
2084 2004-08-19 Jakub Jelinek <jakub@redhat.com>
2086 * emultempl/ppc64elf.em (non_overlapping_opd): New variable.
2087 (ppc_before_allocation): Pass it to ppc64_elf_edit_opd).
2088 (OPTION_NON_OVERLAPPING_OPD): Define.
2089 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Add
2090 --non-overlapping-opd option.
2092 2004-08-18 Alan Modra <amodra@bigpond.net.au>
2095 * ldexp.c (fold_name): Don't call bfd_link_add_undef if the symbol
2096 was already on the undefs list.
2098 2004-08-17 Alan Modra <amodra@bigpond.net.au>
2100 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern): Dot
2101 prefix the symbol field too.
2103 2004-08-13 Alan Modra <amodra@bigpond.net.au>
2105 * ldmain.c (link_callbacks): Remove "error_handler".
2106 * ldmisc.c: Include elf-bfd.h.
2107 (vfinfo): Sort comment. Handle %A. Use %A instead of
2108 bfd_get_section_indent.
2109 (error_handler): Delete.
2110 * ldmisc.h (error_handler): Delete declaration.
2112 2004-08-10 Alan Modra <amodra@bigpond.net.au>
2114 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Call
2115 ppc64_elf_restore_symbols.
2117 2004-08-09 Alan Modra <amodra@bigpond.net.au>
2119 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Error if
2120 .toc is too large on relocatable linking.
2122 2004-08-09 Alan Modra <amodra@bigpond.net.au>
2124 * emultempl/ppc64elf.em (ppc_after_open): Delete.
2125 (LDEMUL_AFTER_OPEN): Don't define.
2127 2004-08-02 Stephane Carrez <stcarrez@nerim.fr>
2129 * ld.texinfo (Top): Document specific options of 68HC11 and 68HC12.
2131 2004-08-01 Stephane Carrez <stcarrez@nerim.fr>
2133 * scripttempl/elfm68hc12.sc: Align text, rodata and data section
2136 2004-07-27 Jason Thorpe <thorpej@wasabisystems.com>
2138 * emulparams/hppanbsd.sh (OUTPUT_FORMAT): Set to "elf32-hppa-netbsd".
2140 2004-07-26 Dmitry Diky <diwil@spec.ru>
2142 * Makefile.am: Add new subtargets: msp430x1610, msp430x1611,
2143 msp430x1612, msp430x415, msp430x417, msp430xG437, msp430xG438,
2145 * configure.tgt: Likewise.
2146 * emulparams/msp430all.sh: Likewise.
2147 * Makefile.in: Regenerate.
2149 2004-07-23 Nick Clifton <nickc@redhat.com>
2151 * emultempl/elf32.em (_place_orphan): Use an already existing
2152 section name if that section does not have any flags set.
2154 2004-07-21 H.J. Lu <hongjiu.lu@intel.com>
2156 * ldlang.c (already_linked_hash_entry): Removed.
2157 (already_linked): Likewise.
2158 (already_linked_table): Likewise.
2159 (section_already_linked): Call bfd_section_already_linked.
2160 (lang_process): Replace already_linked_table_init with
2161 bfd_section_already_linked_table_init and check return. Replace
2162 already_linked_table_free with bfd_section_already_linked_table_free.
2164 2004-07-21 Nick Clifton <nickc@redhat.com>
2166 * ldlang.c (init_os): Make sure that the newly allocated userdata
2167 structure is zeroed out.
2169 2004-07-19 H.J. Lu <hongjiu.lu@intel.com>
2171 * NEWS: Mention the new --add-needed/--no-add-needed and
2172 --as-needed/--no-as-needed options.
2174 2004-07-19 H.J. Lu <hongjiu.lu@intel.com>
2176 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): Also
2177 check the add_needed field.
2178 (dt_needed): New struct.
2179 (gld${EMULATION_NAME}_try_needed): Change the first argument
2180 to a pointer to struct dt_needed. Check the DYN_NO_ADD_NEEDED
2181 bit in the file where the DT_NEEDED entry comes from.
2182 (gld${EMULATION_NAME}_search_needed): Change the second
2183 argument to a pointer to struct dt_needed.
2184 (gld${EMULATION_NAME}_check_ld_so_conf): Updated.
2185 (gld${EMULATION_NAME}_after_open): Likewise.
2187 * ld.texinfo: Add --add-needed document.
2188 * ldlang.c (new_afile): Set p->add_needed.
2189 * ldlang.h (lang_input_statement_type): Add add_needed field.
2190 * ldmain.h (add_needed): Declare.
2191 * ldmain.c (add_needed): New global var.
2192 * lexsup.c (option_values): Add OPTION_ADD_NEEDED and
2193 OPTION_NO_ADD_NEEDED.
2194 (ld_options): Likewise.
2195 (parse_args): Handle them.
2197 2004-07-13 Christof Petig <christof@petig-baender.de>
2199 * emultempl/pe.em (make_import_fixup): Use bfd_get_32 to correct
2200 for endian-ness of extracted addend.
2202 2004-07-13 Danny Smith <dannysmith@usesr.sourceforge.net>
2204 * pe-dll.c (auto_export): Filter on just the import prefix,
2205 "_imp_", not "_imp__".
2207 2004-07-09 Nick Clifton <nickc@redhat.com>
2209 * configure.tgt: Change sh-sybmian-elf to sh-*-symbianelf.
2211 2004-07-06 Tomer Levi <Tomer.Levi@nsc.com>
2213 * Makefile.am (ALL_EMULATIONS): Add eelf32crx.o.
2214 (eelf32crx.c): New target.
2215 * Makefile.in: Regenerate.
2216 * configure.tgt: Handle crx-*-elf*.
2217 * emulparams/elf32crx.sh: New file.
2218 * emultempl/crxelf.em: New file.
2219 * scripttempl/elf32crx.sc: New file.
2220 * NEWS: Mention new target.
2222 2004-07-06 Nick Clifton <nickc@redhat.com>
2224 * Makefile.am: Add eshlsymbian.c.
2225 * Makefile.in: Regenerate.
2226 * configure.tgt: Add sh*-symbian-elf target.
2227 * emulparams/shlsymbian.sh: New file. Configure the
2228 sh-symbian-elf linker scripts.
2229 * scripttemp/elf32sh-symbian.sc: New file. Linker script
2230 template for the sh-symbian-elf target.
2232 2004-07-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2234 * emulparams/hppa64linux.sh: Define PLT_BEFORE_GOT.
2235 * emulparams/hppalinux.sh: Likewise.
2236 * scripttempl/elf.sc: Place .plt just before .got when .plt is in
2237 data segment and PLT_BEFORE_GOT is defined.
2239 2004-07-03 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
2241 * ld.texinfo (WIN32): Document PE weak symbols.
2243 2004-07-02 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2245 * emulparams/shlelf32_linux.sh (COMMONPAGESIZE): Set to 4KB.
2247 2004-07-01 H.J. Lu <hongjiu.lu@intel.com>
2249 * ldmisc.c (vfinfo): Call bfd_get_section_ident to identify
2252 2004-06-29 Alan Modra <amodra@bigpond.net.au>
2254 * ldlang.c (lang_reset_memory_regions): Save last relax pass section
2257 2004-06-24 Alan Modra <amodra@bigpond.net.au>
2259 * ldlang.c (print_output_section_statement): Don't print size before
2261 (IGNORE_SECTION): Remove bfd arg. Update all callers.
2263 * ldexp.c (fold_name): .. See below.
2264 * ldlang.c (section_already_linked, print_output_section_statement,
2265 print_input_section, insert_pad, size_input_section,
2266 lang_check_section_addresses, lang_size_sections_1,
2267 lang_size_sections, lang_do_assignments_1, lang_set_startof,
2268 lang_one_common, lang_reset_memory_regions, lang_process,
2269 lang_abs_symbol_at_end_of, lang_do_version_exports_section): ..
2270 * ldwrite.c (build_link_order, clone_section, ds, split_sections): ..
2271 * pe-dll.c (process_def_file, generate_reloc): ..
2272 * emultempl/elf32.em (gld${EMULATION_NAME}_find_statement_assignment,
2273 gld${EMULATION_NAME}_before_allocation): ..
2274 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): ..
2275 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_before_allocation,
2276 sh64_elf_${EMULATION_NAME}_after_allocation): ..
2277 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): ..
2278 * emultempl/xtensaelf.em (ld_assign_relative_paged_dot,
2279 ld_local_file_relocations_fit, ld_xtensa_insert_page_offsets): Use
2280 "size" instead of "_raw_size" and "_cooked_size". Expand
2281 bfd_section_size macro invocations.
2283 2004-06-22 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
2285 * ld/scripttemp/pe.sc (.CRT): Define ___crt_xc_start__,
2286 ___crt_xc_end__, ___crt_xi_start__, ___crt_xi_end__, ___crt_xl_start__,
2287 ___crt_xp_start__, ___crt_xp_end__, ___crt_xt_start__ and
2289 (.tls): Define ___tls_start__ and ___tls_end__.
2291 2004-06-21 Alexandre Oliva <aoliva@redhat.com>
2293 * emulparams/elf32frvfd.sh (GENERATE_PIE_SCRIPT): Set to yes.
2295 2004-06-18 Adam Nemet <anemet@lnxw.com>
2297 * configure.in: Set EXTRA_SHLIB_EXTENSION to .a for LynxOS.
2298 * configure: Regenerate.
2300 2004-06-15 Jakub Jelinek <jakub@redhat.com>
2302 * scripttempl/elf.sc: Readd KEEP and .gcc_except_table.* to
2303 .gcc_except_table output sections lost accidentally with
2306 2004-06-15 Alan Modra <amodra@bigpond.net.au>
2308 * ldwrite.c (build_link_order): Use bfd_get_section_size
2309 instead of bfd_get_section_size_before_reloc or _raw_size.
2310 * pe-dll.c (process_def_file): Likewise.
2312 2004-06-14 Alan Modra <amodra@bigpond.net.au>
2314 From Richard Wirth <r.wirth@wirthware.de>
2315 * ldlang.c (lang_finish): Don't free lang_definedness_table.
2317 2004-05-29 Alan Modra <amodra@bigpond.net.au>
2319 * ldlang.c (gc_section_callback): Move SEC_EXCLUDE twiddles..
2320 (lang_gc_sections): .. to a LANG_FOR_EACH_INPUT_STATEMENT loop here.
2322 2004-05-28 Alan Modra <amodra@bigpond.net.au>
2324 * ldlang.c: Formatting. Wrap long lines, expand bfd_get_section_flags
2326 * lexsup.c: Formatting. Wrap long lines.
2327 * ldwrite.c: Update copyright date.
2329 * ldlang.c (lang_add_section): Don't twidlle SEC_EXCLUDE here.
2330 (output_section_callback): Nor SEC_KEEP here.
2331 (gc_section_callback): Twiddle SEC_EXCLUDE here.
2332 (lang_gc_wild): Delete. Fold into..
2333 (lang_gc_sections_1): ..here. Only call bfd_gc_sections when garbage
2335 (lang_process): Always call lang_gc_sections.
2336 (lang_place_orphans): Handle SEC_EXCLUDE sections.
2337 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Remove
2340 2004-05-26 H.J. Lu <hongjiu.lu@intel.com>
2342 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Clear
2343 SEC_EXCLUDE on non-SEC_DEBUGGING sections for relocatable link.
2344 * ldlang.c (lang_add_section): Likewise.
2346 2004-05-26 Alan Modra <amodra@bigpond.net.au>
2348 * ldlang.c (lang_add_section): Set SEC_EXCLUDE for SEC_GROUP
2349 sections when doing a final link. Clear SEC_EXCLUDE when doing
2350 a relocable link, except for SEC_DEBUGGING sections.
2351 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Use the
2352 same condition here to drop SEC_EXCLUDE orphan sections.
2354 2004-05-25 Alan Modra <amodra@bigpond.net.au>
2356 * ldlang.c (lang_process): Call bfd_merge_sections later, and
2357 only when not a relocatable link.
2358 (print_input_section): Handle SEC_EXCLUDE sections.
2359 (size_input_section): Don't update dot on SEC_EXCLUDE sections.
2360 (lang_do_assignments_1): Likewise.
2361 * ldwrite.c (build_link_order): Ignore SEC_EXCLUDE input sections.
2362 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Likewise.
2363 * emultempl/hppaelf.em (build_section_lists): Likewise.
2364 * emultempl/ppc64elf.em (build_toc_list): Likewise.
2365 (build_section_lists): Likewise.
2367 2004-05-23 Andreas Schwab <schwab@suse.de>
2369 * ld.texinfo (Options): Fix typo in last change.
2371 2004-05-21 Andy Chittenden <achittenden@bluearc.com>
2373 * ld.h (ld_config_type): Add new field: hash_table_size.
2374 * ldmain.c: Initialise the new field to zero. If it is non-zero
2375 after parsing the linker's command line call
2376 bfd_hash_set_default_size.
2377 * lexsup.c (option_values): Add OPTION_HASH_SIZE.
2378 (ld_options): Add hash-size.
2379 (parse_args): Parse --hash-size option. Allow
2380 --reduce-memory-overheads to set the default hash table size as
2382 * ld.texinfo: Document the new switch. Also mention that
2383 --reduce-memory-overheads can affect the hash table size.
2384 * NEWS: Mention the new feature.
2386 2004-05-19 J"orn Rennecke <joern.rennecke@superh.com>
2388 * NEWS: Mention new linker map file generation and the
2389 --reduce-memory-overheads option.
2390 * ld.texinfo: Document --reduce-memory-overheads option.
2391 * ld.h (map_symbol_def): New struct.
2392 (struct user_section_struct, section_userdata_type): Rename to:
2393 (struct lean_user_section_struct, lean_section_userdata_type).
2394 (struct fat_user_section_struct, fat_section_userdata_type): New.
2395 (SECTION_USERDATA_SIZE): Define.
2396 (args_type): New member reduce_memory_overheads.
2397 * ldlang.c (map_obstack): New static variable.
2398 (init_map_userdata, print_all_symbols, sort_def_symbol): New functions.
2399 (lang_map): Unless command_line.reduce_memory_overheads is set,
2400 initialize lists of defined symbols for each section.
2401 (print_input_section): Unless command_line.reduce_memory_overheads
2402 is set, use print_all_symbols.
2403 (init_os): Use lean_section_userdata_type / SECTION_USERDATA_SIZE.
2404 * ldmain.c (main): Initialize command_line.reduce_memory_overheads.
2405 * lexsup.c (enum option_values): Add OPTION_REDUCE_MEMORY_OVERHEADS.
2406 (ld_options): Add entry for --reduce-memory-overheads.
2407 (parse_args): Handle OPTION_REDUCE_MEMORY_OVERHEADS.
2409 2004-05-19 Jakub Jelinek <jakub@redhat.com>
2411 * ldgram.y (sect_constraint): New.
2412 (ONLY_IF_RO, ONLY_IF_RW): New tokens.
2413 (section): Add sect_constraint. Pass additional argument
2414 to lang_enter_output_section_statement.
2415 * mri.c (mri_draw_tree): Pass additional argument to
2416 lang_enter_output_section_statement.
2417 * emultempl/pe.em (place_orphan): Likewise.
2418 (output_prev_sec_find): Disregard output section statements with
2420 * emultempl/mmo.em (output_prev_sec_find): Likewise.
2421 (mmo_place_orphan): Pass additional argument to
2422 lang_enter_output_section_statement.
2423 * emultempl/elf32.em (output_prev_sec_find): Disregard output section
2424 statements with constraint == -1.
2425 (place_orphan): Pass additional argument to
2426 lang_enter_output_section_statement.
2427 * ldlang.c (lang_enter_overlay_section): Likewise.
2428 (lang_output_section_find_1): New.
2429 (lang_output_section_find): Use it.
2430 (lang_output_section_statement_lookup_1): New.
2431 (lang_output_section_statement_lookup): Use it.
2432 (check_section_callback, check_input_sections): New.
2433 (map_input_to_output_sections): Check if all input sections
2434 are readonly if ONLY_IF_RO or ONLY_IF_RW was seen.
2435 (strip_excluded_output_sections): Disregard output section statements
2436 with constraint == -1.
2437 (lang_record_phdrs): Likewise.
2438 (lang_enter_output_section_statement): Add constraint argument.
2439 Use lang_output_section_statement_lookup_1.
2440 * ldlang.h (lang_output_section_statement_type): Add constraint
2441 and all_input_readonly fields.
2442 (lang_enter_output_section_statement): Adjust prototype.
2443 * ldlex.l (ONLY_IF_RO, ONLY_IF_RW): New tokens.
2444 * scripttempl/elf.sc (.eh_frame, .gcc_except_table): Move into text
2445 segment if all input sections are readonly.
2447 2004-05-19 Adam Nemet <anemet@lnxw.com>
2449 * scripttempl/i386lynx.sc: Remove file.
2451 2004-05-17 Bob Wilson <bob.wilson@acm.org>
2453 * ld.texinfo (Output Section Address): Correct subsection name.
2455 2004-05-17 Adam Nemet <anemet@lnxw.com>
2457 * configure.tgt (powerpc-*-lynxos* case): New case.
2458 * configure.host (i[3-7]86-*-lynxos* case): Remove case.
2459 * emulparams/ppclynx.sh: New file.
2460 * emulparams/i386lynx.sh (SCRIPT_NAME): Update to LynxOS 4.0.
2461 * Makefile.am (ALL_EMULATIONS): Add eppclynx.o
2462 (ei386lynx.c): Update rule to LynxOS 4.0 ELF.
2463 (eppclynx.c): New rule.
2464 * Makefile.in: Regenerate.
2466 2004-05-13 Joel Sherrill <joel@oarcorp.com>
2468 * configure.tgt (or32-*-rtems*): Switch to elf and
2469 support versioned targets.
2471 2004-05-13 Nick Clifton <nickc@redhat.com>
2473 * po/fr.po: Updated French translation.
2475 2004-05-11 Jakub Jelinek <jakub@redhat.com>
2477 * genscripts.sh: Generate -z combreloc -z now -z relro scripts
2478 for binaries, -shared and -pie.
2479 * emulparams/elf_i386.sh (SEPARATE_GOTPLT): Set.
2480 * emulparams/elf_x86_64.sh (SEPARATE_GOTPLT): Set.
2481 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Rename to...
2482 (OTHER_RELRO_SECTIONS): ... this.
2483 * ldlex.l (DATA_SEGMENT_RELRO_END): Add.
2484 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Handle
2485 -z relro and -z norelro.
2486 (gld${EMULATION_NAME}_list_options): Add it to usage.
2487 (gld${EMULATION_NAME}_get_script): Return -z combreloc -z now
2488 -z relro scripts when appropriate.
2489 * scripttempl/elf.sc: Unset SEPARATE_GOTPLT if RELRO_NOW is set.
2490 Create separate .got.plt section if SEPARATE_GOTPLT.
2491 Move sections which are only written during relocation handling
2492 to the beginning of RW segment. If NO_SMALL_DATA, move .got
2493 before .data. Add DATA_SEGMENT_RELRO_END directive.
2494 Include OTHER_RELRO_SECTIONS.
2495 * ldgram.y (DATA_SEGMENT_RELRO_END): Add.
2496 * ldexp.c (exp_print_token): Handle DATA_SEGMENT_RELRO_END.
2497 (fold_unary): Likewise.
2498 (fold_binary): Handle -z relro.
2499 * ldexp.h (struct exp_data_seg): Add exp_dataseg_relro_seen and
2500 exp_dataseg_relro_adjust phases. Add relro_end field.
2501 * ldmain.c (main): Initialize link_info.relro to FALSE.
2502 * ldlang.c (lang_size_sections): Handle -z relro.
2504 2004-05-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
2506 * scripttempl/avr.sc: Do not set LMA for "eeprom" section.
2508 2004-05-07 J"orn Rennecke <joern.rennecke@superh.com>
2510 * ldlang.c (print_padding_statement): Cast size_t to bfd_vma
2511 before printing it with %W.
2513 2004-05-07 Brian Ford <ford@vss.fsi.com>
2514 DJ Delorie <dj@redhat.com>
2516 * emultempl/pe.em (real_flags): New static.
2517 (OPTION_LARGE_ADDRESS_AWARE): New define.
2518 (gld${EMULATION_NAME}_add_options): Add --large-address-aware option.
2519 (gld_${EMULATION_NAME}_list_options): Likewise.
2520 (gld${EMULATION_NAME}_handle_option): Likewise.
2521 (gld_${EMULATION_NAME}_after_open): Pass real_flags to PE private data.
2522 * ld.texinfo: Document it.
2525 2004-05-07 Brian Ford <ford@vss.fsi.com>
2527 * NEWS: Mention DWARF 2 support for i386pe.
2529 2004-05-05 Alexandre Oliva <aoliva@redhat.com>
2531 * emulparams/elf32frvfd.sh (OUTPUT_FORMAT): Switch to new
2534 2004-04-30 Alan Modra <amodra@bigpond.net.au>
2536 * ldlang.c (unique_section_p): Pass section parm, return true on
2538 (output_section_callback): Adjust.
2539 * ldlang.h (unique_section_p): Update prototype.
2540 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust.
2542 2004-04-30 Eric Botcazou <ebotcazou@act-europe.fr>
2544 * ld.texinfo (--gc-sections): Remove restriction for
2547 2004-04-29 Brian Ford <ford@vss.fsi.com>
2549 * scripttempl/pe.sc: Handle .debug* and .gnu.linkonce.wi.* sections
2550 for DWARF 2/3. Update stab section's syntax.
2552 2004-04-29 Alan Modra <amodra@bigpond.net.au>
2554 * pe-dll.c: Revert changes accidentally committed 2004-03-08.
2555 (fill_edata): Correct pointer arithmetic.
2557 2004-04-21 Chris Demetriou <cgd@broadcom.com>
2559 * ld.texinfo: Remove MIPS --embedded-relocs documentation.
2560 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Remove definition.
2561 * emulparams/mipsidt.sh (TEMPLATE_NAME): Use generic.em.
2562 (EXTRA_EM_FILE): Use mipsecoff.em
2563 * emulparams/mipsidtl.sh (TEMPLATE_NAME): Use generic.em.
2564 (EXTRA_EM_FILE): Use mipsecoff.em
2565 * emultempl/mipsecoff.em: Restructure to be included as an
2566 extra emulation file.
2567 (check_sections, gld${EMULATION_NAME}_after_open)
2568 (gld${EMULATION_NAME}_after_allocation)
2569 (gld${EMULATION_NAME}_get_script)
2570 (ld_${EMULATION_NAME}_emulation): Remove
2571 (gld${EMULATION_NAME}_before_parse): Rename to...
2572 (mipsecoff_before_parse): This.
2573 (LDEMUL_BEFORE_PARSE): Define.
2574 * emultempl/mipself.em: Remove file.
2575 * scripttempl/mips.sc (.rel.sdata): Do not include in output.
2576 (__runtime_reloc_start, __runtime_reloc_stop): Stop providing
2578 * Makefile.am: Remove dependencies on emultempl/mipself.em.
2579 * Makefile.in: Regenerate.
2581 2004-04-21 Anil Paranjpe <anilp1@kpitcummins.com>
2583 * ld.texinfo (synthesizing on H8/300): Information about linker
2584 relaxation support for bit manipulation instructions and system
2585 control instructions is added.
2587 2004-04-21 Hans-Peter Nilsson <hp@axis.com>
2589 * NEWS: Mention change in DEFINED semantics.
2591 2004-04-21 Eric Botcazou <ebotcazou@act-europe.fr>
2593 * scripttempl/elf.sc (.text): Add KEEP for .text.*personality*.
2594 (.data): Add KEEP for .gnu.linkonce.d.*personality*.
2595 (.gcc_except_table): Add KEEP for self and accept .gcc_except_table.*.
2597 2004-04-21 Ben Elliston <bje@au.ibm.com>
2599 * ld.texinfo (Simple Example): Add missing punctuation.
2601 2004-04-20 Chris Demetriou <cgd@broadcom.com>
2603 * NEWS: Note that MIPS --embedded-relocs option is deprecated.
2605 2004-04-19 Jakub Jelinek <jakub@redhat.com>
2607 * ldlang.c (lang_do_assignments_1): Handle .tbss output section
2610 2004-04-18 Danny Smith <dannysmith@users.sourceforge.net>
2612 * scriptempl/pe.sc: Put numbered .ctors.* after .ctors
2613 with default priority. Likewise for dtors.
2615 2004-04-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2617 * configure.host: Remove mips*-dec-bsd* target.
2618 * configure.tgt: Likewise.
2620 2004-04-08 Richard Sandiford <rsandifo@redhat.com>
2622 * emulparams/elf32bsmip.sh (EXTRA_EM_FILE): Define to irix.
2623 * emulparams/elf64bmip.sh (EXTRA_EM_FILE): Likewise.
2624 * emulparams/elf32bmipn32.sh (EXTRA_EM_FILE): Likewise.
2625 * emultempl/irix.em: New file.
2626 * Makefile.am (eelf32bsmip.c, eelf32bmipn32.c, eelf64bmip.c): Update
2628 * Makefile.in: Regenerate.
2630 2004-04-01 Paul Brook <paul@codesourcery.com>
2632 * emultempl/armelf.em (byteswap_code): Add.
2633 (arm_elf_before_allocation): Pass extra parameter.
2634 (PARSE_AND_LIST_PROLOGUE): Add OPTION_BE8.
2635 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add be8.
2636 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_BE8.
2637 * emultempl/armelf_oabi.em: Pass extra parameter.
2638 * ld.texinfo: Document --be8.
2640 2004-03-30 Stan Shebs <shebs@apple.com>
2642 Remove long-obsolete MPW support.
2643 * mpw-config.in, mpw-make.sed, mac-ld.r: Remove files.
2644 * Makefile.am (mpw): Remove file-presynthesizing actions.
2645 * Makefile.in: Likewise.
2646 * ldfile.c (slash): Remove MPW case.
2647 * ldlex.l [MPW]: Remove unused definition.
2649 2004-03-30 Galit Heller <Galit.Heller@nsc.com>
2651 * Makefile.am (ALL_EMULATIONS): Add eelf32cr16c.o.
2652 (eelf32cr16c.c): New target.
2653 * Makefile.in: Regenerate.
2654 * configure.tgt: Handle cr16c-*-elf*.
2655 * emulparams/elf32cr16c.sh: New file.
2656 * scripttempl/elfcr16c.sc: Likewise
2657 * NEWS: Mention support for new target.
2659 2004-03-30 Nick Clifton <nickc@redhat.com>
2661 * po/sv.po: Updated Swedish translation.
2663 2004-03-27 Alan Modra <amodra@bigpond.net.au>
2665 * emultempl/elf32.em: Update new bfd_elf_discard_info name.
2666 * emultempl/hppaelf.em: Likewise.
2667 * emultempl/ppc64elf.em: Likewise.
2668 * emultempl/sh64elf.em: Likewise.
2670 2004-03-25 Alan Modra <amodra@bigpond.net.au>
2672 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Update
2673 size_dynamic_sections call.
2675 2004-03-23 Alan Modra <amodra@bigpond.net.au>
2678 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Set
2679 link_info.wrap_char.
2681 2004-03-20 H.J. Lu <hongjiu.lu@intel.com>
2683 * lexsup.c (parse_args): Don't set unresolved_syms_in_objects
2684 or unresolved_syms_in_shared_libs for -Bdynamic and -Bstatic.
2686 2004-03-20 Alexandre Oliva <aoliva@redhat.com>
2688 * emulparams/elf32frvfd.sh (MAXPAGESIZE): Change to 16Kb.
2690 2004-03-19 Alan Modra <amodra@bigpond.net.au>
2692 * config.in: Regenerate.
2693 * po/ld.pot: Regenerate.
2695 2004-03-18 Alan Modra <amodra@bigpond.net.au>
2697 * ld.texinfo: Add --as-needed doco.
2698 * ldmain.c (as_needed): New global var.
2699 * ldmain.h (as_needed): Declare.
2700 * lexsup.c (option_values): Add OPTION_AS_NEEDED and
2701 OPTION_NO_AS_NEEDED.
2702 (ld_options): Likewise.
2703 (parse_args): Handle them.
2704 * ldlang.h (lang_input_statement_type): Add as_needed field.
2705 * ldlang.c (new_afile): Set p->as_needed.
2706 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): New function.
2707 (gld${EMULATION_NAME}_try_needed): Use bfd_elf_set_dyn_lib_class.
2708 (ld_${EMULATION_NAME}_emulation): Set LDEMUL_RECOGNIZED_FILE entry.
2710 * ldlang.c (open_input_bfds): Remove useless cast.
2711 (lang_do_assignments_1): Likewise.
2712 (lang_for_each_input_section): Delete.
2714 2004-03-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
2716 * configure.tgt: Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff*.
2718 2004-03-08 Danny Smith <dannysmith@users.sourceforge.net>
2720 * pe-dll.c (pe_dll_generate_implib): Skip sections marked as
2721 private when building implib.
2723 2004-03-05 Nathan Sidwell <nathan@codesourcery.com>
2725 * ldlang.c (lang_add_section): Don't force SEC_LOAD on
2727 (IGNORE_SECTION): Ignore .tbss sections too.
2728 (lang_size_sections_1): .tbss sections do not advance dot.
2730 2004-03-01 Andreas Schwab <schwab@suse.de>
2732 * ld.texinfo (Options): Fix example for --wrap.
2734 2004-02-25 Danny Smith <dannysmith@users.sourceforge.net>
2736 * pe-dll.c (fill_edata): Check that exported_symbol_sections is
2739 2004-02-23 Ian Lance Taylor <ian@wasabisystems.com>
2741 * ldlang.c (lang_check): Use %P, not %E, in error message.
2743 2004-02-23 Nathan Sidwell <nathan@codesourcery.com>
2745 * ldlang.h (struct lang_output_section_state): Change processed
2747 * ldexp.c (check, invalid): Remove.
2748 (fold_name): Move valid_p assignments. Create undefined symbol
2749 when needed. Directly exampine section's processd flag.
2750 * ldlang.c (lang_output_section_statement_lookup): Adjust
2751 processed field init.
2752 (lang_size_sections_1): Allow LOADADDR when determining section's
2753 VMA. Adjust error message. Fold data statement's expr.
2754 (lang_size_sections): Correctly increment lang_statement_iteration.
2756 2004-02-23 Alan Modra <amodra@bigpond.net.au>
2758 * ldexp.c (fold_tree): Follow indirect symbols.
2760 2004-02-20 Nathan Sidwell <nathan@codesourcery.com>
2762 * ldgram.y (exp): Add two operand ALIGN.
2763 * ldexp.c (fold_binary): Add ALIGN_K case.
2764 * ld.texinfo (ALIGN): Document two operand version.
2766 2004-02-19 Nathan Sidwell <nathan@codesourcery.com>
2768 * ldlang.c (map_input_to_output_sections): Initialize sections
2769 mentioned in a data statement expression.
2770 (lang_do_assignments_1): Add data statement's expression's
2773 2004-02-18 Nathan Sidwell <nathan@codesourcery.com>
2775 * ldgram.y (statement_anywhere): Add assert rule.
2776 * ldlang.c (exp_init_os): Add assert case.
2778 2004-02-14 Andrew Cagney <cagney@redhat.com>
2780 * ldmain.c (remove_output): Call bfd_cache_close.
2782 2004-02-14 Richard Sandiford <rsandifo@redhat.com>
2784 * emulparams/elf32bmipn32-defs.sh (OTHER_SECTIONS): Discard
2785 .MIPS.content* and .MIPS.events* sections.
2787 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
2789 * emulparams/armelf.sh, emulparams/armelf_linux.sh: Move
2790 .note.gnu.arm.ident to after allocated sections. Mark its
2793 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
2795 * emulparams/armelf_linux.sh (COMMONPAGESIZE): Set to 4KB.
2796 * emulparams/elf32bmip.sh (COMMONPAGESIZE): Likewise.
2797 * emulparams/elf32bmipn32.sh (COMMONPAGESIZE): Likewise.
2798 * emulparams/elf32btsmipn32.sh (COMMONPAGESIZE): Likewise.
2799 * emulparams/shlelf_linux.sh (COMMONPAGESIZE): Likewise.
2801 2004-02-05 Nick Clifton <nickc@redhat.com>
2803 * emultempl/pe.em (_after_open): Fix typo in previous delta.
2805 2004-02-04 Danny Smith <dannysmith@users.sourceforge.net>
2807 * emultempl/pe.em (_after_open): Fix thinko in 2003-12-18 patch.
2809 2004-01-28 Alan Modra <amodra@bigpond.net.au>
2811 * genscripts.sh: Fix typo.
2813 * genscripts.sh: Apply $LIBPATH_SUFFIX to $tool_lib and $libdir too.
2815 2004-01-24 Jakub Jelinek <jakub@redhat.com>
2817 * emulparams/elf64_ia64.sh: Put .rela.opd into
2818 OTHER_GOT_RELOC_SECTIONS instead of OTHER_PLT_RELOC_SECTIONS.
2820 2004-01-20 Danny Smith <dannysmith@users.sourceforge.net>
2822 * pe-dll.c (pe_create_import_fixup): Clear WP_TEXT flag.
2823 * ld.texinfo (--omagic): Note that writable text section
2824 does not conform to published PE-COFF specs.
2825 (--enable-auto-import): Likewise.
2827 2004-01-15 Alan Modra <amodra@bigpond.net.au>
2829 * emulparams/elf32ppc.sh (COMMONPAGESIZE): Define.
2831 2004-01-13 Nick Clifton <nickc@redhat.com>
2833 * ldlang.c (lang_get_regions): Add extra parameter 'have_vma'
2834 which if true will prevent the LMA region being used as a
2835 replacement for a default VMA region.
2836 (lang_leave_output_section_statement): Pass extra parameter.
2837 (lang_leave_overlay): Likewise.
2838 * ld.texinfo (Output Section LMA): Document that the LMA
2839 region can be set to the VMA region if no VMA has been set.
2840 * ldlang.h (struct lang_output_section_phdr_list): Create a
2841 typedef for this type. Minor formatting fixes.
2843 2004-01-13 Nick Clifton <nickc@redhat.com>
2845 * ldlang.c (lang_size_sections_1): If dot is advanced, then
2846 assume that the section should be allocated.
2848 2004-01-13 Alan Modra <amodra@bigpond.net.au>
2850 * ldlang.c (IGNORE_SECTION): Don't ignore SEC_ALLOC && !SEC_LOAD
2851 sections. Do ignore SEC_NEVER_LOAD sections.
2852 (lang_size_sections_1): Remove test made redundant with the above.
2854 2004-01-09 Alan Modra <amodra@bigpond.net.au>
2856 * emultempl/ppc64elf.em (ppc_before_allocation): Clear cached
2857 program_header_size.
2859 2004-01-06 Alexandre Oliva <aoliva@redhat.com>
2861 2003-11-28 Alexandre Oliva <aoliva@redhat.com>
2862 * emulparams/elf32frvfd.sh (EMBEDDED): Clear.
2863 2003-11-05 Alexandre Oliva <aoliva@redhat.com>
2864 * emulparams/elf32frvfd.sh (STACK_ADDR): Unset.
2865 (MAXPAGESIZE): Set to 64Kb.
2866 (OTHER_READONLY_SECTIONS): Define __ROFIXUP_LIST__ and
2867 __ROFIXUP_END__. Don't map .rofixup.got any more.
2868 * emulparams/elf32frv.sh (NOP): Set.
2869 2003-10-31 Alexandre Oliva <aoliva@redhat.com>
2870 * configure.tgt: Add frv-*-*linux*.
2871 2003-09-30 Alexandre Oliva <aoliva@redhat.com>
2872 * Makefile.am (ALL_EMULATIONS): Added eelf32frvfd.o.
2873 (eelf32frvfd.c): New.
2874 * configure.tgt <frv-*-*>: Added it to targ_extra_emuls.
2875 * emulparams/elf32frv.sh: Reverted previous two patches.
2876 * emulparams/elf32frvfd.sh: New.
2877 * Makefile.in: Rebuilt.
2878 2003-09-18 Alexandre Oliva <aoliva@redhat.com>
2879 * emulparams/elf32frv.sh (OTHER_READONLY_SECTIONS): Added
2880 .rofixup.got to .rofixup.
2881 2003-09-15 Alexandre Oliva <aoliva@redhat.com>
2882 * emulparams/elf32frv.sh (MAXPAGESIZE): Make it 256KiB, not 256B.
2883 (TEMPLATE_NAME, GENERATE_SHLIB_SCRIPT): Set.
2885 2004-01-05 Jakub Jelinek <jakub@redhat.com>
2887 * emulparams/elf_s390.sh (NO_SMALL_DATA): Set to yes.
2888 * emulparams/elf64_s390.sh (NO_SMALL_DATA): Set to yes.
2890 2004-01-03 Alan Modra <amodra@bigpond.net.au>
2892 * ldexp.c (align_n): Make static.
2893 * ldexp.h (align_n): Delete declaration.
2894 * ldlang.h (lang_enter_output_section_statement): Remove
2896 * ldlang.c (lang_enter_output_section_statement): Likewise.
2897 (TO_ADDR, TO_SIZE): Define.
2898 (opb_shift): New var.
2899 (init_opb): New function.
2900 (print_input_section): Call init_opb and use TO_ADDR.
2901 (print_data_statement, print_reloc_statement): Likewise.
2902 (print_padding_statement): Likewise.
2903 (size_input_section): Use TO_SIZE and TO_ADDR, and global opb_shift.
2904 (lang_check_section_addresses): Likewise.
2905 (lang_size_sections_1): Likewise.
2906 (lang_do_assignments_1): Likewise.
2907 (lang_set_startof): Likewise.
2908 (lang_one_common): Likewise. Combine power_of_two and opb_shift align.
2909 (lang_process): Call init_opb.
2910 (lang_abs_symbol_at_end_of): Use TO_ADDR and global opb_shift.
2911 (lang_enter_overlay_section): Adjust
2912 lang_enter_output_section_statement call.
2913 * ldgram.y: Likewise.
2914 * mri.c (mri_draw_tree): Likewise.
2915 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Likewise.
2916 * emultempl/mmo.em (mmo_place_orphan): Likewise.
2917 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Likewise.
2919 * ldfile.c (ldfile_set_output_arch): Add defarch param.
2920 * ldfile.h (ldfile_set_output_arch): Ditto.
2921 * emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Use
2922 ldfile_set_output_arch.
2923 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Ditto.
2924 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Ditto.
2925 * emultempl/linux.em (gld${EMULATION_NAME}_before_parse): Ditto.
2926 * emultempl/mipsecoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
2927 * emultempl/pe.em (gld${EMULATION_NAME}_before_parse): Ditto.
2928 * emultempl/sunos.em (gld${EMULATION_NAME}_before_parse): Ditto.
2929 * ldgram.y: Adjust ldfile_set_output_arch call.
2930 * emultempl/armcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
2931 * emultempl/armelf.em (gld${EMULATION_NAME}_before_parse): Ditto.
2932 * emultempl/armelf_oabi.em (gld${EMULATION_NAME}_before_parse): Ditto.
2933 * emultempl/generic.em (gld${EMULATION_NAME}_before_parse): Ditto.
2934 * emultempl/gld960c.em (gld960_set_output_arch): Ditto.
2935 * emultempl/m68kcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
2936 * emultempl/ticoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
2938 2004-01-02 Bernardo Innocenti <bernie@develer.com>
2940 * configure.tgt: Add m68k-uClinux target.
2942 For older changes see ChangeLog-0203
2948 version-control: never