PR cli/7719:
[deliverable/binutils-gdb.git] / bfd / elf-ifunc.c
index 81429b84334ca067439f3942e1cfdd1e8b335a08..3ba96c7961705cb9249dab21353e78631596afb3 100644 (file)
@@ -299,9 +299,10 @@ keep:
      5. Otherwise use .got so that it can be shared among different
      objects at run-time.
      We only need to relocate .got entry in shared object.  */
-  if ((info->shared
-       && (h->dynindx == -1
-          || h->forced_local))
+  if (h->got.refcount <= 0
+      || (info->shared
+         && (h->dynindx == -1
+             || h->forced_local))
       || (!info->shared
          && !h->pointer_equality_needed)
       || (info->executable && info->shared)
This page took 0.025051 seconds and 4 git commands to generate.