Home | History | Annotate | Download | only in m_ume

Lines Matching defs:arch

342    print("bad executable (no arch-compatible thread state)\n");
742 // Scan arch headers looking for a good one
746 struct fat_arch arch;
747 if (arch_offset + sizeof(arch) > size) {
752 res = VG_(pread)(fd, &arch, sizeof(arch), arch_offset);
753 arch_offset += sizeof(arch);
754 if (sr_isError(res) || sr_Res(res) != sizeof(arch)) {
755 VG_(printf)("bad executable (corrupt fat arch) %x %llu\n",
756 arch.cputype, (ULong)arch_offset);
760 arch.cputype = VG_(ntohl)(arch.cputype);
761 arch.cpusubtype = VG_(ntohl)(arch.cpusubtype);
762 arch.offset = VG_(ntohl)(arch.offset);
763 arch.size = VG_(ntohl)(arch.size);
764 arch.align = VG_(ntohl)(arch.align);
765 if (arch.cputype == good_arch) {
766 // use this arch
767 if (arch.offset > size || arch.offset + arch.size > size) {
768 print("bad executable (corrupt fat arch 2)\n");
771 return load_mach_file(fd, offset+arch.offset, arch.size, filetype, filename, out_info);
818 // GrP fixme check more carefully for matching fat arch?