aboutsummaryrefslogtreecommitdiff
path: root/elf
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2023-08-22 16:27:15 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2024-04-17 16:12:41 -0300
commit4a17a44be54cd9db56117641c3e21c994cf31e27 (patch)
treeb8fbef128b94d395828510c67f75c7c1f2f5eee4 /elf
parentcd90ccecee008afcd040177bfd02bb466c0c9300 (diff)
downloadglibc-4a17a44be54cd9db56117641c3e21c994cf31e27.zip
glibc-4a17a44be54cd9db56117641c3e21c994cf31e27.tar.gz
glibc-4a17a44be54cd9db56117641c3e21c994cf31e27.tar.bz2
i686: Do not build ifunc tests if compiler does not generate supported relocations
clang with --target i668 might not produce supported relocations that ld.bfd can use for -static-pie without -fPIC, which are used on some tests. Disable them for now.
Diffstat (limited to 'elf')
-rw-r--r--elf/Makefile18
1 files changed, 15 insertions, 3 deletions
diff --git a/elf/Makefile b/elf/Makefile
index 0a901ae..9c91e8b 100644
--- a/elf/Makefile
+++ b/elf/Makefile
@@ -1061,16 +1061,20 @@ tests += $(tests-static)
ifeq (yes,$(have-ifunc))
tests-ifuncstatic := \
ifuncmain1picstatic \
- ifuncmain1static \
ifuncmain2picstatic \
ifuncmain2static \
ifuncmain4picstatic \
- ifuncmain4static \
ifuncmain5picstatic \
ifuncmain5static \
+ # tests-ifuncstatic
+ifeq (yes,$(ifunc-static-pie))
+tests-ifuncstatic += \
+ ifuncmain1static \
+ ifuncmain4static \
ifuncmain7picstatic \
ifuncmain7static \
# tests-ifuncstatic
+endif
ifeq (yes,$(have-gcc-ifunc))
tests-ifuncstatic += ifuncmain9static ifuncmain9picstatic
endif
@@ -1090,11 +1094,15 @@ tests-internal += \
ifuncmain2 \
ifuncmain2pic \
ifuncmain3 \
- ifuncmain4 \
ifuncmain5staticpic \
+ # tests-internal
+ifeq (yes,$(ifunc-static-pie))
+tests-internal += \
+ ifuncmain4 \
ifuncmain7 \
ifuncmain7pic \
# tests-internal
+endif
ifeq (no,$(with-lld))
tests-internal += \
ifuncmain1 \
@@ -1123,9 +1131,13 @@ ifunc-pie-tests = \
ifuncmain1pie \
ifuncmain1staticpie \
ifuncmain1vispie \
+ # ifunc-pie-tests
+ifeq (yes,$(ifunc-static-pie))
+ifunc-pie-tests += \
ifuncmain6pie \
ifuncmain7pie \
# ifunc-pie-tests
+endif
ifeq (yes,$(have-gcc-ifunc))
ifunc-pie-tests += ifuncmain9pie
endif