summaryrefslogtreecommitdiff
path: root/src/check-plt.sh
blob: a441b7b767a904ac23e5d93385e9855148659f08 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

LANG=C

status=0

if ! which readelf 2>/dev/null >/dev/null; then
	echo "'readelf' not found; skipping test"
	exit 0
fi

for so in .libs/lib*.so; do
	echo Checking $so for local PLT entries
	readelf -r $so | grep 'JU\?MP_SLO' | grep 'cairo\|pixman' && status=1
done

exit $status