From 0a87b664c3b9fdd46f4a41645627cb61eb078ed3 Mon Sep 17 00:00:00 2001 From: Evgenii Stepanov Date: Fri, 7 Dec 2018 15:33:24 -0800 Subject: [PATCH] Disable hwasan frame descriptions. Current implementation does not play nice with -gc-sections. Bug: 120673911 Test: make SANITIZE_TARGET=hwaddress recovery-persist Change-Id: I36cd37fb41c0c26c7e747e2c1dd5fadf7a31f4e7 --- cc/sanitize.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cc/sanitize.go b/cc/sanitize.go index 08c672cca..37d0a49d9 100644 --- a/cc/sanitize.go +++ b/cc/sanitize.go @@ -36,7 +36,7 @@ var ( asanLdflags = []string{"-Wl,-u,__asan_preinit"} asanLibs = []string{"libasan"} - hwasanCflags = []string{"-mllvm", "-hwasan-with-ifunc=0", "-fno-omit-frame-pointer", "-Wno-frame-larger-than="} + hwasanCflags = []string{"-mllvm", "-hwasan-with-ifunc=0", "-fno-omit-frame-pointer", "-Wno-frame-larger-than=", "-mllvm", "-hwasan-create-frame-descriptions=0"} cfiCflags = []string{"-flto", "-fsanitize-cfi-cross-dso", "-fsanitize-blacklist=external/compiler-rt/lib/cfi/cfi_blacklist.txt"}