mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
[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>
This commit is contained in:
parent
e0215315f5
commit
d28aae26b0
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue