1 # RUN: llvm-mc %s -filetype obj -triple i386-pc-linux -o - | \
2 # RUN: llvm-dwarfdump -debug-addr - 2> %t.err | FileCheck %s
3 # RUN: FileCheck %s -input-file %t.err -check-prefix=ERR
5 # ERR: version 6 of .debug_addr section at offset 0x0 is not supported
8 # CHECK: .debug_addr contents
9 # CHECK-NEXT: length = 0x0000000c, version = 0x0005, addr_size = 0x04, seg_size = 0x00
10 # CHECK-NEXT: Addrs: [
11 # CHECK-NEXT: 0x00000002
12 # CHECK-NEXT: 0x00000003
16 .section .debug_abbrev,"",@progbits
17 .byte 1 # Abbreviation Code
18 .section .debug_info,"",@progbits
20 .long 8 # Length of Unit
21 .short 5 # DWARF version number
22 .byte 1 # DWARF unit type
23 .byte 4 # Address Size (in bytes)
24 .long .debug_abbrev # Offset Into Abbrev. Section
26 .section .debug_addr,"",@progbits
28 .long 12 # unit_length = .short + .byte + .byte + .long + .long
30 .byte 4 # address_size
31 .byte 0 # segment_selector_size
35 .section .debug_addr,"",@progbits
37 .long 12 # unit_length = .short + .byte + .byte + .long + .long
39 .byte 4 # address_size
40 .byte 0 # segment_selector_size