diff options
author | Stan Shebs <stanshebs@google.com> | 2018-03-13 11:37:02 -0700 |
---|---|---|
committer | Stan Shebs <stanshebs@google.com> | 2019-04-30 18:24:46 -0700 |
commit | 2431995fd0bd2764562a89b1d08bbaaee85e6748 (patch) | |
tree | d3b42b444d2e8a8181a6f15cbfaff880f22b9ee6 | |
parent | d3f21e261557f336053fd52cc468a8957cb1db73 (diff) | |
download | glibc-2431995fd0bd2764562a89b1d08bbaaee85e6748.tar.gz glibc-2431995fd0bd2764562a89b1d08bbaaee85e6748.tar.xz glibc-2431995fd0bd2764562a89b1d08bbaaee85e6748.zip |
As with gettimeofday, avoid vdso for clang-compiled time() google/grte/v6-2.29/master
-rw-r--r-- | sysdeps/unix/sysv/linux/x86/time.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/linux/x86/time.c b/sysdeps/unix/sysv/linux/x86/time.c index 3d72488500..9051ac1be7 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) |