cmd/link: support buildmode=pie with internal linking (on Android) #31343
Comments
I'm not sure about Android, but on Linux, on AMD64 internal linking PIE should work. It is not the default, but |
Change https://golang.org/cl/170955 mentions this issue: |
gopherbot
pushed a commit
that referenced
this issue
Apr 8, 2019
Android Q frees a static TLS slot for us to use. Use the offset of that slot as the default for our TLS offset. As a result, runtime/cgo is no more a requirement for Android Q and newer. Updates #31343 Updates #29674 Change-Id: I759049b2e2865bd3d4fdc05a8cfc6db8b0da1f5d Reviewed-on: https://go-review.googlesource.com/c/go/+/170955 TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Cherry Zhang <cherryyz@google.com>
Change https://golang.org/cl/207299 mentions this issue: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The text was updated successfully, but these errors were encountered: