From d7ab4911f8aa3e1cd06ece40f74d0b4a532d6a10 Mon Sep 17 00:00:00 2001 From: Andreas Krebbel Date: Mon, 8 May 2017 19:10:42 +0200 Subject: S/390: Fix ifunc missing runtime reloc This fixes a problem with a missing R_390_64 reloc against .data for a function pointer to an ifunc function. No regressions on s390x. Pushed to mainline. bfd/ChangeLog: 2017-05-08 Andreas Krebbel * elf-s390-common.c: Don't check non_got_ref flag. * elf32-s390.c (elf_s390_relocate_section): Likewise. * elf64-s390.c (elf_s390_relocate_section): Likewise. --- bfd/elf32-s390.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bfd/elf32-s390.c') diff --git a/bfd/elf32-s390.c b/bfd/elf32-s390.c index ddb6f5b255e..8a09a319abc 100644 --- a/bfd/elf32-s390.c +++ b/bfd/elf32-s390.c @@ -2774,7 +2774,7 @@ elf_s390_relocate_section (bfd *output_bfd, && s390_is_ifunc_symbol_p (h) && h->def_regular) { - if (!bfd_link_pic (info) || !h->non_got_ref) + if (!bfd_link_pic (info)) { /* For a non-shared object STT_GNU_IFUNC symbol must go through PLT. */ -- cgit v1.2.3-65-gdbad