* elf32-ppc.c (ppc_elf_relax_section): Ignore non-code sections.
[deliverable/binutils-gdb.git] / bfd / elf32-ppc.c
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.045398 seconds and 4 git commands to generate.