glibc/sysdeps/unix/sysv/linux/tst-rseq-tls-range-mod.c
Florian Weimer 37b9a5aacc Linux: Add tests that check that TLS and rseq area are separate
The new test elf/tst-rseq-tls-range-4096-static reliably detected
the extra TLS allocation problem (tcb_offset was dropped from
the allocation size) on aarch64.  It also failed with a crash
in dlopen *before* the extra TLS changes, so TLS alignment with
static dlopen was already broken.

Reviewed-by: Michael Jeanson <mjeanson@efficios.com>
2025-01-16 20:02:42 +01:00

1 line
74 B
C

__thread int mod_thread_var __attribute__ ((tls_model ("initial-exec")));