Build a map of symbol names to symbols. Here in the runtime we fill out the first word of the interface, the type. We pass these zero value interfaces to the plugin package, where the symbol value is filled in (usually via cgo). Because functions are handled specially in the plugin package, function symbol names are prefixed here with '.' to avoid a dependency on the reflect package.
A common bug is f.entry has a relocation to a duplicate function symbol, meaning if we search for its PC we get a valid entry with a name that is useful for debugging.
A ptabEntry is generated by the compiler for each exported function and global variable in the main package of a plugin. It is used to initialize the plugin module's symbol map.
The pages are generated with Goldsv0.3.2-preview. (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds.