blob: a22ba3a1ca2de65476373226bacd08e8e4fe27c2 (
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
25
26
27
28
29
30
|
objcopy --strip-debug $execs/hello 1
cp 1 1.saved
if dwz 1 2>dwz.err; status=$?; then
true
fi
if ! grep -q "\.debug_info section not present" dwz.err; then
cat dwz.err
exit 1
fi
[ $status -eq 0 ]
cmp 1 1.saved
if dwz 1 -o 2 2>dwz.err; status=$?; then
true
fi
if ! grep -q "\.debug_info section not present" dwz.err; then
cat dwz.err
exit 1
fi
[ $status -eq 1 ]
[ ! -f 2 ]
rm -f 1 1.saved dwz.err
|