32 lines · plain
1# RUN: llvm-mc -triple=i386-unknown-linux-gnu -filetype=obj -o %t.o %s2# RUN: llvm-jitlink -noexec \3# RUN: -slab-allocate 100Kb -slab-address 0xfff00000 -slab-page-size 4096 \4# RUN: -abs external_data=0x100 \5# RUN: -check %s %t.o6 7# Test ELF 32 bit absolute relocations8 9 .text10 .globl main11 .p2align 4, 0x9012 .type main,@function13main:14 retl15 .size main, .-main16 17# jitlink-check: decode_operand(foo, 0) = external_data18 .globl foo19 .p2align 4, 0x9020 .type foo,@function21foo:22 movl external_data, %eax23 .size foo, .-foo24 25# jitlink-check: decode_operand(bar, 0) = external_data + 400026 .globl bar27 .p2align 4, 0x9028 .type bar,@function29bar:30 movl external_data + 4000, %eax31 .size bar, .-bar32