aboutsummaryrefslogtreecommitdiff
path: root/bfd/section.c
diff options
context:
space:
mode:
Diffstat (limited to 'bfd/section.c')
-rw-r--r--bfd/section.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/bfd/section.c b/bfd/section.c
index 358f5c4..70c7f27 100644
--- a/bfd/section.c
+++ b/bfd/section.c
@@ -1375,3 +1375,24 @@ _bfd_strip_section_from_output (info, s)
s->flags |= SEC_EXCLUDE;
}
+
+/*
+FUNCTION
+ bfd_discard_group
+
+SYNOPSIS
+ void bfd_discard_group (bfd *abfd, asection *group);
+
+DESCRIPTION
+ Remove all members of @var{group} from the output.
+*/
+
+void
+bfd_discard_group (abfd, group)
+ bfd *abfd;
+ asection *group;
+{
+ if ((group->flags & SEC_GROUP) != 0
+ && abfd->xvec->flavour == bfd_target_elf_flavour)
+ bfd_elf_discard_group (abfd, group);
+}