* section.c (_bfd_strip_section_from_output): Set SEC_EXCLUDE
authorRichard Sandiford <rdsandiford@googlemail.com>
Mon, 10 Jun 2002 16:10:43 +0000 (16:10 +0000)
committerRichard Sandiford <rdsandiford@googlemail.com>
Mon, 10 Jun 2002 16:10:43 +0000 (16:10 +0000)
for removed output sections.

bfd/ChangeLog
bfd/section.c

index 1dfc78df4dda322336ce91a65e7b4be1d3d4aadc..fd439709c0ff1fe67e3705e1d3f81fbe422edac9 100644 (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
 2002-06-10  Geoffrey Keating  <geoffk@redhat.com>
 
        * merge.c (merge_strings): Use htab_create_alloc with calloc, not
index 96130b9d3fb2a3e6d2e5b130ad8da75b0f51ec26..8bb85c890f319a18f49ef1ebe69bc87df9f3deeb 100644 (file)
@@ -1368,6 +1368,7 @@ _bfd_strip_section_from_output (info, s)
        if (*spp == os)
          {
            bfd_section_list_remove (os->owner, spp);
        if (*spp == os)
          {
            bfd_section_list_remove (os->owner, spp);
+           os->flags |= SEC_EXCLUDE;
            os->owner->section_count--;
            break;
          }
            os->owner->section_count--;
            break;
          }
This page took 0.031048 seconds and 4 git commands to generate.