-
Notifications
You must be signed in to change notification settings - Fork 17.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
build: run android builder with android-L devices. #10807
Comments
Does Android L support PIE executable with text relocations? We can easily generate PIE executable if text relocation is supported. To eliminate text relocations, we need to modify the way we load MOVW addr(SB), R0 is currently translated to: To switch to PIC, it needs to be translated to: MOVW $addr(SB), R1 is currently translated to: |
Just adding |
@quarnster huh, that didn't work last time I tried it, but you're right. |
CL https://golang.org/cl/16055 mentions this issue. |
CL https://golang.org/cl/16054 mentions this issue. |
For #10807 Change-Id: Ied826d06cb622edf6413b6f2cdcc46987ab0b05a Reviewed-on: https://go-review.googlesource.com/16054 Reviewed-by: Ian Lance Taylor <iant@golang.org> Run-TryBot: David Crawshaw <crawshaw@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
Also make PIE executables the default build mode, as PIE executables are required as of Android L. For #10807 Change-Id: I86b7556b9792105cd2531df1b8f3c8f7a8c5d25c Reviewed-on: https://go-review.googlesource.com/16055 Reviewed-by: Ian Lance Taylor <iant@golang.org> Run-TryBot: David Crawshaw <crawshaw@golang.org>
CL https://golang.org/cl/16114 mentions this issue. |
CL https://golang.org/cl/16115 mentions this issue. |
CL https://golang.org/cl/16116 mentions this issue. |
Creating symlinks (/data/local/tmp/*) doesn't seem to work on android-L (tested on nexus5). I cannot find any official documentation yet but just guess it's a measure for security attacks using symlinks. The tests failed with 'permission denied' errors. For #10807 Change-Id: I99a9c401c6ecca3c4adc7b21708adaf3dd601279 Reviewed-on: https://go-review.googlesource.com/16115 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Same reason as https://go-review.googlesource.com/#/c/16115/ For #10807 Change-Id: Id0c404e9feb963f39a111fc317c9787692516ae1 Reviewed-on: https://go-review.googlesource.com/16116 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
unix/unixgram is not available to standard Android programs. For #10807 Change-Id: I6062c3a25cffb86e58cbbd12a07dc90ffbf57185 Reviewed-on: https://go-review.googlesource.com/16114 Reviewed-by: Ian Lance Taylor <iant@golang.org>
CL https://golang.org/cl/16396 mentions this issue. |
For #10743 #10807 Change-Id: I35dedb52e2b47fe7ffc655d01f22ac05fe830bde Reviewed-on: https://go-review.googlesource.com/16396 Reviewed-by: David Crawshaw <crawshaw@golang.org>
For golang/go#10743 golang/go#10807 Change-Id: I35dedb52e2b47fe7ffc655d01f22ac05fe830bde Reviewed-on: https://go-review.googlesource.com/16396 Reviewed-by: David Crawshaw <crawshaw@golang.org>
I believe this can be closed. android/arm and android/arm64 run on Android M devices and android/386 and android/amd64 on Android O emulators. |
The current builder cross-compiles the test binaries, runs the compiled binaries on the device, and parses the output of them. This does not work for android-L that requires PIE and refuses to run the test binaries with the following error message.
"only position independent executables (PIE) are supported."
Probably related to : #6940
The text was updated successfully, but these errors were encountered: