Documentation
¶
Index ¶
- Constants
- func MakeThreadJITCodeExecutable(ptr uintptr, len int)
- func Mmap(size int) ([]byte, error)
- func MmapData(size int) ([]byte, error)
- func Munmap(b []byte) (err error)
- func Parse(file, pkgPath string) ([]string, error)
- func ReadDependPackages(linker *Linker, files, pkgPaths []string, symbolNames []string, ...) error
- func RegSymbol(symPtr map[string]uintptr) error
- func RegSymbolWithPath(symPtr map[string]uintptr, path string) error
- func RegSymbolWithSo(symPtr map[string]uintptr, path string) error
- func RegTypes(symPtr map[string]uintptr, interfaces ...interface{})
- func Serialize(linker *Linker, writer io.Writer) error
- func UnresolvedSymbols(linker *Linker, symPtr map[string]uintptr) []string
- type CodeModule
- type Linker
- type LinkerData
Constants ¶
View Source
const ( FindFuncBucketSize = int(unsafe.Sizeof(findfuncbucket{})) PCHeaderSize = int(unsafe.Sizeof(pcHeader{})) )
type size
Variables ¶
This section is empty.
Functions ¶
func ReadDependPackages ¶
Types ¶
type CodeModule ¶
func Load ¶
func Load(linker *Linker, symPtr map[string]uintptr) (codeModule *CodeModule, err error)
func (*CodeModule) Unload ¶
func (cm *CodeModule) Unload()
type Linker ¶
type Linker struct {
LinkerData
SymMap map[string]*obj.Sym
ObjSymbolMap map[string]*obj.ObjSymbol
NameMap map[string]int
StringMap map[string]*string
CgoImportMap map[string]*obj.CgoImport
CgoFuncs map[string]int
UnImplementedTypes map[string]map[string]int
Filetab []uint32
Pclntable []byte
Funcs []*_func
Packages map[string]*obj.Pkg
Arch *sys.Arch
CUOffset int32
ExtraData int
AdaptedOffset bool
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.