ARC: align child stack in clone
commit87abcf9a6e34d64f556b0b9d3ccd2689b2c2e0b6
authorPavel Kozlov <pavel.kozlov@synopsys.com>
Wed, 21 Dec 2022 16:19:46 +0000 (21 20:19 +0400)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Fri, 17 Feb 2023 19:12:52 +0000 (17 16:12 -0300)
tree47c2a3a396560d3e66930d45bc9cef87c99d94a2
parenta9b3b770f596c9f9fd059f5a90a4e1db3c4f3835
ARC: align child stack in clone

The ARCv2 ABI requires 4 byte stack pointer alignment. Don't allow to
use unaligned child stack in clone. As the stack grows down,
align it down.

This was pointed by misc/tst-misalign-clone-internal and
misc/tst-misalign-clone tests. Stack alignmet fixes these tests
fails.
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
sysdeps/unix/sysv/linux/arc/clone.S