CBMC
|
#include <elf_reader.h>
Public Types | |
enum | elf_classt { ELF32 =1 , ELF64 =2 } |
typedef std::vector< Elf32_Shdr > | elf32_section_header_tablet |
typedef std::vector< Elf64_Shdr > | elf64_section_header_tablet |
Public Member Functions | |
elf_readert (std::istream &_in) | |
std::string | get_string (std::streampos index) const |
std::string | elf32_section_name (std::size_t index) const |
std::string | elf64_section_name (std::size_t index) const |
std::string | section_name (std::size_t index) const |
std::streampos | section_offset (std::size_t index) const |
bool | has_section (const std::string &name) const |
Public Attributes | |
elf_classt | elf_class |
Elf32_Ehdr | elf32_header |
Elf64_Ehdr | elf64_header |
bool | little_endian |
elf32_section_header_tablet | elf32_section_header_table |
elf64_section_header_tablet | elf64_section_header_table |
std::streampos | string_table_offset |
std::size_t | number_of_sections |
Protected Attributes | |
std::istream & | in |
Definition at line 100 of file elf_reader.h.
typedef std::vector<Elf32_Shdr> elf_readert::elf32_section_header_tablet |
Definition at line 115 of file elf_reader.h.
typedef std::vector<Elf64_Shdr> elf_readert::elf64_section_header_tablet |
Definition at line 118 of file elf_reader.h.
Enumerator | |
---|---|
ELF32 | |
ELF64 |
Definition at line 105 of file elf_reader.h.
|
explicit |
Definition at line 52 of file elf_reader.cpp.
|
inline |
Definition at line 125 of file elf_reader.h.
|
inline |
Definition at line 130 of file elf_reader.h.
std::string elf_readert::get_string | ( | std::streampos | index | ) | const |
Definition at line 227 of file elf_reader.cpp.
bool elf_readert::has_section | ( | const std::string & | name | ) | const |
Definition at line 245 of file elf_reader.cpp.
|
inline |
Definition at line 137 of file elf_reader.h.
|
inline |
Definition at line 144 of file elf_reader.h.
Elf32_Ehdr elf_readert::elf32_header |
Definition at line 109 of file elf_reader.h.
elf32_section_header_tablet elf_readert::elf32_section_header_table |
Definition at line 116 of file elf_reader.h.
Elf64_Ehdr elf_readert::elf64_header |
Definition at line 110 of file elf_reader.h.
elf64_section_header_tablet elf_readert::elf64_section_header_table |
Definition at line 119 of file elf_reader.h.
elf_classt elf_readert::elf_class |
Definition at line 106 of file elf_reader.h.
|
protected |
Definition at line 154 of file elf_reader.h.
bool elf_readert::little_endian |
Definition at line 112 of file elf_reader.h.
std::size_t elf_readert::number_of_sections |
Definition at line 135 of file elf_reader.h.
std::streampos elf_readert::string_table_offset |
Definition at line 122 of file elf_reader.h.