]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
arm: Use have-mtls-dialect-gnu2 to check for ARM TLS descriptors support
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Thu, 28 Oct 2021 11:15:10 +0000 (08:15 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Mon, 1 Nov 2021 19:23:15 +0000 (16:23 -0300)
The lld linker does not support TLSDESC for arm.  The have-arm-tls-desc
is a leftover of 56583289b1 to support NaCL.

Reviewed-by: Fangrui Song <maskray@google.com>
sysdeps/arm/Makefile

index fb4164f0d9cf71fa472f9ed0129e4773fc560e6b..da4226c8c8a3fe7c743fa7d1f0eefebbbe60aae2 100644 (file)
@@ -1,11 +1,6 @@
 gnulib-arch = $(elf-objpfx)libgcc-stubs.a
 static-gnulib-arch = $(elf-objpfx)libgcc-stubs.a
 
-# All supported build tools support TLS descriptors, but the OS may not.
-ifndef have-arm-tls-desc
-have-arm-tls-desc = yes
-endif
-
 ifeq ($(subdir),elf)
 sysdep-dl-routines += tlsdesc dl-tlsdesc
 sysdep_routines += aeabi_unwind_cpp_pr1 find_exidx
@@ -18,7 +13,7 @@ $(objpfx)libgcc-stubs.a: $(objpfx)aeabi_unwind_cpp_pr1.os
 lib-noranlib: $(objpfx)libgcc-stubs.a
 
 ifeq ($(build-shared),yes)
-ifeq ($(have-arm-tls-desc),yes)
+ifeq (yes,$(have-mtls-dialect-gnu2))
 tests += tst-armtlsdescloc tst-armtlsdescextnow tst-armtlsdescextlazy
 modules-names += tst-armtlsdesclocmod
 modules-names += tst-armtlsdescextlazymod tst-armtlsdescextnowmod