illumos littlefixes: little typo for cpu binding and
even tough gcc plugin less good than LLVM, clang
is more buggy on this os.
MODIFY
gcc_plugin/GNUmakefile
gcc_plugin/GNUmakefile
@@ -73,6 +73,11 @@ ifneq "$(shell uname -s)" "Haiku"
LDFLAGS += -lrt
endif
+ifeq "$(shell uname -s)" "SunOS"
+ PLUGIN_FLAGS += -I/usr/include/gmp
+endif
+
+
PROGS = ../afl-gcc-fast ../afl-gcc-pass.so ../afl-gcc-rt.o

MODIFY
src/afl-fuzz-init.c
src/afl-fuzz-init.c
@@ -398,7 +398,7 @@ if (pset_bind(c, P_PID, getpid(), NULL)) {
if (cpu_start == afl->cpu_core_count)
PFATAL("pset_bind failed for cpu %d, exit", i);
- WARNF("pthread_setaffinity failed to CPU %d, trying next CPU", i);
+ WARNF("pset_bind failed to CPU %d, trying next CPU", i);
cpu_start++;
goto try
;

illumos littlefixes: little typo for cpu binding and
even tough gcc plugin less good than LLVM, clang
is more buggy on this os.