mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-09 00:31:33 +00:00
install libafldrivers
This commit is contained in:
parent
1d56de6c1d
commit
9532499ef5
@ -597,6 +597,8 @@ install: all $(MANPAGES)
|
|||||||
if [ -f socketfuzz32.so -o -f socketfuzz64.so ]; then $(MAKE) -C examples/socket_fuzzing install; fi
|
if [ -f socketfuzz32.so -o -f socketfuzz64.so ]; then $(MAKE) -C examples/socket_fuzzing install; fi
|
||||||
if [ -f argvfuzz32.so -o -f argvfuzz64.so ]; then $(MAKE) -C examples/argv_fuzzing install; fi
|
if [ -f argvfuzz32.so -o -f argvfuzz64.so ]; then $(MAKE) -C examples/argv_fuzzing install; fi
|
||||||
if [ -f examples/afl_network_proxy/afl-network-server ]; then $(MAKE) -C examples/afl_network_proxy install; fi
|
if [ -f examples/afl_network_proxy/afl-network-server ]; then $(MAKE) -C examples/afl_network_proxy install; fi
|
||||||
|
if [ -f libAFLDriver.a ]; then install -m 644 libAFLDriver.a $${DESTDIR}$(HELPER_PATH); fi
|
||||||
|
if [ -f libAFLQemuDriver.a ]; then install -m 644 libAFLQemuDriver.a $${DESTDIR}$(HELPER_PATH); fi
|
||||||
|
|
||||||
set -e; ln -sf afl-gcc $${DESTDIR}$(BIN_PATH)/afl-g++
|
set -e; ln -sf afl-gcc $${DESTDIR}$(BIN_PATH)/afl-g++
|
||||||
set -e; if [ -f afl-clang-fast ] ; then ln -sf afl-clang-fast $${DESTDIR}$(BIN_PATH)/afl-clang ; ln -sf afl-clang-fast $${DESTDIR}$(BIN_PATH)/afl-clang++ ; else ln -sf afl-gcc $${DESTDIR}$(BIN_PATH)/afl-clang ; ln -sf afl-gcc $${DESTDIR}$(BIN_PATH)/afl-clang++; fi
|
set -e; if [ -f afl-clang-fast ] ; then ln -sf afl-clang-fast $${DESTDIR}$(BIN_PATH)/afl-clang ; ln -sf afl-clang-fast $${DESTDIR}$(BIN_PATH)/afl-clang++ ; else ln -sf afl-gcc $${DESTDIR}$(BIN_PATH)/afl-clang ; ln -sf afl-gcc $${DESTDIR}$(BIN_PATH)/afl-clang++; fi
|
||||||
|
@ -16,6 +16,7 @@ aflpp_driver.o: aflpp_driver.c
|
|||||||
|
|
||||||
libAFLDriver.a: aflpp_driver.o
|
libAFLDriver.a: aflpp_driver.o
|
||||||
ar ru libAFLDriver.a aflpp_driver.o
|
ar ru libAFLDriver.a aflpp_driver.o
|
||||||
|
cp -vf libAFLDriver.a ../../
|
||||||
|
|
||||||
debug:
|
debug:
|
||||||
$(LLVM_BINDIR)clang -Wno-deprecated -I../../include $(CFLAGS) -D_DEBUG=\"1\" -c -o afl-performance.o ../../src/afl-performance.c
|
$(LLVM_BINDIR)clang -Wno-deprecated -I../../include $(CFLAGS) -D_DEBUG=\"1\" -c -o afl-performance.o ../../src/afl-performance.c
|
||||||
@ -29,6 +30,7 @@ aflpp_qemu_driver.o: aflpp_qemu_driver.c
|
|||||||
|
|
||||||
libAFLQemuDriver.a: aflpp_qemu_driver.o
|
libAFLQemuDriver.a: aflpp_qemu_driver.o
|
||||||
ar ru libAFLQemuDriver.a aflpp_qemu_driver.o
|
ar ru libAFLQemuDriver.a aflpp_qemu_driver.o
|
||||||
|
cp -vf libAFLQemuDriver.a ../../
|
||||||
|
|
||||||
aflpp_qemu_driver_hook.so: aflpp_qemu_driver_hook.o
|
aflpp_qemu_driver_hook.so: aflpp_qemu_driver_hook.o
|
||||||
$(LLVM_BINDIR)clang -shared aflpp_qemu_driver_hook.o -o aflpp_qemu_driver_hook.so
|
$(LLVM_BINDIR)clang -shared aflpp_qemu_driver_hook.o -o aflpp_qemu_driver_hook.so
|
||||||
|
@ -566,7 +566,7 @@ bool AFLLTOPass::runOnModule(Module &M) {
|
|||||||
|
|
||||||
std::string outstring;
|
std::string outstring;
|
||||||
fprintf(stderr, "%s: length %zu/%zu \"", FuncName.c_str(), optLen,
|
fprintf(stderr, "%s: length %zu/%zu \"", FuncName.c_str(), optLen,
|
||||||
(unsigned int)thestring.length());
|
thestring.length());
|
||||||
for (uint8_t i = 0; i < thestring.length(); i++) {
|
for (uint8_t i = 0; i < thestring.length(); i++) {
|
||||||
|
|
||||||
uint8_t c = thestring[i];
|
uint8_t c = thestring[i];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user