* elf.c (setup_group): Set SEC_LINK_ONCE on GRP_COMDAT groups.
authorAlan Modra <amodra@gmail.com>
Tue, 4 Jun 2002 01:05:21 +0000 (01:05 +0000)
committerAlan Modra <amodra@gmail.com>
Tue, 4 Jun 2002 01:05:21 +0000 (01:05 +0000)
commitb885599bed26fea1bd7f732b4152f92bf425bf85
tree618dd9e670c3220c4b87b56db3241d85d0c0329f
parent90937f86aae6f5741008ccb551ac7cb3aad86ba3
* elf.c (setup_group): Set SEC_LINK_ONCE on GRP_COMDAT groups.
(bfd_section_from_shdr): Likewise.  Set section name of group
sections from signature.
(group_signature): Split out from setup_group.  Ensure symbol table
is available.
(bfd_elf_discard_group): New function.
(_bfd_elf_make_section_from_shdr): Don't set SEC_LINK_ONCE on
.gnu.linkonce* sections if they are members of a group.
(set_group_contents): Set GRP_COMDAT flag.
* section.c (bfd_discard_group): New function.
* bfd-in.h (bfd_elf_discard_group): Declare.
* bfd-in2.h: Regenerate.
* elf-bfd.h (struct bfd_elf_section_data): Add linkonce_p field.
(elf_linkonce_p): Define.
bfd/ChangeLog
bfd/bfd-in.h
bfd/bfd-in2.h
bfd/elf-bfd.h
bfd/elf.c
bfd/section.c