Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tobias Hunger
qt-creator
Commits
d0a97d0b
Commit
d0a97d0b
authored
Apr 17, 2009
by
hjk
Browse files
tests: add a script that runs elflint on all binaries
parent
bc89f5dc
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/manual/distribution/elflint
0 → 100755
View file @
d0a97d0b
#!/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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment