Documentation
¶
Overview ¶
Package objfile implements portable access to OS-specific executable files.
Index ¶
- type Entry
- type File
- func (f *File) Close() error
- func (f *File) DWARF() (*dwarf.Data, error)
- func (f *File) Entries() []*Entry
- func (f *File) GOARCH() string
- func (f *File) LoadAddress() (uint64, error)
- func (f *File) PCLineTable() (Liner, error)
- func (f *File) Symbols() ([]Sym, error)
- func (f *File) Text() (uint64, []byte, error)
- type Liner
- type Reloc
- type RelocStringer
- type Sym
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Entry ¶ added in go1.10
type Entry struct {
// contains filtered or unexported fields
}
func (*Entry) DWARF ¶ added in go1.10
DWARF returns DWARF debug data for the file, if any. This is for cmd/pprof to locate cgo functions.
func (*Entry) LoadAddress ¶ added in go1.10
LoadAddress returns the expected load address of the file. This differs from the actual load address for a position-independent executable.
func (*Entry) PCLineTable ¶ added in go1.10
type File ¶
type File struct {
// contains filtered or unexported fields
}
A File is an opened executable file.
func Open ¶
Open opens the named file. The caller must call f.Close when the file is no longer needed.
func (*File) LoadAddress ¶ added in go1.7
func (*File) PCLineTable ¶
type Reloc ¶ added in go1.8
type Reloc struct { Addr uint64 // Address of first byte that reloc applies to. Size uint64 // Number of bytes Stringer RelocStringer }
type RelocStringer ¶ added in go1.8
Click to show internal directories.
Click to hide internal directories.