#include <common.h>
#include <string.h>
#include <tasks/elf.h>
#include <interrupts/isr.h>
Go to the source code of this file.
|
#define | MAGIC_0 0x7F |
| magic value expected at the beginning of an ELF file
|
|
#define | MAGIC_1 'E' |
| magic value expected at the beginning of an ELF file
|
|
#define | MAGIC_2 'L' |
| magic value expected at the beginning of an ELF file
|
|
#define | MAGIC_3 'F' |
| magic value expected at the beginning of an ELF file
|
|
#define | VERSION 1 |
| only ELF version 1 is supported (the current version)
|
|
|
enum | elf_class { CLASS_32_BIT = 1,
CLASS_64_BIT
} |
| 32 or 64 bit
|
|
enum | elf_data { DATA_LITTLE_ENDIAN = 1,
DATA_BIG_ENDIAN
} |
| little or big endian
|
|
enum | elf_type { TYPE_RELOCATABLE = 1,
TYPE_EXECUTABLE,
TYPE_SHARED,
TYPE_CORE
} |
| object type
|
|
enum | elf_machine { MACHINE_X86 = 3
} |
| targeted ISA, we are only interested in x86
|
|