summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/powerpc/time.c
diff options
context:
space:
mode:
authorAdhemerval Zanella <azanella@linux.vnet.ibm.com>2013-11-07 05:34:22 -0600
committerAdhemerval Zanella <azanella@linux.vnet.ibm.com>2013-11-08 05:04:25 -0600
commit76a9b9986141b1a7d9fd290c349d27fcee780c7a (patch)
tree5966591dab5c9966261d0d96d6f0757a2d51abc0 /sysdeps/unix/sysv/linux/powerpc/time.c
parente4368156e64e04a204d832351abcb535572eb919 (diff)
downloadglibc-76a9b9986141b1a7d9fd290c349d27fcee780c7a.tar.gz
glibc-76a9b9986141b1a7d9fd290c349d27fcee780c7a.tar.xz
glibc-76a9b9986141b1a7d9fd290c349d27fcee780c7a.zip
PowerPC: Fix vDSO missing ODP entries
This patch fixes the vDSO symbol used directed in IFUNC resolver where
they do not have an associated ODP entry leading to undefined behavior
in some cases. It adds an artificial OPD static entry to such cases
and set its TOC to non 0 to avoid triggering lazy resolutions.
Diffstat (limited to 'sysdeps/unix/sysv/linux/powerpc/time.c')
-rw-r--r--sysdeps/unix/sysv/linux/powerpc/time.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/powerpc/time.c b/sysdeps/unix/sysv/linux/powerpc/time.c
index 66b4eb3049..2d77ecec9b 100644
--- a/sysdeps/unix/sysv/linux/powerpc/time.c
+++ b/sysdeps/unix/sysv/linux/powerpc/time.c
@@ -20,7 +20,9 @@
 
 # include <time.h>
 # include <sysdep.h>
+# include <dl-vdso.h>
 # include <bits/libc-vdso.h>
+# include <dl-machine.h>
 
 void *time_ifunc (void) asm ("time");