]> granicus.if.org Git - strace/commitdiff
2008-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
authorRoland McGrath <roland@redhat.com>
Fri, 18 Jul 2008 01:19:36 +0000 (01:19 +0000)
committerRoland McGrath <roland@redhat.com>
Fri, 18 Jul 2008 01:19:36 +0000 (01:19 +0000)
Fix ia64 `-f' on CLONE2 formerly crashing the child.
* util.c [IA64] (restore_arg0, restore_arg1): Define as empty.
Fixes RH#453438.

util.c

diff --git a/util.c b/util.c
index 7b33ddcc1d08c7c0f1039ae0a0de52f67ca9b9aa..e83ee66a82a82951b06f31eac22b75c330a31f9b 100644 (file)
--- 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;