[libFuzzer] print a better warning if we hit the ld bug

llvm-svn: 315778
This commit is contained in:
Kostya Serebryany 2017-10-14 00:07:11 +00:00
parent 4fb209ede2
commit fc3079963f
1 changed files with 5 additions and 3 deletions

View File

@ -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);
}
}