From 93c3f5368de394657b48360590f090719d01c2ec Mon Sep 17 00:00:00 2001 From: Evgenii Stepanov Date: Fri, 1 Feb 2019 14:53:12 -0800 Subject: [PATCH] [hwasan] Remove deprecated compiler flag (NFC) -hwasan-with-ifunc=0 matches the default value of the flag, and there are no plans to change that. Test: SANITIZE_TARGET=hwaddress keeps working Change-Id: Ie46ffa6ae3c42a9677c3a9a3b5cdc6fb62c2c2f0 --- cc/sanitize.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cc/sanitize.go b/cc/sanitize.go index b9787f0dd..ebb638ea0 100644 --- a/cc/sanitize.go +++ b/cc/sanitize.go @@ -35,7 +35,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=", "-mllvm", "-hwasan-create-frame-descriptions=0"} + hwasanCflags = []string{"-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"}