]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Let time and gettimeofday use vdso by removing old clang workaround
authorStan Shebs <stanshebs@google.com>
Tue, 6 Oct 2020 20:08:18 +0000 (13:08 -0700)
committerFangrui Song <i@maskray.me>
Sat, 28 Aug 2021 00:26:04 +0000 (17:26 -0700)
sysdeps/unix/sysv/linux/x86/gettimeofday.c
sysdeps/unix/sysv/linux/x86/time.c

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