| 1 |
# RUN: llvm-mc %s -filetype obj -triple x86_64-pc-linux -o %t.o |
| 2 |
# RUN: llvm-dwarfdump %t.o | FileCheck %s |
| 3 |
|
| 4 |
# CHECK: 0x00000000: Compile Unit: length = 0x00000009, format = DWARF32, version = 0x0005, unit_type = DW_UT_compile, abbr_offset = 0x0000, addr_size = 0x08 (next unit at 0x0000000d) |
| 5 |
# CHECK: 0x0000000c: DW_TAG_compile_unit |
| 6 |
|
| 7 |
.section .debug_abbrev,"",@progbits |
| 8 |
.byte 1 # Abbreviation Code |
| 9 |
.byte 17 # DW_TAG_compile_unit |
| 10 |
.byte 0 # DW_CHILDREN_no |
| 11 |
.byte 0 # EOM(1) |
| 12 |
.byte 0 # EOM(2) |
| 13 |
.byte 0 # EOM(3) |
| 14 |
.section .debug_info,"",@progbits |
| 15 |
.Lcu_begin0: |
| 16 |
.long .Ldebug_info_end0-.Ldebug_info_start0 # Length of Unit |
| 17 |
.Ldebug_info_start0: |
| 18 |
.short 5 # DWARF version number |
| 19 |
.byte 1 # DWARF Unit Type |
| 20 |
.byte 8 # Address Size (in bytes) |
| 21 |
.long .debug_abbrev # Offset Into Abbrev. Section |
| 22 |
.byte 1 # Abbrev [1] 0xc:0x22 DW_TAG_compile_unit |
| 23 |
.Ldebug_info_end0: |
| 24 |
.section .debug_loclists,"",@progbits |
| 25 |
.byte 0 |