Stop when binary is static
This commit is contained in:
parent
8d8838518d
commit
aea0068cc3
|
@ -73,6 +73,10 @@ if [ ! -z "${1}" ] ; then
|
||||||
ld_so="$(echo "$libs" | grep -F '/ld-linux-' || echo "$libs" | grep -F '/ld-musl-')"
|
ld_so="$(echo "$libs" | grep -F '/ld-linux-' || echo "$libs" | grep -F '/ld-musl-')"
|
||||||
ld_so="$(basename "$ld_so")"
|
ld_so="$(basename "$ld_so")"
|
||||||
program="$(basename "${1}")"
|
program="$(basename "${1}")"
|
||||||
|
if [ -z "${libs}" ] ; then
|
||||||
|
echo "${0}: Not a dynamic executable"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo "Usage: ${0} <ELF_SRC_PATH> <ELF_DST_PATH>"
|
echo "Usage: ${0} <ELF_SRC_PATH> <ELF_DST_PATH>"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user