We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b941d2b commit 1cf62beCopy full SHA for 1cf62be
src/runtime/symtab.go
@@ -480,7 +480,18 @@ var pinnedTypemaps []map[typeOff]*_type
480
// the relocated one.
481
var aixStaticDataBase uintptr // linker symbol
482
483
-var firstmoduledata moduledata // linker symbol
+var firstmoduledata moduledata // linker symbol
484
+
485
+// lastmoduledatap should be an internal detail,
486
+// but widely used packages access it using linkname.
487
+// Notable members of the hall of shame include:
488
+// - github.com/bytedance/sonic
489
+//
490
+// Do not remove or change the type signature.
491
+// See go.dev/issues/67401.
492
+// See go.dev/issues/71672.
493
494
+//go:linkname lastmoduledatap runtime.lastmoduledatap
495
var lastmoduledatap *moduledata // linker symbol
496
497
var modulesSlice *[]*moduledata // see activeModules
0 commit comments