Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/link: support buildmode=pie with internal linking (on Android) #31343
With Termux it's now within reach to run all.bash directly an Android device without a host. Termux is an Android app that includes a complete Linux environment, including the NDK C toolchain.
However, I'm stopped by an unfortunate chain of constraints:
Of the above conditions, 1, 3 and 4 are outside our control and I don't think we want to fix 5.
This issue is about relaxing 2, so buildmode=pie no longer requires external linking.
I'm not sure about Android, but on Linux, on AMD64 internal linking PIE should work. It is not the default, but