From 76a9b9986141b1a7d9fd290c349d27fcee780c7a Mon Sep 17 00:00:00 2001 From: Adhemerval Zanella Date: Thu, 7 Nov 2013 05:34:22 -0600 Subject: 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. --- sysdeps/unix/sysv/linux/powerpc/gettimeofday.c | 1 + 1 file changed, 1 insertion(+) (limited to 'sysdeps/unix/sysv/linux/powerpc/gettimeofday.c') 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 # include +# include void *gettimeofday_ifunc (void) __asm__ ("__gettimeofday"); -- cgit 1.4.1