elf.h: Use EI_NIDENT instead of numeric value
PATCH 1/1 elf.h: Use EI_NIDENT instead of numeric value
This is an adoption of the linux kernel commit
| commit eb6900fbfa43cb50391b80b38608e25280705693 | Author: Cyrill Gorcunov <[email protected]> | Date: Tue Apr 29 01:01:17 2008 -0700 | | ELF: Use EI_NIDENT instead of numeric value | | Signed-off-by: Cyrill Gorcunov <[email protected]> | Signed-off-by: Andrew Morton <[email protected]> | Signed-off-by: Linus Torvalds <[email protected]>
Signed-off-by Antony Pavlov <[email protected]>
--- include/elf.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/elf.h +1 -1
@@ -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;
Signature · 7 lines
2.14.1 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Sascha Hauer
AppliedQuoted 12 lines · Antony Pavlov
This is an adoption of the linux kernel commit
| commit eb6900fbfa43cb50391b80b38608e25280705693 | Author: Cyrill Gorcunov <[email protected]> | Date: Tue Apr 29 01:01:17 2008 -0700 | | ELF: Use EI_NIDENT instead of numeric value | | Signed-off-by: Cyrill Gorcunov <[email protected]> | Signed-off-by: Andrew Morton <[email protected]> | Signed-off-by: Linus Torvalds <[email protected]>
Quoted 4 lines
Signed-off-by Antony Pavlov <[email protected]>--- include/elf.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Applied, thanks
Sascha
Quoted 18 lines
include/elf.h +1
-1@@ -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;Signature · 1 line
2.14.1
Signature · 9 lines
Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox