]> git.ipfire.org Git - thirdparty/glibc.git/commit
PowerPC: Fix gettimeofday ifunc selection
authorAdhemerval Zanella <azanella@linux.vnet.ibm.com>
Thu, 23 Jan 2014 17:07:47 +0000 (11:07 -0600)
committerAdhemerval Zanella <azanella@linux.vnet.ibm.com>
Thu, 23 Jan 2014 17:07:47 +0000 (11:07 -0600)
commit01d6218aead2f93e81223097ad134a2999d84e2c
treed014c1e8e3fd6be395aab2c51e82fd6bb4b47ae1
parenta21742a515c18de4b46070b5eff5eedf43f9c7c5
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