Home | History | Annotate | Download | only in symbol_inject

Lines Matching refs:elf

18 	"debug/elf"
24 Symbols() ([]elf.Symbol, error)
25 Sections() []elf.SectionHeader
26 Type() elf.Type
32 *elf.File
35 func (f elfFileWrapper) Sections() []elf.SectionHeader {
36 ret := make([]elf.SectionHeader, len(f.File.Sections))
44 func (f elfFileWrapper) Type() elf.Type {
49 symbols []elf.Symbol
50 sections []elf.SectionHeader
51 t elf.Type
54 func (f mockElfFile) Sections() []elf.SectionHeader { return f.sections }
55 func (f mockElfFile) Symbols() ([]elf.Symbol, error) { return f.symbols, nil }
56 func (f mockElfFile) Type() elf.Type { return f.t }
59 elfFile, err := elf.NewFile(r)
83 _ = elf.Section{}
86 if elf.ST_TYPE(symbol.Info) != elf.STT_OBJECT {
89 if symbol.Section == elf.SHN_UNDEF || symbol.Section >= elf.SHN_LORESERVE {
100 case elf.ET_REL:
104 case elf.ET_EXEC, elf.ET_DYN:
117 return nil, fmt.Errorf("unsupported elf file type %d", elfFile.Type())
132 elfFile, err := elf.NewFile(r)
145 fmt.Println("\tsections: []elf.SectionHeader{")
151 fmt.Println("\tsymbols: []elf.Symbol{")