Searched refs:mach_hdr (Results 1 – 2 of 2) sorted by relevance
291 struct mach_header *mach_hdr = (struct mach_header *) ((void *) file); in validate_and_swap_macho_32() local311 require_action(size >= sizeof(*mach_hdr), finish, in validate_and_swap_macho_32()314 offset = sizeof(*mach_hdr); in validate_and_swap_macho_32()318 if (mach_hdr->magic == MH_CIGAM) { in validate_and_swap_macho_32()320 (void) swap_mach_header(mach_hdr, host_order); in validate_and_swap_macho_32()325 require_action(mach_hdr->magic == MH_MAGIC, finish, in validate_and_swap_macho_32()328 "Invalid magic number: 0x%x.", mach_hdr->magic)); in validate_and_swap_macho_32()335 if (mach_hdr->filetype == MH_EXECUTE) { in validate_and_swap_macho_32()342 for (i = 0; i < mach_hdr->ncmds; ++i, offset += cmdsize) { in validate_and_swap_macho_32()472 struct mach_header_64 *mach_hdr = (struct mach_header_64 *) ((void *) file); in validate_and_swap_macho_64() local[all …]
278 struct mach_header *mach_hdr = (struct mach_header *) ((void *) my_file); in kxld_object_init_from_macho() local279 object->filetype = mach_hdr->filetype; in kxld_object_init_from_macho()281 struct mach_header_64 *mach_hdr = (struct mach_header_64 *) ((void *) my_file); in kxld_object_init_from_macho() local282 object->filetype = mach_hdr->filetype; in kxld_object_init_from_macho()482 struct mach_header *mach_hdr = NULL; in get_macho_slice_for_arch() local553 mach_hdr = (struct mach_header *) ((void *) my_file); in get_macho_slice_for_arch()554 require_action(object->cputype == mach_hdr->cputype, finish, in get_macho_slice_for_arch()557 object->cpusubtype = mach_hdr->cpusubtype; /* <rdar://problem/16008438> */ in get_macho_slice_for_arch()1162 struct mach_header *mach_hdr = (struct mach_header *) ((void *) (file + offset)); in get_macho_cmd_data_32() local1165 *filetype = mach_hdr->filetype; in get_macho_cmd_data_32()[all …]