Added msan origins tracking
authorClifford Wolf <clifford@clifford.at>
Tue, 5 Apr 2016 11:25:05 +0000 (13:25 +0200)
committerClifford Wolf <clifford@clifford.at>
Tue, 5 Apr 2016 11:25:05 +0000 (13:25 +0200)
Makefile

index 7f4e5c9b1a893cae06a47748c3517b4523e92a61..c7f56be3cc40ee4965dcdc3d779823132244c038 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -112,8 +112,8 @@ ifeq ($(SANITIZER),address)
 ENABLE_COVER := 0
 endif
 ifeq ($(SANITIZER),memory)
-CXXFLAGS += -fPIE
-LDFLAGS += -fPIE
+CXXFLAGS += -fPIE -fsanitize-memory-track-origins
+LDFLAGS += -fPIE -fsanitize-memory-track-origins
 endif
 ifeq ($(SANITIZER),cfi)
 CXXFLAGS += -flto