Files
termux-packages/scripts/bin/check-pie.sh
termux-pacman-bot 2d36f8309b Update repo
2025-03-22 01:31:14 +00:00

13 lines
290 B
Bash
Executable File

#!/usr/bin/env bash
# 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