aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/cgo_mmap.go
diff options
context:
space:
mode:
authorFangming.Fang <fangming.fang@arm.com>2018-04-08 07:32:43 +0000
committerIan Lance Taylor <iant@golang.org>2018-05-02 17:52:14 +0000
commite8d417d272290027e10e348f81cbc6bb5fe0ec13 (patch)
tree394e28ae3d04021ddffc8c6c22d16abd71c1479f /src/runtime/cgo_mmap.go
parenteff1e68528fc9052a7ff1ac7afe222696f85db8c (diff)
downloadgo-e8d417d272290027e10e348f81cbc6bb5fe0ec13.tar.gz
go-e8d417d272290027e10e348f81cbc6bb5fe0ec13.zip
runtime: enable memory sanitizer on arm64
Changes include: 1. open compilation option -msan for arm64 2. modify doc to explain -msan is also supported on linux/arm64 3. wrap msan lib API in msan_arm64.s 4. use libc for sigaction syscalls when cgo is enabled 5. use libc for mmap syscalls when cgo is enabled Change-Id: I26ebe61ff7ce1906125f54a0182a720f9d58ec11 Reviewed-on: https://go-review.googlesource.com/109255 Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/runtime/cgo_mmap.go')
-rw-r--r--src/runtime/cgo_mmap.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/cgo_mmap.go b/src/runtime/cgo_mmap.go
index b7c70c6fff..048621f306 100644
--- a/src/runtime/cgo_mmap.go
+++ b/src/runtime/cgo_mmap.go
@@ -4,7 +4,7 @@
// Support for memory sanitizer. See runtime/cgo/mmap.go.
-// +build linux,amd64
+// +build linux,amd64 linux,arm64
package runtime