diff options
-rw-r--r-- | Makefile | 46 | ||||
-rw-r--r-- | TODO | 2 | ||||
-rw-r--r-- | include/alloc-inl.h (renamed from alloc-inl.h) | 0 | ||||
-rw-r--r-- | include/as.h (renamed from afl-as.h) | 0 | ||||
-rw-r--r-- | include/common.h (renamed from afl-common.h) | 0 | ||||
-rw-r--r-- | include/config.h (renamed from config.h) | 0 | ||||
-rw-r--r-- | include/debug.h (renamed from debug.h) | 0 | ||||
-rw-r--r-- | include/forkserver.h (renamed from afl-forkserver.h) | 0 | ||||
-rw-r--r-- | include/hash.h (renamed from hash.h) | 0 | ||||
-rw-r--r-- | include/sharedmem.h (renamed from afl-sharedmem.h) | 0 | ||||
-rw-r--r-- | include/types.h (renamed from types.h) | 0 | ||||
-rw-r--r-- | src/afl-analyze.c (renamed from afl-analyze.c) | 4 | ||||
-rw-r--r-- | src/afl-as.c (renamed from afl-as.c) | 2 | ||||
-rw-r--r-- | src/afl-common.c (renamed from afl-common.c) | 0 | ||||
-rw-r--r-- | src/afl-forkserver.c (renamed from afl-forkserver.c) | 2 | ||||
-rw-r--r-- | src/afl-fuzz.c (renamed from afl-fuzz.c) | 6 | ||||
-rw-r--r-- | src/afl-gcc.c (renamed from afl-gcc.c) | 0 | ||||
-rw-r--r-- | src/afl-gotcpu.c (renamed from afl-gotcpu.c) | 0 | ||||
-rw-r--r-- | src/afl-sharedmem.c (renamed from afl-sharedmem.c) | 2 | ||||
-rw-r--r-- | src/afl-showmap.c (renamed from afl-showmap.c) | 4 | ||||
-rw-r--r-- | src/afl-tmin.c (renamed from afl-tmin.c) | 6 | ||||
-rw-r--r-- | src/test-instr.c (renamed from test-instr.c) | 0 |
22 files changed, 37 insertions, 37 deletions
diff --git a/Makefile b/Makefile index 3d5059f7..9699a0ad 100644 --- a/Makefile +++ b/Makefile @@ -17,7 +17,7 @@ #TEST_MMAP=1 PROGNAME = afl -VERSION = $(shell grep '^\#define VERSION ' config.h | cut -d '"' -f2) +VERSION = $(shell grep '^\#define VERSION ' include/config.h | cut -d '"' -f2) PREFIX ?= /usr/local BIN_PATH = $(PREFIX)/bin @@ -31,7 +31,7 @@ PROGS = afl-gcc afl-fuzz afl-showmap afl-tmin afl-gotcpu afl-analyze SH_PROGS = afl-plot afl-cmin afl-whatsup afl-system-config CFLAGS ?= -O3 -funroll-loops -CFLAGS += -Wall -D_FORTIFY_SOURCE=2 -g -Wno-pointer-sign \ +CFLAGS += -Wall -D_FORTIFY_SOURCE=2 -g -Wno-pointer-sign -I include/ \ -DAFL_PATH=\"$(HELPER_PATH)\" -DDOC_PATH=\"$(DOC_PATH)\" \ -DBIN_PATH=\"$(BIN_PATH)\" @@ -47,7 +47,7 @@ else TEST_CC = afl-clang endif -COMM_HDR = alloc-inl.h config.h debug.h types.h +COMM_HDR = include/alloc-inl.h include/config.h include/debug.h include/types.h ifeq "$(shell echo '\#include <Python.h>@int main() {return 0; }' | tr @ '\n' | $(CC) -x c - -o .test -I$(PYTHON_INCLUDE) -lpython2.7 2>/dev/null && echo 1 || echo 0 )" "1" @@ -123,37 +123,37 @@ endif ready: @echo "[+] Everything seems to be working, ready to compile." -afl-gcc: afl-gcc.c $(COMM_HDR) | test_x86 - $(CC) $(CFLAGS) $@.c -o $@ $(LDFLAGS) +afl-gcc: src/afl-gcc.c $(COMM_HDR) | test_x86 + $(CC) $(CFLAGS) src/$@.c -o $@ $(LDFLAGS) set -e; for i in afl-g++ afl-clang afl-clang++; do ln -sf afl-gcc $$i; done -afl-as: afl-as.c afl-as.h $(COMM_HDR) | test_x86 - $(CC) $(CFLAGS) $@.c -o $@ $(LDFLAGS) +afl-as: src/afl-as.c include/afl-as.h $(COMM_HDR) | test_x86 + $(CC) $(CFLAGS) src/$@.c -o $@ $(LDFLAGS) ln -sf afl-as as -afl-common.o : afl-common.c - $(CC) $(CFLAGS) -c afl-common.c +afl-common.o : src/afl-common.c include/common.h + $(CC) $(CFLAGS) -c src/afl-common.c -afl-forkserver.o : afl-forkserver.c - $(CC) $(CFLAGS) -c afl-forkserver.c +afl-forkserver.o : src/afl-forkserver.c include/forkserver.h + $(CC) $(CFLAGS) -c src/afl-forkserver.c -afl-sharedmem.o : afl-sharedmem.c - $(CC) $(CFLAGS) -c afl-sharedmem.c +afl-sharedmem.o : src/afl-sharedmem.c include/sharedmem.h + $(CC) $(CFLAGS) -c src/afl-sharedmem.c -afl-fuzz: afl-fuzz.c afl-common.o afl-sharedmem.o afl-forkserver.o $(COMM_HDR) | test_x86 - $(CC) $(CFLAGS) $@.c afl-common.o afl-sharedmem.o afl-forkserver.o -o $@ $(LDFLAGS) $(PYFLAGS) +afl-fuzz: src/afl-fuzz.c afl-common.o afl-sharedmem.o afl-forkserver.o $(COMM_HDR) | test_x86 + $(CC) $(CFLAGS) src/$@.c afl-common.o afl-sharedmem.o afl-forkserver.o -o $@ $(LDFLAGS) $(PYFLAGS) -afl-showmap: afl-showmap.c afl-common.o afl-sharedmem.o $(COMM_HDR) | test_x86 - $(CC) $(CFLAGS) $@.c afl-common.o afl-sharedmem.o -o $@ $(LDFLAGS) +afl-showmap: src/afl-showmap.c afl-common.o afl-sharedmem.o $(COMM_HDR) | test_x86 + $(CC) $(CFLAGS) src/$@.c afl-common.o afl-sharedmem.o -o $@ $(LDFLAGS) -afl-tmin: afl-tmin.c afl-common.o afl-sharedmem.o afl-forkserver.o $(COMM_HDR) | test_x86 - $(CC) $(CFLAGS) $@.c afl-common.o afl-sharedmem.o afl-forkserver.o -o $@ $(LDFLAGS) +afl-tmin: src/afl-tmin.c afl-common.o afl-sharedmem.o afl-forkserver.o $(COMM_HDR) | test_x86 + $(CC) $(CFLAGS) src/$@.c afl-common.o afl-sharedmem.o afl-forkserver.o -o $@ $(LDFLAGS) -afl-analyze: afl-analyze.c afl-common.o afl-sharedmem.o $(COMM_HDR) | test_x86 - $(CC) $(CFLAGS) $@.c afl-common.o afl-sharedmem.o -o $@ $(LDFLAGS) +afl-analyze: src/afl-analyze.c afl-common.o afl-sharedmem.o $(COMM_HDR) | test_x86 + $(CC) $(CFLAGS) src/$@.c afl-common.o afl-sharedmem.o -o $@ $(LDFLAGS) -afl-gotcpu: afl-gotcpu.c $(COMM_HDR) | test_x86 - $(CC) $(CFLAGS) $@.c -o $@ $(LDFLAGS) +afl-gotcpu: src/afl-gotcpu.c $(COMM_HDR) | test_x86 + $(CC) $(CFLAGS) src/$@.c -o $@ $(LDFLAGS) ifndef AFL_NO_X86 diff --git a/TODO b/TODO index cc075abd..08dc1bb8 100644 --- a/TODO +++ b/TODO @@ -68,5 +68,5 @@ Problem: Average targets (tiff, jpeg, unrar) go through 1500 edges. qemu_mode: - persistent mode patching the return address (WinAFL style) - - instrument only comparison with immediate values by default when using compcov + - instrument only comparison with immediate values by default when using compcov (done) diff --git a/alloc-inl.h b/include/alloc-inl.h index 2f98da0e..2f98da0e 100644 --- a/alloc-inl.h +++ b/include/alloc-inl.h diff --git a/afl-as.h b/include/as.h index 4748eda7..4748eda7 100644 --- a/afl-as.h +++ b/include/as.h diff --git a/afl-common.h b/include/common.h index 161caa39..161caa39 100644 --- a/afl-common.h +++ b/include/common.h diff --git a/config.h b/include/config.h index 37a2a794..37a2a794 100644 --- a/config.h +++ b/include/config.h diff --git a/debug.h b/include/debug.h index 349aa650..349aa650 100644 --- a/debug.h +++ b/include/debug.h diff --git a/afl-forkserver.h b/include/forkserver.h index fa40d9c6..fa40d9c6 100644 --- a/afl-forkserver.h +++ b/include/forkserver.h diff --git a/hash.h b/include/hash.h index f39a8257..f39a8257 100644 --- a/hash.h +++ b/include/hash.h diff --git a/afl-sharedmem.h b/include/sharedmem.h index 9aa44d0e..9aa44d0e 100644 --- a/afl-sharedmem.h +++ b/include/sharedmem.h diff --git a/types.h b/include/types.h index 7606d4ed..7606d4ed 100644 --- a/types.h +++ b/include/types.h diff --git a/afl-analyze.c b/src/afl-analyze.c index 18b7456d..e12f9194 100644 --- a/afl-analyze.c +++ b/src/afl-analyze.c @@ -26,8 +26,8 @@ #include "debug.h" #include "alloc-inl.h" #include "hash.h" -#include "afl-sharedmem.h" -#include "afl-common.h" +#include "sharedmem.h" +#include "common.h" #include <stdio.h> #include <unistd.h> diff --git a/afl-as.c b/src/afl-as.c index 94595f24..063e3bcd 100644 --- a/afl-as.c +++ b/src/afl-as.c @@ -35,7 +35,7 @@ #include "debug.h" #include "alloc-inl.h" -#include "afl-as.h" +#include "as.h" #include <stdio.h> #include <unistd.h> diff --git a/afl-common.c b/src/afl-common.c index f3bbdfb4..f3bbdfb4 100644 --- a/afl-common.c +++ b/src/afl-common.c diff --git a/afl-forkserver.c b/src/afl-forkserver.c index 226175e1..0051f6b0 100644 --- a/afl-forkserver.c +++ b/src/afl-forkserver.c @@ -1,7 +1,7 @@ #include "config.h" #include "types.h" #include "debug.h" -#include "afl-forkserver.h" +#include "forkserver.h" #include <stdio.h> #include <unistd.h> diff --git a/afl-fuzz.c b/src/afl-fuzz.c index ec54cc85..0285a242 100644 --- a/afl-fuzz.c +++ b/src/afl-fuzz.c @@ -33,9 +33,9 @@ #include "debug.h" #include "alloc-inl.h" #include "hash.h" -#include "afl-sharedmem.h" -#include "afl-forkserver.h" -#include "afl-common.h" +#include "sharedmem.h" +#include "forkserver.h" +#include "common.h" #include <stdio.h> #include <unistd.h> diff --git a/afl-gcc.c b/src/afl-gcc.c index f6ededeb..f6ededeb 100644 --- a/afl-gcc.c +++ b/src/afl-gcc.c diff --git a/afl-gotcpu.c b/src/afl-gotcpu.c index 4163ad65..4163ad65 100644 --- a/afl-gotcpu.c +++ b/src/afl-gotcpu.c diff --git a/afl-sharedmem.c b/src/afl-sharedmem.c index 400a0a46..3fd38444 100644 --- a/afl-sharedmem.c +++ b/src/afl-sharedmem.c @@ -9,7 +9,7 @@ #include "debug.h" #include "alloc-inl.h" #include "hash.h" -#include "afl-sharedmem.h" +#include "sharedmem.h" #include <stdio.h> #include <unistd.h> diff --git a/afl-showmap.c b/src/afl-showmap.c index 96b7b5e0..66c77094 100644 --- a/afl-showmap.c +++ b/src/afl-showmap.c @@ -28,8 +28,8 @@ #include "debug.h" #include "alloc-inl.h" #include "hash.h" -#include "afl-sharedmem.h" -#include "afl-common.h" +#include "sharedmem.h" +#include "common.h" #include <stdio.h> #include <unistd.h> diff --git a/afl-tmin.c b/src/afl-tmin.c index e83b217d..663bb510 100644 --- a/afl-tmin.c +++ b/src/afl-tmin.c @@ -27,9 +27,9 @@ #include "debug.h" #include "alloc-inl.h" #include "hash.h" -#include "afl-forkserver.h" -#include "afl-sharedmem.h" -#include "afl-common.h" +#include "forkserver.h" +#include "sharedmem.h" +#include "common.h" #include <stdio.h> #include <unistd.h> diff --git a/test-instr.c b/src/test-instr.c index 9107f15e..9107f15e 100644 --- a/test-instr.c +++ b/src/test-instr.c |