blob: a32a46cc040a6bf4b95acf8dc758b1c018099a86 (
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
|
if ! $execs/dwz-for-test --odr -v 2>/dev/null; then
exit 77
fi
cp $execs/odr-union 1
aaa=$(readelf -wi 1 | grep -c 'DW_AT_name.*:.*aaa')
[ $aaa -eq 2 ]
bbb=$(readelf -wi 1 | grep -c 'DW_AT_name.*:.*bbb')
[ $bbb -eq 2 ]
ccc=$(readelf -wi 1 | grep -c 'DW_AT_name.*:.*ccc')
[ $ccc -eq 2 ]
$execs/dwz-for-test --odr 1
verify-dwarf.sh 1
aaa=$(readelf -wi 1 | grep -c 'DW_AT_name.*:.*aaa')
[ $aaa -eq 1 ]
bbb=$(readelf -wi 1 | grep -c 'DW_AT_name.*:.*bbb')
[ $bbb -eq 1 ]
ccc=$(readelf -wi 1 | grep -c 'DW_AT_name.*:.*ccc')
[ $ccc -eq 1 ]
rm -f 1
|