From: Adhemerval Zanella Date: Sat, 6 Sep 2025 22:23:08 +0000 (-0300) Subject: alpha: Align stack for alpha X-Git-Tag: glibc-2.43~571 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3795f22d4206e063d5b07a4da64febdc11cb42ee;p=thirdparty%2Fglibc.git alpha: Align stack for alpha As done already for x86_64 [1] and aarch64 [2]. It fixes misc/tst-misalign-clone on alpha. [1] https://sourceware.org/bugzilla/show_bug.cgi?id=27902 [2] https://sourceware.org/bugzilla/show_bug.cgi?id=27939 Reviewed-by: Collin Funk --- diff --git a/sysdeps/unix/sysv/linux/alpha/clone.S b/sysdeps/unix/sysv/linux/alpha/clone.S index 727346f8b1..f7d464fc9e 100644 --- a/sysdeps/unix/sysv/linux/alpha/clone.S +++ b/sysdeps/unix/sysv/linux/alpha/clone.S @@ -49,6 +49,8 @@ __clone: /* Sanity check arguments. */ ldiq v0, EINVAL beq a0, SYSCALL_ERROR_LABEL /* no NULL function pointers */ + /* Align stack. */ + bic a1, 15, a1 beq a1, SYSCALL_ERROR_LABEL /* no NULL stack pointers */ /* Save the fn ptr and arg on the new stack. */