summaryrefslogtreecommitdiffstats
path: root/include/asm-sparc
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2000-07-12 00:45:49 +0000
committerRalf Baechle <ralf@linux-mips.org>2000-07-12 00:45:49 +0000
commit66f20d0f9bd86dc11f3869d78f3c5749789323ee (patch)
treef6462cca735c009dc41d590bc0128102d7645006 /include/asm-sparc
parent45c5d1ba96c0670768c065115604d52afa7882b0 (diff)
ELF loader changes / cleanup as discussed on linux-kernel.
Diffstat (limited to 'include/asm-sparc')
-rw-r--r--include/asm-sparc/elf.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asm-sparc/elf.h b/include/asm-sparc/elf.h
index c2f54c150..fbeaebf2e 100644
--- a/include/asm-sparc/elf.h
+++ b/include/asm-sparc/elf.h
@@ -59,7 +59,7 @@ typedef struct {
/*
* This is used to ensure we don't load something for the wrong architecture.
*/
-#define elf_check_arch(x) ((x) == EM_SPARC)
+#define elf_check_arch(x) ((x)->e_machine == EM_SPARC)
/*
* These are used to set parameters in the core dumps.