From: Cyrill Gorcunov Date: Sat, 3 May 2008 10:18:03 +0000 (+0400) Subject: x86: relocs ELF handling - use SELFMAG instead of numeric constant X-Git-Tag: MMI-PSA29.97-13-9~34460^2~4 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8bd1796dedd50abd7553afbe6113bd97cc88390f;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git x86: relocs ELF handling - use SELFMAG instead of numeric constant Signed-off-by: Cyrill Gorcunov Cc: akpm@linux-foundation.org Cc: hpa@zytor.com Cc: mingo@elte.hu Signed-off-by: Thomas Gleixner Signed-off-by: Ingo Molnar --- diff --git a/arch/x86/boot/compressed/relocs.c b/arch/x86/boot/compressed/relocs.c index d01ea42187e6..edaadea90aaf 100644 --- a/arch/x86/boot/compressed/relocs.c +++ b/arch/x86/boot/compressed/relocs.c @@ -191,7 +191,7 @@ static void read_ehdr(FILE *fp) die("Cannot read ELF header: %s\n", strerror(errno)); } - if (memcmp(ehdr.e_ident, ELFMAG, 4) != 0) { + if (memcmp(ehdr.e_ident, ELFMAG, SELFMAG) != 0) { die("No ELF magic\n"); } if (ehdr.e_ident[EI_CLASS] != ELFCLASS32) {