diff options
| author | Richard Henderson <richard.henderson@linaro.org> | 2023-08-14 17:58:55 -0700 |
|---|---|---|
| committer | Richard Henderson <richard.henderson@linaro.org> | 2023-10-30 13:41:56 -0700 |
| commit | e34136d93059ddd4a5e186b62282fccf27c3e9d0 (patch) | |
| tree | 918b4228f511d5b92dd352c159dfaa8eb8e36683 /linux-user/ppc/vdso-asmoffset.h | |
| parent | 00cc2934b2f02c469bd28cae0f1ac09e289a5ae9 (diff) | |
| download | focaccia-qemu-e34136d93059ddd4a5e186b62282fccf27c3e9d0.tar.gz focaccia-qemu-e34136d93059ddd4a5e186b62282fccf27c3e9d0.zip | |
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>
Diffstat (limited to 'linux-user/ppc/vdso-asmoffset.h')
| -rw-r--r-- | linux-user/ppc/vdso-asmoffset.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/linux-user/ppc/vdso-asmoffset.h b/linux-user/ppc/vdso-asmoffset.h new file mode 100644 index 0000000000..6844c8c81c --- /dev/null +++ b/linux-user/ppc/vdso-asmoffset.h @@ -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 |