summaryrefslogtreecommitdiff
path: root/lib/dfsan
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2013-08-29 22:49:00 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2013-08-29 22:49:00 +0000
commitba945f8d5c3f57dfadc3b2fa7ac9016fdd331e1d (patch)
treeb04e12ff402edabc277a00d772de0d3d54f6447e /lib/dfsan
parentfb23e2f83e2450e54196fe8c85eda17475089b41 (diff)
[dfsan] Add a syms file.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189620 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/dfsan')
-rw-r--r--lib/dfsan/CMakeLists.txt4
-rw-r--r--lib/dfsan/dfsan.syms.extra3
2 files changed, 6 insertions, 1 deletions
diff --git a/lib/dfsan/CMakeLists.txt b/lib/dfsan/CMakeLists.txt
index eb801b92c..b952799ff 100644
--- a/lib/dfsan/CMakeLists.txt
+++ b/lib/dfsan/CMakeLists.txt
@@ -24,7 +24,9 @@ if(CAN_TARGET_${arch})
SOURCES ${DFSAN_RTL_SOURCES}
$<TARGET_OBJECTS:RTSanitizerCommon.${arch}>
CFLAGS ${DFSAN_RTL_CFLAGS} -fPIC -DDFSAN_NOLIBC)
- list(APPEND DFSAN_RUNTIME_LIBRARIES clang_rt.dfsan-${arch})
+ add_sanitizer_rt_symbols(clang_rt.dfsan-${arch} dfsan.syms.extra)
+ list(APPEND DFSAN_RUNTIME_LIBRARIES clang_rt.dfsan-${arch}
+ clang_rt.dfsan-${arch}-symbols)
endif()
add_custom_target(dfsan_abilist ALL
diff --git a/lib/dfsan/dfsan.syms.extra b/lib/dfsan/dfsan.syms.extra
new file mode 100644
index 000000000..0d507eef0
--- /dev/null
+++ b/lib/dfsan/dfsan.syms.extra
@@ -0,0 +1,3 @@
+dfsan_*
+__dfsan_*
+__dfsw_*