aboutsummaryrefslogtreecommitdiff
path: root/gcc_plugin
diff options
context:
space:
mode:
authorhexcoder- <heiko@hexco.de>2019-10-22 20:21:04 +0200
committerhexcoder- <heiko@hexco.de>2019-10-22 20:21:04 +0200
commit3ec1baee65553d83e03cd42d08a6151775b25665 (patch)
tree07601d2040387b98bab34ee1b2e4a4bfd25e1081 /gcc_plugin
parent374f6610270a0434afe4931077e49efd9284e013 (diff)
downloadafl++-3ec1baee65553d83e03cd42d08a6151775b25665.tar.gz
gcc_plugin adaptions Makefile help, man page SYNOPSIS
Diffstat (limited to 'gcc_plugin')
-rw-r--r--gcc_plugin/Makefile6
-rw-r--r--gcc_plugin/afl-gcc-fast.c2
2 files changed, 5 insertions, 3 deletions
diff --git a/gcc_plugin/Makefile b/gcc_plugin/Makefile
index a603df78..287b6545 100644
--- a/gcc_plugin/Makefile
+++ b/gcc_plugin/Makefile
@@ -27,7 +27,7 @@ CFLAGS ?= -O3 -g -funroll-loops
CFLAGS += -Wall -D_FORTIFY_SOURCE=2 -Wno-pointer-sign \
-DAFL_PATH=\"$(HELPER_PATH)\" -DBIN_PATH=\"$(BIN_PATH)\" \
-CXXFLAGS ?= -O3 -g -funroll-loops
+CXXFLAGS ?= -O3 -g -funroll-loops
CXXEFLAGS := $(CXXFLAGS) -Wall -D_FORTIFY_SOURCE=2
CC ?= gcc
@@ -35,8 +35,6 @@ CXX ?= g++
PLUGIN_FLAGS = -fPIC -fno-rtti -I"$(shell $(CC) -print-file-name=plugin)/include"
-PROGS = ../afl-gcc-fast ../afl-gcc-pass.so ../afl-gcc-rt.o
-
ifeq "$(shell echo '\#include <sys/ipc.h>@\#include <sys/shm.h>@int main() { int _id = shmget(IPC_PRIVATE, 65536, IPC_CREAT | IPC_EXCL | 0600); shmctl(_id, IPC_RMID, 0); return 0;}' | tr @ '\n' | $(CC) -x c - -o .test2 2>/dev/null && echo 1 || echo 0 )" "1"
SHMAT_OK=1
else
@@ -51,6 +49,8 @@ ifeq "$(TEST_MMAP)" "1"
LDFLAGS += -lrt
endif
+PROGS = ../afl-gcc-fast ../afl-gcc-pass.so ../afl-gcc-rt.o
+
all: test_shm test_deps $(PROGS) afl-gcc-fast.8 test_build all_done
diff --git a/gcc_plugin/afl-gcc-fast.c b/gcc_plugin/afl-gcc-fast.c
index b0461584..093249a0 100644
--- a/gcc_plugin/afl-gcc-fast.c
+++ b/gcc_plugin/afl-gcc-fast.c
@@ -282,6 +282,8 @@ int main(int argc, char** argv) {
"afl-gcc-fast" VERSION cRST
" initially by <aseipp@pobox.com>, maintainer: hexcoder-\n"
"\n"
+ "afl-gcc-fast [options]\n"
+ "\n"
"This is a helper application for afl-fuzz. It serves as a drop-in "
"replacement\n"
"for gcc, letting you recompile third-party code with the required "