Documentation ¶
Index ¶
- Variables
- type ElfWrapper
- func (e *ElfWrapper) DWARF() (*dwarf.Data, error)
- 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) ReadAddr(addr, size uint64) ([]byte, error)
- func (e *ElfWrapper) Text() (textStart uint64, text []byte, err error)
- type MachoWrapper
- func (m *MachoWrapper) DWARF() (*dwarf.Data, error)
- 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) ReadAddr(addr, size uint64) ([]byte, error)
- func (m *MachoWrapper) Text() (textStart uint64, text []byte, err error)
- type PeWrapper
- func (p *PeWrapper) DWARF() (*dwarf.Data, error)
- 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) 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 ErrAddrNotFound = errors.New("address not found")
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 ¶
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 ¶
type PeWrapper ¶
type PeWrapper struct {
// contains filtered or unexported fields
}
func (*PeWrapper) LoadSymbols ¶
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 DWARF() (*dwarf.Data, error) }
func NewWrapper ¶
func NewWrapper(file any) RawFileWrapper
Click to show internal directories.
Click to hide internal directories.