aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCherry Zhang <cherryyz@google.com>2021-02-16 12:58:48 -0500
committerCherry Zhang <cherryyz@google.com>2021-02-16 18:21:51 +0000
commitd28aae26b00ec047da1c27192d7eb4b64e30db45 (patch)
tree04171d86abed00d4c3e0567c260affaa4c2375d7
parente0215315f51c62f6d2c5ea5ed7008b7e7963dd5d (diff)
downloadgo-d28aae26b00ec047da1c27192d7eb4b64e30db45.tar.gz
go-d28aae26b00ec047da1c27192d7eb4b64e30db45.zip
[dev.regabi] cmd/link: recognize internal/abi as runtime package
The runtime imports the internal/abi package. Recognize internal/abi as a runtime dependent, to make trampoline generation algorithm work. Fix ARM build. Change-Id: I26b6778aa41dcb959bc226ff04abe08a5a82c4f6 Reviewed-on: https://go-review.googlesource.com/c/go/+/292610 Reviewed-by: Than McIntosh <thanm@google.com> Trust: Cherry Zhang <cherryyz@google.com> Run-TryBot: Cherry Zhang <cherryyz@google.com> TryBot-Result: Go Bot <gobot@golang.org>
-rw-r--r--src/cmd/link/internal/ld/data.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cmd/link/internal/ld/data.go b/src/cmd/link/internal/ld/data.go
index 6013e0ab0a..2fb790a6ea 100644
--- a/src/cmd/link/internal/ld/data.go
+++ b/src/cmd/link/internal/ld/data.go
@@ -55,6 +55,7 @@ func isRuntimeDepPkg(pkg string) bool {
switch pkg {
case "runtime",
"sync/atomic", // runtime may call to sync/atomic, due to go:linkname
+ "internal/abi", // used by reflectcall (and maybe more)
"internal/bytealg", // for IndexByte
"internal/cpu": // for cpu features
return true