diff --git a/cc/sanitize.go b/cc/sanitize.go index 26418addc..2d80c2213 100644 --- a/cc/sanitize.go +++ b/cc/sanitize.go @@ -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"}