summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2015-07-15 12:16:25 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2015-07-15 12:16:25 +0000
commit609febf85417dab073a0e39407dee1e1654ceadd (patch)
tree5d81c600026718ea0e9ec409f35468c7cd3dbf71
parent1e52d788d5f5f284cf8806791c2eab0d01a187ba (diff)
CFI: Add a default blacklist.
Differential Revision: http://reviews.llvm.org/D11095 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@242287 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/CMakeLists.txt1
-rw-r--r--lib/cfi/CMakeLists.txt3
-rw-r--r--lib/cfi/cfi_blacklist.txt8
3 files changed, 12 insertions, 0 deletions
diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt
index 009c59f4d..df0d9f483 100644
--- a/lib/CMakeLists.txt
+++ b/lib/CMakeLists.txt
@@ -10,6 +10,7 @@ endif()
if(COMPILER_RT_HAS_SANITIZER_COMMON)
add_subdirectory(sanitizer_common)
+ add_subdirectory(cfi)
add_subdirectory(lsan)
add_subdirectory(ubsan)
endif()
diff --git a/lib/cfi/CMakeLists.txt b/lib/cfi/CMakeLists.txt
new file mode 100644
index 000000000..f2a6fb300
--- /dev/null
+++ b/lib/cfi/CMakeLists.txt
@@ -0,0 +1,3 @@
+add_custom_target(cfi)
+add_compiler_rt_resource_file(cfi_blacklist cfi_blacklist.txt)
+add_dependencies(cfi cfi_blacklist)
diff --git a/lib/cfi/cfi_blacklist.txt b/lib/cfi/cfi_blacklist.txt
new file mode 100644
index 000000000..f2016428d
--- /dev/null
+++ b/lib/cfi/cfi_blacklist.txt
@@ -0,0 +1,8 @@
+# Standard library types.
+type:std::*
+
+# The stdext namespace contains Microsoft standard library extensions.
+type:stdext::*
+
+# Types with a uuid attribute, i.e. COM types.
+type:attr:uuid