mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
linux-user/ppc: Add vdso
Add support in gen-vdso-elfn.c.inc for the DT_PPC64_OPT dynamic tag: this is an integer, so does not need relocation. Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
00cc2934b2
commit
e34136d930
12 changed files with 467 additions and 8 deletions
20
linux-user/ppc/vdso-asmoffset.h
Normal file
20
linux-user/ppc/vdso-asmoffset.h
Normal file
|
@ -0,0 +1,20 @@
|
|||
/*
|
||||
* Size of dummy stack frame allocated when calling signal handler.
|
||||
* See arch/powerpc/include/asm/ptrace.h.
|
||||
*/
|
||||
#ifdef TARGET_ABI32
|
||||
# define SIGNAL_FRAMESIZE 64
|
||||
#else
|
||||
# define SIGNAL_FRAMESIZE 128
|
||||
#endif
|
||||
|
||||
#ifdef TARGET_ABI32
|
||||
# define offsetof_sigframe_mcontext 0x20
|
||||
# define offsetof_rt_sigframe_mcontext 0x140
|
||||
# define offsetof_mcontext_fregs 0xc0
|
||||
# define offsetof_mcontext_vregs 0x1d0
|
||||
#else
|
||||
# define offsetof_rt_sigframe_mcontext 0xe8
|
||||
# define offsetof_mcontext_fregs 0x180
|
||||
# define offsetof_mcontext_vregs_ptr 0x288
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue