1// REQUIRES: arm 2// RUN: llvm-mc -filetype=obj -triple=armv7a-none-linux-gnueabi %s -o %t.o 3// RUN: llvm-mc -filetype=obj -triple=armv7a-none-linux-gnueabi %S/Inputs/abs256.s -o %t256.o 4// RUN: ld.lld %t.o %t256.o -o %t 5// RUN: llvm-objdump -s %t | FileCheck %s --check-prefixes=CHECK,LE 6 7// RUN: llvm-mc -filetype=obj -triple=armv7aeb-none-linux-gnueabi %s -o %t.be.o 8// RUN: llvm-mc -filetype=obj -triple=armv7aeb-none-linux-gnueabi %S/Inputs/abs256.s -o %t256.be.o 9// RUN: ld.lld %t.be.o %t256.be.o -o %t.be 10// RUN: llvm-objdump -s %t.be | FileCheck %s --check-prefixes=CHECK,BE 11 12// RUN: ld.lld --be8 %t.be.o %t256.be.o -o %t.be8 13// RUN: llvm-objdump -s %t.be8 | FileCheck %s --check-prefixes=CHECK,BE 14 15.globl _start 16_start: 17.section .R_ARM_ABS, "ax","progbits" 18 .word foo + 0x24 19 20// CHECK: Contents of section .R_ARM_ABS: 21// LE-NEXT: 200b4 24010000 22// BE-NEXT: 200b4 00000124 23 24.section .R_ARM_PREL, "ax","progbits" 25 .word foo - . + 0x24 26 27// CHECK: Contents of section .R_ARM_PREL: 28// LE-NEXT: 200b8 6c00feff 29// BE-NEXT: 200b8 fffe006c 30 31