public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc/google/grte/v5-2.27/master] As with gettimeofday, avoid vdso for clang-compiled time()
@ 2021-08-28 0:39 Fangrui Song
0 siblings, 0 replies; only message in thread
From: Fangrui Song @ 2021-08-28 0:39 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=d41bed3ce0c9138608269631ba65ae782108669a
commit d41bed3ce0c9138608269631ba65ae782108669a
Author: Stan Shebs <stanshebs@google.com>
Date: Tue Mar 13 11:37:02 2018 -0700
As with gettimeofday, avoid vdso for clang-compiled time()
Diff:
---
sysdeps/unix/sysv/linux/x86/time.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/sysdeps/unix/sysv/linux/x86/time.c b/sysdeps/unix/sysv/linux/x86/time.c
index d19cccd6f6..124bd967e1 100644
--- a/sysdeps/unix/sysv/linux/x86/time.c
+++ b/sysdeps/unix/sysv/linux/x86/time.c
@@ -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)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-08-28 0:39 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-28 0:39 [glibc/google/grte/v5-2.27/master] As with gettimeofday, avoid vdso for clang-compiled time() Fangrui Song
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).