Revert commit aab921adcb656e4eefcc7d0f14241f3d7504400e
[deliverable/binutils-gdb.git] / bfd / elf64-x86-64.c
index 775c911307503e9d7e68b2c69ff8cb7496e02be3..84d63f404e198aebafb500eb78e8888fafdd9dda 100644 (file)
@@ -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)
This page took 0.023711 seconds and 4 git commands to generate.