Documentation ¶
Index ¶
- Variables
- type File
- func (e *File) ByteOrder() binary.ByteOrder
- func (e *File) PCLNTabSection() (Section, error)
- func (e *File) RODataSection() (Section, error)
- func (e *File) SectionContainingRange(addrRange address.Range) (Section, error)
- func (e *File) Symbol(name string) (Symbol, error)
- func (e *File) SymbolsForAddresses(addrs []uint64) (map[uint64]Symbol, error)
- func (e *File) TextSection() (Section, error)
- type Section
- type Symbol
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrSymbolNotFound is returned when a symbol is requested that cannot be located ErrSymbolNotFound = errors.New("symbol not found") // ErrSectionNotFound is returned when a section is requested that cannot be located ErrSectionNotFound = errors.New("section not found") )
Functions ¶
This section is empty.
Types ¶
type File ¶
type File struct {
// contains filtered or unexported fields
}
File represents an executable file
func (*File) PCLNTabSection ¶
PCLNTabSection returns the Go PCLN table section
func (*File) RODataSection ¶
RODataSection returns the read-only data section
func (*File) SectionContainingRange ¶
SectionContainingRange returns the section that fully contains the supplied range
func (*File) SymbolsForAddresses ¶
SymbolsForAddresses locates at most one symbol for each address. Not every address may resolve to a symbol; in such cases the address will not feature in the returned map.
func (*File) TextSection ¶
TextSection returns the text section
Click to show internal directories.
Click to hide internal directories.