]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Bypass gettimeofday ifunc if using clang
authorStan Shebs <stanshebs@google.com>
Fri, 2 Mar 2018 16:39:57 +0000 (08:39 -0800)
committerStan Shebs <stanshebs@google.com>
Wed, 1 May 2019 01:23:43 +0000 (18:23 -0700)
sysdeps/unix/sysv/linux/x86/gettimeofday.c

index 8886ccd70704651152cead84845a341e8acf397f..45f845670b2f6b95afd7b35c430d81950cbbb6b6 100644 (file)
@@ -18,7 +18,8 @@
 
 #include <sys/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>