diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2017-08-24 03:33:42 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2017-08-24 03:35:44 -0700 |
commit | 34bb2571d40e1ca323a1b60e0827a25047890faa (patch) | |
tree | fb4bb4085a4118b424727b13e0cd5376aabed770 /bfd/elf64-x86-64.c | |
parent | f1902523c9b7941775a2c64af89de0f111b8924c (diff) | |
download | binutils-gdb-34bb2571d40e1ca323a1b60e0827a25047890faa.tar.gz |
Revert commit aab921adcb656e4eefcc7d0f14241f3d7504400e
* elf32-i386.c (elf_i386_check_relocs): Revert the last change.
Undefined symbols may not have a type.
* elf64-x86-64.c (elf_x86_64_check_relocs): Likewise.
Diffstat (limited to 'bfd/elf64-x86-64.c')
-rw-r--r-- | bfd/elf64-x86-64.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/bfd/elf64-x86-64.c b/bfd/elf64-x86-64.c index 775c9113075..84d63f404e1 100644 --- a/bfd/elf64-x86-64.c +++ b/bfd/elf64-x86-64.c @@ -2726,9 +2726,8 @@ pointer: /* 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_X86_64_PC32) |