2 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t1.o
3 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %p/Inputs/x86-64-split-stack-main.s -o %t2.o
5 # RUN: not ld.lld --defsym __morestack=0x100 %t1.o %t2.o -o %t 2>&1 | FileCheck %s
7 # An unknown prologue gives a match failure
8 # CHECK: unable to adjust the enclosing function's
10 # RUN: not ld.lld -r --defsym __morestack=0x100 %t1.o %t2.o -o %t 2>&1 | FileCheck %s -check-prefix=RELOCATABLE
11 # RELOCATABLE: Cannot mix split-stack and non-split-stack in a relocatable link
15 .global unknown_prologue
16 .type unknown_prologue,@function
29 .size unknown_prologue,. - unknown_prologue
31 .section .note.GNU-split-stack,"",@progbits