summary refs log tree commit diff stats
path: root/linux-user/arm/target_elf.h
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2025-07-28 08:47:57 -1000
committerRichard Henderson <richard.henderson@linaro.org>2025-08-28 06:39:25 +1000
commitd6b8c5dbd9b0fd05c3f8ac9427729082eecb9fbb (patch)
treeef8f19179d803d261d15a7d5b71fc7d1a816f333 /linux-user/arm/target_elf.h
parente03b6ad483c087c8cf0357b7859d98bd2b109071 (diff)
downloadfocaccia-qemu-d6b8c5dbd9b0fd05c3f8ac9427729082eecb9fbb.tar.gz
focaccia-qemu-d6b8c5dbd9b0fd05c3f8ac9427729082eecb9fbb.zip
linux-user: Move get_elf_platform to arm/elfload.c
Move the aarch32 get_elf_platform to arm/elfload.c; pass in CPUState.
Create a simple version in aarch64/elfload.c, which we must do at the
same time because of the ifdef dependency between TARGET_AARCH64
and TARGET_ARM.

Since all versions of get_elf_platform now have the same
signature, remove the ifdef from the declaration in loader.h.

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'linux-user/arm/target_elf.h')
-rw-r--r--linux-user/arm/target_elf.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/linux-user/arm/target_elf.h b/linux-user/arm/target_elf.h
index 90470bd87b..856ca41b16 100644
--- a/linux-user/arm/target_elf.h
+++ b/linux-user/arm/target_elf.h
@@ -10,5 +10,6 @@
 
 #define HAVE_ELF_HWCAP          1
 #define HAVE_ELF_HWCAP2         1
+#define HAVE_ELF_PLATFORM       1
 
 #endif