From b86b5bed3fb7f8771db7af2ec52219c1ccaa6de1 Mon Sep 17 00:00:00 2001 From: Cory Barker Date: Tue, 7 Jun 2022 20:14:00 +0000 Subject: [PATCH] Adding support for building AFLpp Test: Built AFL fuzzers locally and ran them Change-Id: I5bd6d1e9b19558ce8135b19491160dba14dea04e --- core/Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/Makefile b/core/Makefile index dcf5912d0c..721e4e3437 100644 --- a/core/Makefile +++ b/core/Makefile @@ -6904,6 +6904,7 @@ endif # depended on by each module in soong_cc_prebuilt.mk, where the module will have # a dependency on each shared library that it needs to be "reinstalled". FUZZ_SHARED_DEPS := $(call copy-many-files,$(strip $(FUZZ_TARGET_SHARED_DEPS_INSTALL_PAIRS))) +AFL_FUZZ_SHARED_DEPS := $(call copy-many-files,$(strip $(AFL_FUZZ_TARGET_SHARED_DEPS_INSTALL_PAIRS))) # ----------------------------------------------------------------- # The rule to build all fuzz targets for C++ and Rust, and package them. @@ -6919,6 +6920,10 @@ FUZZ_SHARED_DEPS := $(call copy-many-files,$(strip $(FUZZ_TARGET_SHARED_DEPS_INS haiku: $(SOONG_FUZZ_PACKAGING_ARCH_MODULES) $(ALL_FUZZ_TARGETS) $(call dist-for-goals,haiku,$(SOONG_FUZZ_PACKAGING_ARCH_MODULES)) +.PHONY: haiku-afl +haiku-afl: $(SOONG_AFL_FUZZ_PACKAGING_ARCH_MODULES) $(ALL_AFL_FUZZ_TARGETS) +$(call dist-for-goals,haiku-afl,$(SOONG_AFL_FUZZ_PACKAGING_ARCH_MODULES)) + .PHONY: haiku-java haiku-java: $(SOONG_JAVA_FUZZ_PACKAGING_ARCH_MODULES) $(ALL_JAVA_FUZZ_TARGETS) $(call dist-for-goals,haiku-java,$(SOONG_JAVA_FUZZ_PACKAGING_ARCH_MODULES))