projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ecb783e
)
x86: relocs ELF handling - use SELFMAG instead of numeric constant
author
Cyrill Gorcunov
<gorcunov@gmail.com>
Sat, 3 May 2008 10:18:03 +0000
(14:18 +0400)
committer
Ingo Molnar
<mingo@elte.hu>
Sun, 4 May 2008 18:04:45 +0000
(20:04 +0200)
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>
arch/x86/boot/compressed/relocs.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/x86/boot/compressed/relocs.c
b/arch/x86/boot/compressed/relocs.c
index d01ea42187e6aa8ddcd1218f229e74e6dda13148..edaadea90aafcf9876256bcac9db5d68823874ea 100644
(file)
--- 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) {