]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Work around clang problem with ifuncs and vdso
authorStan Shebs <stanshebs@google.com>
Tue, 25 Sep 2018 14:58:13 +0000 (07:58 -0700)
committerFangrui Song <i@maskray.me>
Sat, 28 Aug 2021 00:23:12 +0000 (17:23 -0700)
sysdeps/unix/sysv/linux/powerpc/gettimeofday.c
sysdeps/unix/sysv/linux/powerpc/time.c

index 994a926a87c34ce07ff9afff75b4a3dbf1c8419c..868e0918aaab3772dbd111f3ee1801aa1ed39285 100644 (file)
@@ -23,7 +23,7 @@
 
 #include <sys/time.h>
 
-#ifdef SHARED
+#if defined(SHARED) && !defined(__clang__)
 
 # include <dl-vdso.h>
 # include <libc-vdso.h>
index 8814bcc14f4a0a2f6d2c89a0d286410eaa49d880..61965fe988deb7f9797f1f82d0d3ed29baa748e7 100644 (file)
@@ -16,7 +16,7 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
-#ifdef SHARED
+#if defined(SHARED) && !defined(__clang__)
 # ifndef __powerpc64__
 #  define time __redirect_time
 # else