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 4 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. 8 9// CHECK: warning: lld uses blx instruction, no object with architecture supporting feature detected 10 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 21 22 .thumb 23 .section .text.2, "ax", %progbits 24 .globl thumbfunc 25 .type thumbfunc,%function 26thumbfunc: 27 bx lr 28