diff mbox

[05/14] linux-user: Fix ELF_DATA for Alpha.

Message ID 7be905fc17c84129ec4eae560e3effc9a6ad61c7.1272483393.git.rth@twiddle.net
State New
Headers show

Commit Message

Richard Henderson April 4, 2010, 7:35 p.m. UTC
Alpha is little-endian on Linux.

Signed-off-by: Richard Henderson <rth@twiddle.net>
---
 linux-user/elfload.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff mbox

Patch

diff --git a/linux-user/elfload.c b/linux-user/elfload.c
index 962f9ba..5814702 100644
--- a/linux-user/elfload.c
+++ b/linux-user/elfload.c
@@ -778,7 +778,7 @@  static void elf_core_copy_regs(target_elf_gregset_t *regs, const CPUState *env)
 #define elf_check_arch(x) ( (x) == ELF_ARCH )
 
 #define ELF_CLASS      ELFCLASS64
-#define ELF_DATA       ELFDATA2MSB
+#define ELF_DATA       ELFDATA2LSB
 #define ELF_ARCH       EM_ALPHA
 
 static inline void init_thread(struct target_pt_regs *regs,