Closed laboger closed 8 years ago
Pretty sure that type.TwVfYA92 is actually type.string, type symbols get their names compressed (in general, it's actually getting expanded here). A fix would be to not mangle type names when the mangling would in fact make the names longer (@crawshaw?)
CL https://golang.org/cl/26890 mentions this issue.
Please answer these questions before submitting your issue. Thanks!
go version
)? go version devel +748aa84 Wed Aug 10 20:33:11 2016 +0000 linux/ppc64lego env
)? ppc64le Ubuntu 16.04import ( "fmt" )
var VERSION string
func main() { fmt.Printf("Hello, World! Version is: %s\n", VERSION) } Make sure there is a shared std libary go install -buildmode=shared std go build -linkshared -ldflags '-X main.VERSION=123' test-setX.go