Home | History | Annotate | Download | only in elf

Lines Matching refs:symbols

395 // getSymbols returns a slice of Symbols from parsing the symbol table
409 // ErrNoSymbols is returned by File.Symbols and File.DynamicSymbols
437 symbols := make([]Symbol, symtab.Len()/Sym32Size)
444 symbols[i].Name = str
445 symbols[i].Info = sym.Info
446 symbols[i].Other = sym.Other
447 symbols[i].Section = SectionIndex(sym.Shndx)
448 symbols[i].Value = uint64(sym.Value)
449 symbols[i].Size = uint64(sym.Size)
453 return symbols, strdata, nil
480 symbols := make([]Symbol, symtab.Len()/Sym64Size)
487 symbols[i].Name = str
488 symbols[i].Info = sym.Info
489 symbols[i].Other = sym.Other
490 symbols[i].Section = SectionIndex(sym.Shndx)
491 symbols[i].Value = sym.Value
492 symbols[i].Size = sym.Size
496 return symbols, strdata, nil
551 symbols, _, err := f.getSymbols(SHT_SYMTAB)
564 if symNo == 0 || symNo > uint64(len(symbols)) {
567 sym := &symbols[symNo-1]
574 // object file, and we only look at section symbols,
600 symbols, _, err := f.getSymbols(SHT_SYMTAB)
613 if symNo == 0 || symNo > uint32(len(symbols)) {
616 sym := &symbols[symNo-1]
637 symbols, _, err := f.getSymbols(SHT_SYMTAB)
650 if symNo == 0 || symNo > uint32(len(symbols)) {
653 sym := &symbols[symNo-1]
675 symbols, _, err := f.getSymbols(SHT_SYMTAB)
688 if symNo == 0 || symNo > uint64(len(symbols)) {
691 sym := &symbols[symNo-1]
698 // object file, and we only look at section symbols,
724 symbols, _, err := f.getSymbols(SHT_SYMTAB)
737 if symNo == 0 || symNo > uint32(len(symbols)) {
740 sym := &symbols[symNo-1]
764 symbols, _, err := f.getSymbols(SHT_SYMTAB)
777 if symNo == 0 || symNo > uint64(len(symbols)) {
780 sym := &symbols[symNo-1]
872 // Symbols returns the symbol table for f. The symbols will be listed in the order
875 // For compatibility with Go 1.0, Symbols omits the null symbol at index 0.
876 // After retrieving the symbols as symtab, an externally supplied index x
878 func (f *File) Symbols() ([]Symbol, error) {
883 // DynamicSymbols returns the dynamic symbol table for f. The symbols
886 // For compatibility with Symbols, DynamicSymbols omits the null symbol at index 0.
887 // After retrieving the symbols as symtab, an externally supplied index x
900 // ImportedSymbols returns the names of all symbols
903 // It does not return weak symbols.