about summary refs log tree commit diff
path: root/elf
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2019-02-27 13:21:46 -0800
committerH.J. Lu <hjl.tools@gmail.com>2019-02-27 13:21:55 -0800
commit92ad88fe72194ccb72a5f34fa3c76078bfc89400 (patch)
tree0efb813db9d768886d738866816bc716bbb604aa /elf
parent6bd4d02ee997f5b073583c5d8638ffdefedb13bc (diff)
downloadglibc-92ad88fe72194ccb72a5f34fa3c76078bfc89400.tar.gz
glibc-92ad88fe72194ccb72a5f34fa3c76078bfc89400.tar.xz
glibc-92ad88fe72194ccb72a5f34fa3c76078bfc89400.zip
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>
Diffstat (limited to 'elf')
-rw-r--r--elf/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/elf/Makefile b/elf/Makefile
index faec577d1c..e44960e5fe 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 \