Reapply 222538 and update tests to explicitly request small code model
[oota-llvm.git] / test / MC / ELF / pr19430.s
1 // RUN: llvm-mc -triple x86_64-pc-linux-gnu %s -filetype=obj -o - \
2 // RUN: -relocation-model=pic -code-model=small \
3 // RUN: | llvm-readobj -r | FileCheck %s
4
5 // Test that we can use .cfi_startproc without a global symbol.
6
7 .text
8 .space 1000
9 .cfi_startproc
10  .cfi_endproc
11
12 // CHECK:      Relocations [
13 // CHECK-NEXT:   Section (5) .rela.eh_frame {
14 // CHECK-NEXT:     0x20 R_X86_64_PC32 .text 0x3E8
15 // CHECK-NEXT:   }
16 // CHECK-NEXT: ]