]> Git Repo - binutils.git/commitdiff
* section.c (_bfd_strip_section_from_output): Don't count
authorJakub Jelinek <[email protected]>
Thu, 18 Oct 2001 08:22:44 +0000 (08:22 +0000)
committerJakub Jelinek <[email protected]>
Thu, 18 Oct 2001 08:22:44 +0000 (08:22 +0000)
SEC_EXCLUDE sections as references.  Set SEC_EXCLUDE.

bfd/ChangeLog
bfd/section.c

index 3356f8a79e7ad0d7d2f7b3acdb3b3e106855d1ef..8d0b2207ea550a3a2dc55d67065de71bb606b313 100644 (file)
@@ -1,3 +1,8 @@
+2001-10-18  Jakub Jelinek  <[email protected]>
+
+       * section.c (_bfd_strip_section_from_output): Don't count
+       SEC_EXCLUDE sections as references.  Set SEC_EXCLUDE.
+
 2001-10-17  Alan Modra  <[email protected]>
 
        * elf-m10200.c (mn10200_elf_relax_section): Cast assignment to
index b2a366a12b048778a79acd2000e7d734511d455f..53491f13551cd74de0debdf1409b30da2033ab43 100644 (file)
@@ -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;
 }
This page took 0.043665 seconds and 4 git commands to generate.