From: Adhemerval Zanella Date: Wed, 19 Jul 2017 14:45:37 +0000 (-0300) Subject: alpha: Fix clone exit syscall argument passing (BZ#21512) X-Git-Tag: upstream/2.30~3002 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d500130f313572651e1d299f1677f8d677060fb2;p=platform%2Fupstream%2Fglibc.git alpha: Fix clone exit syscall argument passing (BZ#21512) This patch fixes the argument passing for exit syscall after the clone function returns on hppa. This fixes misc/tst-clone2 on alpha-linux-gnu. Checked misc/tst-clone2 on alpha-linux-gnu. [BZ #21512] * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Fix argument passing to syscall exit. --- diff --git a/ChangeLog b/ChangeLog index 8618e26..4a2ad6e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2017-07-19 Adhemerval Zanella + + * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Fix argument + passing to syscall exit. + 2017-07-19 DJ Delorie * grp/grp-merge.c (libc_hidden_def): Fix cast-after-dereference. diff --git a/sysdeps/unix/sysv/linux/alpha/clone.S b/sysdeps/unix/sysv/linux/alpha/clone.S index 550461f..e7ee0af 100644 --- a/sysdeps/unix/sysv/linux/alpha/clone.S +++ b/sysdeps/unix/sysv/linux/alpha/clone.S @@ -98,6 +98,7 @@ thread_start: jsr ra, (pv) ldgp gp, 0(ra) + mov v0, a0 ldiq v0, __NR_exit call_pal PAL_callsys