This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH 3/8] i386, x86: Use libc_ifunc macro for time, gettimeofday.
- From: Florian Weimer <fweimer at redhat dot com>
- To: Adhemerval Zanella <adhemerval dot zanella at linaro dot org>, libc-alpha at sourceware dot org
- Date: Wed, 6 Jul 2016 14:19:07 +0200
- Subject: Re: [PATCH 3/8] i386, x86: Use libc_ifunc macro for time, gettimeofday.
- Authentication-results: sourceware.org; auth=none
- References: <1466682952-6301-1-git-send-email-stli@linux.vnet.ibm.com> <1466682952-6301-3-git-send-email-stli@linux.vnet.ibm.com> <f04bfe8f-0849-1813-a020-94ddf14c89a4@redhat.com> <577A6766.5050803@linaro.org>
On 07/04/2016 03:40 PM, Adhemerval Zanella wrote:
If I recall correctly i686 has the same issue as powerpc32, where ifunc for local
hidden symbols fails to resolve where called by another function library function.
This examples shows the issue:
Thanks. I believe this is a missing diagnostic in binutils. The static
link should fail due to incompatible relocations. It is not possible to
call an IFUNC (which needs an indirect call) while also avoiding the PLT
on x86 (which results in a direct call).
Have you reported the lack of a diagnostic as a binutils RFE/bug?
Thanks,
Florian