[ELF] Make SyntheticSection parameter order match InputSection
[llvm-project.git] / lld / test / ELF / arm-ldrlit-err.s
blob2543421551042f06cc0900bf8e794de99545c18f
1 // REQUIRES: arm
2 // RUN: llvm-mc --triple=armv7a-none-eabi --arm-add-build-attributes -filetype=obj -o %t.o %s
3 // RUN: not ld.lld -n %t.o -o %t 2>&1 | FileCheck %s
4 .section .text.0, "ax", %progbits
5 .thumb_func
6 .balign 4
7 low:
8 bx lr
9 nop
10 nop
11 nop
12 nop
13 nop
15 .section .text.1, "ax", %progbits
16 .global _start
17 .arm
18 _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 - 4076
21 .inst 0xe51f0ff4
22 .reloc 0, R_ARM_LDR_PC_G0, low
23 // 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 + 4100
25 .inst 0xe59f0ffc
26 .reloc 4, R_ARM_LDR_PC_G0, high
28 .section .text.2
29 .thumb_func
30 .balign 4
31 high:
32 bx lr
33 nop