summaryrefslogtreecommitdiff
path: root/tests/run-readelf-fat-lto.sh
blob: e03cec3a9e1fe10b0f189ec2836a915fa13efee4 (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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
. $srcdir/test-subr.sh

# - s.c
# int main_argc_remaining;
#
# int main_argc() {
#   int result = 0;
#   if (main_argc_remaining)
#     result = 0;
#
#   return 0;
# }
#
# gcc -gdwarf-5 -c -o testfile-dwarf5-fat-lto.o -flto -O s.c -g -ffat-lto-objects

testfiles testfile-dwarf5-fat-lto.o
testrun_compare ${abs_top_builddir}/src/readelf --debug-dump=loc --debug-dump=ranges -N -U testfile-dwarf5-fat-lto.o << EOF

DWARF section [26] '.debug_loclists' at offset 0x7db:
Table at Offset 0x0:

 Length:               24
 DWARF version:         5
 Address size:          8
 Segment size:          0
 Offset entries:        0
 CU [     c] base: 000000000000000000

  Offset: c, Index: 0
    view pair 2, 3

  Offset: e, Index: 2
    start_length 0x0, 0
        [ 0] lit0
        [ 1] stack_value
    end_of_list


DWARF section [30] '.debug_rnglists' at offset 0x827:
Table at Offset 0x0:

 Length:               19
 DWARF version:         5
 Address size:          8
 Segment size:          0
 Offset entries:        0
 CU [     c] base: 000000000000000000

  Offset: c, Index: 0
    start_length 0x0, 8
    end_of_list

EOF