public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc/google/grte/v5-2.27/master] Work around clang problem with ifuncs and vdso
@ 2021-08-28  0:39 Fangrui Song
  0 siblings, 0 replies; only message in thread
From: Fangrui Song @ 2021-08-28  0:39 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=b35774068a3f606c1fb76476d3e695dc2dacb86e

commit b35774068a3f606c1fb76476d3e695dc2dacb86e
Author: Stan Shebs <stanshebs@google.com>
Date:   Tue Sep 25 07:58:13 2018 -0700

    Work around clang problem with ifuncs and vdso

Diff:
---
 sysdeps/unix/sysv/linux/powerpc/gettimeofday.c | 2 +-
 sysdeps/unix/sysv/linux/powerpc/time.c         | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/sysdeps/unix/sysv/linux/powerpc/gettimeofday.c b/sysdeps/unix/sysv/linux/powerpc/gettimeofday.c
index 994a926a87..868e0918aa 100644
--- a/sysdeps/unix/sysv/linux/powerpc/gettimeofday.c
+++ b/sysdeps/unix/sysv/linux/powerpc/gettimeofday.c
@@ -23,7 +23,7 @@
 
 #include <sys/time.h>
 
-#ifdef SHARED
+#if defined(SHARED) && !defined(__clang__)
 
 # include <dl-vdso.h>
 # include <libc-vdso.h>
diff --git a/sysdeps/unix/sysv/linux/powerpc/time.c b/sysdeps/unix/sysv/linux/powerpc/time.c
index 8814bcc14f..61965fe988 100644
--- a/sysdeps/unix/sysv/linux/powerpc/time.c
+++ b/sysdeps/unix/sysv/linux/powerpc/time.c
@@ -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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-08-28  0:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-28  0:39 [glibc/google/grte/v5-2.27/master] Work around clang problem with ifuncs and vdso Fangrui Song

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).