summaryrefslogtreecommitdiffstats
path: root/binutils-2.22/bfd/elf64-ppc.c
diff options
context:
space:
mode:
Diffstat (limited to 'binutils-2.22/bfd/elf64-ppc.c')
-rw-r--r--binutils-2.22/bfd/elf64-ppc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/binutils-2.22/bfd/elf64-ppc.c b/binutils-2.22/bfd/elf64-ppc.c
index 93d1314..351ebc1 100644
--- a/binutils-2.22/bfd/elf64-ppc.c
+++ b/binutils-2.22/bfd/elf64-ppc.c
@@ -13502,7 +13502,9 @@ ppc64_elf_relocate_section (bfd *output_bfd,
not process them. */
if (unresolved_reloc
&& !((input_section->flags & SEC_DEBUGGING) != 0
- && h->elf.def_dynamic))
+ && h->elf.def_dynamic)
+ && _bfd_elf_section_offset (output_bfd, info, input_section,
+ rel->r_offset) != (bfd_vma) -1)
{
info->callbacks->einfo
(_("%P: %H: unresolvable %s relocation against symbol `%s'\n"),