aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/runtime.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2024-05-21 22:38:02 -0400
committerGopher Robot <gobot@golang.org>2024-05-22 20:12:46 +0000
commitef225d1c57a97af984af114ee52005314530bbe2 (patch)
tree745ef06d093490ff1c486249904cc189d1eabf34 /src/runtime/runtime.go
parentdca577d882f989e41a753537e9607f0c22e4a798 (diff)
downloadgo-ef225d1c57a97af984af114ee52005314530bbe2.tar.xz
all: document legacy //go:linkname for modules with ≥100,000 dependents
For #67401. Change-Id: I51f5b561ee11eb242e3b1585d591281d0df4fc24 Reviewed-on: https://go-review.googlesource.com/c/go/+/587215 Auto-Submit: Russ Cox <rsc@golang.org> Reviewed-by: Cherry Mui <cherryyz@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Diffstat (limited to 'src/runtime/runtime.go')
-rw-r--r--src/runtime/runtime.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/runtime/runtime.go b/src/runtime/runtime.go
index cc6f03d2a0..f854fd5e41 100644
--- a/src/runtime/runtime.go
+++ b/src/runtime/runtime.go
@@ -295,4 +295,9 @@ func setCrashFD(fd uintptr) uintptr {
// It contains an even number of elements, (tag, value) pairs.
var auxv []uintptr
-func getAuxv() []uintptr { return auxv } // accessed from x/sys/cpu; see issue 57336
+// golang.org/x/sys/cpu uses getAuxv via linkname.
+// Do not remove or change the type signature.
+// (See go.dev/issue/57336.)
+//
+//go:linkname getAuxv
+func getAuxv() []uintptr { return auxv }