go/src/cmd/internal/objfile/objfile.go

type rawFile

type File

type Entry

type Sym

type Reloc

type RelocStringer

var openers

// Open opens the named file.
// The caller must call f.Close when the file is no longer needed.
func Open(name string) (*File, error) {}

func (f *File) Close() error {}

func (f *File) Entries() []*Entry {}

func (f *File) Symbols() ([]Sym, error) {}

func (f *File) PCLineTable() (Liner, error) {}

func (f *File) Text() (uint64, []byte, error) {}

func (f *File) GOARCH() string {}

func (f *File) LoadAddress() (uint64, error) {}

func (f *File) DWARF() (*dwarf.Data, error) {}

func (f *File) Disasm() (*Disasm, error) {}

func (e *Entry) Name() string {}

func (e *Entry) Symbols() ([]Sym, error) {}

func (e *Entry) PCLineTable() (Liner, error) {}

func (e *Entry) Text() (uint64, []byte, error) {}

func (e *Entry) GOARCH() string {}

// LoadAddress returns the expected load address of the file.
// This differs from the actual load address for a position-independent
// executable.
func (e *Entry) LoadAddress() (uint64, error) {}

// DWARF returns DWARF debug data for the file, if any.
// This is for cmd/pprof to locate cgo functions.
func (e *Entry) DWARF() (*dwarf.Data, error) {}