]> Cypherpunks repositories - gostls13.git/commit
cmd/cgo: handle new-style gccgo packagepath mangling
authorThan McIntosh <thanm@google.com>
Wed, 24 Oct 2018 13:25:05 +0000 (09:25 -0400)
committerThan McIntosh <thanm@google.com>
Fri, 26 Oct 2018 12:37:30 +0000 (12:37 +0000)
commit43530e6b25ce542420967efa9d1016fad0336a4f
tree3b96c0020f46213dacec7ce2763a4dc46228c22b
parent2d77600ae7449680b0d4e0171f4186caf3e8d8ab
cmd/cgo: handle new-style gccgo packagepath mangling

With https://golang.org/cl/135455, gccgo now uses a different mangling
scheme for package paths; add code to use this new scheme for function
and variable symbols. Since users sometimes use older versions of
gccgo with newer versions of go, perform a test at runtime to see
which mangling scheme is in effect for the version of 'gccgo' in the
path.

Updates #27534.

Change-Id: If7ecab06a72e1361129fe40ca6582070a3e8e737
Reviewed-on: https://go-review.googlesource.com/c/144418
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/cgo/main.go
src/cmd/cgo/out.go