| /xnu-8020.121.3/osfmk/mach/ |
| H A D | dyld_kernel_fixups.h | 223 const struct load_command* startCmds = 0; in kernel_collection_slide() 225 startCmds = (struct load_command*)((uintptr_t)mh + sizeof(struct mach_header_64)); in kernel_collection_slide() 227 startCmds = (struct load_command*)((uintptr_t)mh + sizeof(struct mach_header)); in kernel_collection_slide() 233 …const struct load_command* const cmdsEnd = (struct load_command*)((uintptr_t)startCmds + mh->sizeo… in kernel_collection_slide() 234 const struct load_command* cmd = startCmds; in kernel_collection_slide() 239 const struct load_command* nextCmd = (struct load_command*)((uintptr_t)cmd + cmd->cmdsize); in kernel_collection_slide() 335 struct load_command *lc; in kernel_collection_adjust_fileset_entry_addrs() 341 lc = (struct load_command *)((uintptr_t)mh + sizeof(*mh)); in kernel_collection_adjust_fileset_entry_addrs() 343 lc = (struct load_command *)((uintptr_t)lc + lc->cmdsize)) { in kernel_collection_adjust_fileset_entry_addrs() 402 struct load_command *lc; in kernel_collection_adjust_mh_addrs() [all …]
|
| /xnu-8020.121.3/tests/ |
| H A D | kas_info.c | 131 struct load_command *cmd = NULL; in disk_kernel_segments() 137 cmd = (struct load_command *)(&(mh[1])); in disk_kernel_segments() 144 cmd = (struct load_command *)(&(mh[1])); in disk_kernel_segments() 156 cmd = (struct load_command *) ((uintptr_t) cmd + cmd->cmdsize); in disk_kernel_segments() 175 cmd = (struct load_command *) ((uintptr_t) cmd + cmd->cmdsize); in disk_kernel_segments()
|
| H A D | correct_kernel_booted.c | 73 const struct load_command *lcmd = NULL; in get_macho_uuid()
|
| /xnu-8020.121.3/pexpert/gen/ |
| H A D | kcformat.c | 87 struct load_command *lc; in PE_set_kc_header() 91 lc = (struct load_command *)((uintptr_t)header + sizeof(*header)); in PE_set_kc_header() 93 lc = (struct load_command *)((uintptr_t)lc + lc->cmdsize)) { in PE_set_kc_header()
|
| /xnu-8020.121.3/libkern/kxld/ |
| H A D | kxld_util.c | 287 struct load_command *load_hdr = NULL; in validate_and_swap_macho_32() 339 load_hdr = (struct load_command *) ((void *) (file + offset)); in validate_and_swap_macho_32() 468 struct load_command *load_hdr = NULL; in validate_and_swap_macho_64() 520 load_hdr = (struct load_command *) ((void *) (file + offset)); in validate_and_swap_macho_64() 664 struct load_command *load_hdr = NULL; in unswap_macho_32() 682 load_hdr = (struct load_command *) ((void *) (file + offset)); in unswap_macho_32() 722 struct load_command *load_hdr = NULL; in unswap_macho_64() 740 load_hdr = (struct load_command *) ((void *) (file + offset)); in unswap_macho_64()
|
| H A D | kxld_object.c | 576 struct load_command *cmd_hdr = NULL; in init_from_final_linked_image() 609 cmd_hdr = (struct load_command *) ((void *) (my_file + offset)); in init_from_final_linked_image() 663 cmd_hdr = (struct load_command *) ((void *) (my_file + offset)); in init_from_final_linked_image() 953 struct load_command *cmd_hdr = NULL; in init_from_object() 992 cmd_hdr = (struct load_command *) ((void *) (my_file + offset)); in init_from_object()
|
| /xnu-8020.121.3/san/memory/ |
| H A D | kasan_dynamic_blacklist.c | 194 struct load_command *cmd = NULL; in kasan_dybl_load_kext() 197 cmd = (struct load_command *)&mh[1]; in kasan_dybl_load_kext() 235 struct load_command *cmd = NULL; in kasan_dybl_unload_kext() 238 cmd = (struct load_command *)&mh[1]; in kasan_dybl_unload_kext() 282 const struct load_command *cmd = NULL; in addr_to_func() 289 cmd = (const struct load_command *)&mh[1]; in addr_to_func()
|
| /xnu-8020.121.3/libkern/ |
| H A D | kernel_mach_header.c | 79 struct load_command *lcp; in getcommandfromheader() 82 lcp = (struct load_command *) (mhp + 1); in getcommandfromheader() 88 lcp = (struct load_command *)((uintptr_t)lcp + lcp->cmdsize); in getcommandfromheader()
|
| /xnu-8020.121.3/tools/lldbmacros/ |
| H A D | macho.py | 50 load_command, 92 cmd_load = load_command.from_fileobj(fh, **kw) 117 + sizeof(load_command) 154 data_size = cmd_load.cmdsize - sizeof(klass) - sizeof(load_command)
|
| /xnu-8020.121.3/libkern/c++/ |
| H A D | OSRuntime.cpp | 398 struct load_command *lc; in OSRuntimeSignStructorsInFileset() 400 lc = (struct load_command *)((uintptr_t)fileset_header + sizeof(*fileset_header)); in OSRuntimeSignStructorsInFileset() 402 lc = (struct load_command *)((uintptr_t)lc + lc->cmdsize)) { in OSRuntimeSignStructorsInFileset()
|
| H A D | OSKext.cpp | 4835 const struct load_command * load_cmd = NULL; in copyMachoUUID() 4839 load_cmd = (const struct load_command *)&header[1]; in copyMachoUUID() 4856 load_cmd = (struct load_command *)((caddr_t)load_cmd + load_cmd->cmdsize); in copyMachoUUID() 10904 struct load_command * lcp; 10919 lcp = (struct load_command *) (temp_kext_mach_hdr + 1); 10973 lcp = (struct load_command *)((caddr_t)lcp + lcp->cmdsize); 12404 struct load_command *lcp = (struct load_command *) (*mhp + 1); 12405 …for (unsigned int i = 0; i < (*mhp)->ncmds; i++, lcp = (struct load_command *)((uintptr_t)lcp + lc…
|
| /xnu-8020.121.3/tools/kt-dump/ |
| H A D | kt-dump.cpp | 160 load_command *cmd = in main() 161 reinterpret_cast<load_command *>(&slice_contents[cmds_offset]); in main()
|
| /xnu-8020.121.3/bsd/dev/dtrace/ |
| H A D | fbt.c | 416 struct load_command *cmd; in fbt_provide_module_kernel_syms() 428 cmd = (struct load_command *) &mh[1]; in fbt_provide_module_kernel_syms() 441 cmd = (struct load_command *) ((caddr_t) cmd + cmd->cmdsize); in fbt_provide_module_kernel_syms()
|
| H A D | sdt.c | 490 struct load_command *cmd = (struct load_command *)&mh[1]; in sdt_find_symbol_table() 505 cmd = (struct load_command *) ((uintptr_t) cmd + cmd->cmdsize); in sdt_find_symbol_table()
|
| H A D | dtrace.c | 16848 struct load_command* load_cmd = (struct load_command *)&header[1]; in dtrace_module_loaded() 16857 load_cmd = (struct load_command *)((caddr_t)load_cmd + load_cmd->cmdsize); in dtrace_module_loaded()
|
| /xnu-8020.121.3/bsd/kern/ |
| H A D | mach_loader.c | 158 struct load_command *lcp, 771 struct load_command *lcp; in parse_machfile() 1041 if (offset + sizeof(struct load_command) > cmds_size) { in parse_machfile() 1049 lcp = (struct load_command *)((uintptr_t)addr + offset); in parse_machfile() 1061 lcp->cmdsize < sizeof(struct load_command) || in parse_machfile() 1514 struct load_command *lcp; in check_if_simulator_binary() 1587 if (offset + sizeof(struct load_command) > cmds_size) { in check_if_simulator_binary() 1594 lcp = (struct load_command *)((uintptr_t)addr + offset); in check_if_simulator_binary() 1605 lcp->cmdsize < sizeof(struct load_command) || in check_if_simulator_binary() 2018 struct load_command *lcp, in load_segment() [all …]
|
| /xnu-8020.121.3/osfmk/i386/ |
| H A D | i386_vm_init.c | 300 struct load_command *loadcmd; in i386_vm_init() 303 loadcmd = (struct load_command *)((uintptr_t)&_mh_execute_header + in i386_vm_init() 316 loadcmd = (struct load_command *)((uintptr_t)loadcmd + loadcmd->cmdsize); in i386_vm_init()
|
| /xnu-8020.121.3/SETUP/setsegname/ |
| H A D | setsegname.c | 127 struct load_command * cmds; in main()
|
| /xnu-8020.121.3/osfmk/kern/ |
| H A D | kalloc.c | 952 struct load_command *lc = in kalloc_type_view_parse() 953 (struct load_command *)((vm_offset_t)kc_mh + sizeof(*kc_mh)); in kalloc_type_view_parse() 955 i++, lc = (struct load_command *)((vm_offset_t)lc + lc->cmdsize)) { in kalloc_type_view_parse() 1020 struct load_command *lc = in kalloc_type_view_parse() 1021 (struct load_command *)(cur + sizeof(kernel_mach_header_t)); in kalloc_type_view_parse() 1025 i++, lc = (struct load_command *)((vm_offset_t)lc + lc->cmdsize)) { in kalloc_type_view_parse()
|
| /xnu-8020.121.3/osfmk/i386/AT386/ |
| H A D | model_dep.c | 1076 struct load_command *cmd; in panic_print_macho_symbol_name() 1085 cmd = (struct load_command *) &mh[1]; in panic_print_macho_symbol_name() 1104 cmd = (struct load_command *) ((uintptr_t) cmd + cmd->cmdsize); in panic_print_macho_symbol_name()
|
| /xnu-8020.121.3/EXTERNAL_HEADERS/mach-o/ |
| H A D | loader.h | 247 struct load_command { struct
|
| /xnu-8020.121.3/bsd/vm/ |
| H A D | vm_unix.c | 3268 struct load_command *cmd; in kas_info() 3269 cmd = (struct load_command*) &mh[1]; in kas_info() 3291 cmd = (struct load_command *) ((uintptr_t) cmd + cmd->cmdsize); in kas_info()
|