func()

in pe.go [39:51]


func (f *peFile) isGoExecutable() (ok bool, err error) {
	// TODO(kortschak): Investigate whether there is a better
	// heuristic or a definitive test for this case.
	sect := f.objFile.Section(".rdata")
	if sect == nil {
		return false, nil
	}
	rdata, err := sect.Data()
	if err != nil {
		return false, err
	}
	return bytes.Contains(rdata, []byte("runtime.g")), nil
}