default-buildmode-pie.patch 609 B

123456789101112131415
  1. diff --git a/src/cmd/go/internal/work/init.go b/src/cmd/go/internal/work/init.go
  2. index 7f894f5..a517887 100644
  3. --- a/src/cmd/go/internal/work/init.go
  4. +++ b/src/cmd/go/internal/work/init.go
  5. @@ -111,7 +111,8 @@ func buildModeInit() {
  6. ldBuildmode = "c-shared"
  7. case "default":
  8. switch platform {
  9. - case "android/arm", "android/arm64", "android/amd64", "android/386":
  10. + case "linux/amd64", "linux/arm", "linux/arm64", "linux/386", "linux/ppc64le",
  11. + "android/arm", "android/arm64", "android/amd64", "android/386":
  12. codegenArg = "-shared"
  13. ldBuildmode = "pie"
  14. case "darwin/arm", "darwin/arm64":