brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.0 KiB · 91037c8 Raw
31 lines · plain
1// REQUIRES: arm2// RUN: llvm-mc -filetype=obj -triple=armv7a-none-linux-gnueabi %s -o %t.o3// RUN: llvm-mc -filetype=obj -triple=armv7a-none-linux-gnueabi %S/Inputs/abs256.s -o %t256.o4// RUN: ld.lld %t.o %t256.o -o %t5// RUN: llvm-objdump -s %t | FileCheck %s --check-prefixes=CHECK,LE6 7// RUN: llvm-mc -filetype=obj -triple=armv7aeb-none-linux-gnueabi %s -o %t.be.o8// RUN: llvm-mc -filetype=obj -triple=armv7aeb-none-linux-gnueabi %S/Inputs/abs256.s -o %t256.be.o9// RUN: ld.lld %t.be.o %t256.be.o -o %t.be10// RUN: llvm-objdump -s %t.be | FileCheck %s --check-prefixes=CHECK,BE11 12// RUN: ld.lld --be8 %t.be.o %t256.be.o -o %t.be813// RUN: llvm-objdump -s %t.be8 | FileCheck %s --check-prefixes=CHECK,BE14 15.globl _start16_start:17.section .R_ARM_ABS, "ax","progbits"18  .word foo + 0x2419 20// CHECK: Contents of section .R_ARM_ABS:21// LE-NEXT:  200b4 2401000022// BE-NEXT:  200b4 0000012423 24.section .R_ARM_PREL, "ax","progbits"25  .word foo - . + 0x2426 27// CHECK: Contents of section .R_ARM_PREL:28// LE-NEXT:  200b8 6c00feff29// BE-NEXT:  200b8 fffe006c30 31