summaryrefslogtreecommitdiffstats
path: root/base/debug/sanitizer_options.cc
diff options
context:
space:
mode:
Diffstat (limited to 'base/debug/sanitizer_options.cc')
-rw-r--r--base/debug/sanitizer_options.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/base/debug/sanitizer_options.cc b/base/debug/sanitizer_options.cc
index 1affdb2..5357453 100644
--- a/base/debug/sanitizer_options.cc
+++ b/base/debug/sanitizer_options.cc
@@ -94,4 +94,16 @@ const char *__tsan_default_options() {
return kTsanDefaultOptions;
}
+extern "C" char kTSanDefaultSuppressions[];
+
+extern "C"
+__attribute__((no_sanitize_thread))
+__attribute__((visibility("default")))
+// The function isn't referenced from the executable itself. Make sure it isn't
+// stripped by the linker.
+__attribute__((used))
+const char *__tsan_default_suppressions() {
+ return kTSanDefaultSuppressions;
+}
+
#endif // THREAD_SANITIZER && OS_LINUX