aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/unix/sysv/linux/tst-rseq-tls-range-4096.c
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2025-01-16 20:02:42 +0100
committerFlorian Weimer <fweimer@redhat.com>2025-01-16 20:02:42 +0100
commit37b9a5aacc3156aef81a461deaf703f49531deac (patch)
treef4e8b87e5a19a31900f743013a16e13a5bad0e52 /sysdeps/unix/sysv/linux/tst-rseq-tls-range-4096.c
parentcbd9fd236981717d3d4ee942986ea912e9707c32 (diff)
downloadglibc-37b9a5aacc3156aef81a461deaf703f49531deac.zip
glibc-37b9a5aacc3156aef81a461deaf703f49531deac.tar.gz
glibc-37b9a5aacc3156aef81a461deaf703f49531deac.tar.bz2
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>
Diffstat (limited to 'sysdeps/unix/sysv/linux/tst-rseq-tls-range-4096.c')
-rw-r--r--sysdeps/unix/sysv/linux/tst-rseq-tls-range-4096.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/tst-rseq-tls-range-4096.c b/sysdeps/unix/sysv/linux/tst-rseq-tls-range-4096.c
new file mode 100644
index 0000000..5ad2853
--- /dev/null
+++ b/sysdeps/unix/sysv/linux/tst-rseq-tls-range-4096.c
@@ -0,0 +1 @@
+#include "tst-rseq-tls-range.c"