1// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -S --sr --sd - | FileCheck %s
2
3f:
4	.cfi_startproc
5	subq	$8, %rsp
6	.cfi_def_cfa_offset 16
7        nop
8	addq	$8, %rsp
9	.cfi_def_cfa_offset 8
10	ret
11	.cfi_endproc
12
13// CHECK:        Section {
14// CHECK:          Index:
15// CHECK:          Name: .eh_frame
16// CHECK-NEXT:     Type: SHT_X86_64_UNWIND
17// CHECK-NEXT:     Flags [
18// CHECK-NEXT:       SHF_ALLOC
19// CHECK-NEXT:     ]
20// CHECK-NEXT:     Address: 0x0
21// CHECK-NEXT:     Offset: 0x50
22// CHECK-NEXT:     Size: 48
23// CHECK-NEXT:     Link: 0
24// CHECK-NEXT:     Info: 0
25// CHECK-NEXT:     AddressAlignment: 8
26// CHECK-NEXT:     EntrySize: 0
27// CHECK-NEXT:     Relocations [
28// CHECK-NEXT:     ]
29// CHECK-NEXT:     SectionData (
30// CHECK-NEXT:       0000: 14000000 00000000 017A5200 01781001
31// CHECK-NEXT:       0010: 1B0C0708 90010000 14000000 1C000000
32// CHECK-NEXT:       0020: 00000000 0A000000 00440E10 450E0800
33// CHECK-NEXT:     )
34// CHECK-NEXT:   }
35
36// CHECK:        Section {
37// CHECK:          Index:
38// CHECK:          Name: .rela.eh_frame
39// CHECK-NEXT:     Type: SHT_RELA
40// CHECK-NEXT:     Flags [
41// CHECK-NEXT:     ]
42// CHECK-NEXT:     Address: 0x0
43// CHECK-NEXT:     Offset:
44// CHECK-NEXT:     Size: 24
45// CHECK-NEXT:     Link:
46// CHECK-NEXT:     Info:
47// CHECK-NEXT:     AddressAlignment: 8
48// CHECK-NEXT:     EntrySize: 24
49// CHECK-NEXT:     Relocations [
50// CHECK-NEXT:       0x20 R_X86_64_PC32 .text 0x0
51// CHECK-NEXT:     ]
52// CHECK:        }
53