mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-10 17:21:33 +00:00
gcc_plugin adaptions Makefile help, man page SYNOPSIS
This commit is contained in:
parent
374f661027
commit
3ec1baee65
2
Makefile
2
Makefile
@ -116,7 +116,7 @@ help:
|
|||||||
@echo "=========================================="
|
@echo "=========================================="
|
||||||
@echo "all: just the main afl++ binaries"
|
@echo "all: just the main afl++ binaries"
|
||||||
@echo "binary-only: everything for binary-only fuzzing: qemu_mode, unicorn_mode, libdislocator, libtokencap"
|
@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 "distrib: everything (for both binary-only and source code fuzzing)"
|
||||||
@echo "man: creates simple man pages from the help option of the programs"
|
@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"
|
@echo "install: installs everything you have compiled with the build option above"
|
||||||
|
@ -27,7 +27,7 @@ CFLAGS ?= -O3 -g -funroll-loops
|
|||||||
CFLAGS += -Wall -D_FORTIFY_SOURCE=2 -Wno-pointer-sign \
|
CFLAGS += -Wall -D_FORTIFY_SOURCE=2 -Wno-pointer-sign \
|
||||||
-DAFL_PATH=\"$(HELPER_PATH)\" -DBIN_PATH=\"$(BIN_PATH)\" \
|
-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
|
CXXEFLAGS := $(CXXFLAGS) -Wall -D_FORTIFY_SOURCE=2
|
||||||
|
|
||||||
CC ?= gcc
|
CC ?= gcc
|
||||||
@ -35,8 +35,6 @@ CXX ?= g++
|
|||||||
|
|
||||||
PLUGIN_FLAGS = -fPIC -fno-rtti -I"$(shell $(CC) -print-file-name=plugin)/include"
|
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"
|
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
|
SHMAT_OK=1
|
||||||
else
|
else
|
||||||
@ -51,6 +49,8 @@ ifeq "$(TEST_MMAP)" "1"
|
|||||||
LDFLAGS += -lrt
|
LDFLAGS += -lrt
|
||||||
endif
|
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
|
all: test_shm test_deps $(PROGS) afl-gcc-fast.8 test_build all_done
|
||||||
|
|
||||||
|
@ -282,6 +282,8 @@ int main(int argc, char** argv) {
|
|||||||
"afl-gcc-fast" VERSION cRST
|
"afl-gcc-fast" VERSION cRST
|
||||||
" initially by <aseipp@pobox.com>, maintainer: hexcoder-\n"
|
" initially by <aseipp@pobox.com>, maintainer: hexcoder-\n"
|
||||||
"\n"
|
"\n"
|
||||||
|
"afl-gcc-fast [options]\n"
|
||||||
|
"\n"
|
||||||
"This is a helper application for afl-fuzz. It serves as a drop-in "
|
"This is a helper application for afl-fuzz. It serves as a drop-in "
|
||||||
"replacement\n"
|
"replacement\n"
|
||||||
"for gcc, letting you recompile third-party code with the required "
|
"for gcc, letting you recompile third-party code with the required "
|
||||||
|
Loading…
x
Reference in New Issue
Block a user