bfd/
commitce659574b6d95399c357af464d6d7a903ff57f4e
authorAlan Modra <amodra@bigpond.net.au>
Tue, 25 May 2004 06:33:51 +0000 (25 06:33 +0000)
committerAlan Modra <amodra@bigpond.net.au>
Tue, 25 May 2004 06:33:51 +0000 (25 06:33 +0000)
tree4eee819c4a6407afce99cbc8048c08a2305a59ca
parent0932cd56ec34c8b10d92731b64f9fe4f78e8d7cd
bfd/
* elflink.c (elf_link_add_object_symbols): Don't set up merge
section data here..
* elf.c (_bfd_elf_merge_sections): .. Do it here instead.
* merge.c: Formatting.  Remove unnecessary casts.  Expand
bfd_get_section_alignment macro.
(struct sec_merge_sec_info): Rename "first" to "first_str".  Update
use throughout file.
(_bfd_add_merge_section): Rename from _bfd_merge_section.  Update
comment.  Abort on dynamic or non-SEC_MERGE input.  Don't test
section name to determine sinfo group, instead test output section
and alignment.
(_bfd_merge_sections): Add struct bfd_link_info param.  Call
_bfd_strip_section_from_output rather than just twiddling flags.
* libbfd-in.h (_bfd_add_merge_section): Rename, update comment.
(_bfd_merge_sections): Update prototype.
* libbfd.h: Regenerate.
ld/
* ldlang.c (lang_process): Call bfd_merge_sections later, and
only when not a relocatable link.
(print_input_section): Handle SEC_EXCLUDE sections.
(size_input_section): Don't update dot on SEC_EXCLUDE sections.
(lang_do_assignments_1): Likewise.
* ldwrite.c (build_link_order): Ignore SEC_EXCLUDE input sections.
* emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Likewise.
* emultempl/hppaelf.em (build_section_lists): Likewise.
* emultempl/ppc64elf.em (build_toc_list): Likewise.
(build_section_lists): Likewise.
12 files changed:
bfd/ChangeLog
bfd/elf.c
bfd/elflink.c
bfd/libbfd-in.h
bfd/libbfd.h
bfd/merge.c
ld/ChangeLog
ld/emultempl/armelf.em
ld/emultempl/hppaelf.em
ld/emultempl/ppc64elf.em
ld/ldlang.c
ld/ldwrite.c