23 lines · plain
1# REQUIRES: arm2# RUN: rm -rf %t && split-file %s %t && cd %t3# RUN: llvm-mc -filetype=obj -triple=armv7a -crel a.s -o a.o4# RUN: llvm-mc -filetype=obj -triple=armv7a b.s -o b.o5# RUN: not ld.lld -r a.o b.o 2>&1 | FileCheck %s --check-prefix=ERR6 7# ERR: error: b.o:(.rel.text): REL cannot be converted to CREL8 9#--- a.s10.global _start, foo11_start:12 bl foo13 bl .text.foo14 15.section .text.foo,"ax"16foo:17 nop18 19#--- b.s20.globl fb21fb:22 bl fb23