Fix indentation to use tabs
This commit is contained in:
parent
db29be839a
commit
972b622794
@ -11,27 +11,27 @@ esac
|
|||||||
# Check for useful libs
|
# Check for useful libs
|
||||||
list_libs=""
|
list_libs=""
|
||||||
for lib in $(readelf -d $1 | awk '$2 ~ /\(?NEEDED\)?/ { sub(/\[/,"",$NF); sub(/\]/,"",$NF); print $NF }'); do
|
for lib in $(readelf -d $1 | awk '$2 ~ /\(?NEEDED\)?/ { sub(/\[/,"",$NF); sub(/\]/,"",$NF); print $NF }'); do
|
||||||
echo -n "checking if $lib is needed: "
|
echo -n "checking if $lib is needed: "
|
||||||
libpath=$(ldd $1 | awk -v lib=$lib '$1 == lib { print $3 }')
|
libpath=$(ldd $1 | awk -v lib=$lib '$1 == lib { print $3 }')
|
||||||
list_libs="$list_libs $libpath"
|
list_libs="$list_libs $libpath"
|
||||||
foundone=0
|
foundone=0
|
||||||
for fct in $(nm -D $libpath | awk '$2 == "R" || $2 == "D" || $2 == "T" || $2 == "W" || $2 == "B" { print $3 }'); do
|
for fct in $(nm -D $libpath | awk '$2 == "R" || $2 == "D" || $2 == "T" || $2 == "W" || $2 == "B" { print $3 }'); do
|
||||||
nm -D $1 | awk -v s=$fct '$1 == "U" && $2 == s { found=1 ; exit } END { if (found != 1) { exit 1 } }' && foundone=1 && break
|
nm -D $1 | awk -v s=$fct '$1 == "U" && $2 == s { found=1 ; exit } END { if (found != 1) { exit 1 } }' && foundone=1 && break
|
||||||
done
|
done
|
||||||
if [ $foundone -eq 1 ]; then
|
if [ $foundone -eq 1 ]; then
|
||||||
echo -n "yes... "
|
echo -n "yes... "
|
||||||
nm -D $1 | awk -v s=$fct '$1 == "U" && $2 == s { print $2 ; exit }'
|
nm -D $1 | awk -v s=$fct '$1 == "U" && $2 == s { print $2 ; exit }'
|
||||||
else
|
else
|
||||||
echo "no"
|
echo "no"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
for sym in $(nm -D $1 | awk '$1 == "U" { print $2 }'); do
|
for sym in $(nm -D $1 | awk '$1 == "U" { print $2 }'); do
|
||||||
found=0
|
found=0
|
||||||
for l in ${list_libs} ; do
|
for l in ${list_libs} ; do
|
||||||
nm -D $l | awk -v s=$sym '($2 == "R" || $2 == "D" || $2 == "T" || $2 == "W" || $2 == "B") && $3 == s { found=1 ; exit } END { if (found != 1) { exit 1 } }' && found=1 && break
|
nm -D $l | awk -v s=$sym '($2 == "R" || $2 == "D" || $2 == "T" || $2 == "W" || $2 == "B") && $3 == s { found=1 ; exit } END { if (found != 1) { exit 1 } }' && found=1 && break
|
||||||
done
|
done
|
||||||
if [ $found -eq 0 ]; then
|
if [ $found -eq 0 ]; then
|
||||||
echo "Unresolved symbol $sym"
|
echo "Unresolved symbol $sym"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
Loading…
x
Reference in New Issue
Block a user