iOS support and mmap
I found the work of Proteas for ios support and expanded a bit on it in this branch.
iOS needs a different API for using shared memory (mmap-based). I adapted it, refactored some common shared memory handling code into one place, made it the default and tested it for Linux (which has mmap and shmat).
I also extended afl-as.h to support non-llvm-mode (but I am not an assembly programmer).
It would be nice if the adapted programs (afl-as, afl-fuzz, afl-analyze, afl-showmap, afl-tmin, afl-gcc, afl-g++, afl-clang, afl-clang++) could be tested for other platforms (maybe even for iOS).
My hope is that the mmap API is generally more available thus making afl more portable.
TODO: we need to auto detect whether the mmap API is available else fallback to shmat().
Source: AFLplusplus/AFLplusplus