about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/afl-cc.c5
-rwxr-xr-xtest/test-nyx-mode.sh4
2 files changed, 6 insertions, 3 deletions
diff --git a/src/afl-cc.c b/src/afl-cc.c
index c300ddfc..5e28ff6f 100644
--- a/src/afl-cc.c
+++ b/src/afl-cc.c
@@ -51,6 +51,9 @@
   #define MAX_PARAMS_NUM 2048
 #endif
 
+#undef LLVM_MAJOR
+#define LLVM_MAJOR 10
+
 /** Global declarations -----BEGIN----- **/
 
 typedef enum {
@@ -3452,6 +3455,8 @@ int main(int argc, char **argv, char **envp) {
   if (aflcc->debug)
     debugf_args((s32)aflcc->cc_par_cnt, (char **)aflcc->cc_params);
 
+  printf("DEBUGXXX: param0=%s aflcc->compiler_mode=%d aflcc->instrument_mode=%d\n", aflcc->cc_params[0], aflcc->compiler_mode, aflcc->instrument_mode);
+
   if (aflcc->passthrough) {
 
     argv[0] = aflcc->cc_params[0];
diff --git a/test/test-nyx-mode.sh b/test/test-nyx-mode.sh
index 99267ece..5b63d1b7 100755
--- a/test/test-nyx-mode.sh
+++ b/test/test-nyx-mode.sh
@@ -4,13 +4,11 @@
 
 $ECHO "$BLUE[*] Testing: nyx_mode"
 
+apt-cache search clang|grep -E '^clang-1'
 ls -al ../libnyx.so ../afl-* ../*.so
 ../afl-cc -h
-../afl-clang-fast -v
 echo AFL-CC
 AFL_DEBUG=1 ../afl-cc -v -o test-inst ../test-instr.c 2>&1
-echo AFL-CLANG-FAST
-AFL_DEBUG=1 ../afl-clang-fast -v -o test-inst ../test-instr.c 2>&1
 ls -l test-instr
 test -e ../libnyx.so && {
   ../afl-cc -o test-instr ../test-instr.c > errors 2>&1