Searched refs:mach_hdr (Results 1 – 2 of 2) sorted by relevance
290 struct mach_header *mach_hdr = (struct mach_header *) ((void *) file); in validate_and_swap_macho_32() local310 require_action(size >= sizeof(*mach_hdr), finish, in validate_and_swap_macho_32()313 offset = sizeof(*mach_hdr); in validate_and_swap_macho_32()317 if (mach_hdr->magic == MH_CIGAM) { in validate_and_swap_macho_32()319 (void) swap_mach_header(mach_hdr, host_order); in validate_and_swap_macho_32()324 require_action(mach_hdr->magic == MH_MAGIC, finish, in validate_and_swap_macho_32()327 "Invalid magic number: 0x%x.", mach_hdr->magic)); in validate_and_swap_macho_32()334 if (mach_hdr->filetype == MH_EXECUTE) { in validate_and_swap_macho_32()341 for (i = 0; i < mach_hdr->ncmds; ++i, offset += cmdsize) { in validate_and_swap_macho_32()471 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 …]