[JITLink][arm64] Support arm64e JIT'd code (initially enabled for MachO only).
[llvm-project.git] / lld / test / ELF / crel-rel-mixed.s
bloba69fa1c09b436e62ac65d6862dbc56bdc6d711ff
1 # REQUIRES: arm
2 # RUN: rm -rf %t && split-file %s %t && cd %t
3 # RUN: llvm-mc -filetype=obj -triple=armv7a -crel a.s -o a.o
4 # RUN: llvm-mc -filetype=obj -triple=armv7a b.s -o b.o
5 # RUN: not ld.lld -r a.o b.o 2>&1 | FileCheck %s --check-prefix=ERR
7 # ERR: error: b.o:(.rel.text): REL cannot be converted to CREL
9 #--- a.s
10 .global _start, foo
11 _start:
12 bl foo
13 bl .text.foo
15 .section .text.foo,"ax"
16 foo:
17 nop
19 #--- b.s
20 .globl fb
21 fb:
22 bl fb