Class which parses and transforms an ELF file into a ELF::Binary object.
More...
#include <Parser.hpp>
Class which parses and transforms an ELF file into a ELF::Binary object.
◆ ELF_TYPE
Enumerator |
---|
ELF_UNKNOWN | |
ELF32 | |
ELF64 | |
◆ Parser()
◆ operator=()
◆ parse() [1/3]
Parse an ELF file and return a LIEF::ELF::Binary object.
For weird binaries (e.g. sectionless) you can choose which method to use for counting dynamic symbols
- Parameters
-
[in] | file | Path to the ELF binary |
[in] | conf | Optional configuration for the parser |
- Returns
- LIEF::ELF::Binary as a
unique_ptr
◆ parse() [2/3]
Parse the given raw data as an ELF binary and return a LIEF::ELF::Binary object.
For weird binaries (e.g. sectionless) you can choose which method use to count dynamic symbols
- Parameters
-
[in] | data | Raw ELF as a std::vector of uint8_t |
[in] | conf | Optional configuration for the parser |
- Returns
- LIEF::ELF::Binary
◆ parse() [3/3]
Parse the ELF binary from the given stream and return a LIEF::ELF::Binary object.
For weird binaries (e.g. sectionless) you can choose which method use to count dynamic symbols
- Parameters
-
[in] | stream | The stream which wraps the ELF binary |
[in] | conf | Optional configuration for the parser |
- Returns
- LIEF::ELF::Binary
◆ DELTA_NB_SYMBOLS
uint32_t LIEF::ELF::Parser::DELTA_NB_SYMBOLS = 3000 |
|
staticconstexpr |
◆ MAX_SEGMENT_SIZE
uint32_t LIEF::ELF::Parser::MAX_SEGMENT_SIZE = 3_GB |
|
staticconstexpr |
◆ NB_MAX_BUCKETS
◆ NB_MAX_CHAINS
uint32_t LIEF::ELF::Parser::NB_MAX_CHAINS = 1000000 |
|
staticconstexpr |
◆ NB_MAX_DYNAMIC_ENTRIES
uint32_t LIEF::ELF::Parser::NB_MAX_DYNAMIC_ENTRIES = 1000 |
|
staticconstexpr |
◆ NB_MAX_MASKWORD
uint32_t LIEF::ELF::Parser::NB_MAX_MASKWORD = 512 |
|
staticconstexpr |
◆ NB_MAX_RELOCATIONS
uint32_t LIEF::ELF::Parser::NB_MAX_RELOCATIONS = 3000000 |
|
staticconstexpr |
◆ NB_MAX_SEGMENTS
uint32_t LIEF::ELF::Parser::NB_MAX_SEGMENTS = 10000 |
|
staticconstexpr |
◆ NB_MAX_SYMBOLS
uint32_t LIEF::ELF::Parser::NB_MAX_SYMBOLS = 1000000 |
|
staticconstexpr |
The documentation for this class was generated from the following file: