Revert commit aab921adcb656e4eefcc7d0f14241f3d7504400e
[deliverable/binutils-gdb.git] / bfd / elf32-i386.c
index ae23752119c591ff534493f35992dcf61fda3201..1009c17ff21c1c28caf8b7b14e272abfa68abf60 100644 (file)
@@ -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)
This page took 0.026013 seconds and 4 git commands to generate.