diff options
| author | Richard Henderson <richard.henderson@linaro.org> | 2025-07-29 09:33:51 -1000 |
|---|---|---|
| committer | Richard Henderson <richard.henderson@linaro.org> | 2025-08-30 07:04:04 +1000 |
| commit | 71cc79a4a172d28638ad27a4e6327a4ce1bcdf2b (patch) | |
| tree | 2e9edd56291248b6b34d03d665ce2acf356b1ea1 /linux-user/loader.h | |
| parent | 6e1c4ec4582814537c9a2b4700ff32da44fb27af (diff) | |
| download | focaccia-qemu-71cc79a4a172d28638ad27a4e6327a4ce1bcdf2b.tar.gz focaccia-qemu-71cc79a4a172d28638ad27a4e6327a4ce1bcdf2b.zip | |
linux-user: Move get_vdso_image_info to arm/elfload.c
Rename from vdso_image_info to avoid a symbol clash. Define HAVE_VDSO_IMAGE_INFO to signal the external definition exists. Provide fallback versions for other targets. Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'linux-user/loader.h')
| -rw-r--r-- | linux-user/loader.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/linux-user/loader.h b/linux-user/loader.h index c3b8f92e23..2175dd4e0a 100644 --- a/linux-user/loader.h +++ b/linux-user/loader.h @@ -110,4 +110,16 @@ bool init_guest_commpage(void); struct target_elf_gregset_t; void elf_core_copy_regs(struct target_elf_gregset_t *, const CPUArchState *); +typedef struct { + const uint8_t *image; + const uint32_t *relocs; + unsigned image_size; + unsigned reloc_count; + unsigned sigreturn_ofs; + unsigned rt_sigreturn_ofs; +} VdsoImageInfo; + +/* Note that both Elf32_Word and Elf64_Word are uint32_t. */ +const VdsoImageInfo *get_vdso_image_info(uint32_t elf_flags); + #endif /* LINUX_USER_LOADER_H */ |