A Binutils implements plugin.ObjTool by invoking the GNU binutils.
type Binutils struct {
// contains filtered or unexported fields
}
func (bu *Binutils) Disasm(file string, start, end uint64, intelSyntax bool) ([]plugin.Inst, error)
Disasm returns the assembly instructions for the specified address range of a binary.
func (bu *Binutils) Open(name string, start, limit, offset uint64, relocationSymbol string) (plugin.ObjFile, error)
Open satisfies the plugin.ObjTool interface.
func (bu *Binutils) SetFastSymbolization(fast bool)
SetFastSymbolization sets a toggle that makes binutils use fast symbolization (using nm), which is much faster than addr2line but provides only symbol name information (no file/line).
func (bu *Binutils) SetTools(config string)
SetTools processes the contents of the tools option. It expects a set of entries separated by commas; each entry is a pair of the form t:path, where cmd will be used to look only for the tool named t. If t is not specified, the path is searched for all tools.
func (bu *Binutils) String() string
String returns string representation of the binutils state for debug logging.