MainCommand¶
- class MainCommand : public LIEF::MachO::LoadCommand¶
Class that represent the LC_MAIN command. This kind of command can be used to determine the entrypoint of an executable.
Public Functions
- MainCommand()¶
- MainCommand(const details::entry_point_command &cmd)¶
- MainCommand(uint64_t entrypoint, uint64_t stacksize)¶
- MainCommand &operator=(const MainCommand ©)¶
- MainCommand(const MainCommand ©)¶
- virtual MainCommand *clone() const override¶
- ~MainCommand() 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)¶
- virtual std::ostream &print(std::ostream &os) const override¶
- virtual void accept(Visitor &visitor) const override¶
Public Static Functions
- static bool classof(const LoadCommand *cmd)¶
- MainCommand()¶