2008-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>

Fix ia64 `-f' on CLONE2 formerly crashing the child.
	* util.c [IA64] (restore_arg0, restore_arg1): Define as empty.
	Fixes RH#453438.
This commit is contained in:
Roland McGrath 2008-07-18 01:19:36 +00:00
parent 4483018fef
commit b659f87e7d

6
util.c
View File

@ -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;