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

type goobjFile

func openGoFile(f *os.File) (*File, error) {}

func goobjName(name string, ver int) string {}

type goobjReloc

func (r goobjReloc) String(insnOffset uint64) string {}

func (f *goobjFile) symbols() ([]Sym, error) {}

func (f *goobjFile) pcln() (textStart uint64, symtab, pclntab []byte, err error) {}

// Find returns the file name, line, and function data for the given pc.
// Returns "",0,nil if unknown.
// This function implements the Liner interface in preference to pcln() above.
func (f *goobjFile) PCToLine(pc uint64) (string, int, *gosym.Func) {}

// pcValue looks up the given PC in a pc value table. target is the
// offset of the pc from the entry point.
func pcValue(tab []byte, target uint64, arch *sys.Arch) int32 {}

// step advances to the next pc, value pair in the encoded table.
func step(p *[]byte, pc *uint64, val *int32, first bool, arch *sys.Arch) bool {}

// readvarint reads, removes, and returns a varint from *p.
func readvarint(p *[]byte) uint32 {}

// We treat the whole object file as the text section.
func (f *goobjFile) text() (textStart uint64, text []byte, err error) {}

func (f *goobjFile) goarch() string {}

func (f *goobjFile) loadAddress() (uint64, error) {}

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