Versions in this module Expand all Collapse all go1 go1.18.10 Jan 10, 2023 Changes in this version + const FlagStrictDups + func GenAddAddrPlusFunc(internalExec bool) func(s *SymbolBuilder, arch *sys.Arch, tgt Sym, add int64) int64 + type Aux struct + func (a Aux) Sym() Sym + type Bitmap []uint32 + func MakeBitmap(n int) Bitmap + func (bm Bitmap) Count() int + func (bm Bitmap) Has(i Sym) bool + func (bm Bitmap) Len() int + func (bm Bitmap) Set(i Sym) + func (bm Bitmap) Unset(i Sym) + type ErrorReporter struct + AfterErrorAction func() + func (reporter *ErrorReporter) Errorf(s Sym, format string, args ...interface{}) + type ExtReloc struct + Size uint8 + Type objabi.RelocType + Xadd int64 + Xsym Sym + type FuncInfo struct + func (fi *FuncInfo) Args() int + func (fi *FuncInfo) File(k int) goobj.CUFileIndex + func (fi *FuncInfo) FuncFlag() objabi.FuncFlag + func (fi *FuncInfo) FuncID() objabi.FuncID + func (fi *FuncInfo) InlTree(k int) InlTreeNode + func (fi *FuncInfo) Locals() int + func (fi *FuncInfo) NumFile() uint32 + func (fi *FuncInfo) NumInlTree() uint32 + func (fi *FuncInfo) Preload() + func (fi *FuncInfo) TopFrame() bool + func (fi *FuncInfo) Valid() bool + type InlTreeNode struct + File goobj.CUFileIndex + Func Sym + Line int32 + Parent int32 + ParentPC int32 + type Loader struct + CgoExports map[string]Sym + Reachparent []Sym + func NewLoader(flags uint32, elfsetstring elfsetstringFunc, reporter *ErrorReporter) *Loader + func (l *Loader) AddCgoExport(s Sym) + func (l *Loader) AddInteriorSym(container Sym, interior Sym) + func (l *Loader) AddToSymValue(i Sym, val int64) + func (l *Loader) AssignTextSymbolOrder(libs []*sym.Library, intlibs []bool, extsyms []Sym) []Sym + func (l *Loader) AttrCgoExport(i Sym) bool + func (l *Loader) AttrCgoExportDynamic(i Sym) bool + func (l *Loader) AttrCgoExportStatic(i Sym) bool + func (l *Loader) AttrDuplicateOK(i Sym) bool + func (l *Loader) AttrExternal(i Sym) bool + func (l *Loader) AttrLocal(i Sym) bool + func (l *Loader) AttrNotInSymbolTable(i Sym) bool + func (l *Loader) AttrOnList(i Sym) bool + func (l *Loader) AttrReachable(i Sym) bool + func (l *Loader) AttrReadOnly(i Sym) bool + func (l *Loader) AttrShared(i Sym) bool + func (l *Loader) AttrSpecial(i Sym) bool + func (l *Loader) AttrSubSymbol(i Sym) bool + func (l *Loader) AttrUsedInIface(i Sym) bool + func (l *Loader) AttrVisibilityHidden(i Sym) bool + func (l *Loader) Aux(i Sym, j int) Aux + func (l *Loader) CopySym(src, dst Sym) + func (l *Loader) CreateExtSym(name string, ver int) Sym + func (l *Loader) CreateStaticSym(name string) Sym + func (l *Loader) CreateSymForUpdate(name string, version int) *SymbolBuilder + func (l *Loader) Data(i Sym) []byte + func (l *Loader) Dump() + func (l *Loader) DynidSyms() []Sym + func (l *Loader) Errorf(s Sym, format string, args ...interface{}) + func (l *Loader) FreeData(i Sym) + func (l *Loader) FreeSym(i Sym) + func (l *Loader) FuncInfo(i Sym) FuncInfo + func (l *Loader) Funcdata(i Sym, tmp []Sym) []Sym + func (l *Loader) GetErrorReporter() *ErrorReporter + func (l *Loader) GetFuncDwarfAuxSyms(fnSymIdx Sym) (auxDwarfInfo, auxDwarfLoc, auxDwarfRanges, auxDwarfLines Sym) + func (l *Loader) InitReachable() + func (l *Loader) IsDeferReturnTramp(i Sym) bool + func (l *Loader) IsDict(i Sym) bool + func (l *Loader) IsExternal(i Sym) bool + func (l *Loader) IsFileLocal(i Sym) bool + func (l *Loader) IsFromAssembly(i Sym) bool + func (l *Loader) IsGeneratedSym(i Sym) bool + func (l *Loader) IsGoType(i Sym) bool + func (l *Loader) IsItab(i Sym) bool + func (l *Loader) IsNoSplit(i Sym) bool + func (l *Loader) IsReflectMethod(i Sym) bool + func (l *Loader) IsTypelink(i Sym) bool + func (l *Loader) LoadSyms(arch *sys.Arch) + func (l *Loader) Lookup(name string, ver int) Sym + func (l *Loader) LookupOrCreateCgoExport(name string, ver int) Sym + func (l *Loader) LookupOrCreateSym(name string, ver int) Sym + func (l *Loader) MakeSymbolBuilder(name string) *SymbolBuilder + func (l *Loader) MakeSymbolUpdater(symIdx Sym) *SymbolBuilder + func (l *Loader) NAux(i Sym) int + func (l *Loader) NDef() int + func (l *Loader) NReachableSym() int + func (l *Loader) NStrictDupMsgs() int + func (l *Loader) NSym() int + func (l *Loader) NewSection() *sym.Section + func (l *Loader) NumFuncdata(i Sym) int + func (l *Loader) NumPcdata(i Sym) int + func (l *Loader) OuterSym(i Sym) Sym + func (l *Loader) PcdataAuxs(i Sym, tmp []Sym) (pcsp, pcfile, pcline, pcinline Sym, pcdata []Sym) + func (l *Loader) Pcsp(i Sym) Sym + func (l *Loader) Preload(localSymVersion int, f *bio.Reader, lib *sym.Library, ...) goobj.FingerprintType + func (l *Loader) RawSymName(i Sym) string + func (l *Loader) RelocVariant(s Sym, ri int) sym.RelocVariant + func (l *Loader) Relocs(i Sym) Relocs + func (l *Loader) SetAttrCgoExportDynamic(i Sym, v bool) + func (l *Loader) SetAttrCgoExportStatic(i Sym, v bool) + func (l *Loader) SetAttrDuplicateOK(i Sym, v bool) + func (l *Loader) SetAttrExternal(i Sym, v bool) + func (l *Loader) SetAttrLocal(i Sym, v bool) + func (l *Loader) SetAttrNotInSymbolTable(i Sym, v bool) + func (l *Loader) SetAttrOnList(i Sym, v bool) + func (l *Loader) SetAttrReachable(i Sym, v bool) + func (l *Loader) SetAttrReadOnly(i Sym, v bool) + func (l *Loader) SetAttrShared(i Sym, v bool) + func (l *Loader) SetAttrSpecial(i Sym, v bool) + func (l *Loader) SetAttrUsedInIface(i Sym, v bool) + func (l *Loader) SetAttrVisibilityHidden(i Sym, v bool) + func (l *Loader) SetCarrierSym(s Sym, c Sym) + func (l *Loader) SetGot(i Sym, v int32) + func (l *Loader) SetIsDeferReturnTramp(i Sym, v bool) + func (l *Loader) SetIsGeneratedSym(i Sym, v bool) + func (l *Loader) SetPlt(i Sym, v int32) + func (l *Loader) SetRelocVariant(s Sym, ri int, v sym.RelocVariant) + func (l *Loader) SetSymAlign(i Sym, align int32) + func (l *Loader) SetSymDynid(i Sym, val int32) + func (l *Loader) SetSymDynimplib(i Sym, value string) + func (l *Loader) SetSymDynimpvers(i Sym, value string) + func (l *Loader) SetSymElfSym(i Sym, es int32) + func (l *Loader) SetSymElfType(i Sym, et elf.SymType) + func (l *Loader) SetSymExtname(i Sym, value string) + func (l *Loader) SetSymLocalElfSym(i Sym, es int32) + func (l *Loader) SetSymLocalentry(i Sym, value uint8) + func (l *Loader) SetSymPkg(i Sym, pkg string) + func (l *Loader) SetSymSect(i Sym, sect *sym.Section) + func (l *Loader) SetSymValue(i Sym, val int64) + func (l *Loader) SortSub(s Sym) Sym + func (l *Loader) SortSyms(ss []Sym) + func (l *Loader) Stat() string + func (l *Loader) SubSym(i Sym) Sym + func (l *Loader) SymAddr(i Sym) int64 + func (l *Loader) SymAlign(i Sym) int32 + func (l *Loader) SymAttr(i Sym) uint8 + func (l *Loader) SymDynid(i Sym) int32 + func (l *Loader) SymDynimplib(i Sym) string + func (l *Loader) SymDynimpvers(i Sym) string + func (l *Loader) SymElfSym(i Sym) int32 + func (l *Loader) SymElfType(i Sym) elf.SymType + func (l *Loader) SymExtname(i Sym) string + func (l *Loader) SymGoType(i Sym) Sym + func (l *Loader) SymGot(s Sym) int32 + func (l *Loader) SymLocalElfSym(i Sym) int32 + func (l *Loader) SymLocalentry(i Sym) uint8 + func (l *Loader) SymName(i Sym) string + func (l *Loader) SymPkg(i Sym) string + func (l *Loader) SymPlt(s Sym) int32 + func (l *Loader) SymSect(i Sym) *sym.Section + func (l *Loader) SymSize(i Sym) int64 + func (l *Loader) SymType(i Sym) sym.SymKind + func (l *Loader) SymUnit(i Sym) *sym.CompilationUnit + func (l *Loader) SymValue(i Sym) int64 + func (l *Loader) SymVersion(i Sym) int + func (l *Loader) TopLevelSym(s Sym) bool + func (l *Loader) UndefinedRelocTargets(limit int) []Sym + type Reloc struct + func (rel Reloc) IsMarker() bool + func (rel Reloc) SetSym(s Sym) + func (rel Reloc) SetType(t objabi.RelocType) + func (rel Reloc) Sym() Sym + func (rel Reloc) Type() objabi.RelocType + func (rel Reloc) Weak() bool + type Relocs struct + func (relocs *Relocs) At(j int) Reloc + func (relocs *Relocs) Count() int + type Sym int + type SymbolBuilder struct + func (ms SymbolBuilder) Grow(siz int64) + func (sb *SymbolBuilder) AddAddr(arch *sys.Arch, tgt Sym) int64 + func (sb *SymbolBuilder) AddAddrPlus(arch *sys.Arch, tgt Sym, add int64) int64 + func (sb *SymbolBuilder) AddAddrPlus4(arch *sys.Arch, tgt Sym, add int64) int64 + func (sb *SymbolBuilder) AddBytes(data []byte) + func (sb *SymbolBuilder) AddCStringAt(off int64, str string) int64 + func (sb *SymbolBuilder) AddCURelativeAddrPlus(arch *sys.Arch, tgt Sym, add int64) int64 + func (sb *SymbolBuilder) AddInteriorSym(sub Sym) + func (sb *SymbolBuilder) AddPCRelPlus(arch *sys.Arch, tgt Sym, add int64) int64 + func (sb *SymbolBuilder) AddRel(typ objabi.RelocType) (Reloc, int) + func (sb *SymbolBuilder) AddRelocs(n int) Relocs + func (sb *SymbolBuilder) AddSize(arch *sys.Arch, tgt Sym) int64 + func (sb *SymbolBuilder) AddStringAt(off int64, str string) int64 + func (sb *SymbolBuilder) AddSymRef(arch *sys.Arch, tgt Sym, add int64, typ objabi.RelocType, rsize int) int64 + func (sb *SymbolBuilder) AddUint(arch *sys.Arch, v uint64) int64 + func (sb *SymbolBuilder) AddUint16(arch *sys.Arch, v uint16) int64 + func (sb *SymbolBuilder) AddUint32(arch *sys.Arch, v uint32) int64 + func (sb *SymbolBuilder) AddUint64(arch *sys.Arch, v uint64) int64 + func (sb *SymbolBuilder) AddUint8(v uint8) int64 + func (sb *SymbolBuilder) AddUintXX(arch *sys.Arch, v uint64, wid int) int64 + func (sb *SymbolBuilder) AddUleb(v uint64) + func (sb *SymbolBuilder) Addstring(str string) int64 + func (sb *SymbolBuilder) Align() int32 + func (sb *SymbolBuilder) CgoExportDynamic() bool + func (sb *SymbolBuilder) Data() []byte + func (sb *SymbolBuilder) DuplicateOK() bool + func (sb *SymbolBuilder) Dynimplib() string + func (sb *SymbolBuilder) Dynimpvers() string + func (sb *SymbolBuilder) External() bool + func (sb *SymbolBuilder) Extname() string + func (sb *SymbolBuilder) GoType() Sym + func (sb *SymbolBuilder) Localentry() uint8 + func (sb *SymbolBuilder) MakeWritable() + func (sb *SymbolBuilder) Name() string + func (sb *SymbolBuilder) OnList() bool + func (sb *SymbolBuilder) Outer() Sym + func (sb *SymbolBuilder) Reachable() bool + func (sb *SymbolBuilder) ReadOnly() bool + func (sb *SymbolBuilder) Relocs() Relocs + func (sb *SymbolBuilder) ResetRelocs() + func (sb *SymbolBuilder) Sect() *sym.Section + func (sb *SymbolBuilder) SetAddr(arch *sys.Arch, off int64, tgt Sym) int64 + func (sb *SymbolBuilder) SetAddrPlus(arch *sys.Arch, off int64, tgt Sym, add int64) int64 + func (sb *SymbolBuilder) SetAlign(align int32) + func (sb *SymbolBuilder) SetBytesAt(off int64, b []byte) int64 + func (sb *SymbolBuilder) SetData(data []byte) + func (sb *SymbolBuilder) SetDuplicateOK(v bool) + func (sb *SymbolBuilder) SetDynimplib(value string) + func (sb *SymbolBuilder) SetDynimpvers(value string) + func (sb *SymbolBuilder) SetExternal(v bool) + func (sb *SymbolBuilder) SetExtname(value string) + func (sb *SymbolBuilder) SetGot(value int32) + func (sb *SymbolBuilder) SetLocal(value bool) + func (sb *SymbolBuilder) SetLocalentry(value uint8) + func (sb *SymbolBuilder) SetNotInSymbolTable(value bool) + func (sb *SymbolBuilder) SetOnList(v bool) + func (sb *SymbolBuilder) SetPlt(value int32) + func (sb *SymbolBuilder) SetReachable(v bool) + func (sb *SymbolBuilder) SetReadOnly(v bool) + func (sb *SymbolBuilder) SetRelocAdd(i int, a int64) + func (sb *SymbolBuilder) SetRelocSym(i int, tgt Sym) + func (sb *SymbolBuilder) SetRelocType(i int, t objabi.RelocType) + func (sb *SymbolBuilder) SetSect(sect *sym.Section) + func (sb *SymbolBuilder) SetSize(size int64) + func (sb *SymbolBuilder) SetSpecial(value bool) + func (sb *SymbolBuilder) SetType(kind sym.SymKind) + func (sb *SymbolBuilder) SetUint(arch *sys.Arch, r int64, v uint64) int64 + func (sb *SymbolBuilder) SetUint16(arch *sys.Arch, r int64, v uint16) int64 + func (sb *SymbolBuilder) SetUint32(arch *sys.Arch, r int64, v uint32) int64 + func (sb *SymbolBuilder) SetUint8(arch *sys.Arch, r int64, v uint8) int64 + func (sb *SymbolBuilder) SetUintptr(arch *sys.Arch, r int64, v uintptr) int64 + func (sb *SymbolBuilder) SetValue(v int64) + func (sb *SymbolBuilder) SetVisibilityHidden(value bool) + func (sb *SymbolBuilder) Size() int64 + func (sb *SymbolBuilder) SortRelocs() + func (sb *SymbolBuilder) SortSub() + func (sb *SymbolBuilder) Sub() Sym + func (sb *SymbolBuilder) SubSym() Sym + func (sb *SymbolBuilder) Sym() Sym + func (sb *SymbolBuilder) Type() sym.SymKind + func (sb *SymbolBuilder) Value() int64 + func (sb *SymbolBuilder) Version() int + func (sb *SymbolBuilder) VisibilityHidden() bool