]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/link: add -asan option
authorfanzha02 <fannie.zhang@arm.com>
Mon, 4 Jan 2021 08:23:01 +0000 (16:23 +0800)
committerIan Lance Taylor <iant@golang.org>
Fri, 22 Oct 2021 21:48:34 +0000 (21:48 +0000)
commitae4d67c89dfef1cf9f30921e8f717ed5f56b6866
tree1108f5faf92c4b925bcfc4d5ccc409f0918adc9d
parent5d414d180bfb631d3835f819f7f524ec271f11eb
cmd/link: add -asan option

The -asan option causes the linker to link against the runtime/asan
package in order to use the C/C++ address sanitizer.

This CL passes tests but is not usable by itself.  The actual
runtime/asan package, and support for -asan in the go tool and the
compiler, and tests, are in separate CLs.

Updates #44853.

Change-Id: Ifc6046c1f75ba52777cbb3d937a4b66e91d5798d
Reviewed-on: https://go-review.googlesource.com/c/go/+/298610
Trust: fannie zhang <Fannie.Zhang@arm.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/link/doc.go
src/cmd/link/internal/ld/config.go
src/cmd/link/internal/ld/lib.go
src/cmd/link/internal/ld/main.go