Documentation ¶
Index ¶
- Variables
- type ElfWrapper
- func (e *ElfWrapper) GoArch() string
- func (e *ElfWrapper) LoadSections() map[string]*entity.Section
- func (e *ElfWrapper) LoadSymbols(marker func(name string, addr uint64, size uint64, typ entity.AddrType) error) error
- func (e *ElfWrapper) PclntabSections() []string
- func (e *ElfWrapper) ReadAddr(addr, size uint64) ([]byte, error)
- func (e *ElfWrapper) Text() (textStart uint64, text []byte, err error)
- type MachoWrapper
- func (m *MachoWrapper) GoArch() string
- func (m *MachoWrapper) LoadSections() map[string]*entity.Section
- func (m *MachoWrapper) LoadSymbols(marker func(name string, addr uint64, size uint64, typ entity.AddrType) error) error
- func (m *MachoWrapper) PclntabSections() []string
- func (m *MachoWrapper) ReadAddr(addr, size uint64) ([]byte, error)
- func (m *MachoWrapper) Text() (textStart uint64, text []byte, err error)
- type PeWrapper
- func (p *PeWrapper) GoArch() string
- func (p *PeWrapper) LoadSections() map[string]*entity.Section
- func (p *PeWrapper) LoadSymbols(marker func(name string, addr uint64, size uint64, typ entity.AddrType) error) error
- func (p *PeWrapper) PclntabSections() []string
- func (p *PeWrapper) ReadAddr(addr, size uint64) ([]byte, error)
- func (p *PeWrapper) Text() (textStart uint64, text []byte, err error)
- type RawFileWrapper
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoSymbolTable = errors.New("no symbol table found")
Functions ¶
This section is empty.
Types ¶
type ElfWrapper ¶
type ElfWrapper struct {
// contains filtered or unexported fields
}
func (*ElfWrapper) GoArch ¶
func (e *ElfWrapper) GoArch() string
func (*ElfWrapper) LoadSections ¶
func (e *ElfWrapper) LoadSections() map[string]*entity.Section
func (*ElfWrapper) LoadSymbols ¶
func (*ElfWrapper) PclntabSections ¶ added in v0.4.0
func (e *ElfWrapper) PclntabSections() []string
type MachoWrapper ¶
type MachoWrapper struct {
// contains filtered or unexported fields
}
func (*MachoWrapper) GoArch ¶
func (m *MachoWrapper) GoArch() string
func (*MachoWrapper) LoadSections ¶
func (m *MachoWrapper) LoadSections() map[string]*entity.Section
func (*MachoWrapper) LoadSymbols ¶
func (*MachoWrapper) PclntabSections ¶ added in v0.4.0
func (m *MachoWrapper) PclntabSections() []string
type PeWrapper ¶
type PeWrapper struct {
// contains filtered or unexported fields
}
func (*PeWrapper) LoadSymbols ¶
func (*PeWrapper) PclntabSections ¶ added in v0.4.0
type RawFileWrapper ¶
type RawFileWrapper interface { Text() (textStart uint64, text []byte, err error) GoArch() string ReadAddr(addr, size uint64) ([]byte, error) LoadSymbols(marker func(name string, addr, size uint64, typ entity.AddrType) error) error LoadSections() map[string]*entity.Section PclntabSections() []string }
func NewWrapper ¶
func NewWrapper(file any) RawFileWrapper
Click to show internal directories.
Click to hide internal directories.