gcc_plugin adaptions Makefile help, man page SYNOPSIS
MODIFY
Makefile
Makefile
@@ -116,7 +116,7 @@ help:
@echo "=========================================="
@echo "all: just the main afl++ binaries"
@echo "binary-only: everything for binary-only fuzzing: qemu_mode, unicorn_mode, libdislocator, libtokencap"
- @echo "source-only: everything for source code fuzzing: llvm_mode, libdislocator, libtokencap"
+ @echo "source-only: everything for source code fuzzing: llvm_mode, gcc_plugin, libdislocator, libtokencap"
@echo "distrib: everything (for both binary-only and source code fuzzing)"
@echo "man: creates simple man pages from the help option of the programs"
@echo "install: installs everything you have compiled with the build option above"

MODIFY
gcc_plugin/Makefile
gcc_plugin/Makefile
@@ -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

MODIFY
gcc_plugin/afl-gcc-fast.c
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 "

gcc_plugin adaptions Makefile help, man page SYNOPSIS