cmd/link: -a doesn't work with external linkmode #29807
Labels
FrozenDueToAge
help wanted
NeedsFix
The path to resolution is known, but the work has not been done.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes, with go1.10.4 linux/amd64
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
go build -ldflags='-a -linkmode=external' helloworld.go
What did you see instead?
This error comes from data.go where
r.Sym.Value
should use the same wayr.Sym.Name
is done.However, while doing it locally, I've found that these relocations are quite unusual:
Does anyone know why these relocations are generated in a first instance ? I didn't manage to find where they come from.
The text was updated successfully, but these errors were encountered: