aboutsummaryrefslogtreecommitdiff
path: root/elf
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2024-12-20 04:32:49 +0800
committerH.J. Lu <hjl.tools@gmail.com>2024-12-22 17:20:15 +0800
commit8d25b9f2c82d45def99e3c7538dcd87c909aae8b (patch)
tree549443cb82a2d2bc3ef84b3aab10c2cdbad7e26d /elf
parentbce70034b1122d504c9fb794684f3ec288d955e6 (diff)
downloadglibc-8d25b9f2c82d45def99e3c7538dcd87c909aae8b.tar.xz
glibc-8d25b9f2c82d45def99e3c7538dcd87c909aae8b.zip
elf: Enable tst-dlopen-nodelete-reloc if TEST_CXX supports STB_GNU_UNIQUE
tst-dlopen-nodelete-reloc requires STB_GNU_UNIQUE support so that NODELETE is propagated by do_lookup_unique. Enable it only if TEST_CXX supports STB_GNU_UNIQUE, Signed-off-by: H.J. Lu <hjl.tools@gmail.com> Reviewed-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'elf')
-rw-r--r--elf/Makefile22
1 files changed, 15 insertions, 7 deletions
diff --git a/elf/Makefile b/elf/Makefile
index 3c17688f19..e8fc6bd65f 100644
--- a/elf/Makefile
+++ b/elf/Makefile
@@ -505,11 +505,15 @@ tests += \
valgrind-test \
# tests
tests-cxx = \
- tst-dlopen-nodelete-reloc \
tst-nodelete \
tst-unique3 \
tst-unique4 \
# tests-cxx
+ifeq ($(have-test-stb-gnu-unique), yes)
+tests-cxx += \
+ tst-dlopen-nodelete-reloc \
+ # tests-cxx
+endif
tests += $(if $(CXX),$(tests-cxx))
@@ -1042,6 +1046,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 ($(have-test-stb-gnu-unique), yes)
+modules-names-cxx += \
tst-dlopen-nodelete-reloc-mod1 \
tst-dlopen-nodelete-reloc-mod2 \
tst-dlopen-nodelete-reloc-mod3 \
@@ -1059,13 +1072,8 @@ modules-names-cxx = \
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)) \