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(f *os.File, pkgpath *string) ([]string, error)
- func RegSymbol(symPtr map[string]uintptr) error
- func RegSymbolWithSo(symPtr map[string]uintptr, path string) error
- func RegTypes(symPtr map[string]uintptr, interfaces ...interface{})
- type CodeModule
- type Linker
Constants ¶
View Source
const ( PtrSize = 4 << (^uintptr(0) >> 63) Uint32Size = int(unsafe.Sizeof(uint32(0))) IntSize = int(unsafe.Sizeof(int(0))) UInt64Size = int(unsafe.Sizeof(uint64(0))) FindFuncBucketSize = int(unsafe.Sizeof(findfuncbucket{})) PCHeaderSize = int(unsafe.Sizeof(pcHeader{})) InvalidHandleValue = ^uintptr(0) InvalidOffset = int(-1) PageSize = 1 << 12 //4096 )
size
View Source
const ( EmptyString = "" DefaultPkgPath = "main" ZeroByte = byte(0x00) )
View Source
const ( FileSymPrefix = "gofile.." MainPkgPrefix = "main." OsStdout = "os.Stdout" GOTPCRELSuffix = "·f" )
string match prefix/suffix
View Source
const (
KindGCProg = 1 << 6
)
View Source
const (
RuntimeDeferReturn = "runtime.deferreturn"
)
runtime symbol
View Source
const (
TLSNAME = "(TLS)"
)
Variables ¶
This section is empty.
Functions ¶
func MakeThreadJITCodeExecutable ¶ added in v0.0.17
func RegSymbolWithSo ¶ added in v0.0.13
Types ¶
type CodeModule ¶
func Load ¶
func Load(linker *Linker, symPtr map[string]uintptr) (codeModule *CodeModule, err error)
func (*CodeModule) Unload ¶
func (cm *CodeModule) Unload()
Source Files ¶
Click to show internal directories.
Click to hide internal directories.