From: Roland McGrath Date: Fri, 18 Jul 2008 01:19:36 +0000 (+0000) Subject: 2008-06-30 Jan Kratochvil X-Git-Tag: v4.5.18~44 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b659f87e7d5b10f2c06626368efb8a0637f91da5;p=strace 2008-06-30 Jan Kratochvil Fix ia64 `-f' on CLONE2 formerly crashing the child. * util.c [IA64] (restore_arg0, restore_arg1): Define as empty. Fixes RH#453438. --- diff --git a/util.c b/util.c index 7b33ddcc..e83ee66a 100644 --- a/util.c +++ b/util.c @@ -1382,6 +1382,12 @@ set_arg1 (struct tcb *tcp, arg_setup_state *state, long val) return errno ? -1 : 0; } +/* ia64 does not return the input arguments from functions (and syscalls) + according to ia64 RSE (Register Stack Engine) behavior. */ + +# define restore_arg0(tcp, state, val) ((void) (state), 0) +# define restore_arg1(tcp, state, val) ((void) (state), 0) + #elif defined (SPARC) || defined (SPARC64) typedef struct regs arg_setup_state;