2003-01-10 Roland McGrath <roland@redhat.com>

* util.c [LINUX && X86_64] (arg0_offset, arg1_offset): Use correct
	values for x86-64, conditional on current_personality.
This commit is contained in:
Roland McGrath 2003-01-10 20:51:00 +00:00
parent 944d10f887
commit 7f33cc3eb5

3
util.c
View File

@ -1205,6 +1205,9 @@ typedef struct regs arg_setup_state;
# elif defined (HPPA)
# define arg0_offset PT_GR26
# define arg1_offset (PT_GR26-4)
# elif defined (X86_64)
# define arg0_offset ((long)(8*(current_personality ? RBX : RDI)))
# define arg1_offset ((long)(8*(current_personality ? RCX : RSI)))
# else
# define arg0_offset 0
# define arg1_offset 4