diff options
Diffstat (limited to 'bfd/elf64-ppc.c')
-rw-r--r-- | bfd/elf64-ppc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bfd/elf64-ppc.c b/bfd/elf64-ppc.c index 545fae83503..31ad3d0e305 100644 --- a/bfd/elf64-ppc.c +++ b/bfd/elf64-ppc.c @@ -6461,8 +6461,9 @@ ppc64_elf_edit_opd (bfd *obfd, struct bfd_link_info *info, if (skip) { - if (!dec_dynrel_count (rel->r_info, sec, info, - NULL, h, sym_sec)) + if (!info->relocatable + && !dec_dynrel_count (rel->r_info, sec, info, + NULL, h, sym_sec)) goto error_ret; } else |