summaryrefslogtreecommitdiff
path: root/sysdeps/unix/sysv/linux/powerpc/gettimeofday.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/gettimeofday.c
parente4368156e64e04a204d832351abcb535572eb919 (diff)
downloadglibc-76a9b9986141b1a7d9fd290c349d27fcee780c7a.tar.gz
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/gettimeofday.c')
-rw-r--r--sysdeps/unix/sysv/linux/powerpc/gettimeofday.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/powerpc/gettimeofday.c b/sysdeps/unix/sysv/linux/powerpc/gettimeofday.c
index 6506d75e64..48c3f84d86 100644
--- a/sysdeps/unix/sysv/linux/powerpc/gettimeofday.c
+++ b/sysdeps/unix/sysv/linux/powerpc/gettimeofday.c
@@ -22,6 +22,7 @@
# include <dl-vdso.h>
# include <bits/libc-vdso.h>
+# include <dl-machine.h>
void *gettimeofday_ifunc (void) __asm__ ("__gettimeofday");