34 lines · plain
1// REQUIRES: arm2// RUN: llvm-mc --triple=armv7a-none-eabi --arm-add-build-attributes -filetype=obj -o %t.o %s3// RUN: not ld.lld -n %t.o -o %t 2>&1 | FileCheck %s4 .section .text.0, "ax", %progbits5 .thumb_func6 .balign 47low:8 bx lr9 nop10 nop11 nop12 nop13 nop14 15 .section .text.1, "ax", %progbits16 .global _start17 .arm18_start:19// CHECK: {{.*}}.s.tmp.o:(.text.1+0x0): relocation R_ARM_LDR_PC_G0 out of range: 4096 is not in [0, 4095]20/// ldr r0, low - 407621 .inst 0xe51f0ff422 .reloc 0, R_ARM_LDR_PC_G0, low23// CHECK: {{.*}}.s.tmp.o:(.text.1+0x4): relocation R_ARM_LDR_PC_G0 out of range: 4096 is not in [0, 4095]24/// ldr r0, high + 410025 .inst 0xe59f0ffc26 .reloc 4, R_ARM_LDR_PC_G0, high27 28 .section .text.229 .thumb_func30 .balign 431high:32 bx lr33 nop34