37 MainCommand(
const details::entry_point_command& cmd);
38 MainCommand(uint64_t entrypoint, uint64_t stacksize);
43 std::unique_ptr<LoadCommand> clone()
const override {
44 return std::unique_ptr<MainCommand>(
new MainCommand(*
this));
60 void entrypoint(uint64_t entrypoint) {
61 entrypoint_ = entrypoint;
63 void stack_size(uint64_t stacksize) {
64 stack_size_ = stacksize;
67 std::ostream& print(std::ostream& os)
const override;
69 void accept(Visitor& visitor)
const override;
71 static bool classof(
const LoadCommand* cmd) {
72 return cmd->command() == LoadCommand::TYPE::MAIN;
76 uint64_t entrypoint_ = 0;
77 uint64_t stack_size_ = 0;
Class that represent the LC_MAIN command. This kind of command can be used to determine the entrypoin...
Definition MainCommand.hpp:34
uint64_t entrypoint() const
Offset of the main function relative to the __TEXT segment.
Definition MainCommand.hpp:51
uint64_t stack_size() const
The initial stack size (if not 0)
Definition MainCommand.hpp:56