return "", "", errUnrecognizedFormat
}
x = &machoExe{f}
+ case bytes.HasPrefix(ident, []byte("\xCA\xFE\xBA\xBE")) || bytes.HasPrefix(ident, []byte("\xCA\xFE\xBA\xBF")):
+ f, err := macho.NewFatFile(r)
+ if err != nil || len(f.Arches) == 0 {
+ return "", "", errUnrecognizedFormat
+ }
+ x = &machoExe{f.Arches[0].File}
case bytes.HasPrefix(ident, []byte{0x01, 0xDF}) || bytes.HasPrefix(ident, []byte{0x01, 0xF7}):
f, err := xcoff.NewFile(r)
if err != nil {
}
}
return nil, errors.New("address not mapped")
-
}