Go v1.6 brought about the introduction of -buildmode=pie. However, it only is supported by some platforms including: linux/386, linux/amd64, linux/arm, linux/arm64, and linux/ppc64le. Since it is not supported for all, I suspect that is why it is not default. However, it would be nice to support a way to trigger this when building.
https://golang.org/doc/go1.6#compiler
Go v1.6 brought about the introduction of
-buildmode=pie. However, it only is supported by some platforms including:linux/386, linux/amd64, linux/arm, linux/arm64, and linux/ppc64le. Since it is not supported for all, I suspect that is why it is not default. However, it would be nice to support a way to trigger this when building.https://golang.org/doc/go1.6#compiler