diff options
author | Alan Modra <amodra@gmail.com> | 2009-08-10 07:24:33 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2009-08-10 07:24:33 +0000 |
commit | a8ad78a74eb4e3bf77cf6174e5c10a3c30212b3a (patch) | |
tree | 5d85c217b9d37809f4e8152f0d8128b6758fe8ac /bfd/elf32-ppc.c | |
parent | 91e21fb75f551371192d1138db38b0ee73d59b71 (diff) | |
download | ppe42-binutils-a8ad78a74eb4e3bf77cf6174e5c10a3c30212b3a.tar.gz ppe42-binutils-a8ad78a74eb4e3bf77cf6174e5c10a3c30212b3a.zip |
* elf32-ppc.c (ppc_elf_relax_section): Ignore non-code sections.
Diffstat (limited to 'bfd/elf32-ppc.c')
-rw-r--r-- | bfd/elf32-ppc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bfd/elf32-ppc.c b/bfd/elf32-ppc.c index 542928d4d4..292503945c 100644 --- a/bfd/elf32-ppc.c +++ b/bfd/elf32-ppc.c @@ -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; |