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: .debug_addr table at offset 0x0 has version 4 which is different from the version suggested by the DWARF unit header: 5
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: 0x00000000
12 # CHECK-NEXT: 0x00000001
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