diff options
author | Stan Shebs <stanshebs@google.com> | 2020-10-06 13:08:18 -0700 |
---|---|---|
committer | Fangrui Song <i@maskray.me> | 2021-08-27 17:26:04 -0700 |
commit | d548adb4ef75dfc9bc1838f46f6c67f11e09906e (patch) | |
tree | b02903f398aebbdbde945352a580d4ba7c5029f0 /sysdeps | |
parent | e62db8fce49a3437dbda71e4b7058954595939f5 (diff) | |
download | glibc-d548adb4ef75dfc9bc1838f46f6c67f11e09906e.zip glibc-d548adb4ef75dfc9bc1838f46f6c67f11e09906e.tar.gz glibc-d548adb4ef75dfc9bc1838f46f6c67f11e09906e.tar.bz2 |
Let time and gettimeofday use vdso by removing old clang workaround
Diffstat (limited to 'sysdeps')
-rw-r--r-- | sysdeps/unix/sysv/linux/x86/gettimeofday.c | 3 | ||||
-rw-r--r-- | sysdeps/unix/sysv/linux/x86/time.c | 7 |
2 files changed, 2 insertions, 8 deletions
diff --git a/sysdeps/unix/sysv/linux/x86/gettimeofday.c b/sysdeps/unix/sysv/linux/x86/gettimeofday.c index 614971b..e125859 100644 --- a/sysdeps/unix/sysv/linux/x86/gettimeofday.c +++ b/sysdeps/unix/sysv/linux/x86/gettimeofday.c @@ -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> diff --git a/sysdeps/unix/sysv/linux/x86/time.c b/sysdeps/unix/sysv/linux/x86/time.c index 8992656..d19cccd 100644 --- a/sysdeps/unix/sysv/linux/x86/time.c +++ b/sysdeps/unix/sysv/linux/x86/time.c @@ -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 |