summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/fuzzer/FuzzerTracePC.cpp
diff options
context:
space:
mode:
authorKostya Serebryany <kcc@google.com>2017-10-14 00:07:11 +0000
committerKostya Serebryany <kcc@google.com>2017-10-14 00:07:11 +0000
commitfc3079963f382465c9d1c540ac7beef7d94cc2b0 (patch)
tree9933e0fac60ec620a3b3b9eb6d362bafc99c35bc /compiler-rt/lib/fuzzer/FuzzerTracePC.cpp
parent4fb209ede2dbffa8b3b919f502db4762facf002e (diff)
downloadbcm5719-llvm-fc3079963f382465c9d1c540ac7beef7d94cc2b0.tar.gz
bcm5719-llvm-fc3079963f382465c9d1c540ac7beef7d94cc2b0.zip
[libFuzzer] print a better warning if we hit the ld bug
llvm-svn: 315778
Diffstat (limited to 'compiler-rt/lib/fuzzer/FuzzerTracePC.cpp')
-rw-r--r--compiler-rt/lib/fuzzer/FuzzerTracePC.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/compiler-rt/lib/fuzzer/FuzzerTracePC.cpp b/compiler-rt/lib/fuzzer/FuzzerTracePC.cpp
index 78f0d41715b..5e9f9f2f6dc 100644
--- a/compiler-rt/lib/fuzzer/FuzzerTracePC.cpp
+++ b/compiler-rt/lib/fuzzer/FuzzerTracePC.cpp
@@ -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);
}
}
OpenPOWER on IntegriCloud