Home
last modified time | relevance | path

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

/xnu-8020.121.3/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-8020.121.3/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-8020.121.3/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-8020.121.3/libkern/kxld/
H A Dkxld_util.c287 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 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-8020.121.3/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-8020.121.3/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-8020.121.3/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-8020.121.3/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.cpp4835 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 Dkt-dump.cpp160 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 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.c490 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 Ddtrace.c16848 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 Dmach_loader.c158 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 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-8020.121.3/SETUP/setsegname/
H A Dsetsegname.c127 struct load_command * cmds; in main()
/xnu-8020.121.3/osfmk/kern/
H A Dkalloc.c952 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 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-8020.121.3/EXTERNAL_HEADERS/mach-o/
H A Dloader.h247 struct load_command { struct
/xnu-8020.121.3/bsd/vm/
H A Dvm_unix.c3268 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()