1# REQUIRES: riscv 2 3# RUN: split-file %s %t 4# RUN: llvm-mc -filetype=obj -triple=riscv64 %t/main.s -o %t.64.o 5# RUN: llvm-mc -filetype=obj -triple=riscv64 %t/callee.s -o %t.64.2.o 6# RUN: not ld.lld %t.64.o %t.64.2.o -o %t.64 2>&1 | FileCheck %s 7# CHECK: error: target doesn't support split stacks 8 9#--- main.s 10 .globl _start 11 .type _start,@function 12_start: 13 call test 14 ret 15end: 16 .size _start, end-_start 17 .section ".note.GNU-split-stack","",@progbits 18 19 20#--- callee.s 21 .globl test 22 .type test,@function 23test: 24 ret 25