about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/x86_64/clone3.S
diff options
context:
space:
mode:
authorAdhemerval Zanella Netto <adhemerval.zanella@linaro.org>2023-01-12 10:58:50 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2023-02-01 08:42:11 -0300
commit2290cf73cce1292d9345a8183fd29ae3994a9481 (patch)
tree293c1361e50d8fc4c6b22c57d35f51521a5c3d83 /sysdeps/unix/sysv/linux/x86_64/clone3.S
parent2fe58919a0bfd1064c59120520116237ba818ed3 (diff)
downloadglibc-2290cf73cce1292d9345a8183fd29ae3994a9481.tar.gz
glibc-2290cf73cce1292d9345a8183fd29ae3994a9481.tar.xz
glibc-2290cf73cce1292d9345a8183fd29ae3994a9481.zip
Linux: Do not align the stack for __clone3
All internal callers of __clone3 should provide an already aligned
stack.  Removing the stack alignment in __clone3 is a net gain: it
simplifies the internal function contract (mask/unmask signals) along
with the arch-specific code.

Checked on x86_64-linux-gnu.
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'sysdeps/unix/sysv/linux/x86_64/clone3.S')
-rw-r--r--sysdeps/unix/sysv/linux/x86_64/clone3.S3
1 files changed, 0 insertions, 3 deletions
diff --git a/sysdeps/unix/sysv/linux/x86_64/clone3.S b/sysdeps/unix/sysv/linux/x86_64/clone3.S
index bd4a834e46..802d56cbac 100644
--- a/sysdeps/unix/sysv/linux/x86_64/clone3.S
+++ b/sysdeps/unix/sysv/linux/x86_64/clone3.S
@@ -73,9 +73,6 @@ L(thread_start):
 	   the outermost frame obviously.  */
 	xorl	%ebp, %ebp
 
-	/* Align stack to 16 bytes per the x86-64 psABI.  */
-	and	$-16, %RSP_LP
-
 	/* Set up arguments for the function call.  */
 	mov	%R8_LP, %RDI_LP	/* Argument.  */
 	call	*%rdx		/* Call function.  */