diff options
author | van Hauser <vh@thc.org> | 2024-07-01 08:57:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-01 08:57:38 +0200 |
commit | 53409530b369e560c7f6f37ead5a5db9e116efd0 (patch) | |
tree | 6449fa84e6b9e26849d298af881014b18f55dc0b /qemu_mode/build_qemu_support.sh | |
parent | 36db3428ab16156dd72196213d2a02a5eadaed11 (diff) | |
parent | 43014cd465eec8cc47eda041802001776dbb5dd5 (diff) | |
download | afl++-53409530b369e560c7f6f37ead5a5db9e116efd0.tar.gz |
Merge pull request #2141 from AFLplusplus/dev
push to stable
Diffstat (limited to 'qemu_mode/build_qemu_support.sh')
-rwxr-xr-x | qemu_mode/build_qemu_support.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/qemu_mode/build_qemu_support.sh b/qemu_mode/build_qemu_support.sh index 19336114..4dd4fad2 100755 --- a/qemu_mode/build_qemu_support.sh +++ b/qemu_mode/build_qemu_support.sh @@ -386,6 +386,19 @@ else make -C libqasan CC="$CROSS $CROSS_FLAGS" && echo "[+] libqasan ready" fi +#### Hooking support +if [ "$ENABLE_HOOKING" = "1" ];then + echo "[+] ENABLING HOOKING" + set -e + cd ./hooking_bridge || exit 255 + mkdir -p ./build + echo "[+] Hook compiler = $CROSS" + make CC="$CROSS $CROSS_FLAGS" GLIB_H="$GLIB_H" GLIB_CONFIG_H="$GLIB_CONFIG_H" + set +e + cd .. +fi +#### End of hooking support + echo "[+] All done for qemu_mode, enjoy!" exit 0 |