Join 36 million developers who use GitHub
issues to help identify, assign, and keep track of the features and
bug fixes your projects need.
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?
to your account
This may well be below the caring threshold, but the -g flag ("disable go package data checks") of the linkers prevents the cgo section of the object file being read and so makes links involving cgo fail.
We should fix this. It should be simple enough
(cmd/internal/ld/go.go, func ldpkg).
cmd/internal/ld: read cgo data even when -g is passed
Simplest possible fix.
Fixes issue golang#9889
Fixed by linked CL; used wrong comment form.