[PATCH] D20946: [LibFuzzer] Provide stub implementation of __sanitizer_cov_trace_pc_indir

Dan Liew via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 6 13:33:46 PDT 2016


This revision was automatically updated to reflect the committed changes.
Closed by commit rL271938: [LibFuzzer] Provide stub implementation of __sanitizer_cov_trace_pc_indir (authored by delcypher).

Changed prior to commit:
  http://reviews.llvm.org/D20946?vs=59488&id=59777#toc

Repository:
  rL LLVM

http://reviews.llvm.org/D20946

Files:
  llvm/trunk/lib/Fuzzer/FuzzerTracePC.cpp

Index: llvm/trunk/lib/Fuzzer/FuzzerTracePC.cpp
===================================================================
--- llvm/trunk/lib/Fuzzer/FuzzerTracePC.cpp
+++ llvm/trunk/lib/Fuzzer/FuzzerTracePC.cpp
@@ -57,7 +57,15 @@
 
 } // namespace fuzzer
 
-extern "C" void __sanitizer_cov_trace_pc() {
+extern "C" {
+void __sanitizer_cov_trace_pc() {
   fuzzer::HandlePC(static_cast<uint32_t>(
       reinterpret_cast<uintptr_t>(__builtin_return_address(0))));
 }
+
+void __sanitizer_cov_trace_pc_indir(int *) {
+  // Stub to allow linking with code built with
+  // -fsanitize=indirect-calls,trace-pc.
+  // This isn't used currently.
+}
+}


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D20946.59777.patch
Type: text/x-patch
Size: 635 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160606/8a509601/attachment.bin>


More information about the llvm-commits mailing list