wrapper

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 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) 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) 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) 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
}

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