]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
As with gettimeofday, avoid vdso for clang-compiled time()
authorStan Shebs <stanshebs@google.com>
Tue, 13 Mar 2018 18:37:02 +0000 (11:37 -0700)
committerStan Shebs <stanshebs@google.com>
Tue, 13 Mar 2018 18:37:02 +0000 (11:37 -0700)
sysdeps/unix/sysv/linux/x86/time.c

index d19cccd6f6c5657b5f47e2e91d2d077d96d21c67..124bd967e18739cad3c3f2227331c858ea682a8e 100644 (file)
@@ -18,7 +18,8 @@
 
 #include <time.h>
 
-#ifdef SHARED
+/* Clang ifunc support works, but differently enough that this code breaks.  */
+#if defined(SHARED) && !defined(__clang__)
 
 #include <dl-vdso.h>
 #include <errno.h>
@@ -57,3 +58,5 @@ time (time_t *t)
 }
 
 #endif
+
+libc_hidden_weak (time)