wrapper

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 3, 2024 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

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 (e *ElfWrapper) LoadSymbols(marker func(name string, addr uint64, size uint64, typ entity.AddrType) error) error

func (*ElfWrapper) PclntabSections added in v0.4.0

func (e *ElfWrapper) PclntabSections() []string

func (*ElfWrapper) ReadAddr

func (e *ElfWrapper) ReadAddr(addr, size uint64) ([]byte, error)

func (*ElfWrapper) Text

func (e *ElfWrapper) Text() (textStart uint64, text []byte, err error)

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 (m *MachoWrapper) LoadSymbols(marker func(name string, addr uint64, size uint64, typ entity.AddrType) error) error

func (*MachoWrapper) PclntabSections added in v0.4.0

func (m *MachoWrapper) PclntabSections() []string

func (*MachoWrapper) ReadAddr

func (m *MachoWrapper) ReadAddr(addr, size uint64) ([]byte, error)

func (*MachoWrapper) Text

func (m *MachoWrapper) Text() (textStart uint64, text []byte, err error)

type PeWrapper

type PeWrapper struct {
	// contains filtered or unexported fields
}

func (*PeWrapper) GoArch

func (p *PeWrapper) GoArch() string

func (*PeWrapper) LoadSections

func (p *PeWrapper) LoadSections() map[string]*entity.Section

func (*PeWrapper) LoadSymbols

func (p *PeWrapper) LoadSymbols(marker func(name string, addr uint64, size uint64, typ entity.AddrType) error) error

func (*PeWrapper) PclntabSections added in v0.4.0

func (p *PeWrapper) PclntabSections() []string

func (*PeWrapper) ReadAddr

func (p *PeWrapper) ReadAddr(addr, size uint64) ([]byte, error)

func (*PeWrapper) Text

func (p *PeWrapper) Text() (textStart uint64, text []byte, err error)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL