entry_point_command

The entry_point_command is a replacement for thread_command. It is used for main executables to specify the location (file offset) of main(). If -stack_size was used at link time, the stacksize field will contain the stack size need for the main thread.

version(CoreDdoc)
struct entry_point_command {}

Members

Variables

cmd
uint cmd;

LC_MAIN only used in MH_EXECUTE filetypes.

cmdsize
uint cmdsize;

24.

entryoff
ulong entryoff;

File (__TEXT) offset of main().

stacksize
ulong stacksize;

If not zero, initial stack size.

Meta