|
LIEF: Library to Instrument Executable Formats Version 1.0.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 |
Referenced by AssemblerConfig(), AssemblerConfig(), default_config(), operator=(), and operator=().
|
default |
References AssemblerConfig().
|
default |
References AssemblerConfig().
|
virtualdefault |
|
inlinestatic |
Default configuration.
References AssemblerConfig().
Referenced by LIEF::assembly::Engine::assemble(), LIEF::assembly::Engine::assemble(), and LIEF::Binary::assemble().
|
default |
References AssemblerConfig().
|
default |
References AssemblerConfig().
|
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.