Documentation ¶
Index ¶
Constants ¶
View Source
const ( PtrSize = 4 << (^uintptr(0) >> 63) Uint32Size = int(unsafe.Sizeof(uint32(0))) IntSize = int(unsafe.Sizeof(int(0))) ItabSize = int(unsafe.Sizeof(itab{})) INVALID_HANDLE_VALUE = ^uintptr(0) INVALID_OFFSET = int(-1) )
size
View Source
const ( TLSNAME = "(TLS)" R_CALLIND_NAME = "R_CALLIND" )
View Source
const ( ARCH_ARM32 = "arm" ARCH_ARM64 = "arm64" ARCH_386 = "386" ARCH_AMD64 = "amd64" )
cpu arch
View Source
const ( EMPTY_STRING = "" DEFAULT_PKGPATH = "main" ZERO_BYTE = byte(0x00) )
View Source
const ( RUNTIME_DEFERRETURN = "runtime.deferreturn" RUNTIME_INIT = "runtime.init" )
runtime symbol
View Source
const ( FILE_SYM_PREFIX = "gofile.." TYPE_IMPORTPATH_PREFIX = "type..importpath." TYPE_DOUBLE_DOT_PREFIX = "type.." TYPE_PREFIX = "type." ITAB_PREFIX = "go.itab." RUNTIME_PREFIX = "runtime." STKOBJ_SUFFIX = ".stkobj" )
string match prefix/suffix
View Source
const ( R_ADDR = 1 // R_ADDRARM64 relocates an adrp, add pair to compute the address of the // referenced symbol. R_ADDRARM64 = 3 // R_ADDROFF resolves to a 32-bit offset from the beginning of the section // holding the data being relocated to the referenced symbol. R_ADDROFF = 5 // R_WEAKADDROFF resolves just like R_ADDROFF but is a weak relocation. // A weak relocation does not make the symbol it refers to reachable, // and is only honored by the linker if the symbol is in some other way // reachable. R_WEAKADDROFF = 6 R_CALL = 8 R_CALLARM = 9 R_CALLARM64 = 10 R_CALLIND = 11 )
copy from $GOROOT/src/cmd/internal/objabi/reloctype.go
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CodeModule ¶
type CodeModule struct { Syms map[string]uintptr CodeByte []byte Module *moduledata // contains filtered or unexported fields }
func (*CodeModule) Unload ¶
func (cm *CodeModule) Unload()
Source Files ¶
Click to show internal directories.
Click to hide internal directories.