Skip to content

Commit

Permalink
Disable dead stripping
Browse files Browse the repository at this point in the history
Without it, some optimized targets would fail to launch with the
following error:

ERROR: The size of coverage PC tables does not match the
number of instrumented PCs. This might be a compiler bug,
please contact the libFuzzer developers.
Also check https://bugs.llvm.org/show_bug.cgi?id=34636
for possible workarounds (tl;dr: don't use the old GNU ld)

Related to:
- google/oss-fuzz#1042
- llvm.org/pr34636
  • Loading branch information
alpire committed Nov 21, 2019
1 parent 93a9e94 commit 86b4889
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,7 @@ impl FuzzProject {
-Cllvm-args=-sanitizer-coverage-trace-geps \
-Cllvm-args=-sanitizer-coverage-prune-blocks=0 \
-Cllvm-args=-sanitizer-coverage-pc-table \
-Clink-dead-code \
-Zsanitizer={sanitizer}",
sanitizer = sanitizer,
);
Expand Down

0 comments on commit 86b4889

Please sign in to comment.