1 # RUN: llvm-mc -triple x86_64-unknown-linux %s -filetype=obj -o - | \
2 # RUN: llvm-dwarfdump -debug-info - | \
5 # CHECK: .debug_info.dwo contents:
7 # CHECK: 0x00000000: Compile Unit:
8 # CHECK-SAME: length = 0x0000000000000018
9 # CHECK-SAME: version = 0x0004
10 # CHECK-SAME: abbr_offset = 0x0000
11 # CHECK-SAME: addr_size = 0x04
13 # CHECK: 0x00000017: DW_TAG_compile_unit
14 # CHECK-NEXT: DW_AT_name ("a.c")
15 # CHECK-NEXT: DW_AT_GNU_dwo_id (0x1100001122222222)
17 .section .debug_abbrev.dwo, "e", @progbits
19 .uleb128 1 # Abbreviation Code
20 .uleb128 17 # DW_TAG_compile_unit
21 .byte 0 # DW_CHILDREN_no
22 .uleb128 3 # DW_AT_name
23 .uleb128 8 # DW_FORM_string
24 .uleb128 0x2131 # DW_AT_GNU_dwo_id
25 .uleb128 7 # DW_FORM_data8
31 .section .debug_info.dwo, "e", @progbits
33 .long 0xffffffff # DWARF64 mark
34 .quad .LCUEnd-.LCUVersion # Length
37 .quad 0 # Abbrev offset
38 .byte 4 # Address size
39 .uleb128 1 # Abbrev [1] DW_TAG_compile_unit
40 .asciz "a.c" # DW_AT_name
41 .quad 0x1100001122222222 # DW_AT_GNU_dwo_id
44 .section .debug_cu_index, "", @progbits
48 .long 2 # Section count
51 ## Hash Table of Signatures:
54 .quad 0x1100001122222222
56 ## Parallel Table of Indexes:
61 ## Table of Section Offsets:
63 .long 1 # DW_SECT_INFO
64 .long 3 # DW_SECT_ABBREV
66 .long .LCUBegin-.debug_info.dwo # Offset in .debug_info.dwo
67 .long .LAbbrBegin-.debug_abbrev.dwo # Offset in .debug_abbrev.dwo
68 ## Table of Section Sizes:
69 .long .LCUEnd-.LCUBegin
70 .long .LAbbrEnd-.LAbbrBegin