Lines Matching defs:mach_header
359 struct mach_header *mach_header = (struct mach_header *)imgp->ip_vdata;
367 if (mach_header->magic != MH_CIGAM) {
372 if (mach_header->magic == MH_CIGAM_64)
384 OSSwapBigToHostInt32(mach_header->cputype);
386 OSSwapBigToHostInt32(mach_header->cpusubtype);
712 struct mach_header *mach_header = (struct mach_header *)imgp->ip_vdata;
731 if ((mach_header->magic != MH_MAGIC) &&
732 (mach_header->magic != MH_MAGIC_64)) {
737 switch (mach_header->filetype) {
745 imgp->ip_origcputype = mach_header->cputype;
746 imgp->ip_origcpusubtype = mach_header->cpusubtype;
756 if ((mach_header->cputype & CPU_ARCH_ABI64) == CPU_ARCH_ABI64)
869 lret = load_machfile(imgp, mach_header, thread, map, &load_result);
970 error = copyoutptr(load_result.mach_header, ap, 8);
973 error = suword(ap, load_result.mach_header);