diff options
Diffstat (limited to 'bfd/elf32-i386.c')
-rw-r--r-- | bfd/elf32-i386.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/bfd/elf32-i386.c b/bfd/elf32-i386.c index ae23752..1009c17 100644 --- a/bfd/elf32-i386.c +++ b/bfd/elf32-i386.c @@ -2273,9 +2273,8 @@ do_relocation: /* We may need a .plt entry if the symbol is a function defined in a shared lib or is a STT_GNU_IFUNC function referenced from the code or read-only section. */ - if ((h->type == STT_FUNC || h->type == STT_GNU_IFUNC) - && (!h->def_regular - || (sec->flags & (SEC_CODE | SEC_READONLY)) != 0)) + if (!h->def_regular + || (sec->flags & (SEC_CODE | SEC_READONLY)) != 0) h->plt.refcount += 1; if (r_type == R_386_PC32) |