[PATCH 3/8] i386, x86: Use libc_ifunc macro for time, gettimeofday.
Florian Weimer
fweimer@redhat.com
Mon Jul 4 08:54:00 GMT 2016
On 06/23/2016 01:55 PM, Stefan Liebler wrote:
> This patch uses the libc_ifunc macro to create already existing ifunc functions
> time and gettimeofday on intel. This way, the libc_hidden_def macro can be used
> instead of the libc_ifunc_hidden_def one which was only used here. Thus the
> macro is removed from libc-symbols.h.
> On i386, the __GI_* symbols do not target the ifunc symbol and thus the
> redirection construct has to be applied here.
I'm not sure if I understand what is going on here.
sysdeps/unix/sysv/linux/x86/gettimeofday.c is compiled straight for
x86_64, but wrapped on i386, right?
I wonder if it possible to avoid some of the preprocessor magic by
introducing a separate x86_64 file.
Thanks,
Florian
More information about the Libc-alpha
mailing list