diff options
Diffstat (limited to 'libc/private')
-rw-r--r-- | libc/private/bionic_tls.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libc/private/bionic_tls.h b/libc/private/bionic_tls.h index 9a5146f..f3a4ca0 100644 --- a/libc/private/bionic_tls.h +++ b/libc/private/bionic_tls.h @@ -100,7 +100,9 @@ extern int __set_tls(void *ptr); * C library, because we don't know where the corresponding code * is going to run. */ -# ifdef LIBC_STATIC +# if defined(LIBC_STATIC) || \ + (defined(__ARM_ARCH_6__) && defined(HAVE_ARM_TLS_REGISTER) && \ + !defined(__ARM_ARCH_6T2__)) /* Use the kernel helper in static C library. */ typedef volatile void* (__kernel_get_tls_t)(void); |