On Mon, 2019-08-12 at 18:39 -0400, Bandan Das wrote: > "Oleinik, Alexander" <alx...@bu.edu> writes: > ... > > if test "$supported_cpu" = "no"; then > > echo > > @@ -7306,6 +7310,17 @@ fi > > if test "$sheepdog" = "yes" ; then > > echo "CONFIG_SHEEPDOG=y" >> $config_host_mak > > fi > > +if test "$fuzzing" = "yes" ; then > > + QEMU_CFLAGS="$QEMU_CFLAGS -fsanitize=fuzzer,address -fprofile- > > instr-generate" > > + QEMU_CFLAGS="$QEMU_CFLAGS -fprofile-instr-generate -fcoverage- > > mapping" > > What is the purpose of -fprofile-instr-generate ? Coverage info ? > (Listed twice above) Yes, it's for coverage info. I'll fix it so it is only listed once.
> Bandan > > > + QEMU_LDFLAGS="$LDFLAGS -fsanitize=fuzzer,address" > > + > > + # Add tests/ to include path, since this is done in > > tests/Makefile.include, > > + # and required for QOS objects to build. This can be removed > > if/when the > > + # fuzzer is compiled using rules in tests/Makefile.include > > + QEMU_INCLUDES="-iquote \$(SRC_PATH)/tests $QEMU_INCLUDES" > > + echo "CONFIG_FUZZ=y" >> $config_host_mak > > +fi > > > > if test "$tcg_interpreter" = "yes"; then > > QEMU_INCLUDES="-iquote \$(SRC_PATH)/tcg/tci $QEMU_INCLUDES"