mirror of https://github.com/golang/go.git
cmd/go: enable -buildmode=pie on linux/386
Change-Id: Ie4cdf50fdaf7b368a189a84f4e2aea4cedd5ca7d Reviewed-on: https://go-review.googlesource.com/17013 Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
parent
a3e7544ea8
commit
c8abb02178
|
|
@ -375,7 +375,7 @@ func buildModeInit() {
|
|||
fatalf("-buildmode=pie not supported by gccgo")
|
||||
} else {
|
||||
switch platform {
|
||||
case "linux/amd64", "linux/arm", "linux/arm64", "linux/ppc64le",
|
||||
case "linux/386", "linux/amd64", "linux/arm", "linux/arm64", "linux/ppc64le",
|
||||
"android/amd64", "android/arm", "android/arm64", "android/386":
|
||||
codegenArg = "-shared"
|
||||
default:
|
||||
|
|
|
|||
Loading…
Reference in New Issue