brintos

brintos / llvm-project-archived public Read only

0
0
Text · 983 B · 14f1f37 Raw
38 lines · plain
1// REQUIRES: arm2// RUN: llvm-mc --triple=thumbv6m-none-eabi --arm-add-build-attributes -filetype=obj -o %t.o %s3// RUN: not ld.lld %t.o -o /dev/null 2>&1 | FileCheck %s4 5 .section .text.0, "ax", %progbits6 .balign 47 .thumb_func8low:9 bx lr10 11 .section .text.1, "ax", %progbits12 .balign 213 .global _start14 .thumb_func15_start:16// CHECK: {{.*}}.s.tmp.o:(.text.1+0x0): relocation R_ARM_THM_PC8 out of range: 18446744073709551612 is not in [0, 1023]17/// ldr r0, low18 .inst.n 0x48ff19 .reloc 0, R_ARM_THM_PC8, low20// CHECK: {{.*}}.s.tmp.o:(.text.1+0x2): improper alignment for relocation R_ARM_THM_PC8: 0x2 is not aligned to 4 bytes21/// ldr r1, unaligned22 .inst.n 0x49ff23 .reloc 2, R_ARM_THM_PC8, unaligned24// CHECK: {{.*}}.s.tmp.o:(.text.1+0x4): relocation R_ARM_THM_PC8 out of range: 1024 is not in [0, 1023]25/// ldr r2, range26 .inst.n 0x4aff27 .reloc 4, R_ARM_THM_PC8, range28 29 .section .text.2, "ax", %progbits30 .balign 431 nop32 .thumb_func33unaligned:34  bx lr35 .space 102036range:37  bx lr38