aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/unix/sysv
diff options
context:
space:
mode:
authorYury Khrustalev <yury.khrustalev@arm.com>2025-04-16 19:08:47 +0100
committerYury Khrustalev <yury.khrustalev@arm.com>2025-06-18 09:37:13 +0100
commiteeedfc2f74463a06e8127dde42531913652371f8 (patch)
tree2e3bdb26725dd8665e61e1cad8b915a784e21110 /sysdeps/unix/sysv
parenteae5bb0f60205e6f709803cc6bba749daf5ece72 (diff)
downloadglibc-eeedfc2f74463a06e8127dde42531913652371f8.zip
glibc-eeedfc2f74463a06e8127dde42531913652371f8.tar.gz
glibc-eeedfc2f74463a06e8127dde42531913652371f8.tar.bz2
aarch64: GCS: use internal struct in __alloc_gcs
No functional change here, just a small refactoring to simplify using __alloc_gcs() for allocating shadow stacks. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'sysdeps/unix/sysv')
-rw-r--r--sysdeps/unix/sysv/linux/aarch64/makecontext.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sysdeps/unix/sysv/linux/aarch64/makecontext.c b/sysdeps/unix/sysv/linux/aarch64/makecontext.c
index a2eab9e..4485723 100644
--- a/sysdeps/unix/sysv/linux/aarch64/makecontext.c
+++ b/sysdeps/unix/sysv/linux/aarch64/makecontext.c
@@ -36,9 +36,7 @@ static struct _aarch64_ctx *extension (void *p)
static void *
alloc_makecontext_gcs (size_t stack_size)
{
- void *base;
- size_t size;
- void *gcsp = __alloc_gcs (stack_size, &base, &size);
+ void *gcsp = __alloc_gcs (stack_size, NULL);
if (gcsp == NULL)
/* ENOSYS, bad size or OOM. */
abort ();