obj

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2022 License: Apache-2.0 Imports: 2 Imported by: 2

Documentation

Index

Constants

View Source
const (
	InvalidOffset   = int(-1)
	InvalidIndex    = uint32(0xFFFFFFFF)
	InlinedCallSize = int(unsafe.Sizeof(InlinedCall{}))
	EmptyPkgPath    = `""`
	EmptyString     = ""
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Func

type Func struct {
	PCData   []uint32
	FuncData []uintptr
}

type FuncInfo

type FuncInfo struct {
	Args     uint32
	Locals   uint32
	FuncID   uint8
	FuncFlag uint8
	PCSP     []byte
	PCFile   []byte
	PCLine   []byte
	PCInline []byte
	PCData   [][]byte
	File     []string
	FuncData []string
	InlTree  []InlTreeNode
}

type InlTreeNode

type InlTreeNode struct {
	Parent   int64
	File     string
	Line     int64
	Func     string
	ParentPC int64
}

type ObjSymbol

type ObjSymbol struct {
	Name  string
	Kind  int    // kind of symbol
	DupOK bool   // are duplicate definitions okay?
	Size  int64  // size of corresponding data
	Data  []byte // memory image of symbol
	Type  string
	Reloc []Reloc
	Func  *FuncInfo // additional data for functions
}

type Pkg

type Pkg struct {
	Syms    map[string]*ObjSymbol
	Arch    string
	PkgPath string
	F       *os.File
}

type Reloc

type Reloc struct {
	Offset int
	Sym    *Sym
	Size   int
	Type   int
	Add    int
}

copy from $GOROOT/src/cmd/internal/goobj/read.go type Reloc struct

type Sym

type Sym struct {
	Name   string
	Kind   int
	Offset int
	Func   *Func
	Reloc  []Reloc
}

copy from $GOROOT/src/cmd/internal/goobj/read.go type Sym struct

Jump to

Keyboard shortcuts

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