about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAndrea Fioraldi <andreafioraldi@gmail.com>2021-04-30 14:01:26 +0200
committerAndrea Fioraldi <andreafioraldi@gmail.com>2021-04-30 14:01:26 +0200
commitd0225c2c4d465968660a08c93857fed354e539b1 (patch)
tree93fb00c08354d7232eb7110517fcc72a1d441d23
parentade1d2819e9c74c81395a8ca40160a69ba94e8d9 (diff)
downloadafl++-d0225c2c4d465968660a08c93857fed354e539b1.tar.gz
disable QEMU static pie
-rwxr-xr-xqemu_mode/build_qemu_support.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/qemu_mode/build_qemu_support.sh b/qemu_mode/build_qemu_support.sh
index 6436d43a..02a44cef 100755
--- a/qemu_mode/build_qemu_support.sh
+++ b/qemu_mode/build_qemu_support.sh
@@ -211,8 +211,9 @@ if [ "$STATIC" = "1" ]; then
 
   echo Building STATIC binary
 
+  # static PIE causes https://github.com/AFLplusplus/AFLplusplus/issues/892
   QEMU_CONF_FLAGS="$QEMU_CONF_FLAGS \
-    --static \
+    --static --disable-pie \
     --extra-cflags=-DAFL_QEMU_STATIC_BUILD=1 \
     "