LIEF: Library to Instrument Executable Formats Version 0.17.0
|
This structure is used to tweak the ELF Parser (ELF::Parser). More...
#include <ParserConfig.hpp>
Public Types | |
enum class | DYNSYM_COUNT { AUTO = 0 , SECTION = 1 , HASH = 2 , RELOCATIONS = 3 } |
Static Public Member Functions | |
static ParserConfig | all () |
This returns a ParserConfig object configured to process all the ELF elements. |
Public Attributes | |
bool | parse_relocations = true |
Whether relocations (including plt-like relocations) should be parsed. | |
bool | parse_dyn_symbols = true |
Whether dynamic symbols (those from .dynsym) should be parsed. | |
bool | parse_symtab_symbols = true |
Whether debug symbols (those from .symtab) should be parsed. | |
bool | parse_symbol_versions = true |
Whether versioning symbols should be parsed. | |
bool | parse_notes = true |
Whether ELF notes information should be parsed. | |
bool | parse_overlay = true |
Whether the overlay data should be parsed. | |
DYNSYM_COUNT | count_mtd = DYNSYM_COUNT::AUTO |
uint64_t | page_size = 0 |
Memory page size if the binary uses a non-standard value. |
This structure is used to tweak the ELF Parser (ELF::Parser).
|
strong |
Methods that can be used by the LIEF::ELF::Parser to count the number of dynamic symbols
|
inlinestatic |
This returns a ParserConfig object configured to process all the ELF elements.
Referenced by LIEF::ELF::Parser::parse(), LIEF::ELF::Parser::parse(), and LIEF::ELF::Parser::parse().
DYNSYM_COUNT LIEF::ELF::ParserConfig::count_mtd = DYNSYM_COUNT::AUTO |
The method used to count the number of dynamic symbols
uint64_t LIEF::ELF::ParserConfig::page_size = 0 |
Memory page size if the binary uses a non-standard value.
For instance, SPARCV9 binary can use page size from 0x2000 to 0x100000.
bool LIEF::ELF::ParserConfig::parse_dyn_symbols = true |
Whether dynamic symbols (those from .dynsym) should be parsed.
bool LIEF::ELF::ParserConfig::parse_notes = true |
Whether ELF notes information should be parsed.
bool LIEF::ELF::ParserConfig::parse_overlay = true |
Whether the overlay data should be parsed.
bool LIEF::ELF::ParserConfig::parse_relocations = true |
Whether relocations (including plt-like relocations) should be parsed.
bool LIEF::ELF::ParserConfig::parse_symbol_versions = true |
Whether versioning symbols should be parsed.
bool LIEF::ELF::ParserConfig::parse_symtab_symbols = true |
Whether debug symbols (those from .symtab) should be parsed.