summaryrefslogtreecommitdiff
path: root/bfd/elf64-ppc.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2003-11-18 04:14:15 +0000
committerAlan Modra <amodra@bigpond.net.au>2003-11-18 04:14:15 +0000
commitb499d8fc964f06caeabe05780d7cdb883ebddc00 (patch)
tree60aeb25429b9f85f7bb5ca03de982c7d55336b90 /bfd/elf64-ppc.c
parent0abc32d162ae861c5d1432f8302914a3c0a8c535 (diff)
downloadbinutils-redhat-b499d8fc964f06caeabe05780d7cdb883ebddc00.tar.gz
* elf64-ppc.c (toc_adjusting_stub_needed): Exit early if section
size is zero.
Diffstat (limited to 'bfd/elf64-ppc.c')
-rw-r--r--bfd/elf64-ppc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/bfd/elf64-ppc.c b/bfd/elf64-ppc.c
index 4554c2c607..96e1d230fc 100644
--- a/bfd/elf64-ppc.c
+++ b/bfd/elf64-ppc.c
@@ -6566,6 +6566,9 @@ toc_adjusting_stub_needed (struct bfd_link_info *info, asection *isec)
if ((isec->flags & SEC_LINKER_CREATED) != 0)
return 0;
+ if (isec->_raw_size == 0)
+ return 0;
+
/* Hack for linux kernel. .fixup contains branches, but only back to
the function that hit an exception. */
branch_ok = strcmp (isec->name, ".fixup") == 0;