diff options
author | van Hauser <vh@thc.org> | 2020-02-08 09:53:25 +0100 |
---|---|---|
committer | van Hauser <vh@thc.org> | 2020-02-08 09:53:25 +0100 |
commit | a1dc73241473156178009d5132b76e4307bb1664 (patch) | |
tree | 5293bf26455a3841fdcb859231a7f84be07aeeb8 /libAflDyninst.cpp | |
parent | daddc92b4a5b3d9a30255615908e643365f64f53 (diff) | |
download | afl-dyninst-a1dc73241473156178009d5132b76e4307bb1664.tar.gz |
various fixes and changes
Diffstat (limited to 'libAflDyninst.cpp')
-rw-r--r-- | libAflDyninst.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/libAflDyninst.cpp b/libAflDyninst.cpp index af2d9f4..c9ad158 100644 --- a/libAflDyninst.cpp +++ b/libAflDyninst.cpp @@ -1,4 +1,4 @@ -#include "config.h" +#include "config.h" // do symlink: ln -s ../AFLplusplus/include afl #include "dyninstversion.h" // if this include errors, compile and install https://github.com/dyninst/dyninst #include <algorithm> #include <cstdio> @@ -23,8 +23,8 @@ static pid_t __afl_fork_pid; static unsigned short int prev_id = 0; static bool forkserver_installed = false; #if (__amd64__ || __x86_64__) -static long saved_di; #if (DYNINST_MAJOR_VERSION < 10) +static long saved_di; register long rdi asm("di"); // the warning is fine - we need the warning because of a bug in dyninst9 #endif #endif @@ -100,9 +100,7 @@ void save_rdi() { saved_di = rdi; #endif } -#endif -#if (DYNINST_MAJOR_VERSION < 10) void restore_rdi() { #if __amd64__ || __x86_64__ rdi = saved_di; |