1 # RUN: llvm-mc %s -filetype obj -triple i386-pc-linux -o %t.o
2 # RUN: llvm-dwarfdump -debug-addr %t.o | FileCheck %s
4 # CHECK: .debug_addr contents
6 # CHECK-NEXT: length = 0x0000000c, format = DWARF32, version = 0x0005, addr_size = 0x04, seg_size = 0x00
8 # CHECK-NEXT: 0x00000000
9 # CHECK-NEXT: 0x00000001
11 # CHECK-NEXT: length = 0x00000004, format = DWARF32, version = 0x0005, addr_size = 0x04, seg_size = 0x00
14 .section .debug_abbrev,"",@progbits
15 .byte 1 # Abbreviation Code
16 .section .debug_info,"",@progbits
18 .long 8 # Length of Unit
19 .short 5 # DWARF version number
20 .byte 1 # DWARF unit type
21 .byte 4 # Address Size (in bytes)
22 .long .debug_abbrev # Offset Into Abbrev. Section
24 .section .debug_addr,"",@progbits
26 .long 12 # unit_length = .short + .byte + .byte + .long + .long
28 .byte 4 # address_size
29 .byte 0 # segment_selector_size
33 .section .debug_addr,"",@progbits
35 .long 4 # unit_length = .short + .byte + .byte
37 .byte 4 # address_size
38 .byte 0 # segment_selector_size