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

index 3d72488500ec44ccddd75b1e1dbebefa3a534c77..9051ac1be7e4e78ba0a293333f8cc9215cef0eea 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)