aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Hudson-Doyle <michael.hudson@canonical.com>2015-08-28 12:09:13 +1200
committerMichael Hudson-Doyle <michael.hudson@canonical.com>2015-11-15 23:41:28 +0000
commit25a28da0807f3fa85588fb219f6fa40314bde675 (patch)
treef9ad700ac92f2c83e076bf3463fe3a7c19fd4b9e /src
parent4bae454d6865b64d189b797f4870a6c9eeb8212d (diff)
downloadgo-25a28da0807f3fa85588fb219f6fa40314bde675.tar.xz
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/14000 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Reviewed-by: David Crawshaw <crawshaw@golang.org>
Diffstat (limited to 'src')
-rw-r--r--src/cmd/dist/test.go2
-rw-r--r--src/cmd/go/build.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/dist/test.go b/src/cmd/dist/test.go
index 5b4ead4bad..f378f2d729 100644
--- a/src/cmd/dist/test.go
+++ b/src/cmd/dist/test.go
@@ -592,7 +592,7 @@ func (t *tester) supportedBuildmode(mode string) bool {
return false
case "shared":
switch pair {
- case "linux-amd64", "linux-arm", "linux-ppc64le":
+ case "linux-amd64", "linux-arm", "linux-arm64", "linux-ppc64le":
return true
}
return false
diff --git a/src/cmd/go/build.go b/src/cmd/go/build.go
index 5cd92c23fa..c110c7cc56 100644
--- a/src/cmd/go/build.go
+++ b/src/cmd/go/build.go
@@ -375,7 +375,7 @@ func buildModeInit() {
fatalf("-buildmode=pie not supported by gccgo")
} else {
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"
default:
fatalf("-buildmode=pie not supported on %s\n", platform)