* elf64-ppc.c (ppc64_elf_size_stubs): Ignore non-code sections.
authorAlan Modra <amodra@gmail.com>
Thu, 17 Aug 2006 08:09:52 +0000 (08:09 +0000)
committerAlan Modra <amodra@gmail.com>
Thu, 17 Aug 2006 08:09:52 +0000 (08:09 +0000)
bfd/ChangeLog
bfd/elf64-ppc.c

index 283ae24eb077efc1a950d1cb6a274bdd1e50a303..ca26d6024c62112fda0c12bef072a9ef567a1c65 100644 (file)
@@ -1,3 +1,7 @@
+2006-08-17  Alan Modra  <amodra@bigpond.net.au>
+
+       * elf64-ppc.c (ppc64_elf_size_stubs): Ignore non-code sections.
+
 2006-08-16  H.J. Lu  <hongjiu.lu@intel.com>
 
        PR ld/3015
index 525a72f831adc10285e4c80f9203bc9a81d30c67..67e271365905ce6df2712ac9b9ea75ea7f1ce5ee 100644 (file)
@@ -9080,6 +9080,9 @@ ppc64_elf_size_stubs (bfd *output_bfd,
              /* If there aren't any relocs, then there's nothing more
                 to do.  */
              if ((section->flags & SEC_RELOC) == 0
+                 || (section->flags & SEC_ALLOC) == 0
+                 || (section->flags & SEC_LOAD) == 0
+                 || (section->flags & SEC_CODE) == 0
                  || section->reloc_count == 0)
                continue;