Update #10373.
Change-Id: I309e3df7608b9eef9339196fdc50dedf5f9439f5
Reviewed-on: https://go-review.googlesource.com/8452
Reviewed-by: Aram Hăvărneanu <aram@mgk.ro>
Reviewed-by: David Crawshaw <crawshaw@golang.org>
}
}
+ // cmd/7l doesn't support cgo internal linking
+ // This is https://golang.org/issue/10373.
+ if iscgo && goarch == "arm64" {
+ Linkmode = LinkExternal
+ }
+
if Linkmode == LinkExternal && !iscgo {
// This indicates a user requested -linkmode=external.
// The startup code uses an import of runtime/cgo to decide