[compiler-rt] r315778 - [libFuzzer] print a better warning if we hit the ld bug

Kostya Serebryany via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 13 17:07:11 PDT 2017


Author: kcc
Date: Fri Oct 13 17:07:11 2017
New Revision: 315778

URL: http://llvm.org/viewvc/llvm-project?rev=315778&view=rev
Log:
[libFuzzer] print a better warning if we hit the ld bug

Modified:
    compiler-rt/trunk/lib/fuzzer/FuzzerTracePC.cpp

Modified: compiler-rt/trunk/lib/fuzzer/FuzzerTracePC.cpp
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/fuzzer/FuzzerTracePC.cpp?rev=315778&r1=315777&r2=315778&view=diff
==============================================================================
--- compiler-rt/trunk/lib/fuzzer/FuzzerTracePC.cpp (original)
+++ compiler-rt/trunk/lib/fuzzer/FuzzerTracePC.cpp Fri Oct 13 17:07:11 2017
@@ -124,9 +124,11 @@ void TracePC::PrintModuleInfo() {
 
     if ((NumGuards && NumGuards != NumPCsInPCTables) ||
         (NumInline8bitCounters && NumInline8bitCounters != NumPCsInPCTables)) {
-      Printf("ERROR: The size of coverage PC tables does not match the"
-             " number of instrumented PCs. This might be a bug in the compiler,"
-             " please contact the libFuzzer developers.\n");
+      Printf("ERROR: The size of coverage PC tables does not match the\n"
+             "number of instrumented PCs. This might be a compiler bug,\n"
+             "please contact the libFuzzer developers.\n"
+             "Also check https://bugs.llvm.org/show_bug.cgi?id=34636\n"
+             "for possible workarounds (tl;dr: don't use the old GNU ld)\n");
       _Exit(1);
     }
   }




More information about the llvm-commits mailing list