From: Adhemerval Zanella Date: Thu, 14 Dec 2017 12:07:44 +0000 (-0200) Subject: sh: Fix clone exit return code (BZ #22605) X-Git-Tag: glibc-2.27~247 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=554e3d51efdd7d15c15876b80a7cba3ad9b6a738;p=thirdparty%2Fglibc.git sh: Fix clone exit return code (BZ #22605) Since 3f823e87cc (Call exit directly in clone (BZ #21512)) SH clone implementation fails to set the exit code resulting in the failures: FAIL: nptl/tst-align-clone FAIL: nptl/tst-getpid1 This patch fixes the both testcases. [BZ #22605] * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Fix exit return code. Signed-off-by: Adhemerval Zanella --- diff --git a/ChangeLog b/ChangeLog index c408eb23508..b608b248146 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2017-12-19 Adhemerval Zanella + + [BZ #22605] + * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Fix exit return + code. + 2017-12-19 H.J. Lu [BZ #22563] diff --git a/sysdeps/unix/sysv/linux/sh/clone.S b/sysdeps/unix/sysv/linux/sh/clone.S index b13a64bb103..d369a82d87b 100644 --- a/sysdeps/unix/sysv/linux/sh/clone.S +++ b/sysdeps/unix/sysv/linux/sh/clone.S @@ -73,6 +73,7 @@ ENTRY(__clone) mov.l @(4,r15), r4 /* we are done, passing the return value through r0 */ + mov r0, r4 mov #+SYS_ify(exit), r3 trapa #0x15 .align 2