Home
last modified time | relevance | path

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

/xnu-10002.41.9/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-10002.41.9/tests/
H A Dkas_info.c138 struct load_command *cmd = NULL; in disk_kernel_segments()
144 cmd = (struct load_command *)(&(mh[1])); in disk_kernel_segments()
151 cmd = (struct load_command *)(&(mh[1])); in disk_kernel_segments()
163 cmd = (struct load_command *) ((uintptr_t) cmd + cmd->cmdsize); in disk_kernel_segments()
182 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-10002.41.9/libkern/kxld/
H A Dkxld_util.c292 struct load_command *load_hdr = NULL; in validate_and_swap_macho_32()
344 load_hdr = (struct load_command *) ((void *) (file + offset)); in validate_and_swap_macho_32()
473 struct load_command *load_hdr = NULL; in validate_and_swap_macho_64()
525 load_hdr = (struct load_command *) ((void *) (file + offset)); in validate_and_swap_macho_64()
669 struct load_command *load_hdr = NULL; in unswap_macho_32()
687 load_hdr = (struct load_command *) ((void *) (file + offset)); in unswap_macho_32()
727 struct load_command *load_hdr = NULL; in unswap_macho_64()
745 load_hdr = (struct load_command *) ((void *) (file + offset)); in unswap_macho_64()
H A Dkxld_object.c581 struct load_command *cmd_hdr = NULL; in init_from_final_linked_image()
614 cmd_hdr = (struct load_command *) ((void *) (my_file + offset)); in init_from_final_linked_image()
668 cmd_hdr = (struct load_command *) ((void *) (my_file + offset)); in init_from_final_linked_image()
958 struct load_command *cmd_hdr = NULL; in init_from_object()
997 cmd_hdr = (struct load_command *) ((void *) (my_file + offset)); in init_from_object()
/xnu-10002.41.9/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-10002.41.9/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-10002.41.9/libkern/
H A Dkernel_mach_header.c92 struct load_command *lcp; in getcommandfromheader()
95 lcp = (struct load_command *) (mhp + 1); in getcommandfromheader()
101 lcp = (struct load_command *)((uintptr_t)lcp + lcp->cmdsize); in getcommandfromheader()
/xnu-10002.41.9/tools/lldbmacros/
H A Dmacho.py50 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-10002.41.9/libkern/c++/
H A DOSRuntime.cpp400 struct load_command *lc; in OSRuntimeSignStructorsInFileset()
402 lc = (struct load_command *)((uintptr_t)fileset_header + sizeof(*fileset_header)); in OSRuntimeSignStructorsInFileset()
404 lc = (struct load_command *)((uintptr_t)lc + lc->cmdsize)) { in OSRuntimeSignStructorsInFileset()
H A DOSKext.cpp5163 const struct load_command * load_cmd = NULL; in copyMachoUUID()
5167 load_cmd = (const struct load_command *)&header[1]; in copyMachoUUID()
5184 load_cmd = (struct load_command *)((caddr_t)load_cmd + load_cmd->cmdsize); in copyMachoUUID()
11908 struct load_command * lcp;
11923 lcp = (struct load_command *) (temp_kext_mach_hdr + 1);
11977 lcp = (struct load_command *)((caddr_t)lcp + lcp->cmdsize);
13492 struct load_command *lcp = (struct load_command *) (*mhp + 1);
13493 …for (unsigned int i = 0; i < (*mhp)->ncmds; i++, lcp = (struct load_command *)((uintptr_t)lcp + lc…
/xnu-10002.41.9/bsd/dev/dtrace/
H A Dfbt.c409 struct load_command *cmd; in fbt_provide_module_kernel_syms()
421 cmd = (struct load_command *) &mh[1]; in fbt_provide_module_kernel_syms()
434 cmd = (struct load_command *) ((caddr_t) cmd + cmd->cmdsize); in fbt_provide_module_kernel_syms()
H A Dsdt.c484 struct load_command *cmd = (struct load_command *)&mh[1]; in sdt_find_symbol_table()
499 cmd = (struct load_command *) ((uintptr_t) cmd + cmd->cmdsize); in sdt_find_symbol_table()
H A Ddtrace.c16879 struct load_command* load_cmd = (struct load_command *)&header[1]; in dtrace_module_loaded()
16888 load_cmd = (struct load_command *)((caddr_t)load_cmd + load_cmd->cmdsize); in dtrace_module_loaded()
/xnu-10002.41.9/bsd/kern/
H A Dmach_loader.c162 struct load_command *lcp,
780 struct load_command *lcp; in parse_machfile()
1054 if (offset + sizeof(struct load_command) > cmds_size) { in parse_machfile()
1062 lcp = (struct load_command *)((uintptr_t)addr + offset); in parse_machfile()
1074 lcp->cmdsize < sizeof(struct load_command) || in parse_machfile()
1558 struct load_command *lcp; in check_if_simulator_binary()
1631 if (offset + sizeof(struct load_command) > cmds_size) { in check_if_simulator_binary()
1638 lcp = (struct load_command *)((uintptr_t)addr + offset); in check_if_simulator_binary()
1649 lcp->cmdsize < sizeof(struct load_command) || in check_if_simulator_binary()
2050 struct load_command *lcp, in load_segment()
[all …]
/xnu-10002.41.9/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-10002.41.9/SETUP/setsegname/
H A Dsetsegname.c127 struct load_command * cmds; in main()
/xnu-10002.41.9/osfmk/i386/AT386/
H A Dmodel_dep.c1081 struct load_command *cmd; in panic_print_macho_symbol_name()
1090 cmd = (struct load_command *) &mh[1]; in panic_print_macho_symbol_name()
1109 cmd = (struct load_command *) ((uintptr_t) cmd + cmd->cmdsize); in panic_print_macho_symbol_name()
/xnu-10002.41.9/osfmk/kern/
H A Dkalloc.c982 struct load_command *lc = in kalloc_type_view_parse()
983 (struct load_command *)((vm_offset_t)kc_mh + sizeof(*kc_mh)); in kalloc_type_view_parse()
985 i++, lc = (struct load_command *)((vm_offset_t)lc + lc->cmdsize)) { in kalloc_type_view_parse()
1055 struct load_command *lc = in kalloc_type_view_parse()
1056 (struct load_command *)(cur + sizeof(kernel_mach_header_t)); in kalloc_type_view_parse()
1060 i++, lc = (struct load_command *)((vm_offset_t)lc + lc->cmdsize)) { in kalloc_type_view_parse()
/xnu-10002.41.9/EXTERNAL_HEADERS/mach-o/
H A Dloader.h247 struct load_command { struct
/xnu-10002.41.9/tools/kt-dump/
H A Dkt-dump.cpp351 auto *cmd = reinterpret_cast<const load_command *>(commands.data());
/xnu-10002.41.9/bsd/vm/
H A Dvm_unix.c3700 struct load_command *cmd; in kas_info()
3701 cmd = (struct load_command*) &mh[1]; in kas_info()
3723 cmd = (struct load_command *) ((uintptr_t) cmd + cmd->cmdsize); in kas_info()