summaryrefslogtreecommitdiffstats
path: root/arch/x86/vdso
diff options
context:
space:
mode:
authorCyrill Gorcunov <gorcunov@gmail.com>2008-05-03 14:18:01 +0400
committerIngo Molnar <mingo@elte.hu>2008-05-04 20:04:45 +0200
commitecb783eae1372d69a53d406e1bdba8284e4bafcc (patch)
tree27026055319a1a078908524f60233b0e3d3de2db /arch/x86/vdso
parent163ea310b68bdde89b1ac633fbf8c0db290d3f86 (diff)
downloadlinux-ecb783eae1372d69a53d406e1bdba8284e4bafcc.tar.gz
linux-ecb783eae1372d69a53d406e1bdba8284e4bafcc.tar.bz2
linux-ecb783eae1372d69a53d406e1bdba8284e4bafcc.zip
x86: vdso ELF handling - use SELFMAG instead of numeric constant
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com> Cc: akpm@linux-foundation.org Cc: hpa@zytor.com Cc: mingo@elte.hu Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/vdso')
-rw-r--r--arch/x86/vdso/vdso32-setup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/vdso/vdso32-setup.c b/arch/x86/vdso/vdso32-setup.c
index 4dceeb1fc5e0..cf058fecfcee 100644
--- a/arch/x86/vdso/vdso32-setup.c
+++ b/arch/x86/vdso/vdso32-setup.c
@@ -162,7 +162,7 @@ static __init void relocate_vdso(Elf32_Ehdr *ehdr)
Elf32_Shdr *shdr;
int i;
- BUG_ON(memcmp(ehdr->e_ident, ELFMAG, 4) != 0 ||
+ BUG_ON(memcmp(ehdr->e_ident, ELFMAG, SELFMAG) != 0 ||
!elf_check_arch_ia32(ehdr) ||
ehdr->e_type != ET_DYN);