1 // RUN
: llvm-mc
-filetype
=obj
-triple x86_64-pc-linux-gnu
%s
-o
- | llvm-readobj
-S
--sd
- | FileCheck
%s
3 // Test that
.debug_line is populated. TODO: This test should really be using
4 // llvm-dwarfdump
, but it cannot parse this particular object file. The content
5 // of
.debug_line was checked using GNU binutils:
7 // $ objdump
--dwarf
=decodedline debug-line.o
9 // File name Line number Starting address
15 // CHECK
: Name
: .debug_line
16 // CHECK-NEXT
: Type
: SHT_PROGBITS
17 // CHECK-NEXT
: Flags
[
19 // CHECK-NEXT
: Address
: 0x0
20 // CHECK-NEXT
: Offset
:
21 // CHECK-NEXT
: Size
: 58
22 // CHECK-NEXT
: Link
: 0
23 // CHECK-NEXT
: Info
: 0
24 // CHECK-NEXT
: AddressAlignment
: 1
25 // CHECK-NEXT
: EntrySize
: 0
26 // CHECK-NEXT
: SectionData
(
28 // CHECK-NEXT
: 0000: 36000000 04001D00
00000101 01FB0E0D
29 // CHECK-NEXT
: 0010: 00010101 01000000 01000001 00666F6F
30 // CHECK-NEXT
: 0020: 2E630000
00000000 09020000 00000000
31 // CHECK-NEXT
: 0030: 0000154B 21020800 0101
35 .section .debug_line,"",@progbits
42 // Test that
.loc works with values, not just instructions.