24 throw "failed to read ELF header";
30 throw "ELF header malformed (magic)";
43 throw "ELF32 header malformed (EI_DATA)";
46 throw "unknown ELF32 version";
51 throw "ELF32 without section header";
71 throw "ELF32 without string table";
90 throw "ELF64 header malformed (EI_DATA)";
93 throw "unknown ELF64 version";
98 throw "ELF64 without section header";
118 throw "ELF64 without string table";
bool has_section(const std::string &name) const
std::string section_name(std::size_t index) const
std::streampos section_offset(std::size_t index) const
std::string get_string(std::streampos index) const
unsigned char e_ident[16]
elf64_section_header_tablet elf64_section_header_table
std::streampos string_table_offset
elf_readert(std::istream &_in)
std::size_t number_of_sections
elf32_section_header_tablet elf32_section_header_table
unsigned char e_ident[16]