1 2005-10-15 H.J. Lu <hongjiu.lu@intel.com>
4 * emultempl/elf32.em: Include "elf-bfd.h".
5 (gld${EMULATION_NAME}_place_orphan): Check section type and
6 don't use section name for ELF input sections.
8 * ld.texinfo: Document orphan section processing.
10 * ldlang.c (lang_output_section_find_by_flags): Match section
11 types by calling bfd_match_sections_by_type.
13 2005-10-13 Mark Mitchell <mark@codesourcery.com>
15 * ld.texino: Describe double-quoted string syntax for version
17 * ldlang.h (lang_new_vers_pattern): Add literal_p parameter.
18 * ldgram.y (vers_defns): Allow NAME as well as VERS_IDENTIFIER.
19 Adjust calls to lang_new_vers_pattern to pass literal_p argument.
20 * ldlang.c (lang_vers_match): Fix indentation. Do not glob-match
21 version nodes without a pattern.
22 (lang_new_vers_pattern): Add literal_p parameter.
23 (lang_do_version_exports_section): Pass it.
25 2005-10-12 Mark Mitchell <mark@codesourcery.com>
27 * NEWS: Mention @file.
29 2005-10-05 H.J. Lu <hongjiu.lu@intel.com>
32 * ldcref.c (check_refs): Accept bfd_boolean.
33 (check_local_sym_xref): Pass FALSE to check_refs.
34 (check_nocrossref): Pass TRUE to check_refs.
35 (check_refs_info): Add bfd_boolean.
36 (check_refs): Add bfd_boolean to check_refs_info.
37 (check_reloc_refs): Match relocations with proper symbols.
39 * ldmisc.c (vfinfo): Don't add extra ":\n".
41 2005-10-05 Danny Smith <dannysmith@users.sourceforge.net>
43 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse): Set
44 default entry symbol to ENTRY here.
45 * scripttempl/pe.sc: Not here.
47 2005-09-30 James E Wilson <wilson@specifix.com>
49 * ldlang.c (lang_startup): Add missing ": " to einfo call.
51 2005-09-30 H.J. Lu <hongjiu.lu@intel.com>
53 * Makefile.am: Run "make dep-am".
54 * Makefile.in: Regenerated.
55 * aclocal.m4: Likewise.
57 2005-09-30 H.J. Lu <hongjiu.lu@intel.com>
59 * ldlang.c (output_statement_hash_entry): New type.
60 (output_statement_table): New variable for hash table.
61 (output_statement_newfunc): New function.
62 (output_statement_table_init): Likewise.
63 (output_statement_table_free): Likewise.
64 (lang_init): Call output_statement_table_init.
65 (lang_finish): Renamed to ...
67 (lang_process): Updated.
68 (lang_finish): New function.
69 (lang_output_section_find_1): Use hash table.
70 (lang_output_section_statement_lookup_1): Likewise.
72 * ldlang.h (lang_finish): New.
74 * ldmain.c (main): Call lang_finish.
76 2005-09-30 Mark Mitchell <mark@codesourcery.com>
78 * ldmain.c (main): Use expandargv.
80 2005-09-30 Catherine Moore <clm@cm00re.com>
82 * Makefile.am: Bfin support.
83 * Makefile.in: Regenerated.
84 * aclocal.m4: Regenerated.
85 * configure.tgt: Bfin support.
86 * emulparams/bfin.sh: New file.
87 * emultempl/bfin.em: New file.
89 2005-09-30 Matthias Kurz <mk@baerlap.north.de>
91 * ld.h: Prevent the inclusion of <libintl.h> from the Solaris
92 version of <locale.h> when ENABLE_NLS is not defined.
94 2005-09-27 H.J. Lu <hongjiu.lu@intel.com>
96 * ld.texinfo (ALIGN): Document it as forcing output section
99 * ldgram.y (ALIGN): Support it for forcing output section
102 2005-09-20 Alan Modra <amodra@bigpond.net.au>
104 * ldlang.h (lang_output_section_statement_struct): Change type of
105 "processed" to bfd_boolean.
106 * ldexp.c (fold_name): Update references to os->processed.
107 * ldlang.c (lang_output_section_statement_lookup_1): Likewise.
108 (lang_size_sections_1): Likewise.
109 (lang_reset_memory_regions): Likewise.
112 * ldlang.c (lang_size_sections_1): Process addr_tree earlier,
113 so that unused output section statements affect dot.
115 2005-09-08 Jakub Jelinek <jakub@redhat.com>
117 * ld.texinfo: Document -z {no,}execstack, -z {no,}relro
118 and --eh-frame-hdr options.
120 2005-09-07 Alan Modra <amodra@bigpond.net.au>
122 * ldexp.c (fold_name <SIZEOF>): Return 0 for non-existent section.
123 (exp_fold_tree_1): Print assert message only in final stage of
124 linking. Trigger assertion failure if expression cannot be
127 2005-09-06 H.J. Lu <hongjiu.lu@intel.com>
130 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): Check
131 --just-symbols on DSO.
133 2005-08-18 Alan Modra <amodra@bigpond.net.au>
135 * scripttempl/elf.sc: Remove commented out defines.
137 2005-08-18 Alan Modra <amodra@bigpond.net.au>
139 * emulparams/a29k.sh: Delete.
140 * emulparams/ebmon29k.sh: Delete.
141 * emulparams/sa29200.sh: Delete.
142 * Makefile.am: Remove a29k support.
143 * configure.tgt: Likewise.
144 * ld.texinfo: Likewise.
145 * Makefile.in: Regenerate.
147 2005-08-17 Jakub Jelinek <jakub@redhat.com>
149 * ldgram.y (vers_defns): Don't lose pattern list before
150 extern NAME {}. Handle global, local and extern symbol names.
152 2005-08-17 Kaz Kojima <kkojima@rr.iij4u.or.jp>
154 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_after_allocation):
155 Don't increment rel_count of .cranges here. Set rawsize of .cranges.
157 2005-08-10 Nick Clifton <nickc@redhat.com>
159 * pe-dll.c (pe_exe_fill_sections): Call lang_reset_memory_regions
160 before lang_size_sections.
162 2005-08-09 Alan Modra <amodra@bigpond.net.au>
164 * emulparams/hppa64linux.sh (LARGE_SECTIONS): Remove .tbss.
166 2005-08-08 Eric Doenges <Eric.Doenges@betty-tv.com>
168 * Makefile.am (ALL_EMULATIONS): Add msp430x21xx variants.
169 Add rules to build these emulations.
170 * Makefile.in: Regenerate.
171 * configure.tgt (msp430): Add the new variants to the
172 targ_extra_emuls list.
173 * emulparams/msp430all.sh: Add entries for the msp430x21xx
176 2005-08-05 H.J. Lu <hongjiu.lu@intel.com>
178 * ld.texinfo: Document PROVIDE_HIDDEN.
180 * ldexp.c (exp_fold_tree_1): Hide a provided symbol if asked.
181 (exp_provide): Add and set hidden.
183 * ldexp.h (etree_type): Add hidden to assign.
185 * ldgram.y (PROVIDE_HIDDEN): New.
186 * ldlex.l (PROVIDE_HIDDEN): Likewise.
188 * scripttempl/elf.sc: Use PROVIDE_HIDDEN on array bound
191 2005-08-05 Alan Modra <amodra@bigpond.net.au>
193 * emulparams/elf_x86_64.sh: Revert last change.
194 * scripttempl/elf.sc (REL_LARGE, LARGE_SECTIONS): Define here.
196 2005-08-05 Alan Modra <amodra@bigpond.net.au>
198 * emulparams/armelf.sh (OTHER_BSS_END_SYMBOLS): Split out from
200 * emulparams/armelf_linux.sh: Likewise.
201 * emulparams/armnto.sh: Likewise.
202 * emulparams/criself.sh: Likewise.
203 * emulparams/elf32mcore.sh: Likewise.
204 * emulparams/criself.sh (OTHER_SYMBOLS): Define.
205 * emulparams/crislinux.sh (OTHER_SYMBOLS): Define.
206 (OTHER_END_SYMBOLS): Don't define.
207 * emulparams/elf32fr30.sh: Likewise.
208 * emulparams/elf64mmix.sh: Likewise.
209 * emulparams/hppa64linux.sh: Likewise.
210 * emulparams/m32relf.sh: Likewise.
211 * emulparams/vxworks.sh: Likewise.
212 * scripttempl/armbpabi.sc (OTHER_BSS_SECTIONS): Delete.
213 (OTHER_BSS_END_SYMBOLS): Add.
214 (OTHER_END_SYMBOLS): Move before current end sym definitions.
215 (OTHER_SYMBOLS): Replace OTHER_END_SYMBOLS near end of script.
216 * scripttempl/elf.sc: Likewise.
217 * scripttempl/elf32sh-symbian.sc: Likewise.
218 * scripttempl/elf_chaos.sc: Likewise.
219 * scripttempl/elfxtensa.sc: Likewise.
220 * scripttempl/iq2000.sc: Likewise.
221 * scripttempl/xstormy16.sc: Likewise.
223 * scripttempl/elf.sc (LBSS, LARGE_SECTIONS): Delete.
224 (REL_LDATA, REL_LBSS, REL_LRODATA): Delete.
225 (REL_LARGE, LARGE_SECTIONS): Add.
226 * emulparams/elf_x86_64.sh (LARGE_SECTIONS): Define as script text.
228 * emulparams/hppa64linux.sh (OTHER_BSS_SECTIONS): Don't define.
229 (LARGE_SECTIONS): Define.
230 * emulparams/hppa64linux.sh (OTHER_BSS_SECTIONS): Don't define.
231 (LARGE_SECTIONS): Define.
233 2005-08-04 Alan Modra <amodra@bigpond.net.au>
235 * ldemul.c (ldemul_do_assignments, do_assignments_default): Delete.
236 * ldemul.h (ldemul_do_assignments, do_assignments_default): Delete.
237 (struct ld_emulation_xfer_struct): Remove do_assignments field.
238 * ldlang.c (lang_do_assignments): Don't call ldemul_do_assignments.
239 * emulparams/elf32ppc.sh (SDATA_START_SYMBOLS): New.
240 (SDATA2_START_SYMBOLS, SBSS_START_SYMBOLS, SBSS_END_SYMBOLS): New.
241 * emultempl/aix.em (ld_*_emulation): Delete do_assignments init.
242 * emultempl/armcoff.em: Likewise.
243 * emultempl/beos.em: Likewise.
244 * emultempl/generic.em: Likewise.
245 * emultempl/gld960.em: Likewise.
246 * emultempl/gld960c.em: Likewise.
247 * emultempl/linux.em: Likewise.
248 * emultempl/lnk960.em: Likewise.
249 * emultempl/m68kcoff.em: Likewise.
250 * emultempl/pe.em: Likewise.
251 * emultempl/sunos.em: Likewise.
252 * emultempl/ticoff.em: Likewise.
253 * emultempl/vanilla.em: Likewise.
254 * emultempl/elf32.em: Likewise.
255 (gld*_provide_bound_symbols): Delete.
256 (gld*_provide_init_fini_syms): Delete.
257 (gld*_before_allocation): Don't call ldemul_do_assignments.
258 * emultempl/ppc32elf.em (ppc_do_assignments): Delete.
259 (LDEMUL_DO_ASSIGNMENTS): Delete.
260 * scripttempl/elf.sc: Provide init/fini syms. Add SBSS_START_SYMBOLS,
261 SBSS_END_SYMBOLS, SDATA2_START_SYMBOLS.
263 2005-08-04 Alan Modra <amodra@bigpond.net.au>
265 * Makefile.am (eelf32m32c.c): Fix dependencies.
266 * Makefile.in: Regenerate.
268 2005-08-04 Alan Modra <amodra@bigpond.net.au>
270 * ldemul.c (ldemul_finish): Call ld_emulation->finish unconditionally.
271 (finish_default): New function.
272 * ldemul.h (finish_default): Declare.
273 * emultempl/aix.em (gld*_before_allocation): Call
274 before_allocation_default rather than strip_excluded_output_sections.
275 (ld_*_emulation): Init finish field to finish_default.
276 * emultempl/armcoff.em: Likewise.
277 * emultempl/beos.em: Likewise.
278 * emultempl/elf32.em: Likewise.
279 * emultempl/generic.em: Likewise.
280 * emultempl/gld960.em: Likewise.
281 * emultempl/gld960c.em: Likewise.
282 * emultempl/hppaelf.em: Likewise.
283 * emultempl/linux.em: Likewise.
284 * emultempl/lnk960.em: Likewise.
285 * emultempl/m68kcoff.em: Likewise.
286 * emultempl/mmo.em: Likewise.
287 * emultempl/pe.em: Likewise.
288 * emultempl/ppc64elf.em: Likewise.
289 * emultempl/sunos.em: Likewise.
290 * emultempl/ticoff.em: Likewise.
291 * emultempl/vanilla.em: Likewise.
293 2005-08-03 Alan Modra <amodra@bigpond.net.au>
295 * ldlang.c (exp_init_os): Handle etree_provide.
296 * emulparams/armelf.sh (OTHER_END_SYMBOLS): Rename from..
297 (OTHER_BSS_END_SYMBOLS): ..this.
298 * emulparams/armelf_linux.sh: Likewise.
299 * emulparams/armnto.sh: Likewise.
300 * emulparams/criself.sh: Likewise.
301 * emulparams/crislinux.sh: Likewise.
302 * emulparams/elf32frv.sh: Likewise.
303 * emulparams/elf32mcore.sh: Likewise.
304 * emulparams/elf32ppc.sh: Likewise.
305 * emulparams/elf32ppclinux.sh: Likewise.
306 * emulparams/hppa64linux.sh: Likewise.
307 * scripttempl/armbpabi.sc: Substitute $OTHER_END_SYMBOLS, not
308 $OTHER_BSS_END_SYMBOLS.
309 * scripttempl/elf32sh-symbian.sc: Likewise.
310 * scripttempl/elf_chaos.sc: Likewise.
311 * scripttempl/iq2000.sc: Likewise.
312 * scripttempl/xstormy16.sc: Likewise.
313 * scripttempl/elf.sc: Likewise. Delete __bss_start comment.
314 * scripttempl/elfxtensa.sc: Likewise.
316 2005-07-29 Nick Clifton <nickc@redhat.com>
318 * ldmain.c (main): Allow -shared and -static to be used together.
319 * ld.texinfo (-static): Mention that it is allowed with -shared.
321 2005-07-28 DJ Delorie <dj@redhat.com>
323 * ldlang.c (lang_output_section_statement_lookup_1): Don't cast a
324 unary & address operator, as that breaks GCC's strict aliasing
327 2005-07-25 Jan Hubicka <jh@suse.cz>
328 H.J. Lu <hongjiu.lu@intel.com>
330 * emulparams/elf_x86_64.sh (LARGE_SECTIONS): New.
332 * scripttempl/elf.sc: Updated for large section support.
334 2005-07-21 Ralf Corsepius <ralf.corsepius@rtems.org>
336 * configure.tgt: Remove i[3-7]86-*-rtemself*.
337 Remove sparc-*-rtemself*.
339 2005-07-21 Ben Elliston <bje@gnu.org>
341 * ldgram.y (ldgram_want_filename): Remove unused static.
343 2005-07-20 DJ Delorie <dj@redhat.com>
345 * emulparams/elf32m32c.sh (TEMPLATE_NAME): New.
346 (EXTRA_EM_FILE): New.
348 2005-07-19 H.J. Lu <hongjiu.lu@intel.com>
350 * ldmain.c (main): Reindent.
352 2005-07-19 Paul Brook <paul@codesourcery.com>
354 * configure.host (HOSTING_CRT0): Parse output of gcc --help --verbose
355 to determine dynamic linker name.
357 2005-07-18 Nick Clifton <nickc@redhat.com>
359 * configure.tgt: Restore alpha ordering to list of arches.
361 2005-07-16 Alan Modra <amodra@bigpond.net.au>
363 * emultempl/elf32.em (gld*_provide_init_fini_syms): Prototype.
364 (gld*_before_allocation): Call ldemul_do_assignments rather than
365 gld*_provide_init_fini_syms directly.
366 * emultempl/ppc32elf.em (gld*_after_allocation): Delete.
367 (ppc_do_assignments): New function.
368 (LDEMUL_AFTER_ALLOCATION): Don't define.
369 (LDEMUL_DO_ASSIGNMENTS): Define.
371 2005-07-16 Alan Modra <amodra@bigpond.net.au>
373 * Makefile.am: Run "make dep-am".
374 (emipsidt.c, emipsidtl.c): Depend on generic.em.
375 * Makefile.in: Regenerate.
377 2005-07-15 Alan Modra <amodra@bigpond.net.au>
379 * ldemul.c (ldemul_do_assignments): New function.
380 (do_assignments_default): New function.
381 * ldemul.h (ldemul_do_assignments): Declare.
382 (do_assignments_default): Declare.
383 (struct ld_emulation_xfer_struct): Add do_assignments.
384 * ldlang.c (lang_do_assignments) Call ldemul_do_assignments.
385 * emultempl/aix.em (ld_*_emulation): Init do_assignments field.
386 * emultempl/armcoff.em: Likewise.
387 * emultempl/beos.em: Likewise.
388 * emultempl/generic.em: Likewise.
389 * emultempl/gld960.em: Likewise.
390 * emultempl/gld960c.em: Likewise.
391 * emultempl/linux.em: Likewise.
392 * emultempl/lnk960.em: Likewise.
393 * emultempl/m68kcoff.em: Likewise.
394 * emultempl/pe.em: Likewise.
395 * emultempl/sunos.em: Likewise.
396 * emultempl/ticoff.em: Likewise.
397 * emultempl/vanilla.em: Likewise.
398 * emultempl/elf32.em: Likewise, to call gld*_provide_init_fini_syms.
399 (gld*_find_exp_assignment): Adjust bfd_elf_record_link_assignment call.
401 2005-07-14 Jim Blandy <jimb@redhat.com>
403 Add support for the Renesas M32C and M16C.
404 * Makefile.am (ALL_EMULATIONS): Add eelf32m32c.o.
405 (eelf32m32c.c): New target.
406 * Makefile.in: Regenerated.
407 * configure.tgt: Add case for m32c-*-elf.
408 * emulparams/elf32m32c.sh: New file.
410 2005-07-14 Alan Modra <amodra@bigpond.net.au>
412 * ldlang.c (strip_excluded_output_sections): Don't call
414 * emultempl/elf32.em (gld*_provide_bound_symbols): Move.
415 (gld*_provide_init_fini_syms): Move.
416 (gld*_before_allocation): Call the above from here..
417 (gld*_finish): ..not here. Call _bfd_elf_fix_excluded_sec_syms.
418 * emultempl/hppaelf.em (hppaelf_finish): Likewise.
419 * emultempl/ppc64elf.em (ppc_finish): Likewise.
421 2005-07-10 Ralf Corsepius <ralf.corsepius@rtems.org>
423 * configure.tgt: Remove sparc*-*-rtemsaout*, i[3-7]86-go32-rtems*,
424 i[3-7]86-*-rtemscoff*, hppa*-*-rtems*, mips*el-*-rtems*,
427 2005-07-09 Christopher Faylor <cgf@timesys.com>
429 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse): Enable runtime
430 relocation by default.
431 (compute_dll_image_base): Avoid linking into cygwin dll address space.
433 2005-07-08 Alan Modra <amodra@bigpond.net.au>
435 * ldlang.c (wild_sort): Formatting.
436 (strip_excluded_output_sections): Strip zero size sections here.
437 * emultempl/elf32.em (gld*_strip_empty_sections): Delete.
438 (gld*_finish): Don't call the above.
439 * emultempl/hppaelf.em (hppaelf_finish): Likewise.
440 * emultempl/ppc64elf.em (ppc_finish): Likewise.
442 2005-07-05 Paul Brook <paul@codesourcery.com>
444 * Makefile.am (ALL_EMULATIONS): Add eelf32ppcvxworks.o.
445 (eelf32ppcvxworks.o): Add dependencies.
446 * Makefile.in: Regenerate.
447 * configure.tgt: Add entry for powerpc-vxworks.
448 * emulparams/elf32-ppc.c: Mention elf32ppcvxworks.sh in comment.
449 * emulparams/elf32ppcvxworks.sh: New file.
450 * emultempl/ppc32elf.em (bfd_elf32_powerpc_vxworks_vec): Declare.
451 (is_ppc_elf32_vec): New function.
452 (ppc_after_open, ppc_before_allocation,
453 gld${EMULATION_NAME}_after_allocation): Use it.
455 2005-07-05 Peter S. Mazinger" <ps.m@gmx.net>
457 * emulparams/elf32bmip.sh (GENERATE_PIE_SCRIPT): Define as "yes".
458 * emulparams/elf32bmipn32-defs.sh (GENERATE_PIE_SCRIPT): Define as "yes".
460 2005-07-04 Mike Frysinger <vapier@gentoo.org>
462 * emulparams/hppalinux.sh (GENERATE_PIE_SCRIPT): Fix typo in
465 2005-07-04 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
467 * emulparams/m32relf_linux.sh (GENERATE_PIE_SCRIPT): Set to yes.
469 2005-07-04 Aurelien Jarno <aurel32@debian.org>
471 * emultempl/elf32.em: Enable use of ld.so.conf for *-*-k*bsd-*.
473 2005-07-01 Alan Modra <amodra@bigpond.net.au>
475 * scripttempl/elf.sc (.gcc_except_table): Don't KEEP.
477 2005-06-30 Ben Elliston <bje@gnu.org>
479 * Makefile.am (check-DEJAGNU): Don't search for expect.
480 * Makefile.in: Regenerate.
482 2005-06-30 Ben Elliston <bje@gnu.org>
484 * Makefile.am (EXPECT): Set to expect.
485 (RUNTEST): Likewise, set to runtest.
486 * Makefile.in: Regenerate.
488 2005-06-16 Alexander Klimov <alserkli@inbox.ru>
490 * emultempl/armelf.em: Add quotes to avoid a null test
493 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
495 * ld.texinfo (Command Line Options): Add @item for --hash-size.
497 2005-06-10 Alan Modra <amodra@bigpond.net.au>
499 * scripttempt/elf.sc (.bss): Align tail in a way that allows
500 empty section pruning.
502 2005-06-09 Steve Ellcey <sje@cup.hp.com>
504 * configure.in (AM_BINUTILS_WARNINGS): Add.
505 (BFD_NEED_DECLARATION) Replace with AC_CHECK_DECLS.
506 * config.in: Regenerate.
507 * configure: Regenerate.
508 * sysdep.h (NEED_DECLARATION_*): Replace with HAVE_DECL_*
511 2005-06-09 Alan Modra <amodra@bigpond.net.au>
513 * ldexp.c (fold_unary <ALIGN_K>): Revert last change.
515 2005-06-09 Alan Modra <amodra@bigpond.net.au>
517 * ld.h (lang_phase_type): Move to..
518 * ldexp.h: ..here. Add lang_mark_phase_enum.
519 (node_type): Remove etree_undef and etree_unspec.
520 (exp_data_seg): Delete.
521 (struct ldexp_control, expld): New.
522 (invalid, exp_mark_used_section): Delete.
523 (exp_fold_tree, exp_get_vma, exp_get_value_int, exp_get_fill,
524 exp_get_abs_int): Update prototypes.
525 * ldexp.c (assigning_to_dot): Delete.
527 (make_abs): Operate directly on expld.result. Update all callers.
528 (new_abs): Likewise. Return void.
529 (new_rel_from_abs): Rename from new_rel_from_section.
530 (new_rel, new_rel_from_abs): Operate on expld.result and return void.
532 (fold_unary): Operate on expld.result and return void. Remove
533 "current_section", "allocation_done", "dot", "dotp" and "mark_used"
534 params. Update all callers.
535 (fold_binary, fold_trinary, fold_name, exp_fold_tree_1): Likewise.
536 (fold_unary <ALIGN_K>): Ensure alignment is absolute.
537 (fold_unary <ABSOLUTE>): Use make_abs.
538 (fold_unary <DATA_SEGMENT_END>): Evaluate mark_phase as for
540 (fold_binary <DATA_SEGMENT_ALIGN, DATA_SEGMENT_RELRO_END, >): Ditto.
541 (fold_binary <'%','/'>): Don't error if marking.
542 (fold_name <SIZEOF_HEADERS>): Don't call bfd_sizeof_headers when
544 (fold_name <NAME>): Remove FIXME; -R is handled correctly. Don't
546 (fold_name <ADDR, LOADADDR, SIZEOF>): Don't set SEC_KEEP.
547 (exp_fold_tree_1): Don't error when marking.
548 (exp_fold_tree_1 <etree_rel>): Evaluate in all phases except first.
549 (exp_fold_tree_1 <etree_assign to dot>): Don't check for NULL
550 current section, instead check for NULL dotp.
551 (exp_fold_tree_1 <etree_provide>): Don't evaluate the assignment
552 source unless the symbol is referenced and undefined.
553 (exp_fold_tree): Remove "allocation_done" and "dot" params. Save
555 (exp_fold_tree_no_dot): Remove "current_section", "allocation_done
556 and "mark_used" params. Save params to expld. Update all callers.
557 (exp_assop): Do without temp var.
558 (exp_print_tree <etree_undef>): Delete code.
559 (exp_get_vma): Remove "allocation_done" param. Correct error return.
560 (exp_get_fill, exp_get_abs_int): Likewise.
561 (exp_get_value_int): Remove "allocation_done" param.
562 (exp_mark_used_section): Delete.
563 * ldgram.y (fill_exp): Update exp_get_fill call.
564 (origin_spec, length_spec): Update exp_get_vma call.
565 * ldlang.c (lang_init): Don't bother clearing lang_statement_iteration.
566 (lang_mark_used_section_1, lang_mark_used_section): Delete.
567 (strip_excluded_output_sections): Call one_lang_size_sections_pass in
568 marking mode. Merge old lang_mark_used_section code. Correct handling
569 of output sections with excluded input sections and data statements.
570 Don't drop non-zero sized sections. Don't zap os->bfd_section.
571 Do set SEC_EXCLUDE when appropriate.
572 (print_output_section_statement): Update for changed ldexp.c
574 (print_assignment, lang_size_sections_1): Likewise.
575 (lang_do_assignments_1, lang_enter_output_section_statement): Likewise.
576 (lang_new_phdr, lang_record_phdrs): Likewise.
577 (lang_size_sections): Likewise.
578 (insert_pad): Use following statement if it is a pad, rather than
580 (lang_size_sections_1 <lang_output_section_statement_enum>): Do
581 process ignored output section to set vma and lma, but don't
582 update dot for these sections. Don't error if marking.
583 (lang_size_sections_1 <lang_assignment_statement_enum>): Don't
584 update dot for ignored sections.
585 (lang_size_sections_1 <lang_data_statement_enum>): Don't mark absolute
586 section with SEC_ALLOC.
587 (one_lang_size_sections_pass): New function.
588 (lang_size_sections): Remove first five params. Set expld.phase on
589 entry and exit. Use one_lang_size_sections_pass.
590 (lang_do_assignments): Remove all params. Update all callers.
591 (lang_reset_memory_regions): Clear os->processed for all output
593 * ldlang.h (lang_do_assignments): Update prototype.
594 (lang_size_sections): Likewise.
595 (one_lang_size_sections_pass): Declare.
596 * pe-dll.c (pe_dll_fill_sections, pe_exe_fill_sections): Update
597 lang_size_sections and lang_do_assignments calls.
598 * emultempl/elf32.em (layout_sections_again): Likewise.
599 * emultempl/ppc64elf.em (ppc_before_allocation): Use
600 one_lang_size_sections_pass.
602 2005-06-08 Aldy Hernandez <aldyh@redhat.com>
604 * emulparams/elf32ms1.sh: New.
606 2005-06-07 Eric Christopher <echristo@redhat.com>
608 * Makefile.am (eelf32ms1.c): Use tab.
609 * Makefile.in: Regenerate.
611 2005-06-07 Aldy Hernandez <aldyh@redhat.com>
612 Michael Snyder <msnyder@redhat.com>
613 Stan Cox <scox@redhat.com>
615 * configure.tgt: Same.
617 * Makefile.am (ALL_EMULATIONS): Depend on eelf32ms1.o.
618 (eelf32ms1.c): Add eelf32ms1.c rule.
620 * Makefile.in: Regenerate.
622 2005-06-06 Alan Modra <amodra@bigpond.net.au>
624 * emultempl/ppc64elf.em (ppc_before_allocation): Always run
627 2005-06-05 H.J. Lu <hongjiu.lu@intel.com>
629 * ldexp.c (exp_mark_used_section): Set SEC_KEEP on current
630 section only if the symbol will be defined.
632 2005-06-04 H.J. Lu <hongjiu.lu@intel.com>
635 * ldexp.c (exp_mark_used_section): Set SEC_KEEP on current
636 section for etree_assign, etree_provide and etree_provided.
637 Call fold_binary on etree_binary.
639 * ldlang.c (lang_mark_used_section_1): Handle load base.
641 2005-06-03 Alan Modra <amodra@bigpond.net.au>
643 * ldmain.c (link_callbacks): Add einfo.
644 (add_archive_element): Use passed info, not link_info.
645 (constructor_callback): Likewise.
646 (reloc_overflow): Don't handle null bfd specially.
647 (reloc_dangerous, unattached_reloc): Likewise.
648 * ldmisc.c (vfinfo <B>): Print "ld generated" for null bfd.
649 (vfinfo <C, D, G>): Handle null bfd. Wrap comments.
651 2005-06-02 Alan Modra <amodra@bigpond.net.au>
653 * ldexp.h (etree_value_type): Use "asection *" in place of
654 "struct lang_output_section_statement_struct *" for "section".
655 (exp_fold_tree): Likewise.
656 (exp_mark_used_section): Likewise.
657 * ldexp.c (new_rel, new_rel_from_section, fold_unary, fold_binary,
658 fold_trinary, fold_name, exp_fold_tree_1, exp_fold_tree,
659 exp_mark_used_section): Likewise for "current_section" param.
660 (make_abs, new_abs, exp_binop, exp_unop, exp_get_vma, exp_get_fill,
661 exp_get_abs_int): Adjust for above changes.
662 * ldlang.c (lang_mark_used_section_1, print_assignment,
663 lang_size_sections_1, lang_do_assignments_1): Likewise.
664 * ldexp.c (fold_name): Init entire result struct.
666 2005-06-01 Maciej W. Rozycki <macro@linux-mips.org>
668 * emulparams/elf32btsmip.sh: Unset DATA_ADDR.
670 2005-05-31 Zack Weinberg <zack@codesourcery.com>
672 * ldlang.c (entry_symbol_default): New file-scope global.
673 (lang_finish): Use it, not a hardwired "start".
674 (lang_default_entry): Set it.
675 * ldlang.h: Declare lang_default_entry.
676 * emultempl/beos.em, emultempl/pe.em: Use lang_default_entry,
677 not lang_add_entry, to override default entry point symbol.
679 2005-05-29 Richard Henderson <rth@redhat.com>
681 * emulparams/elf64alpha.sh (PLT): New.
683 * emultempl/alphaelf.em (disable_relaxation): New.
684 (limit_32bit): Rename from elf64alpha_32bit; update all users.
685 (elf64_alpha_use_secureplt): Declare.
686 (bfd_elf64_alpha_vec, bfd_elf64_alpha_freebsd_vec): Declare.
687 (alpha_after_open): New.
688 (alpha_before_allocation): New.
689 (OPTION_NO_RELAX, OPTION_SECUREPLT, OPTION_NO_SECUREPLT): New.
690 (PARSE_AND_LIST_LONGOPTS): Include them.
691 (PARSE_AND_LIST_OPTIONS): Likewise.
692 (PARSE_AND_LIST_ARGS_CASES): Likewise.
693 (LDEMUL_AFTER_OPEN, LDEMUL_BEFORE_ALLOCATION): New.
694 * scripttempl/elf.sc (TEXT_PLT): New.
697 2005-05-27 Andreas Schwab <schwab@suse.de>
699 * configure.host (HOSTING_LIBS): Add libunwind.a if it exists.
701 2005-05-24 Alan Modra <amodra@bigpond.net.au>
703 * emultempl/ppc32elf.em (after_allocation): Don't call
704 ppc_elf_set_sdata_syms when relocatable.
706 2005-05-21 H.J. Lu <hongjiu.lu@intel.com>
708 * Makefile.am (ld.1): Revert the last 2 changes.
709 (info-recursive): Depend on ld.1.
710 * Makefile.in: Regenerated.
712 2005-05-21 H.J. Lu <hongjiu.lu@intel.com>
714 * Makefile.am (ld.1): Depend on "info" instead of
715 "configdoc.texi ldver.texi".
716 * Makefile.in: Regenerated.
718 2005-05-21 H.J. Lu <hongjiu.lu@intel.com>
720 * Makefile.am (ld.1): Depend on "info".
721 * Makefile.in: Regenerated.
723 2005-05-19 Zack Weinberg <zack@codesourcery.com>
725 * Makefile.am: Have 'all' depend on 'info' and 'ld.1'.
726 * Makefile.in: Regenerate.
728 2005-05-17 Zack Weinberg <zack@codesourcery.com>
730 * ld-arm/mixed-app.d: Adjust expected disassembly a little.
732 2005-05-17 Daniel Jacobowitz <dan@codesourcery.com>
734 * Makefile.am (ldver.texi): Don't use $<.
735 * Makefile.in: Regenerated.
737 2005-05-17 Daniel Jacobowitz <dan@codesourcery.com>
739 * Makefile.am (AM_MAKEINFOFLAGS, TEXI2DVI): Explicitly include
740 $(srcdir) before $(BFDDIR)/doc.
741 * Makefile.in: Regenerated.
743 2005-05-17 H.J. Lu <hongjiu.lu@intel.com>
746 * ldexp.c (exp_fold_tree_1): Renamed from exp_fold_tree and
747 take take a bfd_boolean, mark_used. Ignore assert failure if
749 (exp_fold_tree) Call exp_fold_tree_1 with mark_used == FALSE.
750 (exp_fold_tree_no_dot): Updated to take a bfd_boolean,
751 mark_used and pass down.
752 (fold_unary): Likewise.
753 (fold_binary): Likewise.
754 (fold_trinary): Likewise.
755 (exp_binop): Add FALSE to call to exp_fold_tree_no_dot.
756 (exp_trinop): Likewise.
757 (exp_unop): Likewise.
758 (exp_nameop): Likewise.
759 (exp_get_vma): Likewise.
760 (exp_get_fill): Likewise.
761 (exp_get_abs_int): Likewise.
762 (fold_name): Likewise. Set SEC_KEEP in output section flags.
763 (exp_mark_used_section): New.
765 * ldexp.h (exp_mark_used_section): New.
767 * ldlang.c (lang_output_section_statement_lookup_1): Set the
768 ignored field to FALSE.
769 (lang_mark_used_section_1): New.
770 (lang_mark_used_section): Call lang_mark_used_section_1.
771 (strip_excluded_output_sections): Call lang_mark_used_section
772 and check for unused sections.
773 (lang_size_sections_1): Skip an output section if it should
775 (lang_do_assignments_1): Likewise.
776 (lang_process): Don't call lang_mark_used_section here.
778 * ldlang.h (lang_output_section_statement_type): Change
779 all_input_readonly to bitfield. Add ignored.
781 2005-05-17 Lennert Buytenhek <buytenh@wantstofly.org>
782 Peter S. Mazinger" <ps.m@gmx.net>
784 * emulparams/armelf_linux.sh (GENERATE_PIE_SCRIPT): Define as "yes".
785 * emulparams/hppalinux.sh (GENERATE_PIE_SCRIPT): Define as "yes".
787 2005-05-17 Julian Brown <julian@codesourcery.com>
789 * ldlang.c (print_assignment): Do not rely upon a valid result
790 having a section associated with it.
792 2005-05-17 Nick Clifton <nickc@redhat.com>
794 * ldlang.c (Scan_for_self_assignment): Check an assignment tree to
795 see if the same value is being used on the rhs as on the lhs.
796 (print_assignment): Call scan_for_self_assignment and if it
797 returns true, do no display the result of the computation but
798 instead just the final value of the symbol on the lhs.
799 * ld.texinfo: Document this behaviour and provide an example of
802 2005-05-15 Daniel Jacobowitz <dan@codesourcery.com>
804 * Makefile.am (AM_MAKEINFOFLAGS): Define.
806 (ldver.texi): Depend on distributed files instead of built files.
807 (ld.info): Include $(srcdir) in the rule target. Remove actions.
808 (ld.dvi): Remove actions.
809 (MAINTAINERCLEANFILES): Add configdoc.texi.
810 (CONFIG_STATUS_DEPENDENCIES): Add bfd/configure.in.
811 (install-data-local): Renamed from install.
812 (Makefile): Remove explicit dependency.
813 * acinclude.m4: Remove obsolete code.
814 * configure.in: Update AC_PREREQ. Remove extra $CONFIG_SHELL.
815 * Makefile.in, aclocal.m4, config.in, configure: Regenerated.
817 2005-05-11 Bob Wilson <bob.wilson@acm.org>
819 * scripttempl/elfxtensa.sc: Sync up with elf.sc.
820 * emulparams/elf32xtensa.sh (PLT, GOT): Define.
822 2005-05-11 Alan Modra <amodra@bigpond.net.au>
824 * ldgram.y: Add SPECIAL token.
825 (sect_constraint): Handle SPECIAL.
826 * ldlang.c (lang_output_section_find_1): Don't match SPECIAL.
827 (map_input_to_output_sections): Likewise.
828 * ldlex.l (SPECIAL): Define.
829 * emulparams/elf32ppc.sh (DATA_GOT, SDATA_GOT, SEPARATE_GOTPLT,
830 GOT, PLT, GOTPLT): Define.
831 * emultempl/ppc32elf.em (old_plt, old_got): New static vars.
832 (ppc_after_open): New function.
833 (PARSE_AND_LIST_PROLOGUE): Define OPTION_OLD_LPT and OPTION_OLD_GOT.
834 (PARSE_AND_LIST_LONGOPTS): Add "bss-plt" and "sdata-got".
835 (PARSE_AND_LIST_OPTIONS): Document them.
836 (PARSE_AND_LIST_ARGS_CASES): Handle them.
837 (LDEMUL_AFTER_OPEN): Define.
838 * scripttempl/elf.sc (PLT): Don't override existing define.
839 (DATA_GOT, SDATA_GOT): Define and use to enable alternate got
840 placement rather than using NO_SMALL_DATA. Emit GOTPLT for RELRO_NOW.
842 2005-05-10 Alan Modra <amodra@bigpond.net.au>
844 * scripttempl/elf.sc (DATA_SEGMENT_RELRO_GOTPLT_END): Delete.
845 (DATA_SEGMENT_RELRO_END): Use SEPARATE_GOTPLT value.
846 (GOTPLT): Remove DATA_SEGMENT_RELRO_GOTPLT_END. Place after
847 DATA_SEGMENT_RELRO_END in script.
849 2005-05-09 H.J. Lu <hongjiu.lu@intel.com>
851 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
852 Don't use a removed section.
854 2005-05-09 H.J. Lu <hongjiu.lu@intel.com>
856 * ldmain.c (reloc_overflow): Use output_bfd if the symbol
857 is defined in the ABS section.
859 2005-05-06 H.J. Lu <hongjiu.lu@intel.com>
861 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_init_fini_syms):
862 Put back !link_info.relocatable.
864 2005-05-06 H.J. Lu <hongjiu.lu@intel.com>
867 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_init_fini_syms):
868 Just check link_info.executable.
870 2005-05-06 Nick Clifton <nickc@redhat.com>
872 * Update the address and phone number of the FSF organization in
873 the GPL notices in the following files:
874 aclocal.m4, deffile.h, deffilep.y, fdl.texi, ld.h, ldcref.c,
875 ldctor.c, ldctor.h, ldemul.c, ldexp.c, ldexp.h, ldfile.c,
876 ldfile.h, 20ldgram.y, ldint.texinfo, ldlang.c, ldlang.h, ldlex.h,
877 ldlex.l, ldmain.c, ldmain.h, ldmisc.c, ldmisc.h, ldver.c, ldver.h,
878 ldwrite.c, ldwrite.h, lexsup.c, mri.c, mri.h, pe-dll.c, pe-dll.h,
879 sysdep.h, emultempl/aix.em, emultempl/alphaelf.em,
880 emultempl/armcoff.em, emultempl/armelf.em, emultempl/beos.em,
881 emultempl/crxelf.em, emultempl/elf32.em, emultempl/generic.em,
882 emultempl/gld960.em, emultempl/gld960c.em, emultempl/hppaelf.em,
883 emultempl/ia64elf.em, emultempl/irix.em, emultempl/linux.em,
884 emultempl/lnk960.em, emultempl/m68hc1xelf.em,
885 emultempl/m68kcoff.em, emultempl/m68kelf.em,
886 emultempl/mipsecoff.em, emultempl/mmix-elfnmmo.em,
887 emultempl/mmixelf.em, emultempl/mmo.em, emultempl/needrelax.em,
888 emultempl/pe.em, emultempl/ppc32elf.em, emultempl/ppc64elf.em,
889 emultempl/sh64elf.em, emultempl/sunos.em, emultempl/ticoff.em,
890 emultempl/vanilla.em, emultempl/xtensaelf.em
892 2005-05-05 H.J. Lu <hongjiu.lu@intel.com>
894 * scripttempl/elf.sc: Document the usage of __bss_start.
896 2005-05-05 Paul Brook <paul@codesourcery.com>
898 * Makefile.am: Add eelf_i386_vxworks.
899 * Makefile.in: Regenerate.
900 * configure.tgt: Make i?86-*-vxworks use targ_emul=elf_i386_vxworks.
901 * emulparams/elf_i386_vxworks.sh: New file.
902 * emulparams/vxworks.sh: New file.
903 * scripttempl/elf.sc: Add DATA_END_SYMBOLS and ETEXT_NAME.
905 2005-05-04 H.J. Lu <hongjiu.lu@intel.com>
907 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
908 Call _bfd_elf_provide_section_bound_symbols.
910 2005-05-04 Alan Modra <amodra@bigpond.net.au>
912 * ldemul.c: Include bfdlink.h.
913 (ldemul_before_allocation): Assume before_allocation is non-zero.
914 (before_allocation_default): Call strip_excluded_output_sections.
915 * ldlang.c (stripped_excluded_sections): New variable.
916 (lang_add_section): Build input section list for each output
917 section, attached via map_head and map_tail pointers.
918 (strip_excluded_output_sections): Make global. Traverse the
919 input section lists to find which output sections can go. Clear
920 link_order pointers and set stripped_excluded_sections.
921 (lang_process): Call strip_excluded_output_sections.
922 * ldlang.h (strip_excluded_output_sections): Declare.
923 * ldwrite.c: Update throuhout for link_order_head -> map_head change.
924 * emultempl/aix.em (before_allocation): Call
925 strip_excluded_output_sections.
926 * emultempl/armcoff.em (before_allocation): Likewise.
927 * emultempl/beos.em (before_allocation): Likewise.
928 * emultempl/linux.em (before_allocation): Likewise.
929 * emultempl/pe.em (before_allocation): Likewise.
930 * emultempl/sunos.em (before_allocation): Likewise.
931 * emultempl/elf32.em (before_allocation): Likewise. Call
932 bfd_elf_size_dynsym_hash_dynstr too.
933 * emultempl/lnk960.em (lnk960_before_allocation): Delete.
934 (ld_lnk960): Use before_allocation_default.
936 2005-05-02 H.J. Lu <hongjiu.lu@intel.com>
938 * emultempl/elf32.em (gld${EMULATION_NAME}_strip_empty_section):
939 Updated for bfd_section_list_remove change.
940 * ldlang.c (lang_insert_orphan): Likewise.
941 (strip_excluded_output_sections): Likewise.
942 (sort_sections_by_lma): New.
943 (lang_check_section_addresses): Sort the sections before
946 2005-04-29 Ralf Corsepius <ralf.corsepius@rtems.org>
948 * configure.tgt: Add h8300*-*-rtemscoff.
949 Switch h8300*-*-rtems* to elf.
951 2005-04-29 Ben Elliston <bje@au.ibm.com>
953 * ldgram.y (lang_memory_region_type): Make static.
954 (ldgram_want_filename): Likewise.
955 * ldemul.c (ld_emulation): Make static.
956 * ldfile.h (ldfile_find_command_file): Remove extern.
957 * ldfile.c (ldfile_find_command_file): Make static.
958 * ldlang.h (unique_section_list): Remove extern declaration.
959 * ldlang.c (unique_section_list): Make static.
960 * mri.h (symbol_truncate): Remove extern declaration.
961 * mri.c (symbol_truncate): Make static.
962 (order, only_load, address, alias): Likewise.
963 (alignment, subalignment): Likewise.
965 2005-04-27 H.J. Lu <hongjiu.lu@intel.com>
967 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
968 Use the first SEC_ALLOC section which isn't SEC_READONLY or the
969 last SEC_ALLOC section if such a section doesn't exist.
971 2005-04-24 Mark Kettenis <kettenis@gnu.org>
973 * configure.host: Add *-*-openbsd support.
975 2005-04-15 Julian Brown <julian@codesourcery.com>
977 * ld.texinfo: Document --use-blx.
978 * emultempl/armelf.em (use_blx): New variable.
979 (arm_elf_create_output_section_statements): Communicate value of
981 (PARSE_AND_LIST_PROLOGUE): Add OPTION_USE_BLX.
982 (PARSE_AND_LIST_OPTIONS): Add --use-blx option.
983 (PARSE_AND_LIST_ARGS_CASES): Add OPTION_USE_BLX case.
985 2005-04-14 Alan Modra <amodra@bigpond.net.au>
987 * Makefile.am (NO_WERROR): Define. Use instead of -Wno-error.
988 * configure.in: Include ../bfd/warning.m4 contents.
989 * Makefile.in: Regenerate.
990 * configure: Regenerate.
992 2005-04-12 Alan Modra <amodra@bigpond.net.au>
994 * Makefile.am: Run "make dep-am".
995 (ldgram.o, ldlex.o, deffilep.o): Add -Wno-error to command.
996 * Makefile.in: Regenerate.
997 * config.in: Regenerate.
999 2005-04-11 Alan Modra <amodra@bigpond.net.au>
1001 * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed): Ignore
1002 as_needed libs that were not needed.
1003 (gld${EMULATION_NAME}_check_needed): Likewise.
1005 2005-04-07 Nick Clifton <nickc@redhat.com>
1007 * emultempl/m68kcoff.em: Include ldexp.h and ldlang.h so that
1008 ldfile.h can use the lang_input_statement type.
1010 2005-04-06 Jakub Jelinek <jakub@redhat.com>
1012 * ldlang.c: Formatting.
1013 (walk_wild_consider_section): Remember return value from wildcardp.
1014 (is_simple_wild): Use strcspn instead of 2 strpbrk calls and strlen.
1015 (wild_spec_can_overlap): Use strcspn instead of strpbrk and strlen.
1017 2005-04-06 Robert O'Callahan <rocallahan@novell.com>
1019 * ld.h (lean_section_userdata_type): Remove.
1020 (fat_section_userdata_type): Remove file field.
1021 (SECTION_USERDATA_SIZE): Remove.
1022 * ldlang.c (init_os): Eliminate initialization of unused
1023 lean_section_userdata_type.
1025 * ldlang.h (callback_t, walk_wild_section_handler_t): New
1027 (struct lang_wild_statement_struct): Add walk_wild_section_handler
1028 and handler_data fields.
1029 * ldlang.c (callback_t): Removed.
1030 (walk_wild_consider_section, walk_wild_section_general,
1031 section_iterator_callback, find_section, is_simple_wild,
1032 match_simple_wild, walk_wild_section_specs1_wild0,
1033 walk_wild_section_specs1_wild1, walk_wild_section_specs2_wild1,
1034 walk_wild_section_specs3_wild2, walk_wild_section_specs4_wild2,
1035 wild_spec_can_overlap, analyze_walk_wild_section_handler): New
1037 (lang_add_wild): Call analyze_walk_wild_section_handler.
1038 (walk_wild_section): Renamed to walk_wild_section_general and
1039 created a wrapper function.
1040 (section_iterator_callback_data): New typedef.
1042 2005-04-04 Nick Clifton <nickc@redhat.com>
1044 * configure.in: Add a check for <unistd.h> providing a prototype
1045 for getopt() which is compatible with the one in
1046 include/getopt.h. If so then define HAVE_DECL_GETOPT.
1047 * configure: Regenerate.
1048 * config.in (HAVE_DECL_GETOPT): Add.
1049 * ldemul.c: Include config.h
1050 * lexsup.c: Likewise.
1051 * emultempl/elf32.sc: Likewise.
1053 2005-03-29 Alan Modra <amodra@bigpond.net.au>
1055 * emultempl/elf32.em (gld${EMULATION_NAME}_layout_sections_again):
1056 New function, extracted from static void gld${EMULATION_NAME}_finish.
1057 (gld${EMULATION_NAME}_strip_empty_sections): Likewise.
1058 (gld${EMULATION_NAME}_provide_init_fini_syms): Likewise.
1059 * emultempl/ppc64elf.em: Revert last change.
1060 (ppc_layout_sections_again): Use
1061 gld${EMULATION_NAME}_layout_sections_again.
1062 (ppc_finish): Don't call gld${EMULATION_NAME}_finish. Instead call
1063 gld${EMULATION_NAME}_strip_empty_sections and
1064 gld${EMULATION_NAME}_provide_init_fini_syms.
1065 * emultempl/hppaelf.em: Similarly.
1067 2005-03-29 Alan Modra <amodra@bigpond.net.au>
1069 * emultempl/ppc64elf.em (need_laying_out): Delete. Remove all refs.
1070 (ppc_finish): Don't call bfd_elf_discard_info.
1071 * emultempl/hppaelf.em: Similarly.
1073 2005-03-24 Nick Clifton <nickc@redhat.com>
1075 * po/fr.po: Updated French translation.
1077 2005-03-23 Mike Frysinger <vapier@gentoo.org>
1078 Nick Clifton <nickc@redhat.com>
1080 * configure.host: Accept any C library to accompany a GNU Linux
1081 implementation, not just the GNU C library.
1082 * configure.tgt: Likewise.
1083 * emultempl/elf32.em: Likewise.
1085 2005-03-22 H.J. Lu <hongjiu.lu@intel.com>
1087 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols): New
1088 (gld${EMULATION_NAME}_finish): Call
1089 gld${EMULATION_NAME}_provide_bound_symbols to provide
1090 __preinit_array_start, __preinit_array_end, __init_array_start,
1091 __init_array_end, __fini_array_start and __fini_array_end.
1093 * scripttempl/elf.sc: Don't provide __preinit_array_start,
1094 __preinit_array_end, __init_array_start, __init_array_end,
1095 __fini_array_start nor __fini_array_end.
1097 2005-03-23 Alan Modra <amodra@bigpond.net.au>
1099 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Set
1100 SEC_EXCLUDE on .gnu.warning sections.
1102 2005-03-22 Alan Modra <amodra@bigpond.net.au>
1104 * scripttempl/elf.sc (SBSS): Don't provide sbss start and end syms.
1106 2005-03-21 Alan Modra <amodra@bigpond.net.au>
1108 * emultempl/ppc32elf.em (gld${EMULATION_NAME}_after_allocation): New
1110 (LDEMUL_AFTER_ALLOCATION): Define.
1112 2005-03-21 Alan Modra <amodra@bigpond.net.au>
1114 * emultempl/ppc64elf.em (ppc_finish): Rename from
1115 gld${EMULATION_NAME}_finish. Call gld${EMULATION_NAME}_finish.
1116 (LDEMUL_FINISH): Update.
1117 * emultempl/hppaelf.em (hppaelf_finish, LDEMUL_FINISH): Likewise.
1118 * emultempl/m68hc1xelf.em (m68hc11elf_finish, LDEMUL_FINISH): Likewise.
1120 2005-03-18 Julian Brown <julian@codesourcery.com>
1122 * scripttempl/armbpapi.sc (.rel.dyn): Add .rel.init_array,
1124 (.rela.dyn): Add .rela.init_array, .rela.fini_array.
1125 (SECTIONS): Add .rel.other, .rela.other, .reli.other after PLT relocs.
1127 2005-03-18 H.J. Lu <hongjiu.lu@intel.com>
1129 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Don't set
1130 bfd_section when removing unused empty output sections for
1131 non-relocatable link.
1133 2005-03-19 Alan Modra <amodra@bigpond.net.au>
1135 * ldlang.c (lang_insert_orphan): Use old section_tail rather than
1136 traversing the bfd section list to find pointer to new section.
1138 2005-03-18 Alan Modra <amodra@bigpond.net.au>
1140 * scripttempl/elf.sc: When CREATE_SHLIB, put .sdata2 and .sbss2
1141 input sections into .sdata and .sbss output respectively.
1143 2005-03-16 David Heine <dlheine@tensilica.com>
1144 Bob Wilson <bob.wilson@acm.org>
1146 * ldlang.c (IGNORE_SECTION): Remove check for zero size.
1147 (lang_check_section_addresses): Ignore zero size sections here.
1149 2005-03-16 H.J. Lu <hongjiu.lu@intel.com>
1151 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Remove
1152 unused empty output sections for non-relocatable link.
1154 * ld.h (args_type): Remove gc_sections.
1156 * ldlang.c (lang_mark_used_section): New.
1157 (lang_gc_sections): Use link_info.gc_sections instead of
1158 command_line.gc_sections.
1159 * ldmain.c (main): Likewise.
1160 * lexsup.c (parse_args): Likewise.
1161 * ldlang.c (lang_process): Call lang_mark_used_section.
1163 * ldmain.c (main): Initialize link_info.gc_sections to FALSE.
1165 2005-03-16 Nick Clifton <nickc@redhat.com>
1166 Ben Elliston <bje@au.ibm.com>
1168 * configure.in (werror): New switch: Add -Werror to the
1169 compiler command line. Enabled by default. Disable via
1171 * configure: Regenerate.
1173 2005-03-16 Alan Modra <amodra@bigpond.net.au>
1175 * emulparams/elf32ppclinux.sh (OTHER_READWRITE_SECTION): Delete.
1176 (OTHER_RELRO_SECTIONS): Set this instead.
1178 2005-03-15 Nick Clifton <nickc@redhat.com>
1180 * NEWS: Add cutoff for changes in 2.16 release.
1182 2005-03-15 Mikkel Krautz <krautz@gmail.com>
1184 * configure.tgt (x86_64-elf): Add target.
1186 2005-03-15 Alan Modra <amodra@bigpond.net.au>
1188 * po/es.po: Commit new Spanish translation.
1190 2005-03-14 Alan Modra <amodra@bigpond.net.au>
1192 * ldexp.c (exp_fold_tree): Ensure return value is initialized.
1193 Tidy etree_assert case.
1195 2005-03-14 Alan Modra <amodra@bigpond.net.au>
1197 * po/tr.po: Commit new Turkish translation.
1199 2005-03-11 Daniel Jacobowitz <dan@codesourcery.com>
1201 * Makefile.am: Remove references to em68klynx.o and esparclynx.o.
1202 * Makefile.in: Regenerated.
1203 * emulparams/m68klynx.sh, emulparams/sparclynx.sh: Remove.
1205 2005-03-07 Nick Clifton <nickc@redhat.com>
1207 * po/fr.po: Updated translation.
1209 2005-03-05 Alan Modra <amodra@bigpond.net.au>
1211 * po/ld.pot: Regenerate.
1213 2005-03-02 Jan Beulich <jbeulich@novell.com>
1215 * ldmain.c (remove_output): Use unlink_if_ordinary instead of unlink.
1216 * pe-dll.c (pe_dll_generate_implib): Likewise.
1218 2005-02-24 Ben Elliston <bje@au.ibm.com>
1220 * ldfile.c: Remove GNU960 conditional code.
1221 * emultempl/gld960.em: Likewise.
1222 * emultempl/gld960c.em: Likewise.
1223 * emultempl/lnk960.em: Likewise.
1225 2005-02-24 Nick Clifton <nickc@redhat.com>
1227 * emultempl/lnk960.em (lnk960_before_parse): Remove redundant
1228 empty string from calls to concat.
1230 2005-02-23 Nick Clifton <nickc@redhat.com>
1232 * emultempl/lnk960.em (lnk960_before_parse): Terminate list of
1233 arguments passed to concat() with a NULL.
1235 * emultempl/m68kcoff.em: Include ldexp.h and ldlang.h because they
1236 define types needed by ldfile.h
1238 2005-02-23 Alan Modra <amodra@bigpond.net.au>
1240 * pe-dll.c: Warning fixes.
1241 * emultempl/sunos.em: Likewise.
1243 2005-02-22 Daniel Jacobowitz <dan@codesourcery.com>
1245 * ldlang.c (section_already_linked): Don't call
1246 bfd_section_already_linked for dynamic objects.
1248 2005-02-22 Alan Modra <amodra@bigpond.net.au>
1250 * ldexp.c: Warning fixes.
1251 * ldwrite.c: Likewise.
1252 * emultempl/elf32.em: Likewise.
1254 2005-02-21 H.J. Lu <hongjiu.lu@intel.com>
1256 * ldlang.c (lang_add_section): Check SEC_TIC54X_BLOCK for TI
1258 (lang_size_sections_1): Check SEC_COFF_SHARED_LIBRARY for COFF
1259 and ECOFF output only.
1261 2005-02-21 Alan Modra <amodra@bigpond.net.au>
1263 * config.in: Regenerate.
1264 * configure: Regenerate.
1266 2005-02-17 Zack Weinberg <zack@codesourcery.com>
1268 * ldexp.c (assigning_to_dot): New global flag.
1269 (fold_name): If assigning_to_dot is true, object immediately to
1270 an undefined symbol.
1271 (exp_fold_tree): Set and clear assigning_to_dot around the
1272 recursive call to exp_fold_tree to process the right-hand side
1273 of an assignment to the location counter.
1275 2005-02-17 Paul Brook <paul@codesourcery.com>
1277 * scripttempl/armbpabi.sc: Add dummy name to version block.
1279 2005-02-17 Alan Modra <amodra@bigpond.net.au>
1281 * ldexp.c (new_abs): Init new.str.
1283 2005-02-15 Mark Mitchell <mark@codesourcery.com>
1285 * configure.in (AC_CHECK_FUNCS): Add glob.
1286 * configure: Regenerated.
1287 * emultempl/elf32.em (<glob.h>): Do not include if HAVE_GLOB is
1289 (gld${EMULATION_NAME}_parse_ld_so_conf_include): Do not use glob
1290 if HAVE_GLOB is not defined.
1292 2005-02-16 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1294 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Define
1295 lib_path if NATIVE is yes.
1297 2005-02-16 Alan Modra <amodra@bigpond.net.au>
1299 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Make
1300 an error creating fake bfd fatal.
1301 (ppc_before_allocation): Continue on after errors.
1302 (gld${EMULATION_NAME}_finish): Likewise.
1304 2005-02-15 Nick Clifton <nickc@redhat.com>
1306 * ldlex.l (YY_NO_UNPUT): Define so that the yy_unput function is
1307 not declared. It is not used and its presence causes a compile
1310 2005-02-11 Zack Weinberg <zack@codesourcery.com>
1312 * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed):
1313 If st.st_ino is zero, do not treat the library as a duplicate.
1315 2005-02-10 Jakub Jelinek <jakub@redhat.com>
1317 * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
1318 Set BFD_LINKER_CREATED on the stubs bfd.
1319 * emultempl/ppc64elf.em (ppc_create_output_section_statements):
1322 2005-02-08 Mark Mitchell <mark@codesourcery.com>
1324 * scripttempl/armbpabi.sc (VERSION): Make special section symbols
1326 (Image$$ER_RO$$Base): Define whenever RELOCATING.
1327 (Image$$ER_RO$$Limit): Likewise.
1328 (SHT$$INIT_ARRAY$$Base): Likewise.
1329 (SHT$$INIT_ARRAY$$Limit): Likeise.
1331 2005-02-10 Ben Elliston <bje@au.ibm.com>
1333 * emultempl/beos.em: Remove #if 0 and #if 1 blocks.
1335 2005-02-08 Richard Sandiford <rsandifo@redhat.com>
1337 * configure.tgt (mips64*el-*-linux-gnu*): Define targ_extra_libpath
1338 to include o32 and n64 emulations.
1339 (mips64*-*-linux-gnu*): Likewise.
1341 2005-02-08 Hans-Peter Nilsson <hp@axis.com>
1343 * ldmain.c (warning_callback, warning_find_reloc): Prepend
1344 "warning: " to warning messages.
1346 2005-02-04 Alan Modra <amodra@bigpond.net.au>
1348 * emultempl/elf32.em (gld${EMULATION_NAME}_find_exp_assignment): Don't
1349 look up symbol for etree_provide here.
1351 2005-02-02 Daniel Jacobowitz <dan@codesourcery.com>
1353 * emulparams/elf32bmip.sh (TEXT_DYNAMIC): Always set.
1355 2005-02-01 Edward Welbourne <eddy@opera.com>
1356 Nick Clifton <nickc@redhat.com>
1358 * ld.texinfo (Source Code Reference): New node describing how to
1359 access linker script defined variables from source code.
1361 2005-02-01 Alan Modra <amodra@bigpond.net.au>
1363 * ld.texinfo: Clarify --as-needed operation.
1365 2005-01-31 Andrew Cagney <cagney@gnu.org>
1367 * configure: Regenerate to track ../gettext.m4.
1369 2005-01-31 Nick Clifton <nickc@redhat.com>
1371 * ldver.c (ldversion): Bump reported copyright date to 2005.
1373 2005-01-31 Nick Clifton <nickc@redhat.com>
1375 * configure.tgt: Remove obsolete targets m68k-lynxos and
1378 2005-01-28 Julian Brown <julian@codesourcery.com>
1380 * emultempl/armelf.em (fix_v4bx): New variable.
1381 (arm_elf_create_output_section_statements): Communicate fix_v4bx flag
1383 (PARSE_AND_LIST_PROLOGUE): Add option token OPTION_FIX_V4BX.
1384 (PARSE_AND_LIST_LONGOPTS): Add option --fix-v4bx.
1385 (PARSE_AND_LIST_OPTIONS): Add option --fix-v4bx.
1386 (PARSE_AND_LIST_ARGS_CASES): Add option OPTION_FIX_V4BX.
1387 * NEWS: Mention --fix-v4bx.
1388 * ld.texinfo: Document --fix-v4bx.
1390 2005-01-25 Mark Mitchell <mark@codesourcery.com>
1392 * emulparams/armsymbian.sh (OTHER_READONLY_SECTIONS): Define, so
1393 as to include .ARM.exidx$${Base,Limit}.
1394 * ld/scripttempl/armbpabi.sc: Move .plt to end of text segment.
1395 Define IMAGE$$ER_RO$${Base,Limit} and SHT$$INIT_ARRAY$${Base,Limit}.
1396 Put .init_array, .fini_array, etc. into the read-only data
1399 2005-01-25 Alan Modra <amodra@bigpond.net.au>
1401 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Formatting.
1402 (gld${EMULATION_NAME}_after_open): Ignore needed libs if they were
1403 only needed by an as-needed lib that didn't get linked.
1405 2005-01-23 Alan Modra <amodra@bigpond.net.au>
1407 * ld.texinfo (Output Section Keywords <CONSTRUCTORS>): Correct
1408 __DTOR_LIST__ description.
1410 2005-01-23 Alan Modra <amodra@bigpond.net.au>
1412 * ld.texinfo (Location Counter <dot outside sections>): Document
1413 effects of orphan section placement, and ". = ." workaround.
1414 * Makefile.in: Regenerate.
1416 2005-01-22 Richard Sandiford <rsandifo@redhat.com>
1418 * emulparams/elf32bmip.sh (OTHER_GOT_SECTIONS): Add ". = .;".
1419 * emulparams/elf32bmipn32-defs.sh (OTHER_GOT_SECTIONS): Likewise.
1421 2005-01-21 Jakub Jelinek <jakub@redhat.com>
1423 * ldgram.y (AS_NEEDED): New token.
1424 (input_list): Handle AS_NEEDED ( input_list ).
1425 * ldlex.l (AS_NEEDED): Add.
1426 * ld.texinfo: Document AS_NEEDED ().
1427 * NEWS: Mention AS_NEEDED ().
1429 2005-01-21 Ben Elliston <bje@au.ibm.com>
1431 * ldlang.c (lang_reasonable_defaults): Remove.
1432 (lang_process): Don't call lang_reasonable_defaults.
1434 * ldexp.c (exp_assop): Remove #if 0'd code.
1435 (exp_print_tree): Likewise.
1436 * ldlang.c (lang_memory_region_lookup): Likewise.
1437 (open_output): Likewise.
1438 (lang_do_assignments_1): Likewise.
1439 (lang_place_orphans): Likewise.
1440 (lang_enter_output_section_statement): Likewise.
1441 (lang_reasonable_defaults): Likewise.
1442 * ldlang.h (struct lang_input_statement_struct): Likewise.
1443 * mri.c (mri_draw_tree): Likewise.
1444 (mri_load): Likewise.
1445 * pe-dll.c (generate_reloc): Likewise.
1446 (make_import_fixup_entry): Likewise.
1447 (pe_as16): Likewise.
1448 * emultempl/beos.em (set_pe_subsystem): Likewise.
1449 * emultempl/hppaelf.em (hppaelf_after_parse): Likewise.
1450 * emultempl/pe.em: Likewise.
1451 * emultempl/xtensaelf.em (xtensa_colocate_literals): Likewise.
1453 2005-01-20 Daniel Jacobowitz <dan@codesourcery.com>
1455 * Makefile.am (ALL_EMULATIONS): Add earmelfb_linux_eabi.o.
1456 (earmelfb_linux_eabi.c): New target.
1457 * Makefile.in: Regenerated.
1458 * configure.tgt (arm*b-*-linux-gnueabi): New target.
1459 * emulparams/armelfb_linux_eabi.sh: New file.
1461 2005-01-20 Nick Hudson <skrll@netbsd.org>
1464 * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
1465 Handle bfd_elf32_hppa_nbsd_vec.
1467 2005-01-19 Richard Sandiford <rsandifo@redhat.com>
1469 * ldmain.h (ld_sysroot): Change type to a constant string.
1470 * ldmain.c (ld_sysroot): Likewise.
1471 (get_relative_sysroot, get_sysroot): New functions, adding command-line
1472 support for changing the sysroot.
1473 (main): Call the new functions.
1474 * lexsup.c (OPTION_SYSROOT): New.
1475 (ld_options): Add --sysroot.
1476 (parse_args): Add a dummy handler for it.
1477 * ld.texinfo (--sysroot): Document.
1478 * NEWS: Mention the new --sysroot option.
1480 2005-01-18 Alan Modra <amodra@bigpond.net.au>
1482 * ldlang.c (section_already_linked): Adjust bfd_link_just_syms call.
1483 (lang_place_orphans): Don't abort on just_syms_flag, instead call
1486 2005-01-16 Danny Smith <dannysmith@users.sourceforge.net>
1488 * defilep.y (def_name, def_library): Combine into...
1489 (def_image_name): New function. Strip name to basename,
1492 2005-01-12 Mark Kettenis <kettenis@gnu.org>
1494 * configure.in: Be sure to invoke config.sub using the shell.
1495 * configure: Regenerate.
1497 2005-01-11 Alan Modra <amodra@bigpond.net.au>
1499 * configure.host: Correct sed patterns for last change.
1501 2005-01-10 Nick Clifton <nickc@redhat.com>
1504 * ldmisc.c (vfinfo): Add an extra argument: is_warning. Use this
1505 to determine whether config.make_executable should be set to FALSE in
1506 conjunction with config.fatal_warnings.
1507 (info_msg, minfo, lfinof): Pass FALSE as the extra argument.
1508 (einfo): Pass TRUE as the extra argument.
1510 2005-01-10 Greg Schaffer <gschafer@zip.com.au>
1512 * configure.host (linux targets): Use "${CC} -dumpspecs" instead
1513 of "${CC} --print-file-name=specs" to appease GCC versions >= 4.0.
1514 (ia64-*-aix): Delete - this target is obsolete, and would be
1515 broken by this patch.
1517 2005-01-06 Eric Botcazou <ebotcazou@libertysurf.fr>
1519 * configure.host (sparc*-*-solaris2*): Rename into sparc-*-solaris2*.
1520 (sparc64-sun-solaris2*): New host.
1522 2005-01-06 Paul Brook <paul@codesourcery.com>
1524 * Makefie.am: Add earmelf_vxworks.
1525 * Makefile.in: Regenerate.
1526 * configure.tgt: Make arm-*-vxworks a separate case.
1527 * emulparams/armelf_vxworks.sh: New function.
1529 2005-01-06 Alan Modra <amodra@bigpond.net.au>
1531 * emultempl/ppc64elf.em (no_multi_toc): New var.
1532 (gld${EMULATION_NAME}_finish): Pass to ppc64_elf_setup_section_lists.
1533 (OPTION_NO_MULTI_TOC): Define.
1534 (PARSE_AND_LIST_LONGOPTS): Add --no-multi-toc support.
1535 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Likewise.
1537 2005-01-05 Nick Clifton <nickc@redhat.com>
1540 * ldmisc.c (vfinfo): Alter output to conform to the GNU Coding
1541 Standard's specification for parsable error messages.
1543 2005-01-04 Paul Brook <paul@codesourcery.com>
1545 * Makefile.am: Correct dependency for earmsymbian.c.
1546 * Makefile.in: Regenerate.
1548 2004-12-28 Danny Smith <dannysmith@users.sourceforge.net>
1550 * emultempl/pe.em (set_pe_subsystem): Change second arg to
1551 lang_add_entry to FALSE.
1553 2004-12-23 Nick Clifton <nickc@redhat.com>
1556 * emulparams/shelf.sh (.stack): Increase stack start address to
1559 2004-12-20 Nick Clifton <nickc@redhat.com>
1561 * ldmain.c (main): Issue an error message if -static and -shared
1564 2004-12-17 Jakub Jelinek <jakub@redhat.com>
1566 * ldexp.h (exp_data_seg): Add min_base and maxpagesize fields.
1567 * ldexp.c (fold_binary) <case DATA_SEGMENT_ALIGN>: Initialize them.
1568 * ldlang.c (lang_size_sections): Use them to avoid wasting virtual
1569 address space at DATA_SEGMENT_ALIGN. Fix computation of expected
1570 PT_GNU_RELRO segment end.
1572 2004-12-14 P.J. Darcy <darcypj@us.ibm.com>
1574 * configure.tgt: Add s390x-ibm-tpf support.
1576 2004-12-16 Martin Kögler <mkoegler@auto.tuwien.ac.at>
1578 * ldmisc.c (vfinfo): Handle the case where %B is passed a NULL
1581 2004-12-07 Ben Elliston <bje@gnu.org>
1583 * ldemul.h: Forward declare struct option.
1585 2004-12-01 Danny Smith <dannysmith@users.sourceforge.net>
1587 * scripttempl/pe.sc (.data): Add .jcr subsection.
1589 2004-11-30 Paul Brook <paul@codesourcery.com>
1591 * emultempl/armelf.em: Ignore -p and -no-pipeline-knowledge.
1593 2004-11-30 Tero Niemela <tero_niemela@yahoo.com>
1595 * Makefile.am: Change LOCALEDIR to $(datadir)/share.
1596 * Makefile.in: Regenerate.
1598 2004-11-26 Melissa Mears <asterisk@graces.dricas.com>
1600 * emultempl/pe.em: Add --subsystem:xbox as well as
1602 * ld.texinfo: (ld_options): Document acceptance of subsystem xbox
1603 and numeric subsystems.
1605 2004-11-24 Alan Modra <amodra@bigpond.net.au>
1607 * ldexp.c (fold_name): Correct PR 338 fix.
1609 2004-11-19 Mark Mitchell <mark@codesourcery.com>
1611 * Makefile.am (ALL_EMULATIONS): Add earmelf_linux_eabi.o.
1612 (earmelf_linux_eabi.c): New target.
1613 * configure.tgt (arm*-*-linux-gnueabi): Handle it.
1614 * emulparams/armelf_linux_eabi.sh: New file.
1615 * Makefile.in: Regenerated.
1617 2004-11-19 Nick Clifton <nickc@redhat.com>
1620 * ld.texinfo (MEMORY): Update the descriptions of the ORIGIN and
1621 LENGTH fields in the MEMORY command, to explicitly state that
1622 symbols cannot be used in their expressions.
1624 2004-11-19 Jon Beniston <jon@beniston.com>
1626 * ld/ldlex.l: Allow ORIGIN and LENGTH in EXPRESSION.
1627 * ld/ldgram.y: Add ORIGIN and LENGTH expressions.
1628 * ld/ldexp.c (fold_name): Implement LENGTH() and ORIGIN() functions
1629 which return the length and origin of a memory.
1630 * ld/ld.texinfo: Document LENGTH() and ORIGIN() functions.
1631 * NEWS: Mention support for ORIGIN and LENGTH operators.
1633 2004-11-17 Daniel Jacobowitz <dan@codesourcery.com>
1635 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Don't use
1636 a dynamic object for stubs.
1638 2004-11-04 Paul Brook <paul@codesourcery.com>
1640 * ld.texinfo: Document --default-imported-symver.
1641 * ldmain.c (main): Set link_info.default_imported_symver.
1642 * lexsup.c (option_values): Add OPTION_DEFAULT_IMPORTED_SYMVER.
1643 (ld_options): Add --default-imported-symver.
1644 (parse_args): Handle OPTION_DEFAULT_IMPORTED_SYMVER.
1646 2004-11-08 Inderpreet Singh <inderpreetb@nioda.hcltech.com>
1647 Vineet Sharma <vineets@noida.hcltech.com>
1649 * Makefile.am: Add entries for new maxq-coff target.
1650 * Makefile.in: Regenerate.
1651 * configure.tgt: Add support for maxq.
1652 * emulparams/maxqcoff.sh: New File.
1653 * scripttempl/maxqcoff.sc: New linker script for target maxq.
1654 * NEWS: Mention the new target.
1656 2004-11-04 Daniel Jacobowitz <dan@debian.org>
1658 * Makefile.am (ALL_EMULATIONS): Remove earmelf_oabi.o.
1659 (earmelf_oabi.c): Remove rule.
1660 * configure.tgt: Remove arm-*-oabi and thumb-*-oabi.
1661 * emulparams/armelf_oabi.sh, emultempl/armelf_oabi.em: Delete files.
1662 * Makefile.in: Regenerated.
1664 2004-11-04 Hans-Peter Nilsson <hp@axis.com>
1666 * configure.tgt (crisv32-*-*): Handle like cris-*-* for non-aout.
1667 * emulparams/criself.sh (INIT_START): Remove emitted "push srp".
1668 (FINI_START): Ditto.
1669 (INIT_END): Remove emitted "jump [sp+]".
1672 2004-11-04 Alan Modra <amodra@bigpond.net.au>
1674 * emultempl/ppc64elf.em (no_tls_opt): Rename from notlsopt.
1675 (no_opd_opt, no_toc_opt): New static vars.
1676 (ppc_before_allocation): Don't edit opt if no_opd_opt. Call
1678 (OPTION_NO_OPD_OPT, OPTION_NO_TOC_OPT): Define.
1679 (PARSE_AND_LIST_LONGOPTS): Add no-opd-optimize and no-toc-optimize.
1680 (PARSE_AND_LIST_OPTIONS): Describe new options.
1681 (PARSE_AND_LIST_ARGS_CASES): Handle them.
1683 2004-10-27 Nick Clifton <nickc@redhat.com>
1685 * emultempl/alphaelf.em (alpha_after_parse): Add extra, NULL,
1686 parameter to invocation of lang_section_start.
1687 * emultempl/aix.em (_handle_option): Likewise.
1689 * Makefile.am (eelf64alpha.c, eelf64alpha_fbsd.c,
1690 eelf64alpha_nbsd.c): Add dependency upon emultempl/alphaelf.em.
1691 * Makefile.in: Regenerate.
1693 2004-10-26 Mark Mitchell <mark@codesourcery.com>
1695 * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Do not emit
1696 __exidx_{start,end} when not relocating.
1698 2004-10-25 Mark Mitchell <mark@codesourcery.com>
1700 * Makefile.in (earmsymbian.c): Depend on armbpabi.sc, not elf.sc.
1701 * ldexp.h (segment_type): New type.
1702 (segments): New variable.
1703 * ldexp.c (segments): New variable.
1704 (exp_print_token): Handle SEGMENT_START.
1705 (fold_binary): Likewise.
1706 * ldgram.y (SEGMENT_START): Declare it as a token.
1707 (exp): Handle SEGMENT_START.
1708 * ldlang.h (lang_address_statement_type): Add segment field.
1709 (lang_section_start): Change prototype.
1710 * ldlang.c (map_input_to_output_sections): Do not process section
1711 assignments if a corresponding SEGMENT_START has already been
1713 (lang_section_start): Add segment parameter.
1714 * ldlex.l (SEGMENT_START): Add it.
1715 * lexsup.c (seg_segment_start): New function.
1716 (parse_args): Use it for -Tbss, -Tdata, and -Ttext.
1717 * ld.texinfo (SEGMENT_START): Document it.
1718 * emulparams/armsymbian.sh (EMBEDDED): Set it.
1719 * scripttempl/armbpabi.sc: Use SEGMENT_START to control segment
1720 base addresses. Do not map relocations.
1721 * NEWS: Mention SEGMENT_START.
1723 2004-10-26 Paul Brook <paul@codesourcery.com>
1725 * ld.texinfo: Document --default-symver.
1726 * ldmain.c (main): Set link_info.create_default_symver.
1727 * lexsup.c (enum option_values): Add OPTION_DEFAULT_SYMVER.
1728 (ld_options): Add default-symver.
1729 (parse_args): Handle OPTION_DEFAULT_SYMVER.
1731 2004-10-24 Danny Smith <dannysmith@users.sourceforge.net>
1733 * pe-dll.c (process_def_file): Don't export all symbols by default if
1734 building a position-independent executable.
1736 2004-10-21 H.J. Lu <hongjiu.lu@intel.com>
1739 * ldmain.c (reloc_overflow): Accept a pointer to struct
1740 bfd_link_hash_entry. Report symbol location for relocation
1743 2004-10-21 H.J. Lu <hongjiu.lu@intel.com>
1745 * genscripts.sh (libpath.exp): Really generate for first
1748 2004-10-19 Danny Smith <dannysmith@users.sourceforge.net>
1750 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Simplify
1751 comparison and replacement of filenames.
1753 2004-10-19 H.J. Lu <hongjiu.lu@intel.com>
1756 * ldlang.c (load_symbols): Use the same -Bdynamic/-Bstatic
1757 option on linker script as the one for linker script.
1759 2004-10-16 Daniel Jacobowitz <dan@debian.org>
1761 * ldlang.c (struct excluded_lib, excluded_libs, add_excluded_libs)
1762 (check_excluded_libs): New.
1763 (load_symbols): Call check_excluded_libs.
1764 * ldlang.h (add_excluded_libs): New prototype.
1765 * emultempl/elf32.em (OPTION_EXCLUDED_LIBS): Define.
1766 (gld${EMULATION_NAME}_add_options): Add --exclude-libs.
1767 (gld${EMULATION_NAME}_handle_option): Handle --exclude-libs.
1768 * ld.texinfo (Command Line Variables): Document --exclude-libs.
1769 (Options Specific to i386 PE Targets): Remove --exclude-libs.
1771 2004-10-15 Alan Modra <amodra@bigpond.net.au>
1773 * ldexp.c (exp_fold_tree): Don't immediately exit ld on a
1774 failing link script assert.
1776 * ldctor.c (ldctor_add_set_entry): Fix comment typo.
1778 2004-10-14 H.J. Lu <hongjiu.lu@intel.com>
1781 * emulparams/elf64_ia64.sh (SMALL_DATA_CTOR): Set.
1782 (SMALL_DATA_DTOR): Set.
1783 * emulparams/elf64_ia64_fbsd.sh (SMALL_DATA_CTOR): Unset.
1784 (SMALL_DATA_DTOR): Unset.
1785 * scripttempl/elf.sc: If SMALL_DATA_CTOR is set, move .ctors
1786 after .data. If SMALL_DATA_DTOR is set, move .dtors after
1789 2004-10-14 Alan Modra <amodra@bigpond.net.au>
1792 * ldlang.h (lang_output_section_statement_type): Make "next" a
1793 struct lang_output_section_statement_struct *.
1794 (struct orphan_save): Move from elf32.em. Add "name" and "flags".
1795 (lang_output_section_find_by_flags, lang_insert_orphan): Declare.
1796 * ldlang.c (lang_output_section_find_1): Adjust for changed
1797 output_section_statement "next".
1798 (strip_excluded_output_sections): Likewise.
1799 (lang_record_phdrs): Likewise.
1800 (lang_output_section_find_by_flags): New function.
1801 (output_prev_sec_find): Move from pe.em. Adjust iterator.
1802 (lang_insert_orphan): New function. Tail end of elf32.em's
1803 place_orphan merged with that from pe.em. Allow bfd_section to
1804 be placed first. New heuristic for placing new output section
1805 statement in existing script, and accompanying split of __start
1806 symbol alignment into a separate assignment to dot.
1807 (lang_add_section): Consistently use output->bfd_section rather than
1808 an alias, section->output_section.
1809 (map_input_to_output_sections): Rename overly long arg. Move
1810 initialization of data_statement output section to here..
1811 (lang_check_section_addresses): ..from here.
1812 (print_assignment): Correct printing of etree_assert.
1813 (print_all_symbols): Don't bomb if userdata is NULL.
1814 (IGNORE_SECTION): Rearrange.
1815 * emultempl/elf32.em (output_rel_find): Adjust interator.
1816 (output_prev_sec_find): Delete.
1817 (struct orphan_save): Delete.
1818 (gld${EMULATION_NAME}_place_orphan): Cater for zero bfd_section
1819 flags without creating a duplicate output section statement.
1820 Revise code holding history of various orphan section placements.
1821 Allow orphan sections to place before script specified output
1822 sections. Call lang_output_section_find_by_flags when placement
1823 by name fails. Use lang_insert_orphan.
1824 * emultempl/mmo.em (output_prev_sec_find): Delete.
1825 (struct orphan_save): Delete.
1826 (mmo_place_orphan): Revise code holding history of orphan placement.
1827 Allow orphans to place before existing output sections. Use
1829 * emultempl/pe.em (output_prev_sec_find): Delete.
1830 (struct orphan_save): Delete.
1831 (gld_${EMULATION_NAME}_place_orphan): Revise to suit use of
1834 2004-10-13 Mark Mitchell <mark@codesourcery.com>
1836 * scripttempl/armbpabi.sc: Do not put .gnu.version.* into a
1839 2004-10-13 Alan Modra <amodra@bigpond.net.au>
1842 * ldcref.c (check_section_sym_xref): Delete.
1843 (check_local_sym_xref): New function.
1844 (check_nocrossrefs): Adjust call.
1845 * emultempl/pe.em (struct orphan_save): Add os_tail.
1846 (place_orphan): Backport assorted fixes from elf32.em.
1848 2004-10-12 Bob Wilson <bob.wilson@acm.org>
1850 * emultempl/xtensaelf.em: Use ISO C90 formatting.
1852 2004-10-11 Jakub Jelinek <jakub@redhat.com>
1854 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_ld_so_conf): Avoid
1855 getline for portability.
1857 * emultempl/elf32.em (gld${EMULATION_NAME}_ld_so_conf): New structure.
1858 (gld${EMULATION_NAME}_parse_ld_so_conf,
1859 gld${EMULATION_NAME}_parse_ld_so_conf_include): New functions.
1860 (gld${EMULATION_NAME}_check_ld_so_conf): Use them.
1862 2004-10-11 Alan Modra <amodra@bigpond.net.au>
1865 * ldfile.c (ldfile_try_open_bfd): Ensure dynamic objects are
1866 rejected when linking statically.
1868 2004-10-08 Daniel Jacobowitz <dan@debian.org>
1870 * configure.tgt: Include elf_x86_64 for i[3-7]86-*-solaris2*.
1872 2004-10-07 Bob Wilson <bob.wilson@acm.org>
1874 * ld.texinfo (Xtensa): Describe new linker relaxation to optimize
1875 assembler-generated longcall sequences. Describe new --size-opt
1877 * emulparams/elf32xtensa.sh (OTHER_SECTIONS): Add .xt.prop section.
1878 * emultempl/xtensaelf.em (remove_section,
1879 replace_insn_sec_with_prop_sec, replace_instruction_table_sections,
1880 elf_xtensa_after_open): New.
1881 (OPTION_OPT_SIZEOPT, OPTION_LITERAL_MOVEMENT,
1882 OPTION_NO_LITERAL_MOVEMENT): Define.
1883 (elf32xtensa_size_opt, elf32xtensa_no_literal_movement): New globals.
1884 (PARSE_AND_LIST_LONGOPTS): Add size-opt and [no-]literal-movement.
1885 (PARSE_AND_LIST_OPTIONS): Add --size-opt.
1886 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_OPT_SIZEOPT,
1887 OPTION_LITERAL_MOVEMENT, and OPTION_NO_LITERAL_MOVEMENT.
1888 (LDEMUL_AFTER_OPEN): Set to elf_xtensa_after_open.
1889 * scripttempl/elfxtensa.sc: Update with changes from elf.sc.
1890 * Makefile.am (eelf32xtensa.c): Update dependencies.
1891 * Makefile.in: Regenerate.
1893 2004-10-07 Jeff Baker <jbaker@qnx.com>
1895 * lexsup.c: Handle --warn-shared-textrel option.
1896 (ld_options): Restore alpha sorting of options.
1897 * ldmain.c (main): Initialise warn_shared_info field to FALSE.
1898 * ld.texinfo: Add documentation for --warn-shared-textrel.
1899 * NEWS: Added mention of --warn-shared-textrel option.
1901 2004-10-05 Tomer Levi <Tomer.Levi@nsc.com>
1903 * emultempl/crxelf.em (disable_relaxation): Add.
1904 (crxelf_before_allocation): Enable --relax option by default.
1905 (PARSE_AND_LIST_PROLOGUE): Add OPTION_NO_RELAX.
1906 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --no-relax.
1907 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_NO_RELAX.
1909 2004-10-04 H.J. Lu <hongjiu.lu@intel.com>
1911 * NEWS: Mention SORT_BY_NAME, SORT_BY_ALIGNMENT and
1912 --sort-section name|alignment.
1914 * ld.texinfo: Document SORT_BY_NAME, SORT_BY_ALIGNMENT and
1915 --sort-section name|alignment.
1917 * ld.h (sort_type): New enum.
1918 (wildcard_spec): Change the type of `sorted' to sort_type.
1920 * ldgram.y (SORT): Removed.
1921 (SORT_BY_NAME): Added.
1922 (SORT_BY_ALIGNMENT): Added.
1923 (wildcard_spec): Updated `sorted'. Handle SORT_BY_NAME and
1925 (input_section_spec_no_keep): Updated `sorted'.
1926 (statement): Replace SORT with SORT_BY_NAME.
1928 * ldlang.c (compare_section): New function to compare 2
1929 sections with different sorting schemes.
1930 (wild_sort): Updated. Use compare_section.
1931 (update_wild_statements): New function.
1932 (lang_process): Call update_wild_statements before
1933 map_input_to_output_sections.
1935 * ldlex.l (SORT_BY_NAME): New.
1936 (SORT_BY_ALIGNMENT): New.
1937 (SORT): Return SORT_BY_NAME.
1939 * ldmain.c (sort_section): New. Defined.
1940 (main): Initialize it to none.
1942 * lexsup.c (option_values): Add OPTION_SORT_SECTION.
1943 (ld_options): Add an entry for OPTION_SORT_SECTION.
1944 (parse_args): Handle OPTION_SORT_SECTION.
1946 * mri.c (mri_draw_tree): Updated `sorted'.
1948 2004-10-04 Jakub Jelinek <jakub@redhat.com>
1950 * ldgram.y (DATA_SEGMENT_RELRO_END): Add one argument.
1951 * scripttempl/elf.sc (DATA_SEGMENT_RELRO_END): Add 0 as first
1953 (DATA_SEGMENT_RELRO_GOTPLT_END): Pass $SEPARATE_GOTPLT as first
1954 and . as second argument.
1955 (GOTPLT): Move $DATA_SEGMENT_RELRO_GOTPLT_END before the section.
1956 * ldexp.c (fold_unary): Remove DATA_SEGMENT_RELRO_END handling here.
1957 (fold_binary): Add it here. Insert padding to make relro_end
1958 COMMONPAGESIZE bytes aligned. For DATA_SEGMENT_ALIGN in
1959 exp_dataseg_relro_adjust phase just use previously computed
1961 * ldlang.c (lang_size_sections): Set exp_data_seg.base for
1962 relro_adjust here. Call lang_size_sections_1 once more if there
1963 was too big padding at DATA_SEGMENT_RELRO_END.
1964 * ld.texinfo (DATA_SEGMENT_RELRO_END): Add documentation.
1966 2004-10-01 Paul Brook <paul@codesourcery.com>
1968 * emulparams/armelf.sh: Add unwinding table sections.
1970 2004-09-30 Filip Navara <navaraf@reactos.com>
1972 * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Generate
1973 correct base address for position independant executables.
1974 * pe-dll.c (pe_dll_fill_sections): Don't mark position independant
1975 executables as DLLs.
1977 2004-09-30 Paul Brook <paul@codesourcery.com>
1979 * ld.texinfo: Document --target2=abs.
1980 * emulparms/armsymbian.sh (TARGET2_TYPE): Set.
1982 2004-09-29 Nick Clifton <nickc@redhat.com>
1984 * scripttempl/xstormy16.sc: Only perform the assignments to the
1985 ROM region when not performing a relocatable link. The ROM region
1986 does not start at address 0, but the sections will.
1987 * Makefile.am: Fix linker script dependency for the generation of
1989 * Makefile.in: Regenerate.
1991 2004-09-18 Filip Navara <navaraf@reactos.com>
1993 * emulparams/arm_epoc_pe.sh, emulparams/armpe.sh, emulparams/i386pe.sh,
1994 emulparams/i386pe_posix.sh, emulparams/mcorepe.sh,
1995 emulparams/mipspe.sh, emulparams/ppcpe.sh, scripttempl/pe.sc: Define
1997 * scripttempl/pe.sc: Make the virtual address and file offset synced if
1998 the alignment is lower than the target page size.
2000 2004-09-27 Filip Navara <navaraf@reactos.com>
2002 * emultempl/pe.em (gld_${EMULATION_NAME}_unrecognized_file): Allow
2003 def_file_parse to handle pe_def_file if NULL and prevent crash with
2006 2004-09-27 Alan Modra <amodra@bigpond.net.au>
2008 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Enable
2009 --emit-stub-syms automatically when --emit-relocs.
2011 2004-09-24 Paul Brook <paul@codeosurcery.com>
2013 * scripttempl/elf.sc: Keep .preinit_array, .init_array and
2014 .fini_array sections.
2016 2004-09-19 Andreas Schwab <schwab@suse.de>
2018 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Adjust data segment
2019 base so that relro end is suitably aligned.
2021 2004-09-17 Paul Brook <paul@codesourcery.com>
2023 * ld.texinfo: Rename arm-specific section. Document --target*
2024 * emulparams/armelf_fbsd.sh: Set TARGET2_TYPE.
2025 * emulparams/armelf_linux.sh: Ditto.
2026 * emulparams/armelf_nbsd.sh: Ditto.
2027 * emultempl/armelf.em: Set default for TARGET2_TYPE.
2028 (target2_type): New variable.
2029 (arm_elf_before_allocation): Don't pass target1_type.
2030 (arm_elf_create_output_section_statements): New function.
2031 (PARSE_AND_LIST_PROLOGUE): Add OPTION_TARGET2.
2032 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --target=.
2033 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_TARGET2.
2034 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Set.
2035 * emultempl/armelf_oabi.em (_before_allocation): Remove extra
2036 argument to bfd_elf32_arm_process_before_allocation.
2038 2004-09-17 Alan Modra <amodra@bigpond.net.au>
2040 * ldexp.c (fold_name): Update u.undef.next refs.
2041 * emultempl/pe.em: Likewise.
2042 * emultempl/sunos.em: Likewise.
2044 2004-09-17 Alan Modra <amodra@bigpond.net.au>
2046 * Makefile.am: Run "make dep-am".
2047 * Makefile.in: Regenerate.
2048 * config.in: Regenerate.
2049 * configure: Regenerate.
2050 * aclocal.m4: Regenerate.
2051 * po/ld.pot: Regenerate.
2053 2004-09-16 Tomer Levi <Tomer.Levi@nsc.com>
2055 * scripttempl/elf32crx.sc (.init): Add KEEP for section's *personality*.
2059 2004-09-16 Alan Modra <amodra@bigpond.net.au>
2061 * emultempl/armelf_oabi.em (before_allocation): Add extra zero param
2062 to bfd_elf32_arm_process_before_allocation call.
2064 2004-09-13 Paul Brook <paul@codesourcery.com>
2066 * emulparams/armsymbian.sh: Set TARGET1_IS_REL.
2067 * emultempl/armelf.em: Use TARGET1_IS_REL. Add --target1-{rel,abs}.
2069 2004-09-07 H.J. Lu <hongjiu.lu@intel.com>
2071 * configure: Regenerated with autconfig 2.13.
2073 2004-09-07 Andreas Schwab <schwab@suse.de>
2075 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Apply data segment
2076 alignment before adjusting DATA_SEGMENT_RELRO_END.
2078 2004-09-06 Mark Mitchell <mark@codesourcery.com>
2080 * emulparams/armsymbian.sh: Use armbpabi script.
2081 * scripttempl/armbpabi.sc: New script.
2083 2004-09-02 Mark Mitchell <mark@codesourcery.com>
2085 * Makefile.am (ALL_EMULATIONS): Add earmsymbian.o.
2086 (earmsymbian.c): New target.
2087 * configure.tgt: Use armsymbian emulation for arm*-*-symbianelf*.
2088 * Makefile.in: Regenerated.
2089 * aclocal.m4: Likewise.
2090 * configure: Likewise.
2091 * emulparams/armsymbian.sh: New file.
2093 2004-09-03 Tomer Levi <Tomer.Levi@nsc.com>
2095 * scripttempl/elf32crx.sc: Edit file with comments.
2096 (.init): Add new section.
2098 (.ctor): Control the linkage order.
2101 2004-08-27 Nick Clifton <nickc@redhat.com>
2103 * emultempl/pe.em (after_open): Do not assume that either bfd is
2106 2004-08-26 Alan Modra <amodra@bigpond.net.au>
2108 * ldlang.c (lang_init): Don't compare with TRUE.
2110 2004-08-25 Dmitry Diky <diwil@spec.ru>
2112 * emulparams/msp430all.sh: Fix RAM sizes for all targets.
2113 * scripttempl/elf32msp430.sc: Add .profiler section definition.
2115 2004-08-24 H.J. Lu <hongjiu.lu@intel.com>
2117 * ldlang.c (wildcardp): Defined as a macro with strpbrk.
2119 2004-08-19 Mark Mitchell <mark@codesourcery.com>
2121 * configure.tgt (arm*-*-symbianelf*): New target.
2122 (arm*-*-eabi*): Likewise.
2124 2004-08-19 Jakub Jelinek <jakub@redhat.com>
2126 * emultempl/ppc64elf.em (non_overlapping_opd): New variable.
2127 (ppc_before_allocation): Pass it to ppc64_elf_edit_opd).
2128 (OPTION_NON_OVERLAPPING_OPD): Define.
2129 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Add
2130 --non-overlapping-opd option.
2132 2004-08-18 Alan Modra <amodra@bigpond.net.au>
2135 * ldexp.c (fold_name): Don't call bfd_link_add_undef if the symbol
2136 was already on the undefs list.
2138 2004-08-17 Alan Modra <amodra@bigpond.net.au>
2140 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern): Dot
2141 prefix the symbol field too.
2143 2004-08-13 Alan Modra <amodra@bigpond.net.au>
2145 * ldmain.c (link_callbacks): Remove "error_handler".
2146 * ldmisc.c: Include elf-bfd.h.
2147 (vfinfo): Sort comment. Handle %A. Use %A instead of
2148 bfd_get_section_indent.
2149 (error_handler): Delete.
2150 * ldmisc.h (error_handler): Delete declaration.
2152 2004-08-10 Alan Modra <amodra@bigpond.net.au>
2154 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Call
2155 ppc64_elf_restore_symbols.
2157 2004-08-09 Alan Modra <amodra@bigpond.net.au>
2159 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Error if
2160 .toc is too large on relocatable linking.
2162 2004-08-09 Alan Modra <amodra@bigpond.net.au>
2164 * emultempl/ppc64elf.em (ppc_after_open): Delete.
2165 (LDEMUL_AFTER_OPEN): Don't define.
2167 2004-08-02 Stephane Carrez <stcarrez@nerim.fr>
2169 * ld.texinfo (Top): Document specific options of 68HC11 and 68HC12.
2171 2004-08-01 Stephane Carrez <stcarrez@nerim.fr>
2173 * scripttempl/elfm68hc12.sc: Align text, rodata and data section
2176 2004-07-27 Jason Thorpe <thorpej@wasabisystems.com>
2178 * emulparams/hppanbsd.sh (OUTPUT_FORMAT): Set to "elf32-hppa-netbsd".
2180 2004-07-26 Dmitry Diky <diwil@spec.ru>
2182 * Makefile.am: Add new subtargets: msp430x1610, msp430x1611,
2183 msp430x1612, msp430x415, msp430x417, msp430xG437, msp430xG438,
2185 * configure.tgt: Likewise.
2186 * emulparams/msp430all.sh: Likewise.
2187 * Makefile.in: Regenerate.
2189 2004-07-23 Nick Clifton <nickc@redhat.com>
2191 * emultempl/elf32.em (_place_orphan): Use an already existing
2192 section name if that section does not have any flags set.
2194 2004-07-21 H.J. Lu <hongjiu.lu@intel.com>
2196 * ldlang.c (already_linked_hash_entry): Removed.
2197 (already_linked): Likewise.
2198 (already_linked_table): Likewise.
2199 (section_already_linked): Call bfd_section_already_linked.
2200 (lang_process): Replace already_linked_table_init with
2201 bfd_section_already_linked_table_init and check return. Replace
2202 already_linked_table_free with bfd_section_already_linked_table_free.
2204 2004-07-21 Nick Clifton <nickc@redhat.com>
2206 * ldlang.c (init_os): Make sure that the newly allocated userdata
2207 structure is zeroed out.
2209 2004-07-19 H.J. Lu <hongjiu.lu@intel.com>
2211 * NEWS: Mention the new --add-needed/--no-add-needed and
2212 --as-needed/--no-as-needed options.
2214 2004-07-19 H.J. Lu <hongjiu.lu@intel.com>
2216 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): Also
2217 check the add_needed field.
2218 (dt_needed): New struct.
2219 (gld${EMULATION_NAME}_try_needed): Change the first argument
2220 to a pointer to struct dt_needed. Check the DYN_NO_ADD_NEEDED
2221 bit in the file where the DT_NEEDED entry comes from.
2222 (gld${EMULATION_NAME}_search_needed): Change the second
2223 argument to a pointer to struct dt_needed.
2224 (gld${EMULATION_NAME}_check_ld_so_conf): Updated.
2225 (gld${EMULATION_NAME}_after_open): Likewise.
2227 * ld.texinfo: Add --add-needed document.
2228 * ldlang.c (new_afile): Set p->add_needed.
2229 * ldlang.h (lang_input_statement_type): Add add_needed field.
2230 * ldmain.h (add_needed): Declare.
2231 * ldmain.c (add_needed): New global var.
2232 * lexsup.c (option_values): Add OPTION_ADD_NEEDED and
2233 OPTION_NO_ADD_NEEDED.
2234 (ld_options): Likewise.
2235 (parse_args): Handle them.
2237 2004-07-13 Christof Petig <christof@petig-baender.de>
2239 * emultempl/pe.em (make_import_fixup): Use bfd_get_32 to correct
2240 for endian-ness of extracted addend.
2242 2004-07-13 Danny Smith <dannysmith@usesr.sourceforge.net>
2244 * pe-dll.c (auto_export): Filter on just the import prefix,
2245 "_imp_", not "_imp__".
2247 2004-07-09 Nick Clifton <nickc@redhat.com>
2249 * configure.tgt: Change sh-sybmian-elf to sh-*-symbianelf.
2251 2004-07-06 Tomer Levi <Tomer.Levi@nsc.com>
2253 * Makefile.am (ALL_EMULATIONS): Add eelf32crx.o.
2254 (eelf32crx.c): New target.
2255 * Makefile.in: Regenerate.
2256 * configure.tgt: Handle crx-*-elf*.
2257 * emulparams/elf32crx.sh: New file.
2258 * emultempl/crxelf.em: New file.
2259 * scripttempl/elf32crx.sc: New file.
2260 * NEWS: Mention new target.
2262 2004-07-06 Nick Clifton <nickc@redhat.com>
2264 * Makefile.am: Add eshlsymbian.c.
2265 * Makefile.in: Regenerate.
2266 * configure.tgt: Add sh*-symbian-elf target.
2267 * emulparams/shlsymbian.sh: New file. Configure the
2268 sh-symbian-elf linker scripts.
2269 * scripttemp/elf32sh-symbian.sc: New file. Linker script
2270 template for the sh-symbian-elf target.
2272 2004-07-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2274 * emulparams/hppa64linux.sh: Define PLT_BEFORE_GOT.
2275 * emulparams/hppalinux.sh: Likewise.
2276 * scripttempl/elf.sc: Place .plt just before .got when .plt is in
2277 data segment and PLT_BEFORE_GOT is defined.
2279 2004-07-03 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
2281 * ld.texinfo (WIN32): Document PE weak symbols.
2283 2004-07-02 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2285 * emulparams/shlelf32_linux.sh (COMMONPAGESIZE): Set to 4KB.
2287 2004-07-01 H.J. Lu <hongjiu.lu@intel.com>
2289 * ldmisc.c (vfinfo): Call bfd_get_section_ident to identify
2292 2004-06-29 Alan Modra <amodra@bigpond.net.au>
2294 * ldlang.c (lang_reset_memory_regions): Save last relax pass section
2297 2004-06-24 Alan Modra <amodra@bigpond.net.au>
2299 * ldlang.c (print_output_section_statement): Don't print size before
2301 (IGNORE_SECTION): Remove bfd arg. Update all callers.
2303 * ldexp.c (fold_name): .. See below.
2304 * ldlang.c (section_already_linked, print_output_section_statement,
2305 print_input_section, insert_pad, size_input_section,
2306 lang_check_section_addresses, lang_size_sections_1,
2307 lang_size_sections, lang_do_assignments_1, lang_set_startof,
2308 lang_one_common, lang_reset_memory_regions, lang_process,
2309 lang_abs_symbol_at_end_of, lang_do_version_exports_section): ..
2310 * ldwrite.c (build_link_order, clone_section, ds, split_sections): ..
2311 * pe-dll.c (process_def_file, generate_reloc): ..
2312 * emultempl/elf32.em (gld${EMULATION_NAME}_find_statement_assignment,
2313 gld${EMULATION_NAME}_before_allocation): ..
2314 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): ..
2315 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_before_allocation,
2316 sh64_elf_${EMULATION_NAME}_after_allocation): ..
2317 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): ..
2318 * emultempl/xtensaelf.em (ld_assign_relative_paged_dot,
2319 ld_local_file_relocations_fit, ld_xtensa_insert_page_offsets): Use
2320 "size" instead of "_raw_size" and "_cooked_size". Expand
2321 bfd_section_size macro invocations.
2323 2004-06-22 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
2325 * ld/scripttemp/pe.sc (.CRT): Define ___crt_xc_start__,
2326 ___crt_xc_end__, ___crt_xi_start__, ___crt_xi_end__, ___crt_xl_start__,
2327 ___crt_xp_start__, ___crt_xp_end__, ___crt_xt_start__ and
2329 (.tls): Define ___tls_start__ and ___tls_end__.
2331 2004-06-21 Alexandre Oliva <aoliva@redhat.com>
2333 * emulparams/elf32frvfd.sh (GENERATE_PIE_SCRIPT): Set to yes.
2335 2004-06-18 Adam Nemet <anemet@lnxw.com>
2337 * configure.in: Set EXTRA_SHLIB_EXTENSION to .a for LynxOS.
2338 * configure: Regenerate.
2340 2004-06-15 Jakub Jelinek <jakub@redhat.com>
2342 * scripttempl/elf.sc: Readd KEEP and .gcc_except_table.* to
2343 .gcc_except_table output sections lost accidentally with
2346 2004-06-15 Alan Modra <amodra@bigpond.net.au>
2348 * ldwrite.c (build_link_order): Use bfd_get_section_size
2349 instead of bfd_get_section_size_before_reloc or _raw_size.
2350 * pe-dll.c (process_def_file): Likewise.
2352 2004-06-14 Alan Modra <amodra@bigpond.net.au>
2354 From Richard Wirth <r.wirth@wirthware.de>
2355 * ldlang.c (lang_finish): Don't free lang_definedness_table.
2357 2004-05-29 Alan Modra <amodra@bigpond.net.au>
2359 * ldlang.c (gc_section_callback): Move SEC_EXCLUDE twiddles..
2360 (lang_gc_sections): .. to a LANG_FOR_EACH_INPUT_STATEMENT loop here.
2362 2004-05-28 Alan Modra <amodra@bigpond.net.au>
2364 * ldlang.c: Formatting. Wrap long lines, expand bfd_get_section_flags
2366 * lexsup.c: Formatting. Wrap long lines.
2367 * ldwrite.c: Update copyright date.
2369 * ldlang.c (lang_add_section): Don't twidlle SEC_EXCLUDE here.
2370 (output_section_callback): Nor SEC_KEEP here.
2371 (gc_section_callback): Twiddle SEC_EXCLUDE here.
2372 (lang_gc_wild): Delete. Fold into..
2373 (lang_gc_sections_1): ..here. Only call bfd_gc_sections when garbage
2375 (lang_process): Always call lang_gc_sections.
2376 (lang_place_orphans): Handle SEC_EXCLUDE sections.
2377 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Remove
2380 2004-05-26 H.J. Lu <hongjiu.lu@intel.com>
2382 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Clear
2383 SEC_EXCLUDE on non-SEC_DEBUGGING sections for relocatable link.
2384 * ldlang.c (lang_add_section): Likewise.
2386 2004-05-26 Alan Modra <amodra@bigpond.net.au>
2388 * ldlang.c (lang_add_section): Set SEC_EXCLUDE for SEC_GROUP
2389 sections when doing a final link. Clear SEC_EXCLUDE when doing
2390 a relocable link, except for SEC_DEBUGGING sections.
2391 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Use the
2392 same condition here to drop SEC_EXCLUDE orphan sections.
2394 2004-05-25 Alan Modra <amodra@bigpond.net.au>
2396 * ldlang.c (lang_process): Call bfd_merge_sections later, and
2397 only when not a relocatable link.
2398 (print_input_section): Handle SEC_EXCLUDE sections.
2399 (size_input_section): Don't update dot on SEC_EXCLUDE sections.
2400 (lang_do_assignments_1): Likewise.
2401 * ldwrite.c (build_link_order): Ignore SEC_EXCLUDE input sections.
2402 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Likewise.
2403 * emultempl/hppaelf.em (build_section_lists): Likewise.
2404 * emultempl/ppc64elf.em (build_toc_list): Likewise.
2405 (build_section_lists): Likewise.
2407 2004-05-23 Andreas Schwab <schwab@suse.de>
2409 * ld.texinfo (Options): Fix typo in last change.
2411 2004-05-21 Andy Chittenden <achittenden@bluearc.com>
2413 * ld.h (ld_config_type): Add new field: hash_table_size.
2414 * ldmain.c: Initialise the new field to zero. If it is non-zero
2415 after parsing the linker's command line call
2416 bfd_hash_set_default_size.
2417 * lexsup.c (option_values): Add OPTION_HASH_SIZE.
2418 (ld_options): Add hash-size.
2419 (parse_args): Parse --hash-size option. Allow
2420 --reduce-memory-overheads to set the default hash table size as
2422 * ld.texinfo: Document the new switch. Also mention that
2423 --reduce-memory-overheads can affect the hash table size.
2424 * NEWS: Mention the new feature.
2426 2004-05-19 J"orn Rennecke <joern.rennecke@superh.com>
2428 * NEWS: Mention new linker map file generation and the
2429 --reduce-memory-overheads option.
2430 * ld.texinfo: Document --reduce-memory-overheads option.
2431 * ld.h (map_symbol_def): New struct.
2432 (struct user_section_struct, section_userdata_type): Rename to:
2433 (struct lean_user_section_struct, lean_section_userdata_type).
2434 (struct fat_user_section_struct, fat_section_userdata_type): New.
2435 (SECTION_USERDATA_SIZE): Define.
2436 (args_type): New member reduce_memory_overheads.
2437 * ldlang.c (map_obstack): New static variable.
2438 (init_map_userdata, print_all_symbols, sort_def_symbol): New functions.
2439 (lang_map): Unless command_line.reduce_memory_overheads is set,
2440 initialize lists of defined symbols for each section.
2441 (print_input_section): Unless command_line.reduce_memory_overheads
2442 is set, use print_all_symbols.
2443 (init_os): Use lean_section_userdata_type / SECTION_USERDATA_SIZE.
2444 * ldmain.c (main): Initialize command_line.reduce_memory_overheads.
2445 * lexsup.c (enum option_values): Add OPTION_REDUCE_MEMORY_OVERHEADS.
2446 (ld_options): Add entry for --reduce-memory-overheads.
2447 (parse_args): Handle OPTION_REDUCE_MEMORY_OVERHEADS.
2449 2004-05-19 Jakub Jelinek <jakub@redhat.com>
2451 * ldgram.y (sect_constraint): New.
2452 (ONLY_IF_RO, ONLY_IF_RW): New tokens.
2453 (section): Add sect_constraint. Pass additional argument
2454 to lang_enter_output_section_statement.
2455 * mri.c (mri_draw_tree): Pass additional argument to
2456 lang_enter_output_section_statement.
2457 * emultempl/pe.em (place_orphan): Likewise.
2458 (output_prev_sec_find): Disregard output section statements with
2460 * emultempl/mmo.em (output_prev_sec_find): Likewise.
2461 (mmo_place_orphan): Pass additional argument to
2462 lang_enter_output_section_statement.
2463 * emultempl/elf32.em (output_prev_sec_find): Disregard output section
2464 statements with constraint == -1.
2465 (place_orphan): Pass additional argument to
2466 lang_enter_output_section_statement.
2467 * ldlang.c (lang_enter_overlay_section): Likewise.
2468 (lang_output_section_find_1): New.
2469 (lang_output_section_find): Use it.
2470 (lang_output_section_statement_lookup_1): New.
2471 (lang_output_section_statement_lookup): Use it.
2472 (check_section_callback, check_input_sections): New.
2473 (map_input_to_output_sections): Check if all input sections
2474 are readonly if ONLY_IF_RO or ONLY_IF_RW was seen.
2475 (strip_excluded_output_sections): Disregard output section statements
2476 with constraint == -1.
2477 (lang_record_phdrs): Likewise.
2478 (lang_enter_output_section_statement): Add constraint argument.
2479 Use lang_output_section_statement_lookup_1.
2480 * ldlang.h (lang_output_section_statement_type): Add constraint
2481 and all_input_readonly fields.
2482 (lang_enter_output_section_statement): Adjust prototype.
2483 * ldlex.l (ONLY_IF_RO, ONLY_IF_RW): New tokens.
2484 * scripttempl/elf.sc (.eh_frame, .gcc_except_table): Move into text
2485 segment if all input sections are readonly.
2487 2004-05-19 Adam Nemet <anemet@lnxw.com>
2489 * scripttempl/i386lynx.sc: Remove file.
2491 2004-05-17 Bob Wilson <bob.wilson@acm.org>
2493 * ld.texinfo (Output Section Address): Correct subsection name.
2495 2004-05-17 Adam Nemet <anemet@lnxw.com>
2497 * configure.tgt (powerpc-*-lynxos* case): New case.
2498 * configure.host (i[3-7]86-*-lynxos* case): Remove case.
2499 * emulparams/ppclynx.sh: New file.
2500 * emulparams/i386lynx.sh (SCRIPT_NAME): Update to LynxOS 4.0.
2501 * Makefile.am (ALL_EMULATIONS): Add eppclynx.o
2502 (ei386lynx.c): Update rule to LynxOS 4.0 ELF.
2503 (eppclynx.c): New rule.
2504 * Makefile.in: Regenerate.
2506 2004-05-13 Joel Sherrill <joel@oarcorp.com>
2508 * configure.tgt (or32-*-rtems*): Switch to elf and
2509 support versioned targets.
2511 2004-05-13 Nick Clifton <nickc@redhat.com>
2513 * po/fr.po: Updated French translation.
2515 2004-05-11 Jakub Jelinek <jakub@redhat.com>
2517 * genscripts.sh: Generate -z combreloc -z now -z relro scripts
2518 for binaries, -shared and -pie.
2519 * emulparams/elf_i386.sh (SEPARATE_GOTPLT): Set.
2520 * emulparams/elf_x86_64.sh (SEPARATE_GOTPLT): Set.
2521 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Rename to...
2522 (OTHER_RELRO_SECTIONS): ... this.
2523 * ldlex.l (DATA_SEGMENT_RELRO_END): Add.
2524 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Handle
2525 -z relro and -z norelro.
2526 (gld${EMULATION_NAME}_list_options): Add it to usage.
2527 (gld${EMULATION_NAME}_get_script): Return -z combreloc -z now
2528 -z relro scripts when appropriate.
2529 * scripttempl/elf.sc: Unset SEPARATE_GOTPLT if RELRO_NOW is set.
2530 Create separate .got.plt section if SEPARATE_GOTPLT.
2531 Move sections which are only written during relocation handling
2532 to the beginning of RW segment. If NO_SMALL_DATA, move .got
2533 before .data. Add DATA_SEGMENT_RELRO_END directive.
2534 Include OTHER_RELRO_SECTIONS.
2535 * ldgram.y (DATA_SEGMENT_RELRO_END): Add.
2536 * ldexp.c (exp_print_token): Handle DATA_SEGMENT_RELRO_END.
2537 (fold_unary): Likewise.
2538 (fold_binary): Handle -z relro.
2539 * ldexp.h (struct exp_data_seg): Add exp_dataseg_relro_seen and
2540 exp_dataseg_relro_adjust phases. Add relro_end field.
2541 * ldmain.c (main): Initialize link_info.relro to FALSE.
2542 * ldlang.c (lang_size_sections): Handle -z relro.
2544 2004-05-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
2546 * scripttempl/avr.sc: Do not set LMA for "eeprom" section.
2548 2004-05-07 J"orn Rennecke <joern.rennecke@superh.com>
2550 * ldlang.c (print_padding_statement): Cast size_t to bfd_vma
2551 before printing it with %W.
2553 2004-05-07 Brian Ford <ford@vss.fsi.com>
2554 DJ Delorie <dj@redhat.com>
2556 * emultempl/pe.em (real_flags): New static.
2557 (OPTION_LARGE_ADDRESS_AWARE): New define.
2558 (gld${EMULATION_NAME}_add_options): Add --large-address-aware option.
2559 (gld_${EMULATION_NAME}_list_options): Likewise.
2560 (gld${EMULATION_NAME}_handle_option): Likewise.
2561 (gld_${EMULATION_NAME}_after_open): Pass real_flags to PE private data.
2562 * ld.texinfo: Document it.
2565 2004-05-07 Brian Ford <ford@vss.fsi.com>
2567 * NEWS: Mention DWARF 2 support for i386pe.
2569 2004-05-05 Alexandre Oliva <aoliva@redhat.com>
2571 * emulparams/elf32frvfd.sh (OUTPUT_FORMAT): Switch to new
2574 2004-04-30 Alan Modra <amodra@bigpond.net.au>
2576 * ldlang.c (unique_section_p): Pass section parm, return true on
2578 (output_section_callback): Adjust.
2579 * ldlang.h (unique_section_p): Update prototype.
2580 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust.
2582 2004-04-30 Eric Botcazou <ebotcazou@act-europe.fr>
2584 * ld.texinfo (--gc-sections): Remove restriction for
2587 2004-04-29 Brian Ford <ford@vss.fsi.com>
2589 * scripttempl/pe.sc: Handle .debug* and .gnu.linkonce.wi.* sections
2590 for DWARF 2/3. Update stab section's syntax.
2592 2004-04-29 Alan Modra <amodra@bigpond.net.au>
2594 * pe-dll.c: Revert changes accidentally committed 2004-03-08.
2595 (fill_edata): Correct pointer arithmetic.
2597 2004-04-21 Chris Demetriou <cgd@broadcom.com>
2599 * ld.texinfo: Remove MIPS --embedded-relocs documentation.
2600 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Remove definition.
2601 * emulparams/mipsidt.sh (TEMPLATE_NAME): Use generic.em.
2602 (EXTRA_EM_FILE): Use mipsecoff.em
2603 * emulparams/mipsidtl.sh (TEMPLATE_NAME): Use generic.em.
2604 (EXTRA_EM_FILE): Use mipsecoff.em
2605 * emultempl/mipsecoff.em: Restructure to be included as an
2606 extra emulation file.
2607 (check_sections, gld${EMULATION_NAME}_after_open)
2608 (gld${EMULATION_NAME}_after_allocation)
2609 (gld${EMULATION_NAME}_get_script)
2610 (ld_${EMULATION_NAME}_emulation): Remove
2611 (gld${EMULATION_NAME}_before_parse): Rename to...
2612 (mipsecoff_before_parse): This.
2613 (LDEMUL_BEFORE_PARSE): Define.
2614 * emultempl/mipself.em: Remove file.
2615 * scripttempl/mips.sc (.rel.sdata): Do not include in output.
2616 (__runtime_reloc_start, __runtime_reloc_stop): Stop providing
2618 * Makefile.am: Remove dependencies on emultempl/mipself.em.
2619 * Makefile.in: Regenerate.
2621 2004-04-21 Anil Paranjpe <anilp1@kpitcummins.com>
2623 * ld.texinfo (synthesizing on H8/300): Information about linker
2624 relaxation support for bit manipulation instructions and system
2625 control instructions is added.
2627 2004-04-21 Hans-Peter Nilsson <hp@axis.com>
2629 * NEWS: Mention change in DEFINED semantics.
2631 2004-04-21 Eric Botcazou <ebotcazou@act-europe.fr>
2633 * scripttempl/elf.sc (.text): Add KEEP for .text.*personality*.
2634 (.data): Add KEEP for .gnu.linkonce.d.*personality*.
2635 (.gcc_except_table): Add KEEP for self and accept .gcc_except_table.*.
2637 2004-04-21 Ben Elliston <bje@au.ibm.com>
2639 * ld.texinfo (Simple Example): Add missing punctuation.
2641 2004-04-20 Chris Demetriou <cgd@broadcom.com>
2643 * NEWS: Note that MIPS --embedded-relocs option is deprecated.
2645 2004-04-19 Jakub Jelinek <jakub@redhat.com>
2647 * ldlang.c (lang_do_assignments_1): Handle .tbss output section
2650 2004-04-18 Danny Smith <dannysmith@users.sourceforge.net>
2652 * scriptempl/pe.sc: Put numbered .ctors.* after .ctors
2653 with default priority. Likewise for dtors.
2655 2004-04-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2657 * configure.host: Remove mips*-dec-bsd* target.
2658 * configure.tgt: Likewise.
2660 2004-04-08 Richard Sandiford <rsandifo@redhat.com>
2662 * emulparams/elf32bsmip.sh (EXTRA_EM_FILE): Define to irix.
2663 * emulparams/elf64bmip.sh (EXTRA_EM_FILE): Likewise.
2664 * emulparams/elf32bmipn32.sh (EXTRA_EM_FILE): Likewise.
2665 * emultempl/irix.em: New file.
2666 * Makefile.am (eelf32bsmip.c, eelf32bmipn32.c, eelf64bmip.c): Update
2668 * Makefile.in: Regenerate.
2670 2004-04-01 Paul Brook <paul@codesourcery.com>
2672 * emultempl/armelf.em (byteswap_code): Add.
2673 (arm_elf_before_allocation): Pass extra parameter.
2674 (PARSE_AND_LIST_PROLOGUE): Add OPTION_BE8.
2675 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add be8.
2676 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_BE8.
2677 * emultempl/armelf_oabi.em: Pass extra parameter.
2678 * ld.texinfo: Document --be8.
2680 2004-03-30 Stan Shebs <shebs@apple.com>
2682 Remove long-obsolete MPW support.
2683 * mpw-config.in, mpw-make.sed, mac-ld.r: Remove files.
2684 * Makefile.am (mpw): Remove file-presynthesizing actions.
2685 * Makefile.in: Likewise.
2686 * ldfile.c (slash): Remove MPW case.
2687 * ldlex.l [MPW]: Remove unused definition.
2689 2004-03-30 Galit Heller <Galit.Heller@nsc.com>
2691 * Makefile.am (ALL_EMULATIONS): Add eelf32cr16c.o.
2692 (eelf32cr16c.c): New target.
2693 * Makefile.in: Regenerate.
2694 * configure.tgt: Handle cr16c-*-elf*.
2695 * emulparams/elf32cr16c.sh: New file.
2696 * scripttempl/elfcr16c.sc: Likewise
2697 * NEWS: Mention support for new target.
2699 2004-03-30 Nick Clifton <nickc@redhat.com>
2701 * po/sv.po: Updated Swedish translation.
2703 2004-03-27 Alan Modra <amodra@bigpond.net.au>
2705 * emultempl/elf32.em: Update new bfd_elf_discard_info name.
2706 * emultempl/hppaelf.em: Likewise.
2707 * emultempl/ppc64elf.em: Likewise.
2708 * emultempl/sh64elf.em: Likewise.
2710 2004-03-25 Alan Modra <amodra@bigpond.net.au>
2712 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Update
2713 size_dynamic_sections call.
2715 2004-03-23 Alan Modra <amodra@bigpond.net.au>
2718 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Set
2719 link_info.wrap_char.
2721 2004-03-20 H.J. Lu <hongjiu.lu@intel.com>
2723 * lexsup.c (parse_args): Don't set unresolved_syms_in_objects
2724 or unresolved_syms_in_shared_libs for -Bdynamic and -Bstatic.
2726 2004-03-20 Alexandre Oliva <aoliva@redhat.com>
2728 * emulparams/elf32frvfd.sh (MAXPAGESIZE): Change to 16Kb.
2730 2004-03-19 Alan Modra <amodra@bigpond.net.au>
2732 * config.in: Regenerate.
2733 * po/ld.pot: Regenerate.
2735 2004-03-18 Alan Modra <amodra@bigpond.net.au>
2737 * ld.texinfo: Add --as-needed doco.
2738 * ldmain.c (as_needed): New global var.
2739 * ldmain.h (as_needed): Declare.
2740 * lexsup.c (option_values): Add OPTION_AS_NEEDED and
2741 OPTION_NO_AS_NEEDED.
2742 (ld_options): Likewise.
2743 (parse_args): Handle them.
2744 * ldlang.h (lang_input_statement_type): Add as_needed field.
2745 * ldlang.c (new_afile): Set p->as_needed.
2746 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): New function.
2747 (gld${EMULATION_NAME}_try_needed): Use bfd_elf_set_dyn_lib_class.
2748 (ld_${EMULATION_NAME}_emulation): Set LDEMUL_RECOGNIZED_FILE entry.
2750 * ldlang.c (open_input_bfds): Remove useless cast.
2751 (lang_do_assignments_1): Likewise.
2752 (lang_for_each_input_section): Delete.
2754 2004-03-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
2756 * configure.tgt: Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff*.
2758 2004-03-08 Danny Smith <dannysmith@users.sourceforge.net>
2760 * pe-dll.c (pe_dll_generate_implib): Skip sections marked as
2761 private when building implib.
2763 2004-03-05 Nathan Sidwell <nathan@codesourcery.com>
2765 * ldlang.c (lang_add_section): Don't force SEC_LOAD on
2767 (IGNORE_SECTION): Ignore .tbss sections too.
2768 (lang_size_sections_1): .tbss sections do not advance dot.
2770 2004-03-01 Andreas Schwab <schwab@suse.de>
2772 * ld.texinfo (Options): Fix example for --wrap.
2774 2004-02-25 Danny Smith <dannysmith@users.sourceforge.net>
2776 * pe-dll.c (fill_edata): Check that exported_symbol_sections is
2779 2004-02-23 Ian Lance Taylor <ian@wasabisystems.com>
2781 * ldlang.c (lang_check): Use %P, not %E, in error message.
2783 2004-02-23 Nathan Sidwell <nathan@codesourcery.com>
2785 * ldlang.h (struct lang_output_section_state): Change processed
2787 * ldexp.c (check, invalid): Remove.
2788 (fold_name): Move valid_p assignments. Create undefined symbol
2789 when needed. Directly exampine section's processd flag.
2790 * ldlang.c (lang_output_section_statement_lookup): Adjust
2791 processed field init.
2792 (lang_size_sections_1): Allow LOADADDR when determining section's
2793 VMA. Adjust error message. Fold data statement's expr.
2794 (lang_size_sections): Correctly increment lang_statement_iteration.
2796 2004-02-23 Alan Modra <amodra@bigpond.net.au>
2798 * ldexp.c (fold_tree): Follow indirect symbols.
2800 2004-02-20 Nathan Sidwell <nathan@codesourcery.com>
2802 * ldgram.y (exp): Add two operand ALIGN.
2803 * ldexp.c (fold_binary): Add ALIGN_K case.
2804 * ld.texinfo (ALIGN): Document two operand version.
2806 2004-02-19 Nathan Sidwell <nathan@codesourcery.com>
2808 * ldlang.c (map_input_to_output_sections): Initialize sections
2809 mentioned in a data statement expression.
2810 (lang_do_assignments_1): Add data statement's expression's
2813 2004-02-18 Nathan Sidwell <nathan@codesourcery.com>
2815 * ldgram.y (statement_anywhere): Add assert rule.
2816 * ldlang.c (exp_init_os): Add assert case.
2818 2004-02-14 Andrew Cagney <cagney@redhat.com>
2820 * ldmain.c (remove_output): Call bfd_cache_close.
2822 2004-02-14 Richard Sandiford <rsandifo@redhat.com>
2824 * emulparams/elf32bmipn32-defs.sh (OTHER_SECTIONS): Discard
2825 .MIPS.content* and .MIPS.events* sections.
2827 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
2829 * emulparams/armelf.sh, emulparams/armelf_linux.sh: Move
2830 .note.gnu.arm.ident to after allocated sections. Mark its
2833 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
2835 * emulparams/armelf_linux.sh (COMMONPAGESIZE): Set to 4KB.
2836 * emulparams/elf32bmip.sh (COMMONPAGESIZE): Likewise.
2837 * emulparams/elf32bmipn32.sh (COMMONPAGESIZE): Likewise.
2838 * emulparams/elf32btsmipn32.sh (COMMONPAGESIZE): Likewise.
2839 * emulparams/shlelf_linux.sh (COMMONPAGESIZE): Likewise.
2841 2004-02-05 Nick Clifton <nickc@redhat.com>
2843 * emultempl/pe.em (_after_open): Fix typo in previous delta.
2845 2004-02-04 Danny Smith <dannysmith@users.sourceforge.net>
2847 * emultempl/pe.em (_after_open): Fix thinko in 2003-12-18 patch.
2849 2004-01-28 Alan Modra <amodra@bigpond.net.au>
2851 * genscripts.sh: Fix typo.
2853 * genscripts.sh: Apply $LIBPATH_SUFFIX to $tool_lib and $libdir too.
2855 2004-01-24 Jakub Jelinek <jakub@redhat.com>
2857 * emulparams/elf64_ia64.sh: Put .rela.opd into
2858 OTHER_GOT_RELOC_SECTIONS instead of OTHER_PLT_RELOC_SECTIONS.
2860 2004-01-20 Danny Smith <dannysmith@users.sourceforge.net>
2862 * pe-dll.c (pe_create_import_fixup): Clear WP_TEXT flag.
2863 * ld.texinfo (--omagic): Note that writable text section
2864 does not conform to published PE-COFF specs.
2865 (--enable-auto-import): Likewise.
2867 2004-01-15 Alan Modra <amodra@bigpond.net.au>
2869 * emulparams/elf32ppc.sh (COMMONPAGESIZE): Define.
2871 2004-01-13 Nick Clifton <nickc@redhat.com>
2873 * ldlang.c (lang_get_regions): Add extra parameter 'have_vma'
2874 which if true will prevent the LMA region being used as a
2875 replacement for a default VMA region.
2876 (lang_leave_output_section_statement): Pass extra parameter.
2877 (lang_leave_overlay): Likewise.
2878 * ld.texinfo (Output Section LMA): Document that the LMA
2879 region can be set to the VMA region if no VMA has been set.
2880 * ldlang.h (struct lang_output_section_phdr_list): Create a
2881 typedef for this type. Minor formatting fixes.
2883 2004-01-13 Nick Clifton <nickc@redhat.com>
2885 * ldlang.c (lang_size_sections_1): If dot is advanced, then
2886 assume that the section should be allocated.
2888 2004-01-13 Alan Modra <amodra@bigpond.net.au>
2890 * ldlang.c (IGNORE_SECTION): Don't ignore SEC_ALLOC && !SEC_LOAD
2891 sections. Do ignore SEC_NEVER_LOAD sections.
2892 (lang_size_sections_1): Remove test made redundant with the above.
2894 2004-01-09 Alan Modra <amodra@bigpond.net.au>
2896 * emultempl/ppc64elf.em (ppc_before_allocation): Clear cached
2897 program_header_size.
2899 2004-01-06 Alexandre Oliva <aoliva@redhat.com>
2901 2003-11-28 Alexandre Oliva <aoliva@redhat.com>
2902 * emulparams/elf32frvfd.sh (EMBEDDED): Clear.
2903 2003-11-05 Alexandre Oliva <aoliva@redhat.com>
2904 * emulparams/elf32frvfd.sh (STACK_ADDR): Unset.
2905 (MAXPAGESIZE): Set to 64Kb.
2906 (OTHER_READONLY_SECTIONS): Define __ROFIXUP_LIST__ and
2907 __ROFIXUP_END__. Don't map .rofixup.got any more.
2908 * emulparams/elf32frv.sh (NOP): Set.
2909 2003-10-31 Alexandre Oliva <aoliva@redhat.com>
2910 * configure.tgt: Add frv-*-*linux*.
2911 2003-09-30 Alexandre Oliva <aoliva@redhat.com>
2912 * Makefile.am (ALL_EMULATIONS): Added eelf32frvfd.o.
2913 (eelf32frvfd.c): New.
2914 * configure.tgt <frv-*-*>: Added it to targ_extra_emuls.
2915 * emulparams/elf32frv.sh: Reverted previous two patches.
2916 * emulparams/elf32frvfd.sh: New.
2917 * Makefile.in: Rebuilt.
2918 2003-09-18 Alexandre Oliva <aoliva@redhat.com>
2919 * emulparams/elf32frv.sh (OTHER_READONLY_SECTIONS): Added
2920 .rofixup.got to .rofixup.
2921 2003-09-15 Alexandre Oliva <aoliva@redhat.com>
2922 * emulparams/elf32frv.sh (MAXPAGESIZE): Make it 256KiB, not 256B.
2923 (TEMPLATE_NAME, GENERATE_SHLIB_SCRIPT): Set.
2925 2004-01-05 Jakub Jelinek <jakub@redhat.com>
2927 * emulparams/elf_s390.sh (NO_SMALL_DATA): Set to yes.
2928 * emulparams/elf64_s390.sh (NO_SMALL_DATA): Set to yes.
2930 2004-01-03 Alan Modra <amodra@bigpond.net.au>
2932 * ldexp.c (align_n): Make static.
2933 * ldexp.h (align_n): Delete declaration.
2934 * ldlang.h (lang_enter_output_section_statement): Remove
2936 * ldlang.c (lang_enter_output_section_statement): Likewise.
2937 (TO_ADDR, TO_SIZE): Define.
2938 (opb_shift): New var.
2939 (init_opb): New function.
2940 (print_input_section): Call init_opb and use TO_ADDR.
2941 (print_data_statement, print_reloc_statement): Likewise.
2942 (print_padding_statement): Likewise.
2943 (size_input_section): Use TO_SIZE and TO_ADDR, and global opb_shift.
2944 (lang_check_section_addresses): Likewise.
2945 (lang_size_sections_1): Likewise.
2946 (lang_do_assignments_1): Likewise.
2947 (lang_set_startof): Likewise.
2948 (lang_one_common): Likewise. Combine power_of_two and opb_shift align.
2949 (lang_process): Call init_opb.
2950 (lang_abs_symbol_at_end_of): Use TO_ADDR and global opb_shift.
2951 (lang_enter_overlay_section): Adjust
2952 lang_enter_output_section_statement call.
2953 * ldgram.y: Likewise.
2954 * mri.c (mri_draw_tree): Likewise.
2955 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Likewise.
2956 * emultempl/mmo.em (mmo_place_orphan): Likewise.
2957 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Likewise.
2959 * ldfile.c (ldfile_set_output_arch): Add defarch param.
2960 * ldfile.h (ldfile_set_output_arch): Ditto.
2961 * emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Use
2962 ldfile_set_output_arch.
2963 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Ditto.
2964 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Ditto.
2965 * emultempl/linux.em (gld${EMULATION_NAME}_before_parse): Ditto.
2966 * emultempl/mipsecoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
2967 * emultempl/pe.em (gld${EMULATION_NAME}_before_parse): Ditto.
2968 * emultempl/sunos.em (gld${EMULATION_NAME}_before_parse): Ditto.
2969 * ldgram.y: Adjust ldfile_set_output_arch call.
2970 * emultempl/armcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
2971 * emultempl/armelf.em (gld${EMULATION_NAME}_before_parse): Ditto.
2972 * emultempl/armelf_oabi.em (gld${EMULATION_NAME}_before_parse): Ditto.
2973 * emultempl/generic.em (gld${EMULATION_NAME}_before_parse): Ditto.
2974 * emultempl/gld960c.em (gld960_set_output_arch): Ditto.
2975 * emultempl/m68kcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
2976 * emultempl/ticoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
2978 2004-01-02 Bernardo Innocenti <bernie@develer.com>
2980 * configure.tgt: Add m68k-uClinux target.
2982 For older changes see ChangeLog-0203
2988 version-control: never