binutils

package
v0.0.0-...-b3c8e1d Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2019 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package binutils provides access to the GNU binutils.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Binutils

type Binutils struct {
	// contains filtered or unexported fields
}

A Binutils implements plugin.ObjTool by invoking the GNU binutils.

func (*Binutils) Disasm

func (bu *Binutils) Disasm(file string, start, end uint64) ([]plugin.Inst, error)

Disasm returns the assembly instructions for the specified address range of a binary.

func (*Binutils) Open

func (bu *Binutils) Open(name string, start, limit, offset uint64) (plugin.ObjFile, error)

Open satisfies the plugin.ObjTool interface.

func (*Binutils) SetFastSymbolization

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 (*Binutils) SetTools

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 (*Binutils) String

func (bu *Binutils) String() string

String returns string representation of the binutils state for debug logging.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL