Can the compilation flags -fsanitize-coverage=trace-pc-guard
and -fprofile-instr-generate -fcoverage-mapping
be used together?
#1742
-
Can the compilation flags |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
you give no context so I can only speculate what you want to achieve and what your setup is :) you cannot not use -fsanitize-coverage=trace-pc-guard directly. If you do you will see:
however just set I think it is possible to use this together with -fprofile-instr-generate -fcoverage-mapping. If you do that for the binary for fuzzing it will obviously run slower because of that. |
Beta Was this translation helpful? Give feedback.
you give no context so I can only speculate what you want to achieve and what your setup is :)
you cannot not use -fsanitize-coverage=trace-pc-guard directly. If you do you will see:
however just set
AFL_LLVM_INSTRUMENT=LLVM-NATIVE
and it does that behind the scenes.I think it is possible to use this together with -fprofile-instr-generate -fcoverage-mapping. If you do that for the binary for fuzzing it will obviously run slower because of that.
do you should have two binaries, one for fuzzing, and a second comiled with coverage mappings to obtain coverage information which you can when you need it.