build_qemu_support.diff 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. diff -Naur AFLplusplus-4.04c/qemu_mode/build_qemu_support.sh AFLplusplus-4.04c.patched/qemu_mode/build_qemu_support.sh
  2. --- AFLplusplus-4.04c/qemu_mode/build_qemu_support.sh 2022-10-11 09:40:55.000000000 -0400
  3. +++ AFLplusplus-4.04c.patched/qemu_mode/build_qemu_support.sh 2022-12-29 17:08:26.492717555 -0500
  4. @@ -70,35 +70,7 @@
  5. echo "[*] Making sure qemuafl is checked out"
  6. -git status 1>/dev/null 2>/dev/null
  7. -if [ $? -eq 0 ]; then
  8. - echo "[*] initializing qemuafl submodule"
  9. - git submodule init || exit 1
  10. - git submodule update ./qemuafl 2>/dev/null # ignore errors
  11. -else
  12. - echo "[*] cloning qemuafl"
  13. - test -d qemuafl/.git || {
  14. - CNT=1
  15. - while [ '!' -d qemuafl/.git -a "$CNT" -lt 4 ]; do
  16. - echo "Trying to clone qemuafl (attempt $CNT/3)"
  17. - git clone --depth 1 https://github.com/AFLplusplus/qemuafl
  18. - CNT=`expr "$CNT" + 1`
  19. - done
  20. - }
  21. -fi
  22. -
  23. -test -e qemuafl/.git || { echo "[-] Not checked out, please install git or check your internet connection." ; exit 1 ; }
  24. -echo "[+] Got qemuafl."
  25. -
  26. cd "qemuafl" || exit 1
  27. -if [ -n "$NO_CHECKOUT" ]; then
  28. - echo "[*] Skipping checkout to $QEMUAFL_VERSION"
  29. -else
  30. - echo "[*] Checking out $QEMUAFL_VERSION"
  31. - sh -c 'git stash' 1>/dev/null 2>/dev/null
  32. - git pull
  33. - git checkout "$QEMUAFL_VERSION" || echo Warning: could not check out to commit $QEMUAFL_VERSION
  34. -fi
  35. echo "[*] Making sure imported headers matches"
  36. cp "../../include/config.h" "./qemuafl/imported/" || exit 1
  37. @@ -239,7 +211,6 @@
  38. --enable-debug-stack-usage \
  39. --enable-debug-tcg \
  40. --enable-qom-cast-debug \
  41. - --enable-werror \
  42. "
  43. else