Merge "Pass -fsanitize-hwaddress-abi=platform when building with hwasan."

This commit is contained in:
Peter Collingbourne 2019-03-22 02:14:34 +00:00 committed by Gerrit Code Review
commit df59655fa3
1 changed files with 2 additions and 1 deletions

View File

@ -39,7 +39,8 @@ var (
// the default.
hwasanCflags = []string{"-fno-omit-frame-pointer", "-Wno-frame-larger-than=",
"-mllvm", "-hwasan-create-frame-descriptions=0",
"-mllvm", "-hwasan-allow-ifunc"}
"-mllvm", "-hwasan-allow-ifunc",
"-fsanitize-hwaddress-abi=platform"}
cfiCflags = []string{"-flto", "-fsanitize-cfi-cross-dso",
"-fsanitize-blacklist=external/compiler-rt/lib/cfi/cfi_blacklist.txt"}