From 91c5c0e521e991551a73e53a1f19767d8585e3fd Mon Sep 17 00:00:00 2001 From: amodra Date: Thu, 17 Aug 2006 08:09:52 +0000 Subject: [PATCH] * elf64-ppc.c (ppc64_elf_size_stubs): Ignore non-code sections. --- bfd/ChangeLog | 4 ++++ bfd/elf64-ppc.c | 3 +++ 2 files changed, 7 insertions(+) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 283ae24eb0..ca26d6024c 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,7 @@ +2006-08-17 Alan Modra + + * elf64-ppc.c (ppc64_elf_size_stubs): Ignore non-code sections. + 2006-08-16 H.J. Lu PR ld/3015 diff --git a/bfd/elf64-ppc.c b/bfd/elf64-ppc.c index 525a72f831..67e2713659 100644 --- a/bfd/elf64-ppc.c +++ b/bfd/elf64-ppc.c @@ -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; -- 2.11.0