summaryrefslogtreecommitdiffstats
path: root/include/asm-alpha/elf.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-alpha/elf.h')
-rw-r--r--include/asm-alpha/elf.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asm-alpha/elf.h b/include/asm-alpha/elf.h
index 26b2b27a7..d031ef3c2 100644
--- a/include/asm-alpha/elf.h
+++ b/include/asm-alpha/elf.h
@@ -22,7 +22,7 @@ typedef elf_fpreg_t elf_fpregset_t[ELF_NFPREG];
/*
* This is used to ensure we don't load something for the wrong architecture.
*/
-#define elf_check_arch(x) ((x) == EM_ALPHA)
+#define elf_check_arch(x) ((x)->e_machine == EM_ALPHA)
/*
* These are used to set parameters in the core dumps.