Skip to content

Instantly share code, notes, and snippets.

@kratz00
Created June 12, 2015 14:33
Show Gist options
  • Save kratz00/99533ce856a4d998b44a to your computer and use it in GitHub Desktop.
Save kratz00/99533ce856a4d998b44a to your computer and use it in GitHub Desktop.
RPATH checker
#!/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