1 //-----------------------------------------------------------------------------
2 // Copyright (C) Proxmark3 contributors. See AUTHORS.md for details.
4 // This program is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU General Public License as published by
6 // the Free Software Foundation, either version 3 of the License, or
7 // (at your option) any later version.
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU General Public License for more details.
14 // See LICENSE.txt for the text of the license.
15 //-----------------------------------------------------------------------------
17 //-----------------------------------------------------------------------------
33 } PACKED Elf32_Phdr_t
;
38 unsigned char e_ident
[EI_NIDENT
];
52 } PACKED Elf32_Ehdr_t
;
55 uint32_t sh_name
; // Section name, index in string tbl
56 uint32_t sh_type
; // Type of section
57 uint32_t sh_flags
; // Miscellaneous section attributes
58 uint32_t sh_addr
; // Section virtual addr at execution
59 uint32_t sh_offset
; // Section file offset
60 uint32_t sh_size
; // Size of section in bytes
61 uint32_t sh_link
; // Index of another section
62 uint32_t sh_info
; // Additional section information
63 uint32_t sh_addralign
; // Section alignment
64 uint32_t sh_entsize
; // Entry size if section holds table
65 } PACKED Elf32_Shdr_t
;