brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1016 B · 438740c Raw
30 lines · plain
1// REQUIRES: aarch642// RUN: llvm-mc -filetype=obj -triple=aarch64 %s -o %t.o3// RUN: llvm-mc -filetype=obj -triple=aarch64 %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=aarch64_be %s -o %t.be.o8// RUN: llvm-mc -filetype=obj -triple=aarch64_be %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.globl _start13_start:14.section .R_AARCH64_ABS64, "ax",@progbits15  .xword foo + 0x2416 17// S = 0x100, A = 0x2418// S + A = 0x12419// CHECK: Contents of section .R_AARCH64_ABS64:20// LE-NEXT: 210120 24010000 0000000021// BE-NEXT: 210120 00000000 0000012422 23.section .R_AARCH64_PREL64, "ax",@progbits24  .xword foo - . + 0x2425 26// S + A - P = 0x100 + 0x24 - 0x210128 = 0xffffffffffdefffc27// CHECK: Contents of section .R_AARCH64_PREL64:28// LE-NEXT: 210128 fcffdeff ffffffff29// BE-NEXT: 210128 ffffffff ffdefffc30