summaryrefslogtreecommitdiffstats
path: root/lld/test/ELF/arm-thumb-interwork-thunk-range.s
blob: 3c013183791b382d7f9e07f1bfb0c2012a54bc0c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// REQUIRES: arm
// RUN: llvm-mc -arm-add-build-attributes -filetype=obj -triple=armv7a-none-linux-gnueabi %s -o %t.o
// RUN: ld.lld %t.o -o /dev/null -image-base=0x80000000

// Test that when the thunk is at a high address we don't get confused with it
// being out of range.

.thumb
.global _start
_start:
b.w foo

.arm
.weak foo
foo:
OpenPOWER on IntegriCloud