1
0
mirror of https://github.com/termux/termux-packages synced 2024-06-22 10:07:06 +00:00
termux-packages/scripts/check-pie.sh
2020-10-30 21:33:32 +02:00

13 lines
280 B
Bash
Executable File

#!/bin/sh
# check-pie.sh - script to detect non-PIE binaries (which does not work on Android)
. $(dirname "$(realpath "$0")")/properties.sh
cd ${TERMUX_PREFIX}/bin
for file in *; do
if readelf -h $file 2>/dev/null | grep -q 'Type:[[:space:]]*EXEC'; then
echo $file
fi
done