Home
last modified time | relevance | path

Searched refs:load_command (Results 1 – 21 of 21) sorted by relevance

/xnu-8019.80.24/osfmk/mach/
H A Ddyld_kernel_fixups.h223 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-8019.80.24/tests/
H A Dkas_info.c131 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 Dcorrect_kernel_booted.c73 const struct load_command *lcmd = NULL; in get_macho_uuid()
/xnu-8019.80.24/pexpert/gen/
H A Dkcformat.c87 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-8019.80.24/libkern/kxld/
H A Dkxld_util.c309 struct load_command *load_hdr = NULL; in validate_and_swap_macho_32()
361 load_hdr = (struct load_command *) ((void *) (file + offset)); in validate_and_swap_macho_32()
490 struct load_command *load_hdr = NULL; in validate_and_swap_macho_64()
542 load_hdr = (struct load_command *) ((void *) (file + offset)); in validate_and_swap_macho_64()
686 struct load_command *load_hdr = NULL; in unswap_macho_32()
704 load_hdr = (struct load_command *) ((void *) (file + offset)); in unswap_macho_32()
744 struct load_command *load_hdr = NULL; in unswap_macho_64()
762 load_hdr = (struct load_command *) ((void *) (file + offset)); in unswap_macho_64()
H A Dkxld_object.c576 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-8019.80.24/san/memory/
H A Dkasan_dynamic_blacklist.c194 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-8019.80.24/libkern/
H A Dkernel_mach_header.c79 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-8019.80.24/libkern/c++/
H A DOSRuntime.cpp398 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 DOSKext.cpp4833 const struct load_command * load_cmd = NULL; in copyMachoUUID()
4837 load_cmd = (const struct load_command *)&header[1]; in copyMachoUUID()
4854 load_cmd = (struct load_command *)((caddr_t)load_cmd + load_cmd->cmdsize); in copyMachoUUID()
10901 struct load_command * lcp;
10916 lcp = (struct load_command *) (temp_kext_mach_hdr + 1);
10970 lcp = (struct load_command *)((caddr_t)lcp + lcp->cmdsize);
12401 struct load_command *lcp = (struct load_command *) (*mhp + 1);
12402 …for (unsigned int i = 0; i < (*mhp)->ncmds; i++, lcp = (struct load_command *)((uintptr_t)lcp + lc…
/xnu-8019.80.24/tools/kt-dump/
H A Dkt-dump.cpp160 load_command *cmd = in main()
161 reinterpret_cast<load_command *>(&slice_contents[cmds_offset]); in main()
/xnu-8019.80.24/bsd/dev/dtrace/
H A Dfbt.c416 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 Dsdt.c487 struct load_command *cmd = (struct load_command *)&mh[1]; in sdt_find_symbol_table()
502 cmd = (struct load_command *) ((uintptr_t) cmd + cmd->cmdsize); in sdt_find_symbol_table()
H A Ddtrace.c16864 struct load_command* load_cmd = (struct load_command *)&header[1]; in dtrace_module_loaded()
16873 load_cmd = (struct load_command *)((caddr_t)load_cmd + load_cmd->cmdsize); in dtrace_module_loaded()
/xnu-8019.80.24/bsd/kern/
H A Dmach_loader.c158 struct load_command *lcp,
772 struct load_command *lcp; in parse_machfile()
1042 if (offset + sizeof(struct load_command) > cmds_size) { in parse_machfile()
1050 lcp = (struct load_command *)((uintptr_t)addr + offset); in parse_machfile()
1062 lcp->cmdsize < sizeof(struct load_command) || in parse_machfile()
1515 struct load_command *lcp; in check_if_simulator_binary()
1588 if (offset + sizeof(struct load_command) > cmds_size) { in check_if_simulator_binary()
1595 lcp = (struct load_command *)((uintptr_t)addr + offset); in check_if_simulator_binary()
1606 lcp->cmdsize < sizeof(struct load_command) || in check_if_simulator_binary()
2019 struct load_command *lcp, in load_segment()
[all …]
/xnu-8019.80.24/osfmk/i386/
H A Di386_vm_init.c300 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-8019.80.24/SETUP/setsegname/
H A Dsetsegname.c127 struct load_command * cmds; in main()
/xnu-8019.80.24/osfmk/kern/
H A Dkalloc.c876 struct load_command *lc = in kalloc_type_view_parse()
877 (struct load_command *)((vm_offset_t)kc_mh + sizeof(*kc_mh)); in kalloc_type_view_parse()
879 i++, lc = (struct load_command *)((vm_offset_t)lc + lc->cmdsize)) { in kalloc_type_view_parse()
945 struct load_command *lc = in kalloc_type_view_parse()
946 (struct load_command *)(cur + sizeof(kernel_mach_header_t)); in kalloc_type_view_parse()
950 i++, lc = (struct load_command *)((vm_offset_t)lc + lc->cmdsize)) { in kalloc_type_view_parse()
/xnu-8019.80.24/osfmk/i386/AT386/
H A Dmodel_dep.c1076 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-8019.80.24/EXTERNAL_HEADERS/mach-o/
H A Dloader.h247 struct load_command { struct
/xnu-8019.80.24/bsd/vm/
H A Dvm_unix.c3252 struct load_command *cmd; in kas_info()
3253 cmd = (struct load_command*) &mh[1]; in kas_info()
3275 cmd = (struct load_command *) ((uintptr_t) cmd + cmd->cmdsize); in kas_info()