aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Carlier <devnexen@gmail.com>2020-07-09 15:43:05 +0100
committerDavid Carlier <devnexen@gmail.com>2020-07-09 15:43:05 +0100
commit90adc2cb853482ae058a4b09719502ec6c3c22b8 (patch)
tree6c636835dbe7d54a986e1eee7301a08aef3a6a16
parent7c8d8233966c5f3009710efeb9c9efb50015ebbb (diff)
downloadafl++-90adc2cb853482ae058a4b09719502ec6c3c22b8.tar.gz
illumos littlefixes: little typo for cpu binding and
even tough gcc plugin less good than LLVM, clang is more buggy on this os.
-rw-r--r--gcc_plugin/GNUmakefile7
-rw-r--r--src/afl-fuzz-init.c2
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc_plugin/GNUmakefile b/gcc_plugin/GNUmakefile
index bf5c53e0..002437cb 100644
--- a/gcc_plugin/GNUmakefile
+++ b/gcc_plugin/GNUmakefile
@@ -70,9 +70,14 @@ ifeq "$(TEST_MMAP)" "1"
endif
ifneq "$(shell uname -s)" "Haiku"
- LDFLAGS += -lrt
+ 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
diff --git a/src/afl-fuzz-init.c b/src/afl-fuzz-init.c
index e51b4729..e95ae95f 100644
--- a/src/afl-fuzz-init.c
+++ b/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
;