fuzz/x86_emulate: Add 'afl-cov' target
authorGeorge Dunlap <george.dunlap@citrix.com>
Wed, 11 Oct 2017 17:49:41 +0000 (18:49 +0100)
committerGeorge Dunlap <george.dunlap@citrix.com>
Wed, 11 Oct 2017 22:35:26 +0000 (23:35 +0100)
commit02a7745410bfd40246c72fb693e9c2f3bcf2e3ad
tree8a53792a4a5caadb7f3b076c183d17e43fd6b069
parent4955d680c7510d8d7f72cca990ad2474d71cd662
fuzz/x86_emulate: Add 'afl-cov' target

...to generate a "normal" coverage-instrumented binary, suitable for
use with gcov or afl-cov.

This is slightly annoying because:

 - Every object file needs to have been instrumented to work
   effectively

 - You generally want to have both an afl-instrumented binary and a
   gcov-instrumented binary at the same time, but

 - gcov instrumentation and afl instrumentation are mutually exclusive

So when making the `afl-cov` target, generate a second set of object
files and a second binary with the `-cov` suffix.

While we're here, remove the redundant x86-emulate.c dependency for
x86-emulate.o.

Signed-off-by: George Dunlap <george.dunlap@citrix.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
.gitignore
tools/fuzz/README.afl
tools/fuzz/x86_instruction_emulator/Makefile