diff options
| author | Michael Hudson-Doyle <michael.hudson@canonical.com> | 2016-08-12 10:31:17 +1200 |
|---|---|---|
| committer | Michael Hudson-Doyle <michael.hudson@canonical.com> | 2016-08-16 00:37:09 +0000 |
| commit | b5e43e669a5e1591c9a6c7157b4dd0d2796d3037 (patch) | |
| tree | db562dbbdf438170210864a91788eb6a46028f4d /src/os/exec/exec_test.go | |
| parent | 3ddc9ad9161c6d5ae07ce2304aa838d4b853cc78 (diff) | |
| download | go-b5e43e669a5e1591c9a6c7157b4dd0d2796d3037.tar.xz | |
cmd/link: when dynlinking, do not mangle short symbol names
When dynamically linking, a type symbol's name is replaced with a name based on
the SHA1 of the name as type symbol's names can be very long. However, this
can make a type's symbol name longer in some cases. So skip it in that case.
One of the symbols this changes the treatment of is 'type.string' and that fixes a
bug where -X doesn't work when dynamically linking.
Fixes #16671
Change-Id: If5269038261b76fb0ec52e25a9c1d64129631e3c
Reviewed-on: https://go-review.googlesource.com/26890
Run-TryBot: Michael Hudson-Doyle <michael.hudson@canonical.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: David Crawshaw <crawshaw@golang.org>
Diffstat (limited to 'src/os/exec/exec_test.go')
0 files changed, 0 insertions, 0 deletions
