-
-
Save kratz00/99533ce856a4d998b44a to your computer and use it in GitHub Desktop.
RPATH checker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# run script in $TOP/out/target/L4T/opt/nouveau/lib | |
shopt -s globstar | |
for LIB in **/*.so; do | |
RET=$(objdump -p "${LIB}" | grep RPATH) | |
if [ -z "${RET}" ] | |
then | |
continue | |
fi | |
if [ "${RET//[$' ']}" != "RPATH/opt/nouveau/lib" ] # -a "x$RET" != "x" ] | |
then | |
echo "${LIB}" | |
echo "$(printf "\t")${RET}" | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment