1 // RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -s -sd | FileCheck %s 2 3 // Test that .debug_line is populated. 4 5 // CHECK: Section { 6 // CHECK: Name: .debug_line 7 // CHECK-NEXT: Type: SHT_PROGBITS 8 // CHECK-NEXT: Flags [ 9 // CHECK-NEXT: ] 10 // CHECK-NEXT: Address: 0x0 11 // CHECK-NEXT: Offset: 0x48 12 // CHECK-NEXT: Size: 72 13 // CHECK-NEXT: Link: 0 14 // CHECK-NEXT: Info: 0 15 // CHECK-NEXT: AddressAlignment: 1 16 // CHECK-NEXT: EntrySize: 0 17 // CHECK-NEXT: SectionData ( 18 // CHECK-NEXT: 0000: 44000000 02001C00 00000101 FB0E0D00 19 // CHECK-NEXT: 0010: 01010101 00000001 00000100 666F6F2E 20 // CHECK-NEXT: 0020: 63000000 00000009 02000000 00000000 21 // CHECK-NEXT: 0030: 00150205 00010100 09020000 00000000 22 // CHECK-NEXT: 0040: 00001602 43000101 23 // CHECK-NEXT: ) 24 // CHECK-NEXT: } 25 26 .section .debug_line,"",@progbits 27 .text 28 29 .file 1 "foo.c" 30 .loc 1 4 0 31 subq $8, %rsp 32 33 // Test that .loc works with values, not just instructions. 34 35 .loc 1 5 0 36 .byte 0xc3 37