| ... | ... | @@ -40,6 +40,24 @@ pub const uuid_command = extern struct { |
| 40 | 40 | uuid: [16]u8, |
| 41 | 41 | }; |
| 42 | 42 | |
| 43 | /// The entry_point_command is a replacement for thread_command. |
| 44 | /// It is used for main executables to specify the location (file offset) |
| 45 | /// of main(). If -stack_size was used at link time, the stacksize |
| 46 | /// field will contain the stack size needed for the main thread. |
| 47 | pub const entry_point_command = struct { |
| 48 | /// LC_MAIN only used in MH_EXECUTE filetypes |
| 49 | cmd: u32, |
| 50 | |
| 51 | /// sizeof(struct entry_point_command) |
| 52 | cmdsize: u32, |
| 53 | |
| 54 | /// file (__TEXT) offset of main() |
| 55 | entryoff: u64, |
| 56 | |
| 57 | /// if not zero, initial stack size |
| 58 | stacksize: u64, |
| 59 | }; |
| 60 | |
| 43 | 61 | /// The symtab_command contains the offsets and sizes of the link-edit 4.3BSD |
| 44 | 62 | /// "stab" style symbol table information as described in the header files |
| 45 | 63 | /// <nlist.h> and <stab.h>. |