]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
linux-user: Move elf parameters to openrisc/target_elf.h
authorRichard Henderson <richard.henderson@linaro.org>
Tue, 29 Jul 2025 20:40:21 +0000 (10:40 -1000)
committerRichard Henderson <richard.henderson@linaro.org>
Fri, 29 Aug 2025 21:04:04 +0000 (07:04 +1000)
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
linux-user/elfload.c
linux-user/openrisc/target_elf.h

index 6c8771d80405504d8940ace5b535a6b3062a15f5..d0993621c18565a16e1480636e0f5b79bf3c535e 100644 (file)
@@ -130,13 +130,6 @@ typedef abi_uint        target_gid_t;
 #endif
 typedef abi_int         target_pid_t;
 
-#ifdef TARGET_OPENRISC
-
-#define ELF_ARCH EM_OPENRISC
-#define ELF_CLASS ELFCLASS32
-
-#endif /* TARGET_OPENRISC */
-
 #ifdef TARGET_SH4
 
 #define ELF_CLASS ELFCLASS32
index ad80e4b41aedc08b7f2bb9f427fb246f33cf7dd0..ed9739380fd940ebbbec34f422d4b781ab2e8f14 100644 (file)
@@ -10,6 +10,9 @@
 
 #include "target_ptrace.h"
 
+#define ELF_ARCH                EM_OPENRISC
+#define ELF_CLASS               ELFCLASS32
+
 #define HAVE_ELF_CORE_DUMP      1
 
 /*