diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2019-02-11 23:48:40 -0800 |
---|---|---|
committer | Laurent Vivier <laurent@vivier.eu> | 2019-03-07 10:57:29 +0100 |
commit | e20e3ec928ebdcad051ed3ac71ccf46a5aacc59b (patch) | |
tree | 37785582fc78a03502e8484ec35369a0b1e410a3 /linux-user/elfload.c | |
parent | 13ec4ec3e11c80bed9409c7046574d739d277ae3 (diff) | |
download | qemu-e20e3ec928ebdcad051ed3ac71ccf46a5aacc59b.zip qemu-e20e3ec928ebdcad051ed3ac71ccf46a5aacc59b.tar.gz qemu-e20e3ec928ebdcad051ed3ac71ccf46a5aacc59b.tar.bz2 |
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>
Diffstat (limited to 'linux-user/elfload.c')
-rw-r--r-- | linux-user/elfload.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/linux-user/elfload.c b/linux-user/elfload.c index 940a97a..c1a2602 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) |