LIEF: Library to Instrument Executable Formats Version 0.17.0
|
This class exposes the different elements that can be configured to assemble code. More...
#include <AssemblerConfig.hpp>
Public Types | |
enum class | DIALECT { DEFAULT_DIALECT = 0 , X86_INTEL , X86_ATT } |
The different supported dialects. More... | |
Public Member Functions | |
AssemblerConfig ()=default | |
AssemblerConfig (const AssemblerConfig &)=default | |
AssemblerConfig & | operator= (const AssemblerConfig &)=default |
AssemblerConfig (AssemblerConfig &&)=default | |
AssemblerConfig & | operator= (AssemblerConfig &&)=default |
virtual optional< uint64_t > | resolve_symbol (const std::string &) |
This function aims to be overloaded in order to resolve symbols used in the assembly listing. | |
virtual | ~AssemblerConfig ()=default |
Static Public Member Functions | |
static AssemblerConfig & | default_config () |
Default configuration. | |
Public Attributes | |
DIALECT | dialect = DIALECT::DEFAULT_DIALECT |
The dialect of the input assembly code. | |
This class exposes the different elements that can be configured to assemble code.
|
strong |
|
default |
|
default |
|
default |
|
virtualdefault |
|
inlinestatic |
Default configuration.
|
default |
|
default |
|
inlinevirtual |
This function aims to be overloaded in order to resolve symbols used in the assembly listing.
For instance, given this assembly code:
The function _my_function
will remain undefined unless we return its address in resolve_symbol()
:
References LIEF::nullopt().
DIALECT LIEF::assembly::AssemblerConfig::dialect = DIALECT::DEFAULT_DIALECT |
The dialect of the input assembly code.