| 1 |
# RUN: llvm-mc -triple x86_64-unknown-linux-gnu -filetype obj -o - %s | llvm-dwarfdump --verify - |
| 2 |
|
| 3 |
.text |
| 4 |
|
| 5 |
.section .text.f,"ax",@progbits |
| 6 |
.globl f |
| 7 |
.type f,@function |
| 8 |
f: |
| 9 |
.Lfunc_begin0: |
| 10 |
pushq $32 |
| 11 |
popq %rax |
| 12 |
retq |
| 13 |
.Lfunc_end0: |
| 14 |
.size f, .Lfunc_end0-f |
| 15 |
|
| 16 |
.section .text.g,"ax",@progbits |
| 17 |
.globl g |
| 18 |
.type g,@function |
| 19 |
g: |
| 20 |
.Lfunc_begin1: |
| 21 |
pushq $64 |
| 22 |
popq %rax |
| 23 |
retq |
| 24 |
.Lfunc_end1: |
| 25 |
.size g, .Lfunc_end1-g |
| 26 |
|
| 27 |
.section .debug_abbrev,"",@progbits |
| 28 |
.byte 1 # Abbreviation Code |
| 29 |
.byte 17 # DW_TAG_compile_unit |
| 30 |
.byte 0 # DW_CHILDREN_no |
| 31 |
.byte 17 # DW_AT_low_pc |
| 32 |
.byte 1 # DW_FORM_addr |
| 33 |
.byte 85 # DW_AT_ranges |
| 34 |
.byte 23 # DW_FORM_sec_offset |
| 35 |
.byte 0 # EOM(1) |
| 36 |
.byte 0 # EOM(2) |
| 37 |
.byte 0 # EOM(3) |
| 38 |
|
| 39 |
.section .debug_info,"",@progbits |
| 40 |
.Lcu_begin0: |
| 41 |
.long 20 # Length of Unit |
| 42 |
.short 4 # DWARF version number |
| 43 |
.long .debug_abbrev # Offset Into Abbrev. Section |
| 44 |
.byte 8 # Address Size (in bytes) |
| 45 |
.byte 1 # Abbrev [1] 0xb:0x1f DW_TAG_compile_unit |
| 46 |
.quad 0 # DW_AT_low_pc |
| 47 |
.long .Ldebug_ranges0 # DW_AT_ranges |
| 48 |
|
| 49 |
.section .debug_ranges,"",@progbits |
| 50 |
.Ldebug_ranges0: |
| 51 |
.quad .Lfunc_begin0 |
| 52 |
.quad .Lfunc_end0 |
| 53 |
.quad .Lfunc_begin1 |
| 54 |
.quad .Lfunc_end1 |
| 55 |
.quad 0 |
| 56 |
.quad 0 |
| 57 |
|