Lines Matching refs:MAGIC
57 #define MAGIC MH_MAGIC
63 #define MAGIC MH_MAGIC_64
516 if (mh.magic != MAGIC) {
517 magic)\n");
773 vki_uint32_t magic;
776 if (size < sizeof(magic)) {
777 print("bad executable (no Mach-O magic)\n");
780 res = VG_(pread)(fd, &magic, sizeof(magic), offset);
781 if (sr_isError(res) || sr_Res(res) != sizeof(magic)) {
782 print("bad executable (no Mach-O magic)\n");
786 if (magic == MAGIC) {
791 } else if (magic == VG_(htonl)(FAT_MAGIC)) {
798 print("bad executable (bad Mach-O magic)\n");
806 const vki_uint32_t *magic = hdr;
811 (*magic == MAGIC || *magic == VG_(ntohl)(FAT_MAGIC)))