Lines Matching refs:mach_header
743 struct mach_header *mach_header = (struct mach_header *)imgp->ip_vdata;
764 if ((mach_header->magic == MH_CIGAM) ||
765 (mach_header->magic == MH_CIGAM_64)) {
770 if ((mach_header->magic != MH_MAGIC) &&
771 (mach_header->magic != MH_MAGIC_64)) {
776 switch (mach_header->filetype) {
784 imgp->ip_origcputype = mach_header->cputype;
785 imgp->ip_origcpusubtype = mach_header->cpusubtype;
792 if ((mach_header->cputype & CPU_ARCH_ABI64) == CPU_ARCH_ABI64)
893 lret = load_machfile(imgp, mach_header, thread, map, &load_result);
997 error = copyoutptr(load_result.mach_header, ap, new_ptr_size);