Versions in this module Expand all Collapse all v0 v0.1.1 Jul 17, 2023 v0.1.0 Jul 5, 2023 Changes in this version + var ErrNoBuildIDSection = fmt.Errorf("build ID section not found") + var ErrNoSymbols = errors.New("no symbol section") + type BuildID struct + ID string + Typ string + func GNUBuildID(s string) BuildID + func GoBuildID(s string) BuildID + func (b *BuildID) Empty() bool + func (b *BuildID) GNU() bool + type FlatSymbolIndex struct + Links []elf.SectionHeader + Names []Name + Values gosym.PCIndex + type GoTable struct + File *MMapedElfFile + Index gosym2.FlatFuncIndex + func (g *GoTable) Cleanup() + func (g *GoTable) DebugInfo() SymTabDebugInfo + func (g *GoTable) IsDead() bool + func (g *GoTable) Refresh() + func (g *GoTable) Resolve(addr uint64) string + func (g *GoTable) Size() int + type GoTableWithFallback struct + GoTable *GoTable + SymTable *SymbolTable + func (g *GoTableWithFallback) Cleanup() + func (g *GoTableWithFallback) DebugInfo() SymTabDebugInfo + func (g *GoTableWithFallback) IsDead() bool + func (g *GoTableWithFallback) Refresh() + func (g *GoTableWithFallback) Resolve(addr uint64) string + func (g *GoTableWithFallback) Size() int + type MMapedElfFile struct + Progs []elf.ProgHeader + Sections []elf.SectionHeader + func NewMMapedElfFile(fpath string) (*MMapedElfFile, error) + func (f *MMapedElfFile) BuildID() (BuildID, error) + func (f *MMapedElfFile) Close() + func (f *MMapedElfFile) FilePath() string + func (f *MMapedElfFile) Finalize() + func (f *MMapedElfFile) GNUBuildID() (BuildID, error) + func (f *MMapedElfFile) GoBuildID() (BuildID, error) + func (f *MMapedElfFile) NewGoTable() (*GoTable, error) + func (f *MMapedElfFile) NewSymbolTable() (*SymbolTable, error) + func (f *MMapedElfFile) Section(name string) *elf.SectionHeader + func (f *MMapedElfFile) SectionData(s *elf.SectionHeader) ([]byte, error) + type Name uint32 + func NewName(NameIndex uint32, linkIndex SectionLinkIndex) Name + func (n *Name) LinkIndex() SectionLinkIndex + func (n *Name) NameIndex() uint32 + type SectionLinkIndex uint8 + type SymTabDebugInfo struct + File string + Name string + Size int + type SymbolIndex struct + Name Name + Value uint64 + type SymbolTable struct + File *MMapedElfFile + Index FlatSymbolIndex + func (st *SymbolTable) Cleanup() + func (st *SymbolTable) DebugInfo() SymTabDebugInfo + func (st *SymbolTable) DebugString() string + func (st *SymbolTable) IsDead() bool + func (st *SymbolTable) Refresh() + func (st *SymbolTable) Resolve(addr uint64) string + func (st *SymbolTable) Size() int + type TestSym struct + Name string + Start uint64 + func GetELFSymbolsFromSymtab(elfFile *elf.File) []TestSym + func GetGoSymbols(file string, patchGo20Magic bool) ([]TestSym, error)