cmd/link: support -linkmode=internal with Cgo #38918
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
FeatureRequest
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?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?
linux/amd64:
darwin/amd64 with
applied:
android/*, buildmode=c-shared:
With
the
gogio -target android
build completes, but the resulting apk fails at runtime with:(e_type 2 is ET_EXEC, the loader expects ET_DYN)
darwin/arm64 (iOS):
With
What did you expect to see?
A running program.
What did you see instead?
Link errors.
By itself,
-linkmode=internal
doesn't seem important when using Cgo, but in combination with #38917 internal linking is a crucial step towards dropping the native toolchain altogether.The text was updated successfully, but these errors were encountered: