aboutsummaryrefslogtreecommitdiff
path: root/bfd/section.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2001-10-18 08:22:44 +0000
committerJakub Jelinek <jakub@redhat.com>2001-10-18 08:22:44 +0000
commit25263aad5c7e9ce7fc742771b276463a0375b481 (patch)
tree71210ba921adcaccad6c529a21883a6f90072bed /bfd/section.c
parent4bb5d5671324488702adb4dd637cc5cf1cb12af9 (diff)
downloadgdb-25263aad5c7e9ce7fc742771b276463a0375b481.zip
gdb-25263aad5c7e9ce7fc742771b276463a0375b481.tar.gz
gdb-25263aad5c7e9ce7fc742771b276463a0375b481.tar.bz2
* section.c (_bfd_strip_section_from_output): Don't count
SEC_EXCLUDE sections as references. Set SEC_EXCLUDE.
Diffstat (limited to 'bfd/section.c')
-rw-r--r--bfd/section.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/bfd/section.c b/bfd/section.c
index b2a366a..53491f1 100644
--- a/bfd/section.c
+++ b/bfd/section.c
@@ -1250,7 +1250,8 @@ _bfd_strip_section_from_output (info, s)
asection *is;
for (is = abfd->sections; is != NULL; is = is->next)
{
- if (is != s && is->output_section == os)
+ if (is != s && is->output_section == os
+ && (is->flags & SEC_EXCLUDE) == 0)
break;
}
if (is != NULL)
@@ -1273,4 +1274,6 @@ _bfd_strip_section_from_output (info, s)
break;
}
}
+
+ s->flags |= SEC_EXCLUDE;
}