brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.1 KiB · 47f064b Raw
72 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# Check R_390_PLT32/64 relocations.14 15        .text16        .section        .text.main17        .globl  main18        .p2align        419        .type   main,@function20main:21        br   %r1422        .size main, .-main23 24        .globl test_plt32_foo25# jitlink-check: *{4}test_plt32_foo = \26# jitlink-check:  stub_addr(elf_reloc.o, foo) - test_plt32_foo27test_plt32_foo:28        .reloc ., R_390_PLT32, foo29        .space 430        .size test_plt32_foo, .-test_plt32_foo31 32        .globl test_plt32_bar33# jitlink-check: *{4}test_plt32_bar = \34# jitlink-check:  stub_addr(elf_reloc.o, bar) - test_plt32_bar35test_plt32_bar:36        .reloc ., R_390_PLT32, bar37        .space 438        .size test_plt32_bar, .-test_plt32_bar39 40       .globl test_plt64_foo41# jitlink-check: *{8}test_plt64_foo = \42# jitlink-check:  stub_addr(elf_reloc.o, foo) - test_plt64_foo43test_plt64_foo:44        .reloc ., R_390_PLT64, foo45        .space 846        .size test_plt64_foo, .-test_plt64_foo47 48       .globl test_plt64_bar49# jitlink-check: *{8}test_plt64_bar = \50# jitlink-check:  stub_addr(elf_reloc.o, bar) - test_plt64_bar51test_plt64_bar:52        .reloc ., R_390_PLT64, bar53        .space 854        .size test_plt64_bar, .-test_plt64_bar55 56        .globl test_plt32dbl_foo57# jitlink-check: *{4}test_plt32dbl_foo = \58# jitlink-check:  (stub_addr(elf_reloc.o, foo) - test_plt32dbl_foo) >> 159test_plt32dbl_foo:60        .reloc ., R_390_PLT32DBL, foo61        .space 462        .size test_plt32dbl_foo, .-test_plt32dbl_foo63 64        .globl test_plt32dbl_bar65# jitlink-check: *{4}test_plt32dbl_bar = \66# jitlink-check:  (stub_addr(elf_reloc.o, bar) - test_plt32dbl_bar) >> 167test_plt32dbl_bar:68        .reloc ., R_390_PLT32DBL, bar69        .space 470        .size test_plt32dbl_bar, .-test_plt32dbl_bar71 72