gcc-10 support
diff --git a/Makefile b/Makefile
index f8f0252..b9d4bf5 100644
--- a/Makefile
+++ b/Makefile
@@ -64,7 +64,7 @@
CFLAGS ?= -O3 -funroll-loops $(CFLAGS_OPT)
override CFLAGS += -Wall -g -Wno-pointer-sign -I include/ \
-DAFL_PATH=\"$(HELPER_PATH)\" -DBIN_PATH=\"$(BIN_PATH)\" \
- -DDOC_PATH=\"$(DOC_PATH)\" -Wno-unused-function
+ -DDOC_PATH=\"$(DOC_PATH)\" -Wno-unused-function -fcommon
AFL_FUZZ_FILES = $(wildcard src/afl-fuzz*.c)
diff --git a/docs/Changelog.md b/docs/Changelog.md
index 4206d2b..5d78154 100644
--- a/docs/Changelog.md
+++ b/docs/Changelog.md
@@ -13,6 +13,7 @@
- use -march=native if available
- most tools now check for mistyped environment variables
+ - gcc 10 is now supported
- the memory safety checks are now disabled for a little more speed during
fuzzing (only affects creating queue entries), can be toggled in config.h
- afl-fuzz:
diff --git a/test/test.sh b/test/test.sh
index f6fa93d..1841497 100755
--- a/test/test.sh
+++ b/test/test.sh
@@ -602,11 +602,11 @@
rm -f errors
test -e ../libcompcov.so && {
- $ECHO "$GREY[*] running afl-fuzz for qemu_mode libcompcov, this will take approx 10 seconds"
+ $ECHO "$GREY[*] running afl-fuzz for qemu_mode libcompcov, this will take approx 15 seconds"
{
export AFL_PRELOAD=../libcompcov.so
export AFL_COMPCOV_LEVEL=2
- ../afl-fuzz -m ${MEM_LIMIT} -V10 -Q -i in -o out -- ./test-compcov >>errors 2>&1
+ ../afl-fuzz -m ${MEM_LIMIT} -V15 -Q -i in -o out -- ./test-compcov >>errors 2>&1
} >>errors 2>&1
test -n "$( ls out/queue/id:000002* 2> /dev/null )" && {
$ECHO "$GREEN[+] afl-fuzz is working correctly with qemu_mode libcompcov"