35 lines · plain
1# REQUIRES: system-linux2# RUN: rm -rf %t && mkdir -p %t3# RUN: llvm-mc -triple=systemz-unknown-linux -position-independent \4# RUN: -filetype=obj -o %t/elf_reloc.o %s5#6# RUN: llvm-jitlink -noexec \7# RUN: -slab-allocate 100Kb -slab-address 0xffff0000 -slab-page-size 4096 \8# RUN: -abs external_data=0x1 \9# RUN: -abs foo=0x6ff04040 \10# RUN: -abs bar=0x6ff04048 \11# RUN: -check %s %t/elf_reloc.o12 13 .text14 .section .text.main15 .globl main16 .p2align 417 .type main,@function18main:19 br %r1420 .size main, .-main21 22 .globl test_pc64_foo23# jitlink-check: *{8}test_pc64_foo = foo - test_pc64_foo24test_pc64_foo:25 .reloc ., R_390_PC64, foo26 .space 827 .size test_pc64_foo, .-test_pc64_foo28 29 .globl test_pc64_bar30# jitlink-check: *{8}test_pc64_bar = bar - test_pc64_bar31test_pc64_bar:32 .reloc ., R_390_PC64, bar 33 .space 834 .size test_pc64_bar, .-test_pc64_bar35