X-Git-Url: https://git.distorted.org.uk/~mdw/termux-packages/blobdiff_plain/0441f620d7ac5679327be8a759a5ae5886409a10..658bba67c018a0b51df08723cd4c3a57c2668d2e:/scripts/check-pie.sh diff --git a/scripts/check-pie.sh b/scripts/check-pie.sh new file mode 100755 index 00000000..5e015cc2 --- /dev/null +++ b/scripts/check-pie.sh @@ -0,0 +1,9 @@ +#!/bin/sh +# check-pie.sh - script to detect non-PIE binaries (which does not work on Android) + +cd /data/data/com.termux/files/usr/bin/ +for file in *; do + if readelf -h $file 2>/dev/null | grep -q 'Type:[[:space:]]*EXEC'; then + echo $file + fi +done