]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
sh: Fix clone exit return code (BZ #22605)
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Thu, 14 Dec 2017 12:07:44 +0000 (10:07 -0200)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 19 Dec 2017 14:02:01 +0000 (12:02 -0200)
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 <adhemerval.zanella@linaro.org>
ChangeLog
sysdeps/unix/sysv/linux/sh/clone.S

index c408eb235089855e2379c098fb36ad47a71dc3c3..b608b2481461417f2bdac96f8e5c21f38f5471cd 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2017-12-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
+
+       [BZ #22605]
+       * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Fix exit return
+       code.
+
 2017-12-19  H.J. Lu  <hongjiu.lu@intel.com>
 
        [BZ #22563]
index b13a64bb10391e5dac535a29b549f8bf361f3e0f..d369a82d87bd905b333d3c5be2425b401bd7cf95 100644 (file)
@@ -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