summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Henderson2019-02-12 08:48:40 +0100
committerLaurent Vivier2019-03-07 10:57:29 +0100
commite20e3ec928ebdcad051ed3ac71ccf46a5aacc59b (patch)
tree37785582fc78a03502e8484ec35369a0b1e410a3
parentlinux-user: Add ELF_PLATFORM for arm (diff)
downloadqemu-e20e3ec928ebdcad051ed3ac71ccf46a5aacc59b.tar.gz
qemu-e20e3ec928ebdcad051ed3ac71ccf46a5aacc59b.tar.xz
qemu-e20e3ec928ebdcad051ed3ac71ccf46a5aacc59b.zip
linux-user: Fix ELF_PLATFORM for aarch64_be-linux-user
Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Laurent Vivier <laurent@vivier.eu> Message-Id: <20190212074840.13542-3-richard.henderson@linaro.org> Signed-off-by: Laurent Vivier <laurent@vivier.eu>
-rw-r--r--linux-user/elfload.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/linux-user/elfload.c b/linux-user/elfload.c
index 940a97a2f2..c1a26021f8 100644
--- a/linux-user/elfload.c
+++ b/linux-user/elfload.c
@@ -537,7 +537,11 @@ static const char *get_elf_platform(void)
#define ELF_ARCH EM_AARCH64
#define ELF_CLASS ELFCLASS64
-#define ELF_PLATFORM "aarch64"
+#ifdef TARGET_WORDS_BIGENDIAN
+# define ELF_PLATFORM "aarch64_be"
+#else
+# define ELF_PLATFORM "aarch64"
+#endif
static inline void init_thread(struct target_pt_regs *regs,
struct image_info *infop)