Documentation ¶
Index ¶
- func Analyze(bin string, options Options) (*result.Result, error)
- type Dependencies
- func (m *Dependencies) Add(gp *gore.Package, typ entity.PackageType, pclntab *gosym.Table)
- func (m *Dependencies) AddModules(mods []*debug.Module, typ entity.PackageType)
- func (m *Dependencies) FinishLoad()
- func (m *Dependencies) GetFunctions() []*entity.Function
- func (m *Dependencies) GetPackage(name string) (*entity.Package, bool)
- type KnownInfo
- func (k *KnownInfo) AnalyzeSymbol() error
- func (k *KnownInfo) CalculatePackageSize()
- func (k *KnownInfo) CalculateSectionSize()
- func (k *KnownInfo) CollectCoverage()
- func (k *KnownInfo) Disasm() error
- func (k *KnownInfo) ExtractPackageFromSymbol(s string) string
- func (k *KnownInfo) LoadPackages() error
- func (k *KnownInfo) LoadSectionMap()
- func (k *KnownInfo) MarkSymbol(name string, addr, size uint64, typ entity.AddrType) error
- func (k *KnownInfo) RequireModInfo()
- func (k *KnownInfo) UpdateVersionFlag()
- type Options
- type SectionMap
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Dependencies ¶
type Dependencies struct { TopPkgs entity.PackageMap // contains filtered or unexported fields }
Dependencies a pseudo package for the whole binary
func NewDependencies ¶
func NewDependencies(k *KnownInfo) *Dependencies
func (*Dependencies) Add ¶
func (m *Dependencies) Add(gp *gore.Package, typ entity.PackageType, pclntab *gosym.Table)
func (*Dependencies) AddModules ¶ added in v0.2.4
func (m *Dependencies) AddModules(mods []*debug.Module, typ entity.PackageType)
func (*Dependencies) FinishLoad ¶ added in v0.2.4
func (m *Dependencies) FinishLoad()
func (*Dependencies) GetFunctions ¶
func (m *Dependencies) GetFunctions() []*entity.Function
func (*Dependencies) GetPackage ¶
func (m *Dependencies) GetPackage(name string) (*entity.Package, bool)
type KnownInfo ¶
type KnownInfo struct { Size uint64 BuildInfo *gore.BuildInfo Sects *SectionMap Deps *Dependencies KnownAddr *entity.KnownAddr Coverage entity.AddrCoverage VersionFlag struct { Leq118 bool Meq120 bool } // contains filtered or unexported fields }
func (*KnownInfo) AnalyzeSymbol ¶
func (*KnownInfo) CalculatePackageSize ¶
func (k *KnownInfo) CalculatePackageSize()
CalculatePackageSize calculate the size of each package Happens after disassembly
func (*KnownInfo) CalculateSectionSize ¶
func (k *KnownInfo) CalculateSectionSize()
func (*KnownInfo) CollectCoverage ¶
func (k *KnownInfo) CollectCoverage()
func (*KnownInfo) ExtractPackageFromSymbol ¶
ExtractPackageFromSymbol copied from debug/gosym/symtab.go
func (*KnownInfo) LoadPackages ¶
func (*KnownInfo) LoadSectionMap ¶
func (k *KnownInfo) LoadSectionMap()
func (*KnownInfo) MarkSymbol ¶
func (*KnownInfo) RequireModInfo ¶
func (k *KnownInfo) RequireModInfo()
func (*KnownInfo) UpdateVersionFlag ¶
func (k *KnownInfo) UpdateVersionFlag()
type SectionMap ¶
func (*SectionMap) AssertSize ¶
func (s *SectionMap) AssertSize(size uint64) error
func (*SectionMap) FindSection ¶ added in v0.2.4
func (s *SectionMap) FindSection(addr, size uint64) *entity.Section
Source Files ¶
Click to show internal directories.
Click to hide internal directories.