GNU C Library master sources branch master updated. glibc-2.29.9000-99-g92ad88fe

hjl@sourceware.org hjl@sourceware.org
Wed Feb 27 21:22:00 GMT 2019


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, master has been updated
       via  92ad88fe72194ccb72a5f34fa3c76078bfc89400 (commit)
      from  6bd4d02ee997f5b073583c5d8638ffdefedb13bc (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=92ad88fe72194ccb72a5f34fa3c76078bfc89400

commit 92ad88fe72194ccb72a5f34fa3c76078bfc89400
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Wed Feb 27 13:21:46 2019 -0800

    elf/Makefile: Run IFUNC tests if binutils supports IFUNC
    
    We should run IFUNC tests with --disable-multi-arch if the toolchain
    supports IFUNCs.  For correctness, --disable-multi-arch must not
    remove IFUNC support from the loader.
    
    Tested on x86-64, x32 and i686 with and without --disable-multi-arch.
    
    	* configure.ac (have-ifunc): New LIBC_CONFIG_VAR.
    	* configure: Regenerated.
    	* elf/Makefile: Run IFUNC tests if binutils supports IFUNC.
    
    Reviewed-by: Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>

diff --git a/ChangeLog b/ChangeLog
index 902ae1b..ed05044 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2019-02-27  H.J. Lu  <hongjiu.lu@intel.com>
+
+	* configure.ac (have-ifunc): New LIBC_CONFIG_VAR.
+	* configure: Regenerated.
+	* elf/Makefile: Run IFUNC tests if binutils supports IFUNC.
+
 2019-02-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
 
 	* sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Define ifunc
diff --git a/configure b/configure
index 2643db9..c773c48 100755
--- a/configure
+++ b/configure
@@ -6794,6 +6794,8 @@ if test x"$libc_cv_ld_gnu_indirect_function" = xyes; then
   $as_echo "#define HAVE_IFUNC 1" >>confdefs.h
 
 fi
+config_vars="$config_vars
+have-ifunc = $libc_cv_ld_gnu_indirect_function"
 
 if test x"$libc_cv_gcc_indirect_function" = xyes; then
   $as_echo "#define HAVE_GCC_IFUNC 1" >>confdefs.h
diff --git a/configure.ac b/configure.ac
index ad50e29..598ba6c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1804,6 +1804,7 @@ AC_SUBST(libc_cv_gcc_unwind_find_fde)
 if test x"$libc_cv_ld_gnu_indirect_function" = xyes; then
   AC_DEFINE(HAVE_IFUNC)
 fi
+LIBC_CONFIG_VAR([have-ifunc], [$libc_cv_ld_gnu_indirect_function])
 
 if test x"$libc_cv_gcc_indirect_function" = xyes; then
   AC_DEFINE(HAVE_GCC_IFUNC)
diff --git a/elf/Makefile b/elf/Makefile
index faec577..e44960e 100644
--- a/elf/Makefile
+++ b/elf/Makefile
@@ -321,7 +321,7 @@ modules-names-nobuild := filtmod1
 
 tests += $(tests-static)
 
-ifneq (no,$(multi-arch))
+ifeq (yes,$(have-ifunc))
 tests-ifuncstatic := ifuncmain1static ifuncmain1picstatic \
 		ifuncmain2static ifuncmain2picstatic \
 		ifuncmain4static ifuncmain4picstatic \

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

Summary of changes:
 ChangeLog    |    6 ++++++
 configure    |    2 ++
 configure.ac |    1 +
 elf/Makefile |    2 +-
 4 files changed, 10 insertions(+), 1 deletions(-)


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



More information about the Glibc-cvs mailing list