-
Notifications
You must be signed in to change notification settings - Fork 17.6k
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
cmd/link/internal/ld,cmd/nm: tests fail on android/arm64 #58807
Comments
Change https://go.dev/cl/472455 mentions this issue: |
There are some similar failures (involving bad DWARF addresses) for
|
These are because we build PIE binaries on Android/ARM64, and these tests don' work for PIE. https://cs.opensource.google/go/go/+/master:src/cmd/nm/nm_test.go;l=155-175 is to skip the test for PIE platforms. We need to add android there as well. |
Same for the linker DWARF test (see the skip for darwin/arm64). |
Maybe there should be a function in |
SGTM. |
Change https://go.dev/cl/475076 mentions this issue: |
Many of the tests skipped platforms that build PIE binaries by default, but (still) lack a central function to report which platforms those are. Some of the tests assumed (but did not check for) internal linking support, or invoked `go tool link` directly without properly configuring the external linker. A few of the tests seem to be triggering latent bugs in the linker. For #58806. For #58807. For #58794. Change-Id: Ie4d06b1597f404590ad2abf978d4c363647407ac Reviewed-on: https://go-review.googlesource.com/c/go/+/472455 Reviewed-by: Cherry Mui <cherryyz@google.com> Auto-Submit: Bryan Mills <bcmills@google.com> Run-TryBot: Bryan Mills <bcmills@google.com> TryBot-Result: Gopher Robot <gobot@golang.org>
Change https://go.dev/cl/475457 mentions this issue: |
…e PIE This consolidates a condition that was previously repeated (in different approximations) in several different places in the code. For #58807. Change-Id: Idd308759f6262b1f5c61f79022965612319edf94 Reviewed-on: https://go-review.googlesource.com/c/go/+/475457 Run-TryBot: Bryan Mills <bcmills@google.com> Auto-Submit: Bryan Mills <bcmills@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Cherry Mui <cherryyz@google.com>
The offset errors are fixed with the updated PIE skips. There are still two TODOs for this issue for the |
In CL 472096, I am experimenting with enabling tests that use go build on android, because I don't see a good reason not to. Unfortunately, several
cmd/link/internal/ld
tests fail when run onandroid/arm64
:(https://storage.googleapis.com/go-build-log/c86ce876/android-arm64-corellium_04a8c6e6.log)
(attn @golang/android @golang/compiler)
The text was updated successfully, but these errors were encountered: