]> Cypherpunks repositories - gostls13.git/commit
runtime, runtime/asan: add asan runtime support
authorfanzha02 <fannie.zhang@arm.com>
Mon, 4 Jan 2021 09:53:37 +0000 (17:53 +0800)
committerfannie zhang <Fannie.Zhang@arm.com>
Tue, 26 Oct 2021 01:22:47 +0000 (01:22 +0000)
commitadfb85b3150d5ebe36440f82d83be88403951319
treee8672c529e9d89a84d14b2564f97dc590f440ab5
parent49fda9e4f5cd3a05fd5fa0b3a2047a9d24873bd6
runtime, runtime/asan: add asan runtime support

These are the runtime support functions for letting Go code interoperate
with the C/C++ address sanitizer. Calls to asanread/asanwrite are now
inserted by the compiler with the -asan option.  Calls to
asanunpoison/asanpoison will be from other runtime functions in a
subsequent CL.

Updates #44853.

Change-Id: I9e8fc0ce937828bc7f4a8b6637453ddc3862c47b
Reviewed-on: https://go-review.googlesource.com/c/go/+/298613
Trust: fannie zhang <Fannie.Zhang@arm.com>
Run-TryBot: fannie zhang <Fannie.Zhang@arm.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/go/build/deps_test.go
src/runtime/asan.go [new file with mode: 0644]
src/runtime/asan/asan.go [new file with mode: 0644]
src/runtime/asan0.go [new file with mode: 0644]
src/runtime/asan_amd64.s [new file with mode: 0644]
src/runtime/asan_arm64.s [new file with mode: 0644]