]> Cypherpunks repositories - gostls13.git/commit
cmd/go/internal/work: use pie link mode when using MSAN on arm64
authorfanzha02 <fannie.zhang@arm.com>
Thu, 8 Aug 2019 01:21:46 +0000 (01:21 +0000)
committerIan Lance Taylor <iant@golang.org>
Wed, 11 Sep 2019 14:29:18 +0000 (14:29 +0000)
commit23f7398671280c7f2493796f9b22d7bf70fb38d2
tree18a04fb29181729807c47593bc7d6e0548d8a92d
parentf6c691e0e1b1434a02301c39e6d66e21699a98a8
cmd/go/internal/work: use pie link mode when using MSAN on arm64

Currently, when running the "CC=clang go run -msan misc/cgo/
testsanitizers/testdata/msan.go" command on arm64, it will
report an error and the error is reported by llvm/compiler-rt/
lib/msan and it is "Make sure to compile with -fPIE and to link
with -pie".

This CL fixes this issue, using PIE link mode when using MSAN
on arm64.

This CL also updates the related document and go build help message.

Fixes #33712

Change-Id: I0cc9d95f3fa264d6c042c27a40ccbb82826922fb
Reviewed-on: https://go-review.googlesource.com/c/go/+/190482
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/go/alldocs.go
src/cmd/go/internal/work/build.go
src/cmd/go/internal/work/init.go