1 # RUN: llvm-mc %s -filetype obj -triple i386-pc-linux -o - | \
2 # RUN: not llvm-dwarfdump -debug-addr - 2> %t.err | FileCheck %s
3 # RUN: FileCheck %s -input-file %t.err -check-prefix=ERR
5 # ERR: address table at offset 0x0 has unsupported version 6
6 # ERR: address table at offset 0x20 has unsupported version 4
9 # CHECK: .debug_addr contents
10 # CHECK-NEXT: length = 0x0000000c, format = DWARF32, version = 0x0005, addr_size = 0x04, seg_size = 0x00
11 # CHECK-NEXT: Addrs: [
12 # CHECK-NEXT: 0x00000002
13 # CHECK-NEXT: 0x00000003
17 .section .debug_abbrev,"",@progbits
18 .byte 1 # Abbreviation Code
19 .section .debug_info,"",@progbits
21 .long 8 # Length of Unit
22 .short 5 # DWARF version number
23 .byte 1 # DWARF unit type
24 .byte 4 # Address Size (in bytes)
25 .long .debug_abbrev # Offset Into Abbrev. Section
27 .section .debug_addr,"",@progbits
29 .long 12 # unit_length = .short + .byte + .byte + .long + .long
31 .byte 4 # address_size
32 .byte 0 # segment_selector_size
36 .section .debug_addr,"",@progbits
38 .long 12 # unit_length = .short + .byte + .byte + .long + .long
40 .byte 4 # address_size
41 .byte 0 # segment_selector_size
45 .section .debug_addr,"",@progbits
47 .long 12 # unit_length = .short + .byte + .byte + .long + .long
49 .byte 4 # address_size
50 .byte 0 # segment_selector_size