This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH] hppa: Fix clone exit syscall argument passing (BZ#21512)
- From: Adhemerval Zanella <adhemerval dot zanella at linaro dot org>
- To: libc-alpha at sourceware dot org
- Cc: John David Anglin <dave dot anglin at bell dot net>
- Date: Mon, 17 Jul 2017 11:48:52 -0300
- Subject: [PATCH] hppa: Fix clone exit syscall argument passing (BZ#21512)
- Authentication-results: sourceware.org; auth=none
This patch fixes the argument passing for exit syscall after
the clone function returns on hppa. This fixes on misc/tst-clone1.
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 | 4 ++++
sysdeps/unix/sysv/linux/hppa/clone.S | 2 +-
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/sysdeps/unix/sysv/linux/hppa/clone.S b/sysdeps/unix/sysv/linux/hppa/clone.S
index ead3c92..0579d98 100644
--- a/sysdeps/unix/sysv/linux/hppa/clone.S
+++ b/sysdeps/unix/sysv/linux/hppa/clone.S
@@ -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
--
2.7.4