commit | 20cf012ad1754f7366036723bbeb8d521dd6fec2 | [log] [tgz] |
---|---|---|
author | Yi Kong <yikong@google.com> | Thu Aug 22 03:43:51 2019 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Thu Aug 22 03:43:51 2019 +0000 |
tree | 7e84abbd9bed46b019d6983c37556c1d5d4166f1 | |
parent | 713e1927df10ba2b2b0895245d8a2a6e4dcebe09 [diff] | |
parent | da069087bf9e154dcb68526252ce94542a23d8c6 [diff] |
Merge "Revert "Re-enable ASAN globals instrumentation for devices.""
diff --git a/cc/sanitize.go b/cc/sanitize.go index 82e5a08..4687782 100644 --- a/cc/sanitize.go +++ b/cc/sanitize.go
@@ -450,6 +450,7 @@ // libraries needed with -fsanitize=address. http://b/18650275 (WAI) flags.LdFlags = append(flags.LdFlags, "-Wl,--no-as-needed") } else { + flags.CFlags = append(flags.CFlags, "-mllvm", "-asan-globals=0") if ctx.bootstrap() { flags.DynamicLinker = "/system/bin/bootstrap/linker_asan" } else {