diff options
author | Michael Anthony Knyszek <mknyszek@google.com> | 2021-03-15 21:48:58 +0000 |
---|---|---|
committer | Michael Knyszek <mknyszek@google.com> | 2021-03-19 17:08:02 +0000 |
commit | 836dbdb15b766696eadd141ea2430f3549c58ec5 (patch) | |
tree | af80cbf4fd4a46344124ed74818ca6a67b976054 /src/runtime/zcallback_windows_arm64.s | |
parent | 4deaa6a178d89631302470f78574c1e957cf84a5 (diff) | |
download | go-836dbdb15b766696eadd141ea2430f3549c58ec5.tar.gz go-836dbdb15b766696eadd141ea2430f3549c58ec5.zip |
runtime: mark Windows' address-taken asm routines as ABIInternal
In the runtime there are Windows-specific assembly routines that are
address-taken via funcPC and are not intended to be called through a
wrapper. Mark them as ABIInternal so that we don't grab the wrapper,
because that will break in all sorts of contexts.
For #40724.
For #44065.
Change-Id: I12a728786786f423e5b229f8622e4a80ec27a31c
Reviewed-on: https://go-review.googlesource.com/c/go/+/302109
Trust: Michael Knyszek <mknyszek@google.com>
Run-TryBot: Michael Knyszek <mknyszek@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Diffstat (limited to 'src/runtime/zcallback_windows_arm64.s')
-rw-r--r-- | src/runtime/zcallback_windows_arm64.s | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/zcallback_windows_arm64.s b/src/runtime/zcallback_windows_arm64.s index 69fb05788c..2a6bda0990 100644 --- a/src/runtime/zcallback_windows_arm64.s +++ b/src/runtime/zcallback_windows_arm64.s @@ -9,7 +9,7 @@ // It then calls the Go implementation for that callback. #include "textflag.h" -TEXT runtime·callbackasm(SB),NOSPLIT|NOFRAME,$0 +TEXT runtime·callbackasm<ABIInternal>(SB),NOSPLIT|NOFRAME,$0 MOVD $0, R12 B runtime·callbackasm1(SB) MOVD $1, R12 |