cmd/link: libraries are not resolved with cgo_import_dynamic (arm64) #49789
Labels
arch-arm64
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
What version of Go are you using (
go version
)?ToT (b38ab0a)
Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Create the two files shown in #39256. (It also exists as a test case for https://golang.org/cl/235257.)
Build it into an executable with the following environment variables:
Run it on the Arm64 Android device.
What did you expect to see?
Works fine.
What did you see instead?
When I run the executable on my device, I get the following error message:
On host machine (Linux / amd64):
I think the following line is causing this issue.
go/src/cmd/link/internal/ld/elf.go
Line 2260 in b38ab0a
With this patch, the 'DT_NEEDED' entry in the final executable exists as expected and the error goes away.
The text was updated successfully, but these errors were encountered: