PowerPC: Fix gettimeofday ifunc selection
authorAdhemerval Zanella <azanella@linux.vnet.ibm.com>
Mon, 20 Jan 2014 18:29:51 +0000 (12:29 -0600)
committerAdhemerval Zanella <azanella@linux.vnet.ibm.com>
Mon, 20 Jan 2014 18:29:51 +0000 (12:29 -0600)
commitd98720e07f67fbeec00f9e1347840404240d3c48
tree91a4f5a45e3144043e4ef0954084a0f1d6810d8b
parent2bc52556b71ac068774366e08085e30c960d3c93
PowerPC: Fix gettimeofday ifunc selection

The IFUNC selector for gettimeofday runs before _libc_vdso_platform_setup where
__vdso_gettimeofday is set. The selector then sets __gettimeofday (the internal
version used within GLIBC) to use the system call version instead of the vDSO one.
This patch changes the check if vDSO is available to get its value directly
instead of rely on __vdso_gettimeofday.

This patch changes it by getting the vDSO value directly.

It fixes BZ#16431.
ChangeLog
NEWS
sysdeps/unix/sysv/linux/powerpc/gettimeofday.c
sysdeps/unix/sysv/linux/powerpc/time.c