Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d592d719 authored by Peter Collingbourne's avatar Peter Collingbourne Committed by android-build-merger
Browse files

Pass -hwasan-allow-ifunc when building with hwasan. am: 967511a4 am: b34551b8

am: 7010be00

Change-Id: Ibdc6ef96e03878b5a7e1f722f41ea348bab21037
parents 75bace9c 7010be00
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -35,7 +35,11 @@ var (
	asanLdflags = []string{"-Wl,-u,__asan_preinit"}
	asanLibs    = []string{"libasan"}

	hwasanCflags = []string{"-fno-omit-frame-pointer", "-Wno-frame-larger-than=", "-mllvm", "-hwasan-create-frame-descriptions=0"}
	// TODO(pcc): Stop passing -hwasan-allow-ifunc here once it has been made
	// the default.
	hwasanCflags = []string{"-fno-omit-frame-pointer", "-Wno-frame-larger-than=",
		"-mllvm", "-hwasan-create-frame-descriptions=0",
		"-mllvm", "-hwasan-allow-ifunc"}

	cfiCflags = []string{"-flto", "-fsanitize-cfi-cross-dso",
		"-fsanitize-blacklist=external/compiler-rt/lib/cfi/cfi_blacklist.txt"}