Files
qt-creator/tests/manual/distribution/elflint
Orgad Shaneh b9f79cbd01 Clean some trailing whitespace
Change-Id: I71bb0436ff06cb8981bf465ef42640b622a9f2bc
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
2014-05-07 16:19:47 +02:00

18 lines
470 B
Bash
Executable File

#!/bin/bash
thisdir=$(dirname "$(readlink -nf $0)")
rootdir=$(cd "${thisdir}/../../.." ; pwd)
find "${rootdir}" -type f -a -executable | while read file ; do
# filter out shell scripts by checking the first 2 bytes
if test `xxd -ps -len 2 ${file}` != 2321 ; then
#echo "${file}"
result=`eu-elflint --gnu-ld --strict "${file}" | grep -v RPATH`
if test -n "${result}" ; then
echo "${file}: ${result}"
fi
fi
done