blob: 8d1192c82030393c5f1f6fa27190494413b13212 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
exec=$execs/hello
cp $exec 1
objcopy --compress-debug-sections 1
if readelf -S 1 \
| grep -A1 '\.debug_' \
| grep -v '\.debug_' \
| grep -q 'C'; then
true
else
exit 77
fi
if dwz 1 2>dwz.err; status=$?; then
true
fi
if grep -q "DWARF version 0 unhandled" dwz.err; then
cat dwz.err
exit 1
fi
[ $status -eq 1 ]
rm -f 1 dwz.err
|