Merge "Re-enable ASAN globals instrumentation for devices."
am: 68c9eed6b2
Change-Id: I8a29cd64cd1c9a60adcc1bc8858163a1589cc20e
This commit is contained in:
commit
88cddcf297
1 changed files with 0 additions and 1 deletions
|
@ -446,7 +446,6 @@ func (sanitize *sanitize) flags(ctx ModuleContext, flags Flags) Flags {
|
||||||
// libraries needed with -fsanitize=address. http://b/18650275 (WAI)
|
// libraries needed with -fsanitize=address. http://b/18650275 (WAI)
|
||||||
flags.LdFlags = append(flags.LdFlags, "-Wl,--no-as-needed")
|
flags.LdFlags = append(flags.LdFlags, "-Wl,--no-as-needed")
|
||||||
} else {
|
} else {
|
||||||
flags.CFlags = append(flags.CFlags, "-mllvm", "-asan-globals=0")
|
|
||||||
if ctx.bootstrap() {
|
if ctx.bootstrap() {
|
||||||
flags.DynamicLinker = "/system/bin/bootstrap/linker_asan"
|
flags.DynamicLinker = "/system/bin/bootstrap/linker_asan"
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue