X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=bfd%2Felf-ifunc.c;h=3ba96c7961705cb9249dab21353e78631596afb3;hb=df47ec8501151793f34208d9d0912dd667be94d7;hp=81429b84334ca067439f3942e1cfdd1e8b335a08;hpb=eb14d85dd240782712210cabed8b43ec6d6b45d5;p=external%2Fbinutils.git diff --git a/bfd/elf-ifunc.c b/bfd/elf-ifunc.c index 81429b8..3ba96c7 100644 --- a/bfd/elf-ifunc.c +++ b/bfd/elf-ifunc.c @@ -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)