projects/linux·commit eb6900fb

ELF: Use EI_NIDENT instead of numeric value

eb6900fb · Cyrill Gorcunov <[email protected]> · 2008-04-29 01:01:17 -07:00

Signed-off-by: Cyrill Gorcunov <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Commit
eb6900fbfa43cb50391b80b38608e25280705693
Parents
adf535ee

Changes

1 files changed · +1 −1

FileStatusAddDelContent
include/linux/elf.hmodified+1−1View file

include/linux/elf.h

View file
diff --git a/include/linux/elf.h b/include/linux/elf.h
index bad1b16..ff9fbed 100644
--- a/include/linux/elf.h
+++ b/include/linux/elf.h
@@ -208,7 +208,7 @@ typedef struct elf32_hdr{
} Elf32_Ehdr;
typedef struct elf64_hdr {
- unsigned char e_ident[16]; /* ELF "magic number" */
+ unsigned char e_ident[EI_NIDENT]; /* ELF "magic number" */
Elf64_Half e_type;
Elf64_Half e_machine;
Elf64_Word e_version;