Commit 25a28da0 authored by Michael Hudson-Doyle's avatar Michael Hudson-Doyle

cmd/dist, cmd/go: run testshared on arm64

And enable PIE in the go tool.

Change-Id: Ibb60ccfe62518cde6e33080bbc78bfcbecff6a4e
Reviewed-on: https://go-review.googlesource.com/14000Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: default avatarDavid Crawshaw <crawshaw@golang.org>
parent 4bae454d
...@@ -592,7 +592,7 @@ func (t *tester) supportedBuildmode(mode string) bool { ...@@ -592,7 +592,7 @@ func (t *tester) supportedBuildmode(mode string) bool {
return false return false
case "shared": case "shared":
switch pair { switch pair {
case "linux-amd64", "linux-arm", "linux-ppc64le": case "linux-amd64", "linux-arm", "linux-arm64", "linux-ppc64le":
return true return true
} }
return false return false
......
...@@ -375,7 +375,7 @@ func buildModeInit() { ...@@ -375,7 +375,7 @@ func buildModeInit() {
fatalf("-buildmode=pie not supported by gccgo") fatalf("-buildmode=pie not supported by gccgo")
} else { } else {
switch platform { switch platform {
case "linux/arm", "android/arm", "linux/amd64", "android/amd64", "linux/ppc64le": case "linux/arm", "android/arm", "linux/amd64", "android/amd64", "linux/arm64", "linux/ppc64le":
codegenArg = "-shared" codegenArg = "-shared"
default: default:
fatalf("-buildmode=pie not supported on %s\n", platform) fatalf("-buildmode=pie not supported on %s\n", platform)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment