Class that represent the LC_MAIN command. This kind of command can be used to determine the entrypoint of an executable.
More...
#include <MainCommand.hpp>
|
| MainCommand (const details::entry_point_command &cmd) |
|
| MainCommand (uint64_t entrypoint, uint64_t stacksize) |
|
MainCommand & | operator= (const MainCommand ©) |
|
| MainCommand (const MainCommand ©) |
|
MainCommand * | clone () const override |
|
uint64_t | entrypoint () const |
| Offset of the main function relative to the __TEXT segment.
|
|
uint64_t | stack_size () const |
| The initial stack size (if not 0)
|
|
void | entrypoint (uint64_t entrypoint) |
|
void | stack_size (uint64_t stacksize) |
|
std::ostream & | print (std::ostream &os) const override |
|
void | accept (Visitor &visitor) const override |
|
Public Member Functions inherited from LIEF::MachO::LoadCommand |
| LoadCommand (const details::load_command &command) |
|
| LoadCommand (LOAD_COMMAND_TYPES type, uint32_t size) |
|
LoadCommand & | operator= (LoadCommand copy) |
|
| LoadCommand (const LoadCommand ©) |
|
void | swap (LoadCommand &other) |
|
LOAD_COMMAND_TYPES | command () const |
| Command type.
|
|
uint32_t | size () const |
| Size of the command (should be greather than sizeof(load_command) )
|
|
span< const uint8_t > | data () const |
| Raw command.
|
|
uint64_t | command_offset () const |
| Offset of the command within the Load Command Table
|
|
void | data (const raw_t &data) |
|
void | command (LOAD_COMMAND_TYPES command) |
|
void | size (uint32_t size) |
|
void | command_offset (uint64_t offset) |
|
| Object (const Object &other) |
|
Object & | operator= (const Object &other) |
|
template<class T > |
output_t< T > | as () |
|
template<class T > |
output_const_t< T > | as () const |
|
virtual bool | operator== (const Object &other) const |
|
virtual bool | operator!= (const Object &other) const |
|
|
Public Types inherited from LIEF::MachO::LoadCommand |
using | raw_t = std::vector<uint8_t> |
|
template<class T > |
using | output_t = add_pointer_t<decay_t<T>> |
|
template<class T > |
using | output_const_t = add_pointer_t<add_const_t<decay_t<T>>> |
|
Class that represent the LC_MAIN command. This kind of command can be used to determine the entrypoint of an executable.
◆ accept()
void LIEF::MachO::MainCommand::accept |
( |
Visitor & | visitor | ) |
const |
|
overridevirtual |
◆ clone()
MainCommand * LIEF::MachO::MainCommand::clone |
( |
| ) |
const |
|
overridevirtual |
◆ print()
std::ostream & LIEF::MachO::MainCommand::print |
( |
std::ostream & | os | ) |
const |
|
overridevirtual |
The documentation for this class was generated from the following file: