1# RUN: llvm-mc -triple x86_64-unknown-linux %s -filetype=obj -o - | \ 2# RUN: llvm-dwarfdump -debug-info - | \ 3# RUN: FileCheck %s 4 5# CHECK: .debug_info.dwo contents: 6 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 12 13# CHECK: 0x00000017: DW_TAG_compile_unit 14# CHECK-NEXT: DW_AT_name ("a.c") 15# CHECK-NEXT: DW_AT_GNU_dwo_id (0x1100001122222222) 16 17 .section .debug_abbrev.dwo, "e", @progbits 18.LAbbrBegin: 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 26 .byte 0 # EOM(1) 27 .byte 0 # EOM(2) 28 .byte 0 # EOM(3) 29.LAbbrEnd: 30 31 .section .debug_info.dwo, "e", @progbits 32.LCUBegin: 33 .long 0xffffffff # DWARF64 mark 34 .quad .LCUEnd-.LCUVersion # Length 35.LCUVersion: 36 .short 4 # Version 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 42.LCUEnd: 43 44 .section .debug_cu_index, "", @progbits 45## Header: 46 .short 2 # Version 47 .space 2 # Padding 48 .long 2 # Section count 49 .long 1 # Unit count 50 .long 4 # Slot count 51## Hash Table of Signatures: 52 .quad 0 53 .quad 0 54 .quad 0x1100001122222222 55 .quad 0 56## Parallel Table of Indexes: 57 .long 0 58 .long 0 59 .long 1 60 .long 0 61## Table of Section Offsets: 62## Row 0: 63 .long 1 # DW_SECT_INFO 64 .long 3 # DW_SECT_ABBREV 65## Row 1: 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 71