summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntony Pavlov <antonynpavlov@gmail.com>2017-10-09 16:40:53 +0300
committerSascha Hauer <s.hauer@pengutronix.de>2017-10-16 10:26:36 +0200
commit1cb2517f1b6715e15c5858947d5a1991b6c6c780 (patch)
treef6a9d1b4b41eb15815ba9909773ad70a4cdc0343
parent3c31cae11390350a5d229a860a60986806fa5f19 (diff)
downloadbarebox-1cb2517f1b6715e15c5858947d5a1991b6c6c780.tar.gz
elf.h: Use EI_NIDENT instead of numeric value
This is an adoption of the linux kernel commit | commit eb6900fbfa43cb50391b80b38608e25280705693 | Author: Cyrill Gorcunov <gorcunov@gmail.com> | Date: Tue Apr 29 01:01:17 2008 -0700 | | ELF: Use EI_NIDENT instead of numeric value | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com> | Signed-off-by: Andrew Morton <akpm@linux-foundation.org> | Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--include/elf.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/elf.h b/include/elf.h
index a749bec..ebcec7d 100644
--- a/include/elf.h
+++ b/include/elf.h
@@ -207,7 +207,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;