From: Stan Shebs Date: Tue, 6 Oct 2020 20:08:18 +0000 (-0700) Subject: Let time and gettimeofday use vdso by removing old clang workaround X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d548adb4ef75dfc9bc1838f46f6c67f11e09906e;p=thirdparty%2Fglibc.git Let time and gettimeofday use vdso by removing old clang workaround --- diff --git a/sysdeps/unix/sysv/linux/x86/gettimeofday.c b/sysdeps/unix/sysv/linux/x86/gettimeofday.c index 614971bffb0..e125859c1a2 100644 --- a/sysdeps/unix/sysv/linux/x86/gettimeofday.c +++ b/sysdeps/unix/sysv/linux/x86/gettimeofday.c @@ -18,8 +18,7 @@ #include -/* Clang ifunc support works, but differently enough that this code breaks. */ -#if defined(SHARED) && !defined(__clang__) +#ifdef SHARED # include # include diff --git a/sysdeps/unix/sysv/linux/x86/time.c b/sysdeps/unix/sysv/linux/x86/time.c index 8992656bad0..d19cccd6f6c 100644 --- a/sysdeps/unix/sysv/linux/x86/time.c +++ b/sysdeps/unix/sysv/linux/x86/time.c @@ -18,8 +18,7 @@ #include -/* Clang ifunc support works, but differently enough that this code breaks. */ -#if defined(SHARED) && !defined(__clang__) +#ifdef SHARED #include #include @@ -58,7 +57,3 @@ time (time_t *t) } #endif - -#if defined(__clang__) -libc_hidden_weak (time) -#endif