LIEF: Library to Instrument Executable Formats Version 0.15.0
Loading...
Searching...
No Matches
Public Types | Static Public Member Functions | Public Attributes | List of all members
LIEF::ELF::ParserConfig Struct Reference

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
 

Detailed Description

This structure is used to tweak the ELF Parser (ELF::Parser)

Member Enumeration Documentation

◆ DYNSYM_COUNT

Methods that can be used by the LIEF::ELF::Parser to count the number of dynamic symbols

Enumerator
AUTO 

Automatic detection

SECTION 

Count based on sections (not very reliable)

HASH 

Count based on hash table (reliable)

RELOCATIONS 

Count based on PLT/GOT relocations (very reliable but not accurate)

Member Data Documentation

◆ count_mtd

DYNSYM_COUNT LIEF::ELF::ParserConfig::count_mtd = DYNSYM_COUNT::AUTO

The method used to count the number of dynamic symbols


The documentation for this struct was generated from the following file: