This is the mail archive of the glibc-cvs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GNU C Library master sources branch google/grte/v5-2.27/master updated. glibc-2.27-169-g1aae845


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, google/grte/v5-2.27/master has been updated
       via  1aae8453e6d1cc5a5b75fc61c5ecacb76693b35e (commit)
      from  e789088eb2b5d336f666aa64d94a8f1d71854641 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=1aae8453e6d1cc5a5b75fc61c5ecacb76693b35e

commit 1aae8453e6d1cc5a5b75fc61c5ecacb76693b35e
Author: Stan Shebs <stanshebs@google.com>
Date:   Thu Nov 15 11:52:35 2018 -0800

    Work around clang assembler problem with ifunc relocs

diff --git a/configure b/configure
index 9591958..4987c07 100755
--- a/configure
+++ b/configure
@@ -3996,6 +3996,13 @@ else
   fi
 fi
 
+# Workaround for clang assembler problem with ifunc relocs, b/119574415
+if test "$with_clang" = no; then
+  no_integrated_as=
+else
+  no_integrated_as=-no-integrated-as
+fi
+
 # For the multi-arch option we need support in the assembler & linker.
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler and linker STT_GNU_IFUNC support" >&5
 $as_echo_n "checking for assembler and linker STT_GNU_IFUNC support... " >&6; }
@@ -4018,7 +4025,7 @@ __start:
 EOF
 libc_cv_ld_gnu_indirect_function=no
 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
-	    -nostartfiles -nostdlib $no_ssp \
+	    -nostartfiles -nostdlib $no_ssp $no_integrated_as \
 	    -o conftest conftest.S 1>&5 2>&5; then
   # Do a link to see if the backend supports IFUNC relocs.
   $READELF -r conftest 1>&5
diff --git a/configure.ac b/configure.ac
index cb6fb33..bb7e113 100644
--- a/configure.ac
+++ b/configure.ac
@@ -617,6 +617,13 @@ else
   fi
 fi
 
+# Workaround for clang assembler problem with ifunc relocs, b/119574415
+if test "$with_clang" = no; then
+  no_integrated_as=
+else
+  no_integrated_as=-no-integrated-as
+fi
+
 # For the multi-arch option we need support in the assembler & linker.
 AC_CACHE_CHECK([for assembler and linker STT_GNU_IFUNC support],
 	       libc_cv_ld_gnu_indirect_function, [dnl
@@ -636,7 +643,7 @@ __start:
 EOF
 libc_cv_ld_gnu_indirect_function=no
 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
-	    -nostartfiles -nostdlib $no_ssp \
+	    -nostartfiles -nostdlib $no_ssp $no_integrated_as \
 	    -o conftest conftest.S 1>&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD; then
   # Do a link to see if the backend supports IFUNC relocs.
   $READELF -r conftest 1>&AS_MESSAGE_LOG_FD
diff --git a/nptl/Makefile b/nptl/Makefile
index 2ffc54b..f00466b 100644
--- a/nptl/Makefile
+++ b/nptl/Makefile
@@ -225,6 +225,11 @@ CFLAGS-fsync.c += -fexceptions -fasynchronous-unwind-tables
 
 CFLAGS-pt-system.c += -fexceptions
 
+# Workaround for clang assembler problem with ifunc relocs, b/119574415
+ifeq ($(with-clang),yes)
+CFLAGS-pt-vfork.c += -no-integrated-as
+endif
+
 LDLIBS-tst-once5 = -lstdc++
 CFLAGS-tst-thread_local1.o = -std=gnu++11
 LDLIBS-tst-thread_local1 = -lstdc++
diff --git a/nptl/pt-vfork.c b/nptl/pt-vfork.c
index 0c694ed..2f890d3 100644
--- a/nptl/pt-vfork.c
+++ b/nptl/pt-vfork.c
@@ -37,7 +37,7 @@
    produce a tail-call to __libc_vfork, consider including the version
    in sysdeps/unix/sysv/linux/aarch64/pt-vfork.c.  */
 
-#if 0 /*!HAVE_IFUNC*/
+#if !HAVE_IFUNC
 # error "must write pt-vfork for this machine or get IFUNC support"
 #endif
 

-----------------------------------------------------------------------

Summary of changes:
 configure       |    9 ++++++++-
 configure.ac    |    9 ++++++++-
 nptl/Makefile   |    5 +++++
 nptl/pt-vfork.c |    2 +-
 4 files changed, 22 insertions(+), 3 deletions(-)


hooks/post-receive
-- 
GNU C Library master sources


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]