This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH v3 5/9] ppc: Use libc_ifunc macro for time, gettimeofday.
On 08/24/2016 09:04 AM, Stefan Liebler wrote:
> This patch uses the libc_ifunc_hidden macro to create already existing ifunc functions
> time and gettimeofday on power. This way, the libc_hidden_def macro can be used
> instead of inline assemblies.
> On ppc32, the __GI_* symbols do not target the ifunc symbol and thus the
> redirection construct has to be applied here.
>
> ChangeLog:
>
> * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
> Use libc_ifunc_hidden and libc_hidden_def macro. Redirect ifunced function
> in header for using it as type for ifunc function because __GI_* symbols
> for ppc32 do not target the ifunc symbols.
> * sysdeps/unix/sysv/linux/powerpc/time.c (time): Likewise.
This patch looks ok to me.