]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/ld: prevent creation of .dynamic and .dynsym symbols when externally...
authorMichael Hudson-Doyle <michael.hudson@canonical.com>
Tue, 12 May 2015 04:07:05 +0000 (16:07 +1200)
committerRuss Cox <rsc@golang.org>
Fri, 15 May 2015 20:09:12 +0000 (20:09 +0000)
commitddc4c146a46cd8ae3a4f1f9b7f0cd14f4bb2aca4
treefd42e81cf440f6d9c81d197317106320b01ac2d1
parent4cfff271c2aacd4ef23f7eacd9adf61605c45e74
cmd/internal/ld: prevent creation of .dynamic and .dynsym symbols when externally linking

This allows the removal of a fudge in data.go.

We have to defer the calls to adddynlib on non-Darwin until after we have
decided whether we are externally or internally linking.  The Macho/ELF
separation could do with some cleaning up, but: code freeze.

Fixing this once rather than per-arch is what inspired the previous CLs.

Change-Id: I0166f7078a045dc09827745479211247466c0c54
Reviewed-on: https://go-review.googlesource.com/10002
Run-TryBot: Michael Hudson-Doyle <michael.hudson@canonical.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
src/cmd/internal/ld/data.go
src/cmd/internal/ld/go.go
src/cmd/internal/ld/lib.go