~ubuntu-branches/ubuntu/utopic/glib2.0/utopic

« back to all changes in this revision

Viewing changes to glib/pltcheck.sh

Tags: upstream-2.12.12
ImportĀ upstreamĀ versionĀ 2.12.12

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
LANG=C
 
4
 
 
5
status=0
 
6
 
 
7
if ! which readelf 2>/dev/null >/dev/null; then
 
8
        echo "'readelf' not found; skipping test"
 
9
        exit 0
 
10
fi
 
11
 
 
12
for so in .libs/lib*.so; do
 
13
        echo Checking $so for local PLT entries
 
14
        # g_string_insert_c is used in g_string_append_c_inline
 
15
        # unaliased.  Couldn't find a way to fix it.
 
16
        readelf -r $so | grep 'JU\?MP_SLOT' | grep -v '\<g_string_insert_c\>' | grep '\<g_' && status=1
 
17
done
 
18
 
 
19
exit $status