]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
hppa: Fix clone exit syscall argument passing (BZ#21512)
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Mon, 17 Jul 2017 14:46:00 +0000 (11:46 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Mon, 17 Jul 2017 17:25:40 +0000 (14:25 -0300)
This patch fixes the argument passing for exit syscall after
the clone function returns on hppa.  This fixes misc/tst-clone2
on hppa-linux-gnu.

Checked misc/tst-clone2 on hppa-linux-gnu.

[BZ #21512]
* sysdeps/unix/sysv/linux/hppa/clone.S (__clone): Fix argument
passing to syscall exit.

ChangeLog
sysdeps/unix/sysv/linux/hppa/clone.S

index 2f7c086df23a8b22895cd997f96c82efeea7833d..1accc21fb51122b2df69989372e5cb47ad67ba02 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2017-07-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
+
+       [BZ #21512]
+       * sysdeps/unix/sysv/linux/hppa/clone.S (__clone): Fix argument
+       passing to syscall exit.
+
 2017-07-17  Szabolcs Nagy  <szabolcs.nagy@arm.com>
 
        * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_FCMA): New macro.
index ead3c9227af061e7c926ee716f96ba29f516f761..e0daf174bb15c2b97c8c4a5e4392efea5140cadb 100644 (file)
@@ -150,7 +150,7 @@ ENTRY(__clone)
 #ifdef PIC
        copy    %r4, %r19
 #endif
-       /* The call to _exit needs saved r19.  */
+       copy    %r28, %r26
        ble     0x100(%sr2, %r0)
        ldi     __NR_exit, %r20