aboutsummaryrefslogtreecommitdiff
path: root/elf/Makefile
diff options
context:
space:
mode:
authorStan Shebs <stanshebs@google.com>2019-10-08 13:00:12 -0700
committerFangrui Song <i@maskray.me>2021-08-27 17:26:02 -0700
commitc4d57c29b55e0dcad0aa6294427c0d09c8507fee (patch)
treea17cc05e0a4ed0b947a44d640ae9c7818dc3a42e /elf/Makefile
parent66c8103bdf54c1335efe8181f6110358f0277671 (diff)
downloadglibc-c4d57c29b55e0dcad0aa6294427c0d09c8507fee.zip
glibc-c4d57c29b55e0dcad0aa6294427c0d09c8507fee.tar.gz
glibc-c4d57c29b55e0dcad0aa6294427c0d09c8507fee.tar.bz2
Make multi-arch ifunc support work with clang
Diffstat (limited to 'elf/Makefile')
-rw-r--r--elf/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/elf/Makefile b/elf/Makefile
index 3009c0d..827fe13 100644
--- a/elf/Makefile
+++ b/elf/Makefile
@@ -336,11 +336,15 @@ tests-static += $(tests-ifuncstatic)
tests-internal += $(tests-ifuncstatic)
ifeq (yes,$(build-shared))
tests-internal += \
- ifuncmain1 ifuncmain1pic ifuncmain1vis ifuncmain1vispic \
+ ifuncmain1pic ifuncmain1vis ifuncmain1vispic \
ifuncmain1staticpic \
ifuncmain2 ifuncmain2pic ifuncmain3 ifuncmain4 \
- ifuncmain5 ifuncmain5pic ifuncmain5staticpic \
+ ifuncmain5pic ifuncmain5staticpic \
ifuncmain7 ifuncmain7pic
+ifneq ($(with-clang),yes)
+# Skip over tests where lld errors with "cannot preempt symbol"
+tests-internal += ifuncmain1 ifuncmain5
+endif
ifunc-test-modules = ifuncdep1 ifuncdep1pic ifuncdep2 ifuncdep2pic \
ifuncdep5 ifuncdep5pic
extra-test-objs += $(ifunc-test-modules:=.o)