From 742aed4f2e8d46cd9a92c4eafb89986049bedfe4 Mon Sep 17 00:00:00 2001 From: Joey Jiao Date: Thu, 25 Jul 2019 09:12:48 +0800 Subject: Add support for Android --- llvm_mode/afl-llvm-rt.o.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'llvm_mode/afl-llvm-rt.o.c') diff --git a/llvm_mode/afl-llvm-rt.o.c b/llvm_mode/afl-llvm-rt.o.c index debde204..67208454 100644 --- a/llvm_mode/afl-llvm-rt.o.c +++ b/llvm_mode/afl-llvm-rt.o.c @@ -19,6 +19,9 @@ */ +#ifdef __ANDROID__ + #include "android-ashmem.h" +#endif #include "../config.h" #include "../types.h" @@ -55,7 +58,11 @@ u8 __afl_area_initial[MAP_SIZE]; u8* __afl_area_ptr = __afl_area_initial; +#ifdef __ANDROID__ +u32 __afl_prev_loc; +#else __thread u32 __afl_prev_loc; +#endif /* Running in persistent mode? */ -- cgit 1.4.1