From a7c3f252d57707ca2c0035be6cbe80635cf8857b Mon Sep 17 00:00:00 2001 From: David CARLIER Date: Mon, 24 Aug 2020 11:06:04 +0100 Subject: unicorn build warning for MUSL based linux distros. (#510) --- unicorn_mode/build_unicorn_support.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/unicorn_mode/build_unicorn_support.sh b/unicorn_mode/build_unicorn_support.sh index 841728d7..b4d2058f 100755 --- a/unicorn_mode/build_unicorn_support.sh +++ b/unicorn_mode/build_unicorn_support.sh @@ -70,6 +70,11 @@ MAKECMD=make TARCMD=tar if [ "$PLT" = "Linux" ]; then + MUSL=`ldd --version 2>&1 | head -n 1 | cut -f 1 -d " "` + if [ "musl" = $MUSL ]; then + echo "[-] Error: Unicorn instrumentation is unsupported with the musl's libc." + exit 1 + fi CORES=`nproc` fi -- cgit 1.4.1