* elf32-ppc.c (ppc_elf_relax_section): Ignore non-code sections.
authorAlan Modra <amodra@gmail.com>
Mon, 10 Aug 2009 07:24:33 +0000 (07:24 +0000)
committerAlan Modra <amodra@gmail.com>
Mon, 10 Aug 2009 07:24:33 +0000 (07:24 +0000)
bfd/ChangeLog
bfd/elf32-ppc.c

index 8d103cd945878b108d9644a713d1eb73744d73fe..cc9850c4af7c075e662e1ebd2323c23169252dfc 100644 (file)
@@ -1,3 +1,7 @@
+2009-08-10  Alan Modra  <amodra@bigpond.net.au>
+
+       * elf32-ppc.c (ppc_elf_relax_section): Ignore non-code sections.
+
 2009-08-10  Alan Modra  <amodra@bigpond.net.au>
 
        * elflink.c (_bfd_elf_adjust_dynamic_symbol): Don't clear plt
index 542928d4d4254862c2c0caac443a35f4b0371a2a..292503945c07338ea54091744e49cec13fa9fa65 100644 (file)
@@ -5905,8 +5905,9 @@ ppc_elf_relax_section (bfd *abfd,
   *again = FALSE;
 
   /* Nothing to do if there are no relocations, and no need to do
-     anything with non-alloc sections.  */
+     anything with non-alloc or non-code sections.  */
   if ((isec->flags & SEC_ALLOC) == 0
+      || (isec->flags & SEC_CODE) == 0
       || (isec->flags & SEC_RELOC) == 0
       || isec->reloc_count == 0)
     return TRUE;
This page took 0.030472 seconds and 4 git commands to generate.