aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/nptl
diff options
context:
space:
mode:
authorMichael Jeanson <mjeanson@efficios.com>2024-07-10 15:48:49 -0400
committerMichael Jeanson <mjeanson@efficios.com>2025-01-10 20:20:27 +0000
commit93d0bfbe8ffa9c3dcbfc8e953216542f500dac07 (patch)
treee7e47bb8b3f6202e13f0a32f71c375ba1e4e9dcd /sysdeps/nptl
parent494d65129ed5ae1154b75cc189bbdde5e9ecf1df (diff)
downloadglibc-93d0bfbe8ffa9c3dcbfc8e953216542f500dac07.zip
glibc-93d0bfbe8ffa9c3dcbfc8e953216542f500dac07.tar.gz
glibc-93d0bfbe8ffa9c3dcbfc8e953216542f500dac07.tar.bz2
nptl: Move the rseq area to the 'extra TLS' block
Move the rseq area to the newly added 'extra TLS' block, this is the last step in adding support for the rseq extended ABI. The size of the rseq area is now dynamic and depends on the rseq features reported by the kernel through the elf auxiliary vector. This will allow applications to use rseq features past the 32 bytes of the original rseq ABI as they become available in future kernels. Signed-off-by: Michael Jeanson <mjeanson@efficios.com> Reviewed-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com> Reviewed-by: Florian Weimer <fweimer@redhat.com>
Diffstat (limited to 'sysdeps/nptl')
-rw-r--r--sysdeps/nptl/dl-tls_init_tp.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/sysdeps/nptl/dl-tls_init_tp.c b/sysdeps/nptl/dl-tls_init_tp.c
index 4647832..f487bfb 100644
--- a/sysdeps/nptl/dl-tls_init_tp.c
+++ b/sysdeps/nptl/dl-tls_init_tp.c
@@ -109,15 +109,6 @@ __tls_init_tp (void)
bool do_rseq = TUNABLE_GET (rseq, int, NULL);
if (!rseq_register_current_thread (pd, do_rseq))
_rseq_size = 0;
-
-#ifdef RSEQ_SIG
- /* This should be a compile-time constant, but the current
- infrastructure makes it difficult to determine its value. Not
- all targets support __thread_pointer, so set __rseq_offset only
- if the rseq registration may have happened because RSEQ_SIG is
- defined. */
- _rseq_offset = (char *) &pd->rseq_area - (char *) __thread_pointer ();
-#endif
}
/* Set initial thread's stack block from 0 up to __libc_stack_end.