Documentation
¶
Overview ¶
Package binary defines types and the interface for parsed executable files. Format-specific packages (elf, pe, macho) implement this interface and register themselves via RegisterFormat.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterFormat ¶
Types ¶
type Binary ¶
type Binary interface {
Format() Format
Architecture() types.Arch
EntryPoint() uint64
Sections() []Section
Section(name string) (Section, bool)
Symbols() ([]Symbol, error)
DynamicSymbols() ([]Symbol, error)
IsPIE() bool
IsStripped() bool
ByteOrder() binary.ByteOrder
GoBuildInfo() (*GoBuildInfo, bool)
Pclntab() ([]byte, uint64, bool)
Close() error
}
type GoBuildInfo ¶
type GoModuleDep ¶
type SectionFlag ¶
type SectionFlag int
const ( SectionExecutable SectionFlag = 1 << iota SectionWritable SectionReadable )
type Symbol ¶
type Symbol struct {
Name string
Address uint64
Size uint64
Type SymbolType
Section string
Version string
Binding SymbolBinding
}
type SymbolBinding ¶
type SymbolBinding int
const ( SymbolLocal SymbolBinding = iota SymbolGlobal SymbolWeak )
type SymbolType ¶
type SymbolType int
const ( SymbolUnknown SymbolType = iota SymbolFunction SymbolObject SymbolSection SymbolFile )
Click to show internal directories.
Click to hide internal directories.