Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrUnknownArch = errors.New("unknown arch") ErrUnknownOS = errors.New("unknown os") ErrUnknownBinary = errors.New("binary type is unknown") )
View Source
var ErrNoDynamicSection = errors.New("no .dynamic section")
Functions ¶
This section is empty.
Types ¶
type Info ¶
type Info struct {
Arch Arch
OS OS
Compiler string
StaticLinking bool
ByteOrder binary.ByteOrder
Security *SecurityInfo
// contains filtered or unexported fields
}
func AnalyzeBinary ¶
AnalyzeBinary analyzes the given binary and returns information about it.
The path must be a valid ELF, PE or Mach-O file. If the file is not recognized, an error of type ErrUnknownBinary is returned.
The returned Info contains information about the binary's architecture, operating system, compiler, linking, and security.
The returned error is nil if the analysis is successful, or an error describing the problem if the analysis fails.
func (*Info) GetSymbolAddr ¶
GetSymbolAddr returns the address of the symbol with the given name. If the symbol is not found, an error is returned.
Click to show internal directories.
Click to hide internal directories.