1
0
mirror of https://github.com/golang/go synced 2024-11-14 05:30:21 -07:00

Add comment for VersionIndex and VersionFlags

This commit is contained in:
benbaker76 2024-11-06 15:07:54 -08:00
parent b17d292500
commit 5c29527600

View File

@ -206,12 +206,16 @@ func (p *Prog) Open() io.ReadSeeker { return io.NewSectionReader(p.sr, 0, 1<<63-
// A Symbol represents an entry in an ELF symbol table section. // A Symbol represents an entry in an ELF symbol table section.
type Symbol struct { type Symbol struct {
Name string Name string
Info, Other byte Info, Other byte
// These fields are used for symbol versioning
// and are present only for the dynamic symbol table.
VersionIndex int16 VersionIndex int16
VersionFlags SymbolVersionFlag VersionFlags SymbolVersionFlag
Section SectionIndex
Value, Size uint64 Section SectionIndex
Value, Size uint64
// These fields are present only for the dynamic symbol table. // These fields are present only for the dynamic symbol table.
Version string Version string