Lines Matching refs:symbol
85 for _, symbol := range symbols {
86 if elf.ST_TYPE(symbol.Info) != elf.STT_OBJECT {
89 if symbol.Section == elf.SHN_UNDEF || symbol.Section >= elf.SHN_LORESERVE {
92 if int(symbol.Section) >= len(file.Sections) {
93 return nil, fmt.Errorf("invalid section index %d", symbol.Section)
96 section := file.Sections[symbol.Section]
103 addr = symbol.Value
109 if symbol.Value < section.Addr {
112 addr = symbol.Value - section.Addr
113 if addr+symbol.Size > section.Size {
121 Name: symbol.Name,
123 Size: symbol.Size,
152 for _, symbol := range symbols {
153 fmt.Printf("\t\t%#v,\n", symbol)