]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
elf: Build tst-gnu2-tls2 iff compiler supports TLS descriptor
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Wed, 4 Feb 2026 14:03:20 +0000 (11:03 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Wed, 4 Feb 2026 19:54:27 +0000 (16:54 -0300)
The test modules are built with
-mtls-dialect=$(have-test-mtls-descriptor), similar to tst-gnu2-tls1.

Checked on x86_64-linux-gnu.

elf/Makefile

index 30ac283186bb02b99c1d1bc146881f00c74de797..396e97b5e73ccf1e2c131ba55e1de373f118219a 100644 (file)
@@ -441,7 +441,6 @@ tests += \
   tst-glibc-hwcaps-prepend \
   tst-global1 \
   tst-global2 \
-  tst-gnu2-tls2 \
   tst-hash-collision1 \
   tst-hash-collision1-gnu \
   tst-hash-collision1-sysv \
@@ -950,9 +949,6 @@ modules-names += \
   tst-filterobj-flt \
   tst-finilazyfailmod \
   tst-globalmod2 \
-  tst-gnu2-tls2mod0 \
-  tst-gnu2-tls2mod1 \
-  tst-gnu2-tls2mod2 \
   tst-hash-collision1-mod \
   tst-hash-collision1-mod-gnu \
   tst-hash-collision1-mod-sysv \
@@ -1143,8 +1139,16 @@ modules-names-tests = $(filter-out ifuncmod% tst-tlsmod% \
 extra-test-objs += tst-auditmod17.os
 
 ifneq (no,$(have-test-mtls-descriptor))
-tests += tst-gnu2-tls1
-modules-names += tst-gnu2-tls1mod
+tests += \
+  tst-gnu2-tls1 \
+  tst-gnu2-tls2 \
+  # tests
+modules-names += \
+  tst-gnu2-tls1mod \
+  tst-gnu2-tls2mod0 \
+  tst-gnu2-tls2mod1 \
+  tst-gnu2-tls2mod2 \
+  # modules-names
 $(objpfx)tst-gnu2-tls1: $(objpfx)tst-gnu2-tls1mod.so
 tst-gnu2-tls1mod.so-no-z-defs = yes
 CFLAGS-tst-gnu2-tls1mod.c += -mtls-dialect=$(have-test-mtls-descriptor)