Index: base/debug/sanitizer_options.cc |
diff --git a/base/debug/sanitizer_options.cc b/base/debug/sanitizer_options.cc |
index 1affdb23fec80d7e8a2d6d82ff5e2acc6788b290..53574539d255b821954e7781d66228627162942e 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 |