diff options
Diffstat (limited to 'src/format/elf/elf_def.h')
-rw-r--r-- | src/format/elf/elf_def.h | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/src/format/elf/elf_def.h b/src/format/elf/elf_def.h index dda1b1c..831e4ff 100644 --- a/src/format/elf/elf_def.h +++ b/src/format/elf/elf_def.h @@ -2,7 +2,7 @@ /* OpenIDA - Outil d'analyse de fichiers binaires * elf_def.h - liste des structures et constantes utilisées par le format ELF * - * Copyright (C) 2009-2010 Cyrille Bagard + * Copyright (C) 2009-2013 Cyrille Bagard * * This file is part of OpenIDA. * @@ -178,6 +178,28 @@ typedef union _elf_phdr #define ELF_SIZEOF_PHDR(fmt) (fmt->is_32b ? sizeof(elf32_phdr) : sizeof(elf64_phdr)) +/* Valeurs possibles pour p_type */ + +#define PT_NULL 0 /* Program header table entry unused */ +#define PT_LOAD 1 /* Loadable program segment */ +#define PT_DYNAMIC 2 /* Dynamic linking information */ +#define PT_INTERP 3 /* Program interpreter */ +#define PT_NOTE 4 /* Auxiliary information */ +#define PT_SHLIB 5 /* Reserved */ +#define PT_PHDR 6 /* Entry for header table itself */ +#define PT_TLS 7 /* Thread-local storage segment */ +#define PT_NUM 8 /* Number of defined types */ +#define PT_LOOS 0x60000000 /* Start of OS-specific */ +#define PT_GNU_EH_FRAME 0x6474e550 /* GCC .eh_frame_hdr segment */ +#define PT_GNU_STACK 0x6474e551 /* Indicates stack executability */ +#define PT_GNU_RELRO 0x6474e552 /* Read-only after relocation */ +#define PT_LOSUNW 0x6ffffffa +#define PT_SUNWBSS 0x6ffffffa /* Sun Specific segment */ +#define PT_SUNWSTACK 0x6ffffffb /* Stack segment */ +#define PT_HISUNW 0x6fffffff +#define PT_HIOS 0x6fffffff /* End of OS-specific */ +#define PT_LOPROC 0x70000000 /* Start of processor-specific */ +#define PT_HIPROC 0x7fffffff /* End of processor-specific */ /* Valeurs possibles pour p_flags */ @@ -246,6 +268,7 @@ typedef union _elf_shdr /* Valeurs possibles pour sh_flags */ +#define SHF_WRITE (1 << 0) /* Accessible en écriture */ #define SHF_ALLOC (1 << 1) /* Copie en mémoire pdt l'exec.*/ #define SHF_EXECINSTR (1 << 2) /* Section exécutable */ #define SHF_STRINGS (1 << 5) /* Contient des chaînes ('\0') */ |