1# REQUIRES: riscv 2# RUN: llvm-mc -filetype=obj -triple=riscv64 %s -o %t.o 3# RUN: not ld.lld -shared %t.o -o /dev/null 2>&1 | FileCheck %s 4 5# CHECK: error: relocation R_RISCV_32 cannot be used against symbol a 6 7.globl a 8 9.data 10.long a 11