1// REQUIRES: arm
2// RUN: llvm-mc -arm-add-build-attributes -filetype=obj -triple=armv7a-none-linux-gnueabi %s -o %t.o
3// RUN: ld.lld %t.o -o /dev/null -image-base=0x80000000
4
5// Test that when the thunk is at a high address we don't get confused with it
6// being out of range.
7
8.thumb
9.global _start
10_start:
11b.w foo
12
13.arm
14.weak foo
15foo:
16