]> Cypherpunks repositories - gostls13.git/commit
runtime/cgo: declare variable setg_gcc as static
authorerifan01 <eric.fang@arm.com>
Wed, 17 Apr 2019 01:44:24 +0000 (01:44 +0000)
committerIan Lance Taylor <iant@golang.org>
Thu, 18 Apr 2019 00:06:12 +0000 (00:06 +0000)
commit4312a18b8a1d7d35dcc45cdf4280260c3933a2ed
tree579bba7408173a6784a6351cc86200fb70767a66
parent3b37ff453edd9664045e656d1c02e63703517399
runtime/cgo: declare variable setg_gcc as static

variable setg_gcc in runtime/cgo/*.c should be static, otherwise it
will be mixed with the function of the same name in runtime/asm_*.s or
tls_*.s, which causes an error when building PIE with internal linking
mode.

Fixes #31485

Change-Id: I79b311ffcaf450984328db65397840ae7d85e65d
Reviewed-on: https://go-review.googlesource.com/c/go/+/172498
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/runtime/cgo/gcc_darwin_arm.c
src/runtime/cgo/gcc_darwin_arm64.c
src/runtime/cgo/gcc_linux_arm.c
src/runtime/cgo/gcc_linux_arm64.c
src/runtime/cgo/gcc_linux_mips64x.c
src/runtime/cgo/gcc_linux_mipsx.c