20 lines · plain
1# REQUIRES: arm-registered-target2## Test CREL for a 32-bit big-endian target.3## CREL enables the RELA form even if ARM normally uses REL.4 5# RUN: llvm-mc -filetype=obj -crel -triple=armv8 %s -o %t.o6# RUN: llvm-readelf -Sr %t.o | FileCheck %s7 8# CHECK: [ 3] .data PROGBITS 00000000 {{.*}} 000008 00 WA 0 0 19# CHECK-NEXT: [ 4] .crel.data CREL 00000000 {{.*}} 00000a 01 I 5 3 110 11# CHECK: Relocation section '.crel.data' at offset {{.*}} contains 2 entries:12# CHECK-NEXT: Offset Info Type Sym. Value Symbol's Name + Addend13# CHECK-NEXT: 00000000 {{.*}} R_ARM_NONE 00000000 a0 - 114# CHECK-NEXT: 00000004 {{.*}} R_ARM_ABS32 00000000 a3 + 400015 16.data17.reloc .+0, BFD_RELOC_NONE, a0-118.reloc .+4, BFD_RELOC_32, a3+0x400019.quad 020