1# RUN: yaml2obj %s -o %t
2# RUN: lldb-test object-file -contents %t | FileCheck %s
3
4# CHECK:      Name: .debug_info
5# CHECK:      Data:  (
6# CHECK-NEXT:     0000: 47000000 04000000 00000801 00000000 0C002D00 00000000 00003700 00000000
7# CHECK-NEXT:     0020: 00000000 00000800 00000200 00000000 00000008 00000001 6F490000 00010243
8# CHECK-NEXT:     0040: 00000003 4B000000 050400
9# CHECK-NEXT: )
10
11--- !ELF
12FileHeader:      
13  Class:           ELFCLASS64
14  Data:            ELFDATA2LSB
15  Type:            ET_REL
16  Machine:         EM_AARCH64
17Sections:        
18  - Name:            .text
19    Type:            SHT_PROGBITS
20    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
21    AddressAlign:    0x0000000000000004
22    Content:         E0031B32C0035FD6
23  - Name:            .debug_str
24    Type:            SHT_PROGBITS
25    Flags:           [ SHF_MERGE, SHF_STRINGS ]
26    AddressAlign:    0x0000000000000001
27    Size:            0x50
28  - Name:            .debug_abbrev
29    Type:            SHT_PROGBITS
30    AddressAlign:    0x0000000000000001
31    Size:            0x10
32  - Name:            .debug_info
33    Type:            SHT_PROGBITS
34    AddressAlign:    0x0000000000000001
35    Content:         470000000400000000000801000000000C0000000000000000000000000000000000000000000800000002000000000000000008000000016F000000000102430000000300000000050400
36  - Name:            .rela.debug_info
37    Type:            SHT_RELA
38    Link:            .symtab
39    AddressAlign:    0x0000000000000008
40    Info:            .debug_info
41    Relocations:     
42      - Offset:          0x0000000000000006
43        Symbol:          .debug_abbrev
44        Type:            R_AARCH64_ABS32
45      - Offset:          0x000000000000000C
46        Symbol:          .debug_str
47        Type:            R_AARCH64_ABS32
48      - Offset:          0x0000000000000012
49        Symbol:          .debug_str
50        Type:            R_AARCH64_ABS32
51        Addend:          45
52      - Offset:          0x0000000000000016
53        Symbol:          .debug_line
54        Type:            R_AARCH64_ABS32
55      - Offset:          0x000000000000001A
56        Symbol:          .debug_str
57        Type:            R_AARCH64_ABS32
58        Addend:          55
59      - Offset:          0x000000000000001E
60        Symbol:          .text
61        Type:            R_AARCH64_ABS64
62      - Offset:          0x000000000000002B
63        Symbol:          .text
64        Type:            R_AARCH64_ABS64
65      - Offset:          0x0000000000000039
66        Symbol:          .debug_str
67        Type:            R_AARCH64_ABS32
68        Addend:          73
69      - Offset:          0x0000000000000044
70        Symbol:          .debug_str
71        Type:            R_AARCH64_ABS32
72        Addend:          75
73  - Name:            .debug_line
74    Type:            SHT_PROGBITS
75    AddressAlign:    0x0000000000000001
76    Size:            0x20
77Symbols:         
78  - Name:            .text
79    Type:            STT_SECTION
80    Section:         .text
81  - Name:            .debug_str
82    Type:            STT_SECTION
83    Section:         .debug_str
84  - Name:            .debug_abbrev
85    Type:            STT_SECTION
86    Section:         .debug_abbrev
87  - Name:            .debug_info
88    Type:            STT_SECTION
89    Section:         .debug_info
90  - Name:            .debug_line
91    Type:            STT_SECTION
92    Section:         .debug_line
93...
94