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/elfload.c | |
| 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/elfload.c')
| -rw-r--r-- | linux-user/elfload.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/linux-user/elfload.c b/linux-user/elfload.c index 4e6e0059e6..26602516aa 100644 --- a/linux-user/elfload.c +++ b/linux-user/elfload.c @@ -1187,6 +1187,14 @@ static void elf_core_copy_regs(target_elf_gregset_t *regs, const CPUPPCState *en #define USE_ELF_CORE_DUMP #define ELF_EXEC_PAGESIZE 4096 +#ifndef TARGET_PPC64 +# define VDSO_HEADER "vdso-32.c.inc" +#elif TARGET_BIG_ENDIAN +# define VDSO_HEADER "vdso-64.c.inc" +#else +# define VDSO_HEADER "vdso-64le.c.inc" +#endif + #endif #ifdef TARGET_LOONGARCH64 |