36 MainCommand(
const details::entry_point_command& cmd);
37 MainCommand(uint64_t entrypoint, uint64_t stacksize);
42 std::unique_ptr<LoadCommand> clone()
const override {
43 return std::unique_ptr<MainCommand>(
new MainCommand(*
this));
59 void entrypoint(uint64_t entrypoint) {
60 entrypoint_ = entrypoint;
62 void stack_size(uint64_t stacksize) {
63 stack_size_ = stacksize;
66 std::ostream& print(std::ostream& os)
const override;
68 void accept(Visitor& visitor)
const override;
70 static bool classof(
const LoadCommand* cmd) {
71 return cmd->command() == LoadCommand::TYPE::MAIN;
75 uint64_t entrypoint_ = 0;
76 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:33
uint64_t entrypoint() const
Offset of the main function relative to the __TEXT segment.
Definition MainCommand.hpp:50
uint64_t stack_size() const
The initial stack size.
Definition MainCommand.hpp:55