2 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
3 # RUN: ld.lld --gdb-index %t.o -o %t
4 # RUN: llvm-dwarfdump -gdb-index %t | FileCheck %s
6 # CHECK: Address area offset = 0x28, has 1 entries:
7 # CHECK-NEXT: Low/High address = [0x201120, 0x201121) (Size: 0x1), CU id = 0
15 .section .debug_abbrev,"",@progbits
16 .byte 1 # Abbreviation Code
17 .byte 17 # DW_TAG_compile_unit
18 .byte 0 # DW_CHILDREN_no
19 .byte 115 # DW_AT_addr_base
20 .byte 23 # DW_FORM_sec_offset
21 .byte 17 # DW_AT_low_pc
22 .byte 27 # DW_FORM_addrx
23 .byte 18 # DW_AT_high_pc
24 .byte 6 # DW_FORM_data4
29 .section .debug_info,"",@progbits
31 .long .Ldebug_info_end0-.Ldebug_info_start0 # Length of Unit
33 .short 5 # DWARF version number
34 .byte 1 # DWARF Unit Type
35 .byte 8 # Address Size (in bytes)
36 .long .debug_abbrev # Offset Into Abbrev. Section
37 .byte 1 # Abbrev [1] 0xc:0x2b DW_TAG_compile_unit
38 .long .Laddr_table_base0 # DW_AT_addr_base
39 .byte 0 # DW_AT_low_pc
40 .long .Lfunc_end0-.Lfunc_begin0 # DW_AT_high_pc
43 .section .debug_addr,"",@progbits