1# REQUIRES: x86 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 5 6# CHECK: Address area offset = 0x28, has 1 entries: 7# CHECK-NEXT: Low/High address = [0x201120, 0x201121) (Size: 0x1), CU id = 0 8 9 .text 10 .globl main 11main: # @main 12.Lfunc_begin0: 13 retq 14.Lfunc_end0: 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 25 .byte 0 # EOM(1) 26 .byte 0 # EOM(2) 27 .byte 0 # EOM(3) 28 29 .section .debug_info,"",@progbits 30.Lcu_begin0: 31 .long .Ldebug_info_end0-.Ldebug_info_start0 # Length of Unit 32.Ldebug_info_start0: 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 41.Ldebug_info_end0: 42 43 .section .debug_addr,"",@progbits 44 .long 12 45 .short 5 46 .byte 8 47 .byte 0 48.Laddr_table_base0: 49 .quad .Lfunc_begin0 50