diff options
author | Matt Morehouse <mascasa@google.com> | 2017-08-22 21:28:29 +0000 |
---|---|---|
committer | Matt Morehouse <mascasa@google.com> | 2017-08-22 21:28:29 +0000 |
commit | 9cc823951b57e684a0a7f6ff9328b5698b1cf228 (patch) | |
tree | 8239cfddd447a3ac44034d1287aeb12d2e1e9191 /lib/fuzzer | |
parent | e8a32dc127ff883b7ba27fe912570d5357d6763b (diff) |
[SanitizerCoverage] Optimize stack-depth instrumentation.
Summary:
Use the initialexec TLS type and eliminate calls to the TLS
wrapper. Fixes the sanitizer-x86_64-linux-fuzzer bot failure.
Reviewers: vitalybuka, kcc
Reviewed By: kcc
Subscribers: hiraditya, llvm-commits
Differential Revision: https://reviews.llvm.org/D37026
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@311490 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/fuzzer')
-rw-r--r-- | lib/fuzzer/FuzzerTracePC.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/fuzzer/FuzzerTracePC.cpp b/lib/fuzzer/FuzzerTracePC.cpp index 985649a80..6513b4f64 100644 --- a/lib/fuzzer/FuzzerTracePC.cpp +++ b/lib/fuzzer/FuzzerTracePC.cpp @@ -32,7 +32,8 @@ ATTRIBUTE_INTERFACE uintptr_t __sancov_trace_pc_pcs[fuzzer::TracePC::kNumPCs]; // Used by -fsanitize-coverage=stack-depth to track stack depth -ATTRIBUTE_INTERFACE thread_local uintptr_t __sancov_lowest_stack; +ATTRIBUTE_INTERFACE __attribute__((tls_model("initial-exec"))) +thread_local uintptr_t __sancov_lowest_stack; namespace fuzzer { |