* section.c (_bfd_strip_section_from_output): Set SEC_EXCLUDE

for removed output sections.
This commit is contained in:
Richard Sandiford 2002-06-10 16:10:43 +00:00
parent ebe3e2d199
commit 0ebaf18527
2 changed files with 6 additions and 0 deletions

View File

@ -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

View File

@ -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;
}