Merge "Revert "Re-enable ASAN globals instrumentation for devices.""

This commit is contained in:
Yi Kong 2019-08-22 03:43:51 +00:00 committed by Gerrit Code Review
commit 20cf012ad1

View file

@ -450,6 +450,7 @@ func (sanitize *sanitize) flags(ctx ModuleContext, flags Flags) Flags {
// 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 {