aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2022-05-12 15:36:01 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2024-02-09 10:29:18 -0300
commitd064cc70a21fa93d22c5470cb447e02d1b1baf4f (patch)
treeb74ea20a3a1b584da4085e845e95585183aea5a7
parentb8fb51af3d2c74fca948942e7444e11f657cce8e (diff)
downloadglibc-d064cc70a21fa93d22c5470cb447e02d1b1baf4f.tar
glibc-d064cc70a21fa93d22c5470cb447e02d1b1baf4f.tar.gz
glibc-d064cc70a21fa93d22c5470cb447e02d1b1baf4f.tar.bz2
glibc-d064cc70a21fa93d22c5470cb447e02d1b1baf4f.zip
elf: Disable tst-dlopen-nodelete-reloc if compiler does not generate STB_GNU_UNIQUE
The test requires STB_GNU_UNIQUE symbols so NODELETE is propagated by do_lookup_unique.
-rw-r--r--elf/Makefile30
1 files changed, 15 insertions, 15 deletions
diff --git a/elf/Makefile b/elf/Makefile
index 2716cfbec3..2579234b26 100644
--- a/elf/Makefile
+++ b/elf/Makefile
@@ -483,11 +483,15 @@ tests += \
valgrind-test \
# tests
tests-cxx = \
- tst-dlopen-nodelete-reloc \
tst-nodelete \
tst-unique3 \
tst-unique4 \
# tests-cxx
+ifeq (yes,$(config-gnu-unique-object))
+tests-cxx += \
+ tst-dlopen-nodelete-reloc \
+ # tests-cxx
+endif
tests += $(if $(CXX),$(tests-cxx))
@@ -952,6 +956,15 @@ modules-names += \
# modules-names
modules-names-cxx = \
+ tst-nodelete-rtldmod \
+ tst-nodelete-uniquemod \
+ tst-nodelete-zmod \
+ tst-unique3lib \
+ tst-unique3lib2 \
+ tst-unique4lib \
+ # modules-names-cxx
+ifeq (yes,$(config-gnu-unique-object))
+modules-names-cxx += \
tst-dlopen-nodelete-reloc-mod1 \
tst-dlopen-nodelete-reloc-mod2 \
tst-dlopen-nodelete-reloc-mod3 \
@@ -961,21 +974,8 @@ modules-names-cxx = \
tst-dlopen-nodelete-reloc-mod7 \
tst-dlopen-nodelete-reloc-mod8 \
tst-dlopen-nodelete-reloc-mod9 \
- tst-dlopen-nodelete-reloc-mod10 \
- tst-dlopen-nodelete-reloc-mod11 \
- tst-dlopen-nodelete-reloc-mod12 \
- tst-dlopen-nodelete-reloc-mod13 \
- tst-dlopen-nodelete-reloc-mod14 \
- tst-dlopen-nodelete-reloc-mod15 \
- tst-dlopen-nodelete-reloc-mod16 \
- tst-dlopen-nodelete-reloc-mod17 \
- tst-nodelete-rtldmod \
- tst-nodelete-uniquemod \
- tst-nodelete-zmod \
- tst-unique3lib \
- tst-unique3lib2 \
- tst-unique4lib \
# modules-names-cxx
+endif
modules-names += \
$(if $(CXX),$(modules-names-cxx)) \