summaryrefslogtreecommitdiffstats
path: root/testsuite/dwz.tests/pr24170.sh
blob: ec57a7106783bce9aaa4cfa4c51d5bf9b4d4f7b2 (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
#!/bin/sh

exec=$execs/implptr-64bit-d2o4a8r8t0

pointer_sizes=$(readelf -wi $exec \
		    | grep "Pointer Size:" \
		    | sort -u \
		    | wc -l)

if [ $pointer_sizes -ne 1 ]; then
    exit 77
fi

cp $exec 1
cp 1 2

dwz -m 3 1 2

smaller-than.sh 1 $exec
smaller-than.sh 2 $exec

[ "$(gnu-debugaltlink-name.sh 1)" = "3" ]
[ "$(gnu-debugaltlink-name.sh 2)" = "3" ]

rm -f 1 2 3