split and comment magic, class and data enum

This commit is contained in:
David du Colombier 2017-07-27 23:26:57 +02:00
parent d18527e32e
commit d2f2cc26d5
1 changed files with 13 additions and 0 deletions

13
dat.h
View File

@ -349,16 +349,29 @@ enum {
EI_PAD = 9, /* Start of padding bytes */
};
/*
* ELF Magic Number
*/
enum {
ELFMAG0 = 0x7f, /* e_ident[EI_MAG0] */
ELFMAG1 = 'E', /* e_ident[EI_MAG1] */
ELFMAG2 = 'L', /* e_ident[EI_MAG2] */
ELFMAG3 = 'F', /* e_ident[EI_MAG3] */
};
/*
* File class
*/
enum {
ELFCLASSNONE = 0, /* Invalid class */
ELFCLASS32 = 1, /* 32-bit objects */
ELFCLASS64 = 2, /* 64-bit objects */
};
/*
* Data encoding
*/
enum {
ELFDATANONE = 0, /* Invalid data encoding */
ELFDATA2LSB = 1, /* Litte-endian */
ELFDATA2MSB = 2, /* Big-endian */