aboutsummaryrefslogtreecommitdiff
path: root/bfd/bfd-in2.h
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2002-06-04 01:05:21 +0000
committerAlan Modra <amodra@gmail.com>2002-06-04 01:05:21 +0000
commitb885599bed26fea1bd7f732b4152f92bf425bf85 (patch)
tree618dd9e670c3220c4b87b56db3241d85d0c0329f /bfd/bfd-in2.h
parent90937f86aae6f5741008ccb551ac7cb3aad86ba3 (diff)
downloadgdb-b885599bed26fea1bd7f732b4152f92bf425bf85.zip
gdb-b885599bed26fea1bd7f732b4152f92bf425bf85.tar.gz
gdb-b885599bed26fea1bd7f732b4152f92bf425bf85.tar.bz2
* 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.
Diffstat (limited to 'bfd/bfd-in2.h')
-rw-r--r--bfd/bfd-in2.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h
index f11ba2a..afaefef 100644
--- a/bfd/bfd-in2.h
+++ b/bfd/bfd-in2.h
@@ -663,6 +663,8 @@ extern boolean bfd_elf32_discard_info
PARAMS ((bfd *, struct bfd_link_info *));
extern boolean bfd_elf64_discard_info
PARAMS ((bfd *, struct bfd_link_info *));
+extern void bfd_elf_discard_group
+ PARAMS ((bfd *, struct sec *));
/* Return an upper bound on the number of bytes required to store a
copy of ABFD's program header table entries. Return -1 if an error
@@ -1450,6 +1452,9 @@ bfd_copy_private_section_data PARAMS ((bfd *ibfd, asection *isec,
void
_bfd_strip_section_from_output PARAMS ((struct bfd_link_info *info, asection *section));
+void
+bfd_discard_group PARAMS ((bfd *abfd, asection *group));
+
enum bfd_architecture
{
bfd_arch_unknown, /* File arch not known. */