2 // RUN
: llvm-mc
-filetype
=obj
-triple
=armv7a-none-linux-gnueabi
%s
-o
%t.o
3 // RUN
: ld.lld
%t.o
-o
%t
4 // RUN
: llvm-objdump
-d
--triple
=armv7a-none-linux-gnueabi
%t | FileCheck
%s
6 // Test the R_ARM_SBREL32 relocation which calculates the offset of the Symbol
7 // from the static base. We define the static base to
be the address of the
8 // segment containing the symbol
14 .type _start,%function
23 // RW segment starts here
33 // CHECK
: Disassembly of section
.text:
35 // CHECK-NEXT
: <_start
>:
36 // CHECK-NEXT
: 200d4
: e12fff1e bx
lr
37 // CHECK
: 200d8
: 00 00 00 00 .word 0x00000000
38 // CHECK-NEXT
: 200dc
: 04 00 00 00 .word 0x00000004
39 // CHECK-NEXT
: 200e0
: 08 00 00 00 .word 0x00000008
40 // CHECK-NEXT
: 200e4
: 0c
00 00 00 .word 0x0000000c