Dmitry V. Levin
696f192aea
When scanning files for deps, debuginfo, fixup, and verify_elf, ignore files with type that matches "ELF * shared object, no machine, *" pattern. These are ELF files generated by GNU Guile, ignore them for now.
19 lines
461 B
Bash
Executable File
19 lines
461 B
Bash
Executable File
#!/bin/sh -efu
|
|
while IFS=$'\t' read -r f t; do
|
|
case " $t" in
|
|
*' ELF '*' shared object, no machine, '*)
|
|
continue ;;
|
|
*' ELF '*' shared object, '*)
|
|
echo "$f" ;;
|
|
*' ELF '*' executable, '*)
|
|
[ -x "$f" ] ||
|
|
echo "${0##*/}: ELF executable $f is not executable" >&2
|
|
case "$t" in
|
|
*'dynamically linked'*) echo "$f" ;;
|
|
# klibc binaries are "statically linked (uses shared libs)"
|
|
*'uses shared libs'*) echo "$f" ;;
|
|
esac
|
|
;;
|
|
esac
|
|
done
|