1 # RUN: rm -rf %t && mkdir -p %t
2 # RUN: llvm-mc -triple=x86_64-windows-msvc -relax-relocations=false \
3 # RUN: -position-independent -filetype=obj -o %t/coff_sm_reloc.o %s
4 # RUN: llvm-jitlink -noexec \
5 # RUN: -slab-allocate 100Kb -slab-address 0xfff00000 -slab-page-size 4096 \
6 # RUN: -abs external_data=0xdeadbeef \
7 # RUN: -check %s %t/coff_sm_reloc.o
20 # Check a IMAGE_REL_AMD64_REL32 relocation to local function symbol.
21 # jitlink-check: decode_operand(test_rel32_func, 0) = named_func - next_pc(test_rel32_func)
26 .globl test_rel32_func
31 # Check a IMAGE_REL_AMD64_REL32 relocation to local data symbol.
32 # jitlink-check: decode_operand(test_rel32_data, 4) = named_data - next_pc(test_rel32_data)
37 .globl test_rel32_data
40 leaq named_data
(%rip
), %rax
42 # Check IMAGE_REL_AMD64_ADDR64 sets address of symbol to the fixup position.
43 # jitlink-check: *{8}(test_addr64) = named_data
54 # Local named data/func that is used in conjunction with other test cases