blob: 7bdaefe49b5e0c6459c7f730522f706046b3010f [file] [log] [blame]
Fangrui Song158b2622018-11-11 18:57:28 +00001# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
2# RUN: llvm-dwarfdump -debug-gnu-pubnames %t.o | FileCheck %s
3
4# CHECK: unit_offset = 0x00000000
5# CHECK: unit_offset = 0x0000000c
6
7 .section .debug_abbrev,"",@progbits
8 .byte 1
9
10 .section .debug_info,"",@progbits
11.Lcu_begin0:
12 .long 8 # Length of Unit
13 .short 4 # DWARF version number
14 .long 0 # Offset Into Abbrev. Section
15 .byte 4 # Address Size
16 .byte 0 # NULL
17.Lcu_begin1:
18 .long 8 # Length of Unit
19 .short 4 # DWARF version number
20 .long 0 # Offset Into Abbrev. Section
21 .byte 4 # Address Size
22 .byte 0 # NULL
23
24 .section .debug_gnu_pubnames,"",@progbits
25 .long 14
26 .short 2 # DWARF Version
27 .long .Lcu_begin0
28 .long 12 # Compilation Unit Length
29 .long 0
30
31 .long 14
32 .short 2 # DWARF Version
33 .long .Lcu_begin1
34 .long 12 # Compilation Unit Length
35 .long 0