Documentation
¶
Overview ¶
Package pclnmap encodes LLGo's optional external runtime-symbolization map. The runtime has a deliberately dependency-free decoder for the same format; keep the layout constants and validation rules in sync with runtime/internal/lib/runtime/pclntab_external.go.
Index ¶
Constants ¶
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Data ¶
type Data struct {
GOOS string
GOARCH string
PointerSize int
ImageBase uint64
TextStart uint64
TextEnd uint64
Identity [32]byte
Table funcinfo.Table
SymbolIndex []SymbolIndexEntry
EntrySites []Site
PCSites []Site
}
Data is the complete immutable payload needed by the external runtime loader. EntrySites are physical function entries normalized and LTO-deduplicated by the post-link analyzer. Compiler-generated wrappers and adapters use ordinary function records and entry sites; calling conventions and closure environment transport are deliberately not represented here.
type Site ¶
Site is a final linked PC expressed relative to the image base. ID is a symbol ID for EntrySites and a pcline record ID for PCSites.
type SymbolIndexEntry ¶
SymbolIndexEntry maps the stable symbol hash carried by a link-phase site record to the one-based funcinfo table index used by the runtime.
type View ¶
type View struct {
GOOSCode, GOARCHCode uint8
PointerSize uint8
ImageBase uint64
TextStartOffset uint64
TextEndOffset uint64
Identity [32]byte
Sections [descCount]Section
}
View describes validated sections in an encoded map. It is primarily used by tests and build tooling; the runtime publishes zero-copy typed views.