From 6c69db68afc3b7cdfc4005345677e081c81a0649 Mon Sep 17 00:00:00 2001 From: Sergej Schumilo Date: Thu, 30 Dec 2021 03:31:10 +0100 Subject: [PATCH] new compile script (LTO & statically-linked libraries) --- .gitignore | 2 - .gitmodules | 6 +++ capstone_v4 | 1 + compile_qemu_nyx.sh | 123 +++++++++++++++++++++++++++++++++++-------- configure | 38 +++++++++---- libxdc | 1 + nyx/fast_vm_reload.c | 4 +- nyx/helpers.c | 8 +-- nyx/helpers.h | 6 +-- nyx/hypercall.c | 2 +- nyx/pt.c | 2 +- 11 files changed, 150 insertions(+), 43 deletions(-) create mode 160000 capstone_v4 create mode 160000 libxdc diff --git a/.gitignore b/.gitignore index 9b8d3ea5d9..eb4392313e 100644 --- a/.gitignore +++ b/.gitignore @@ -164,5 +164,3 @@ trace-ust-all.h trace-ust-all.c /target/arm/decode-sve.inc.c -/libxdc -/capstone_v4 diff --git a/.gitmodules b/.gitmodules index 19792c9a11..85f3fb7962 100644 --- a/.gitmodules +++ b/.gitmodules @@ -61,3 +61,9 @@ [submodule "roms/qboot"] path = roms/qboot url = https://github.com/bonzini/qboot +[submodule "libxdc"] + path = libxdc + url = https://github.com/nyx-fuzz/libxdc.git +[submodule "capstone_v4"] + path = capstone_v4 + url = https://github.com/aquynh/capstone.git diff --git a/capstone_v4 b/capstone_v4 new file mode 160000 index 0000000000..0efa3cc530 --- /dev/null +++ b/capstone_v4 @@ -0,0 +1 @@ +Subproject commit 0efa3cc530ea188c0e03c945ab884ee19dd16342 diff --git a/compile_qemu_nyx.sh b/compile_qemu_nyx.sh index 7225af05ca..767c6f5180 100755 --- a/compile_qemu_nyx.sh +++ b/compile_qemu_nyx.sh @@ -18,35 +18,116 @@ set -e # You should have received a copy of the GNU General Public License # along with QEMU-PT. If not, see . +error () { + echo "$0: