summaryrefslogtreecommitdiff
path: root/lib/safestack
diff options
context:
space:
mode:
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>2015-07-23 22:05:20 +0000
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>2015-07-23 22:05:20 +0000
commit0fbfc5fa0eb0aa0088c200e73e1003926169d162 (patch)
treed7709cfb9d32f92aa8faf63ed3fc4565414ac2c4 /lib/safestack
parent1a7d91a09cf8756f836ef9624e6f82ce35a91c2a (diff)
[sanitizer] Implement logging to syslog.
Previously, Android target had a logic of duplicating all sanitizer output to logcat. This change extends it to all posix platforms via the use of syslog, controlled by log_to_syslog flag. Enabled by default on Android, off everywhere else. A bit of cmake magic is required to allow Printf() to call a libc function. I'm adding a stub implementation to support no-libc builds like dfsan and safestack. This is a second attempt. I believe I've fixed all the issues that prompted the revert: Mac build, and all kinds of non-CMake builds (there are 3 of those). git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@243051 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/safestack')
-rw-r--r--lib/safestack/CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/safestack/CMakeLists.txt b/lib/safestack/CMakeLists.txt
index 1c15d079d..6a8ad2f50 100644
--- a/lib/safestack/CMakeLists.txt
+++ b/lib/safestack/CMakeLists.txt
@@ -22,6 +22,7 @@ else()
SOURCES ${SAFESTACK_SOURCES}
$<TARGET_OBJECTS:RTInterception.${arch}>
$<TARGET_OBJECTS:RTSanitizerCommon.${arch}>
+ $<TARGET_OBJECTS:RTSanitizerCommonNoLibc.${arch}>
CFLAGS ${SAFESTACK_CFLAGS})
add_dependencies(safestack clang_rt.safestack-${arch})
endforeach()