summaryrefslogtreecommitdiff
path: root/preload/sb_exec.c
diff options
context:
space:
mode:
authorLauri Leukkunen <lle@rahina.org>2007-12-07 16:58:10 +0200
committerLauri Leukkunen <lle@rahina.org>2007-12-07 16:58:10 +0200
commitde1b913b7fd13d0b3c12f41ea606cc7082f6088f (patch)
tree896babe7b8ed6d042b5f87dc50ca3cceda2eb1b8 /preload/sb_exec.c
parentbfc862e039581debfcb664d06b0aba3066dc9193 (diff)
SH4 is little endian
by Magnus Damm <magnus.damm@gmail.com> Signed-off-by: Lauri Leukkunen <lle@rahina.org>
Diffstat (limited to 'preload/sb_exec.c')
-rw-r--r--preload/sb_exec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/preload/sb_exec.c b/preload/sb_exec.c
index 436cb1c..a2470b6 100644
--- a/preload/sb_exec.c
+++ b/preload/sb_exec.c
@@ -320,7 +320,7 @@ static enum binary_type inspect_binary(const char *filename)
retval = BIN_TARGET;
goto _out_munmap;
} else if (!strncmp(target_cpu, "sh", 2)
- && elf_hdr_match(ehdr->e_machine, EM_SH, 0)) {
+ && elf_hdr_match(ehdr->e_machine, EM_SH, 1)) {
retval = BIN_TARGET;
goto _out_munmap;
}