[llvm] Do not replace dead constant references in metadata with undef
[llvm-project.git] / lld / test / ELF / arm-blx-v4t.s
blob6c2b69885a105236296c8a9a562ec6253a6fcd40
1 // REQUIRES: arm
2 // RUN: llvm-mc -arm-add-build-attributes -filetype=obj -triple=arm-none-linux-gnueabi %s -o %t
3 // RUN: ld.lld %t -o /dev/null 2>&1 | FileCheck %s
5 // On Arm v4t there is no blx instruction so all interworking must go via
6 // a thunk. At present we don't support v4t so we give a warning for unsupported
7 // features.
9 // CHECK: warning: lld uses blx instruction, no object with architecture supporting feature detected
11 .text
12 .syntax unified
13 .cpu arm7tdmi
14 .arm
15 .globl _start
16 .type _start,%function
17 .p2align 2
18 _start:
19 bl thumbfunc
20 bx lr
22 .thumb
23 .section .text.2, "ax", %progbits
24 .globl thumbfunc
25 .type thumbfunc,%function
26 thumbfunc:
27 bx lr