58 lines · plain
1# RUN: llvm-mc -triple x86_64-unknown-linux-gnu -filetype obj -o - %s | llvm-dwarfdump --verify -2 3 .text4 5 .section .text.f,"ax",@progbits6 .globl f7 .type f,@function8f:9.Lfunc_begin0:10 pushq $3211 popq %rax12 retq13.Lfunc_end0:14 .size f, .Lfunc_end0-f15 16 .section .text.g,"ax",@progbits17 .globl g18 .type g,@function19g:20.Lfunc_begin1:21 pushq $6422 popq %rax23 retq24.Lfunc_end1:25 .size g, .Lfunc_end1-g26 27 .section .debug_abbrev,"",@progbits28 .byte 1 # Abbreviation Code29 .byte 17 # DW_TAG_compile_unit30 .byte 0 # DW_CHILDREN_no31 .byte 17 # DW_AT_low_pc32 .byte 1 # DW_FORM_addr33 .byte 85 # DW_AT_ranges34 .byte 23 # DW_FORM_sec_offset35 .byte 0 # EOM(1)36 .byte 0 # EOM(2)37 .byte 0 # EOM(3)38 39 .section .debug_info,"",@progbits40.Lcu_begin0:41 .long 20 # Length of Unit42 .short 4 # DWARF version number43 .long .debug_abbrev # Offset Into Abbrev. Section44 .byte 8 # Address Size (in bytes)45 .byte 1 # Abbrev [1] 0xb:0x1f DW_TAG_compile_unit46 .quad 0 # DW_AT_low_pc47 .long .Ldebug_ranges0 # DW_AT_ranges48 49 .section .debug_ranges,"",@progbits50.Ldebug_ranges0:51 .quad .Lfunc_begin052 .quad .Lfunc_end053 .quad .Lfunc_begin154 .quad .Lfunc_end155 .quad 056 .quad 057 58