[PATCH v3 5/9] ppc: Use libc_ifunc macro for time, gettimeofday.

Paul E. Murphy murphyp@linux.vnet.ibm.com
Tue Aug 30 13:46:00 GMT 2016



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.



More information about the Libc-alpha mailing list