obj

package
v0.0.17 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2023 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

This section is empty.

Types

type Epilogue added in v0.0.17

type Epilogue struct {
	Offset int
	Size   int
}

type Func

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

type FuncInfo

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

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
	CUFiles []string
}

type Reloc

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

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