cmd/link: go install -buildmode=shared -linkshared std doesn't work as expected #28722
Milestone
Comments
Running What C linker are you using? For me
|
It is the one that comes with Centos 6.
|
Hmmm, that's an 8 year old linker. This is just a warning, right? The program still completes and works? |
Change https://golang.org/cl/153257 mentions this issue: |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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?
I run "go install -buildmode=shared -linkshared std" to generated a shared library for the std.
I have run the above on all recent go version from 1.6 to 1.11.
Since 1.9.1 the above doesn't work anymore and producses a warning.
As a result we cannot dynamically link our code to std library in any version more than 1.8.7.
What did you expect to see?
success without any warning.
What did you see instead?
/usr/bin/ld: warning: .init_array section has zero size
The text was updated successfully, but these errors were encountered: