diff options
author | Andrea Fioraldi <andreafioraldi@gmail.com> | 2020-02-07 20:43:17 +0100 |
---|---|---|
committer | Andrea Fioraldi <andreafioraldi@gmail.com> | 2020-02-07 20:43:17 +0100 |
commit | f2f6be5e999632b05ce92b4934ee97531d546a44 (patch) | |
tree | c7eeea121fc83b5d0cf76daf59c47634c11bf264 /qemu_mode/patches/configure.diff | |
parent | fd8fe4dd088464230df2dc456c5a9fbf905c907f (diff) | |
download | afl++-f2f6be5e999632b05ce92b4934ee97531d546a44.tar.gz |
afl qemu persistent hook
Diffstat (limited to 'qemu_mode/patches/configure.diff')
-rw-r--r-- | qemu_mode/patches/configure.diff | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/qemu_mode/patches/configure.diff b/qemu_mode/patches/configure.diff new file mode 100644 index 00000000..acb96294 --- /dev/null +++ b/qemu_mode/patches/configure.diff @@ -0,0 +1,26 @@ +diff --git a/configure b/configure +index 1c9f609..3edc9a7 100755 +--- a/configure ++++ b/configure +@@ -4603,6 +4603,21 @@ if test "$darwin" != "yes" -a "$mingw32" != "yes" -a "$solaris" != yes -a \ + libs_softmmu="-lutil $libs_softmmu" + fi + ++########################################## ++cat > $TMPC << EOF ++#include <dlfcn.h> ++#include <stdlib.h> ++int main(int argc, char **argv) { return dlopen("libc.so", RTLD_NOW) != NULL; } ++EOF ++if compile_prog "" "" ; then ++ : ++elif compile_prog "" "-ldl" ; then ++ LIBS="-ldl $LIBS" ++ libs_qga="-ldl $libs_qga" ++else ++ error_exit "libdl check failed" ++fi ++ + ########################################## + # spice probe + if test "$spice" != "no" ; then |