From d0a97d0bf7c5fbb6a794d2dc589d1feb05065f88 Mon Sep 17 00:00:00 2001 From: hjk Date: Fri, 17 Apr 2009 09:03:41 +0200 Subject: [PATCH] tests: add a script that runs elflint on all binaries --- tests/manual/distribution/elflint | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 tests/manual/distribution/elflint diff --git a/tests/manual/distribution/elflint b/tests/manual/distribution/elflint new file mode 100755 index 00000000000..9f709a77c78 --- /dev/null +++ b/tests/manual/distribution/elflint @@ -0,0 +1,17 @@ +#!/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 + +