diff options
author | Fangming.Fang <fangming.fang@arm.com> | 2018-04-08 07:32:43 +0000 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2018-05-02 17:52:14 +0000 |
commit | e8d417d272290027e10e348f81cbc6bb5fe0ec13 (patch) | |
tree | 394e28ae3d04021ddffc8c6c22d16abd71c1479f /src/runtime/cgo_sigaction.go | |
parent | eff1e68528fc9052a7ff1ac7afe222696f85db8c (diff) | |
download | go-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_sigaction.go')
-rw-r--r-- | src/runtime/cgo_sigaction.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/cgo_sigaction.go b/src/runtime/cgo_sigaction.go index 9832d35f03..3ef6800cd9 100644 --- a/src/runtime/cgo_sigaction.go +++ b/src/runtime/cgo_sigaction.go @@ -4,7 +4,7 @@ // Support for memory sanitizer. See runtime/cgo/sigaction.go. -// +build linux,amd64 freebsd,amd64 +// +build linux,amd64 freebsd,amd64 linux,arm64 package runtime |