[ThinLTO] Add code comment. NFC
[llvm-complete.git] / test / MC / ELF / cfi-rel-offset.s
blob1c877b3e2931502adec3d837c23b04e9c7b20a4a
1 // RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -S --sr --sd | FileCheck %s
3 f:
4 .cfi_startproc
5 nop
6 .cfi_def_cfa_offset 8
7 nop
8 .cfi_def_cfa_register 6
9 nop
10 .cfi_rel_offset 6,16
11 nop
12 .cfi_def_cfa_offset 16
13 nop
14 .cfi_rel_offset 6,0
15 .cfi_endproc
17 // CHECK: Section {
18 // CHECK: Index:
19 // CHECK: Name: .eh_frame
20 // CHECK-NEXT: Type: SHT_X86_64_UNWIND
21 // CHECK-NEXT: Flags [
22 // CHECK-NEXT: SHF_ALLOC
23 // CHECK-NEXT: ]
24 // CHECK-NEXT: Address: 0x0
25 // CHECK-NEXT: Offset: 0x48
26 // CHECK-NEXT: Size: 64
27 // CHECK-NEXT: Link: 0
28 // CHECK-NEXT: Info: 0
29 // CHECK-NEXT: AddressAlignment: 8
30 // CHECK-NEXT: EntrySize: 0
31 // CHECK-NEXT: Relocations [
32 // CHECK-NEXT: ]
33 // CHECK-NEXT: SectionData (
34 // CHECK-NEXT: 0000: 14000000 00000000 017A5200 01781001
35 // CHECK-NEXT: 0010: 1B0C0708 90010000 24000000 1C000000
36 // CHECK-NEXT: 0020: 00000000 05000000 00410E08 410D0641
37 // CHECK-NEXT: 0030: 11067F41 0E104186 02000000 00000000
38 // CHECK-NEXT: )
39 // CHECK-NEXT: }
40 // CHECK-NEXT: Section {
41 // CHECK-NEXT: Index:
42 // CHECK-NEXT: Name: .rela.eh_frame
43 // CHECK-NEXT: Type: SHT_RELA
44 // CHECK-NEXT: Flags [
45 // CHECK-NEXT: ]
46 // CHECK-NEXT: Address: 0x0
47 // CHECK-NEXT: Offset:
48 // CHECK-NEXT: Size: 24
49 // CHECK-NEXT: Link:
50 // CHECK-NEXT: Info:
51 // CHECK-NEXT: AddressAlignment: 8
52 // CHECK-NEXT: EntrySize: 24
53 // CHECK-NEXT: Relocations [
54 // CHECK-NEXT: 0x20 R_X86_64_PC32 .text 0x0
55 // CHECK-NEXT: ]
56 // CHECK: }