Syscall numbers do not start at 0 for OABI, so need
to mask off the high order bits when changing syscall

Signed-off-by: Steve Bennett <steveb@workware.net.au>

diff --git a/process.c b/process.c
index 23bd413..dd5464f 100644
--- a/process.c
+++ b/process.c
@@ -792,7 +792,7 @@ change_syscall(struct tcb *tcp, int new)
 #  define PTRACE_SET_SYSCALL 23
 # endif
 
-	if (ptrace (PTRACE_SET_SYSCALL, tcp->pid, 0, new) != 0)
+	if (ptrace (PTRACE_SET_SYSCALL, tcp->pid, 0, new & 0xFFFF) != 0)
 		return -1;
 
 	return 0;
-- 
1.5.5.3

