2 // RUN
: llvm-mc
--triple
=thumbv6m-none-eabi
--arm-add-build-attributes
-filetype
=obj
-o
%t.o
%s
3 // RUN
: not ld.lld
%t.o
-o
/dev
/null
2>&1 | FileCheck
%s
5 .section .text.0, "ax", %progbits
11 .section .text.1, "ax", %progbits
16 // CHECK
: {{.*}}.s.tmp.o:(.text.1+0x0): relocation R_ARM_THM_PC8 out of range: 18446744073709551612 is not in [0, 1023]
19 .reloc 0, R_ARM_THM_PC8, low
20 // CHECK
: {{.*}}.s.tmp.o:(.text.1+0x2): improper alignment for relocation R_ARM_THM_PC8: 0x2 is not aligned to 4 bytes
23 .reloc 2, R_ARM_THM_PC8, unaligned
24 // CHECK
: {{.*}}.s.tmp.o:(.text.1+0x4): relocation R_ARM_THM_PC8 out of range: 1024 is not in [0, 1023]
27 .reloc 4, R_ARM_THM_PC8, range
29 .section .text.2, "ax", %progbits