diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-10-24 23:40:31 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-10-24 23:40:31 +0000 |
commit | 571f43ec01f49a9630b10c4c3c8a224f0aeb01ee (patch) | |
tree | 714baa74493bc9615430f984d8caab4a5646dc76 /nuttx/include/elf.h | |
parent | ded016c6fbd656792ca99872cc717df581fe7910 (diff) | |
download | px4-nuttx-571f43ec01f49a9630b10c4c3c8a224f0aeb01ee.tar.gz px4-nuttx-571f43ec01f49a9630b10c4c3c8a224f0aeb01ee.tar.bz2 px4-nuttx-571f43ec01f49a9630b10c4c3c8a224f0aeb01ee.zip |
A little more ELF loader logic
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5253 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/include/elf.h')
-rw-r--r-- | nuttx/include/elf.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/nuttx/include/elf.h b/nuttx/include/elf.h index 31818249f..dbc615dcd 100644 --- a/nuttx/include/elf.h +++ b/nuttx/include/elf.h @@ -86,16 +86,17 @@ /* Ehe ELF identifier */ #define EI_MAG0 0 /* File identification */ -#define EI_MAG1 1 /* File identification */ -#define EI_MAG2 2 /* File identification */ -#define EI_MAG3 3 /* File identification */ +#define EI_MAG1 1 /* " " " " */ +#define EI_MAG2 2 /* " " " " */ +#define EI_MAG3 3 /* " " " " */ #define EI_CLASS 4 /* File class */ #define EI_DATA 5 /* Data encoding */ #define EI_VERSION 6 /* File version */ #define EI_PAD 7 /* Start of padding bytes */ #define EI_NIDENT 16 /* Size of eident[] */ -#define EI_MAGIC { 0x7f, 'E', 'L', 'F' } +#define EI_MAGIC_SIZE 4 +#define EI_MAGIC {0x7f, 'E', 'L', 'F'} /* Values for EI_CLASS */ |