summaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorRichard Sandiford <rsandifo@nildram.co.uk>2002-06-10 16:10:43 +0000
committerRichard Sandiford <rsandifo@nildram.co.uk>2002-06-10 16:10:43 +0000
commitb58ccb963b8c8241913ebc61aedf5cd033a35c6e (patch)
treea7bac6e9b639bb1373032de682af2b3c627c7138 /bfd
parent2b489525f11b3561bd209ff025e12c59e9b994d2 (diff)
downloadgdb-b58ccb963b8c8241913ebc61aedf5cd033a35c6e.tar.gz
* section.c (_bfd_strip_section_from_output): Set SEC_EXCLUDE
for removed output sections.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/section.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 1dfc78df4dd..fd439709c0f 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+2002-06-10 Richard Sandiford <rsandifo@redhat.com>
+
+ * section.c (_bfd_strip_section_from_output): Set SEC_EXCLUDE
+ for removed output sections.
+
2002-06-10 Geoffrey Keating <geoffk@redhat.com>
* merge.c (merge_strings): Use htab_create_alloc with calloc, not
diff --git a/bfd/section.c b/bfd/section.c
index 96130b9d3fb..8bb85c890f3 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;
}