aboutsummaryrefslogtreecommitdiff
path: root/bfd/section.c
diff options
context:
space:
mode:
authorRichard Sandiford <rdsandiford@googlemail.com>2002-06-10 16:10:43 +0000
committerRichard Sandiford <rdsandiford@googlemail.com>2002-06-10 16:10:43 +0000
commit0ebaf18527d124cb0cde59192c5fd7c352b22cd4 (patch)
treecfbbf7f86e191d2d923f592c2512322f661e3f63 /bfd/section.c
parentebe3e2d199ce2c10fd27188855194170edd098cf (diff)
downloadgdb-0ebaf18527d124cb0cde59192c5fd7c352b22cd4.zip
gdb-0ebaf18527d124cb0cde59192c5fd7c352b22cd4.tar.gz
gdb-0ebaf18527d124cb0cde59192c5fd7c352b22cd4.tar.bz2
* section.c (_bfd_strip_section_from_output): Set SEC_EXCLUDE
for removed output sections.
Diffstat (limited to 'bfd/section.c')
-rw-r--r--bfd/section.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/bfd/section.c b/bfd/section.c
index 96130b9..8bb85c8 100644
--- a/bfd/section.c
+++ b/bfd/section.c
@@ -1368,6 +1368,7 @@ _bfd_strip_section_from_output (info, s)
if (*spp == os)
{
bfd_section_list_remove (os->owner, spp);
+ os->flags |= SEC_EXCLUDE;
os->owner->section_count--;
break;
}