diff options
| author | Cherry Mui <cherryyz@google.com> | 2026-02-25 12:26:54 -0500 |
|---|---|---|
| committer | Cherry Mui <cherryyz@google.com> | 2026-04-02 13:12:00 -0700 |
| commit | caa169ee4804ba0dbe1c430e8e9a4d2940f5145b (patch) | |
| tree | 24486172c5b6a6ac45e864233d692bf2f26dae2e /src/runtime/alg.go | |
| parent | 3a0f18376fb974b6f5d30613f1a20d826a2564aa (diff) | |
| download | go-caa169ee4804ba0dbe1c430e8e9a4d2940f5145b.tar.xz | |
all: add export linknames for assembly symbols accessed from other package
For Go symbols accessed from other package via linkname or
assembly, we have an export linkname from the definition side. We
currently don't always have the linkname directive for assembly
functions, for which external accesses are allowed. We may want
to tighten up the restriction. So add export linknames for the ones
that are needed.
Change-Id: If664634c81580edd49086d916024f23f86871092
Reviewed-on: https://go-review.googlesource.com/c/go/+/749981
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
Diffstat (limited to 'src/runtime/alg.go')
| -rw-r--r-- | src/runtime/alg.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/runtime/alg.go b/src/runtime/alg.go index 9b726b2180..e99acf8242 100644 --- a/src/runtime/alg.go +++ b/src/runtime/alg.go @@ -80,8 +80,12 @@ var useAeshash bool //go:linkname memhash func memhash(p unsafe.Pointer, h, s uintptr) uintptr +// Accessed in internal/runtime/maps. +// +//go:linknamestd memhash32 func memhash32(p unsafe.Pointer, h uintptr) uintptr +//go:linknamestd memhash64 func memhash64(p unsafe.Pointer, h uintptr) uintptr // strhash should be an internal detail, |
