DoxigAlpha

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 needed for the main thread.

Fields of this type

Fields

#
cmd:LC
LC_MAIN only used in MH_EXECUTE filetypes
cmdsize:u32
sizeof(struct entry_point_command)
entryoff:u64
file (__TEXT) offset of main()
stacksize:u64
if not zero, initial stack size