func()

in macho.go [124:141]


func (f *machoFile) sectionStats() ([]Section, error) {
	s := make([]Section, len(f.objFile.Sections))
	for i, sect := range f.objFile.Sections {
		h, sigma, err := streamEntropy(sect.Open())
		if err != nil {
			return nil, err
		}
		s[i] = Section{
			Name:       sect.Name,
			Size:       sect.Size,
			FileSize:   sect.Size,
			Entropy:    h,
			VarEntropy: sigma,
			Flags:      sect.Flags,
		}
	}
	return s, nil
}