• Michael Hudson-Doyle's avatar
    cmd/link: when dynlinking, do not mangle short symbol names · b5e43e66
    Michael Hudson-Doyle authored
    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: 's avatarDavid Crawshaw <crawshaw@golang.org>
    b5e43e66
Name
Last commit
Last update
..
addr2line Loading commit data...
api Loading commit data...
asm Loading commit data...
cgo Loading commit data...
compile Loading commit data...
cover Loading commit data...
dist Loading commit data...
doc Loading commit data...
fix Loading commit data...
go Loading commit data...
gofmt Loading commit data...
internal Loading commit data...
link Loading commit data...
nm Loading commit data...
objdump Loading commit data...
pack Loading commit data...
pprof Loading commit data...
trace Loading commit data...
vendor Loading commit data...
vet Loading commit data...
yacc Loading commit data...