| 1 | #!/bin/sh |
| 2 | # check-pie.sh - script to detect non-PIE binaries (which does not work on Android) |
| 3 | |
| 4 | cd /data/data/com.termux/files/usr/bin/ |
| 5 | for file in *; do |
| 6 | if readelf -h $file 2>/dev/null | grep -q 'Type:[[:space:]]*EXEC'; then |
| 7 | echo $file |
| 8 | fi |
| 9 | done |