aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--sysdeps/unix/sysv/linux/sh/clone.S1
2 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index c408eb2..b608b24 100644
--- 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]
diff --git a/sysdeps/unix/sysv/linux/sh/clone.S b/sysdeps/unix/sysv/linux/sh/clone.S
index b13a64b..d369a82 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