From a4d7fe35cd8f860b1cdf3521834a666447aba4c8 Mon Sep 17 00:00:00 2001 From: Stefan Liebler Date: Fri, 7 Oct 2016 09:56:47 +0200 Subject: ppc: Use libc_ifunc macro for time, gettimeofday. 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. --- ChangeLog | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index 1378071b1f..4cf22340f9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2016-10-07 Stefan Liebler + + * 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. + 2016-10-07 Stefan Liebler * sysdeps/unix/sysv/linux/x86/gettimeofday.c (__gettimeofday): -- cgit 1.4.1