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() = default¶
- MainCommand(const details::entry_point_command &cmd)¶
- MainCommand(uint64_t entrypoint, uint64_t stacksize)¶
- MainCommand &operator=(const MainCommand ©) = default¶
- MainCommand(const MainCommand ©) = default¶
- inline virtual std::unique_ptr<LoadCommand> clone() const override¶
- ~MainCommand() override = default¶
- inline uint64_t entrypoint() const¶
Offset of the main function relative to the
__TEXT
segment.
- inline uint64_t stack_size() const¶
The initial stack size.
- inline void entrypoint(uint64_t entrypoint)¶
- inline 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 inline bool classof(const LoadCommand *cmd)¶
- MainCommand() = default¶