New comment by ericonr on void-packages repository https://github.com/void-linux/void-packages/pull/20854#issuecomment-616050062 Comment: https://github.com/alpinelinux/aports/commits/master/community/go will give some idea of the apparent fight it is to get Go working properly. That said, simply setting `GOFLAGS` to the appropriate value made it possible to build Go executables with pie, which can be stripped and checked by the build hooks (no more nostrip/nopie, yay). I have built executables for armv6l and x86_64, and preliminary testing shows them working well on x64, while I still have to test arm. It seems getting the compiler itself to be built with PIE will be harder. Due to not having any idea about how to test arches that use gccgo (@q66 I imagine you have some experience with this, given your void-ppc project), I tried to keep the environment for that build system as close as possible to the original. If you orient me on testing, we can see if some or any of these changes can be moved to it as well. @travankor if you want to take a look :)