diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2013-08-31 15:56:10 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2013-08-31 15:56:10 (GMT) |
commit | ed4bb73e5d68c1f81b8e0c3210aa221ec6f2675b (patch) | |
tree | 006a4641fc7a5c820d6a4253ff75e79ef01e368b /src/format/elf/elf_def.h | |
parent | 4658d4fa406bad4abe36a76746412cf02c984af0 (diff) |
Loaded a binary strip into the editor.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@358 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
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') */ |