diff options
author | Alan Modra <amodra@gmail.com> | 2006-08-17 08:09:52 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2006-08-17 08:09:52 +0000 |
commit | 12c0f75707abf38f6a856cf030d4172e0cdeadfb (patch) | |
tree | 5384fd1d8d1a1f4d971b0101dcde096ca9c08f7c /bfd/elf64-ppc.c | |
parent | c9df6640d5082e4605fb1205bd2b40653a642d8b (diff) | |
download | gdb-12c0f75707abf38f6a856cf030d4172e0cdeadfb.zip gdb-12c0f75707abf38f6a856cf030d4172e0cdeadfb.tar.gz gdb-12c0f75707abf38f6a856cf030d4172e0cdeadfb.tar.bz2 |
* elf64-ppc.c (ppc64_elf_size_stubs): Ignore non-code sections.
Diffstat (limited to 'bfd/elf64-ppc.c')
-rw-r--r-- | bfd/elf64-ppc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bfd/elf64-ppc.c b/bfd/elf64-ppc.c index 525a72f..67e2713 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; |