summaryrefslogtreecommitdiff
path: root/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
commitaa529e36fb04cb7dc7d26e7ef2c5bd97d1b2638a (patch)
tree26548d889de0e04ca78976497dbd7a2c2cf15da6 /lib/fuzzer/FuzzerTracePC.cpp
parent3fd72382cc317e2e7c5758c17169c0aa7748285a (diff)
[libFuzzer] print a better warning if we hit the ld bug
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@315778 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/fuzzer/FuzzerTracePC.cpp')
-rw-r--r--lib/fuzzer/FuzzerTracePC.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/fuzzer/FuzzerTracePC.cpp b/lib/fuzzer/FuzzerTracePC.cpp
index 78f0d4171..5e9f9f2f6 100644
--- a/lib/fuzzer/FuzzerTracePC.cpp
+++ b/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);
}
}