1 # RUN: rm -rf %t && mkdir -p %t
2 # RUN: llvm-mc -triple=x86_64-pc-win32 -filetype=obj -o %t/COFF_x86_64_IMGREL.o %s
3 # RUN: llvm-rtdyld -triple=x86_64-pc-win32 -verify -target-addr-start=40960000000000 -check=%s %t/COFF_x86_64_IMGREL.o
11 .section .rdata, "dr", discard, __constdata
21 # rtdyld-check: decode_operand(inst1, 3) = section_addr(COFF_x86_64_IMGREL.o, .text)+0-40960000000000
24 # rtdyld-check: decode_operand(inst2, 3) = section_addr(COFF_x86_64_IMGREL.o, .rdata)+5-40960000000000
26 mov
%ebx
, (__constdata@imgrel+
5)
30 # rtdyld-check: *{4}rel1 = string - section_addr(COFF_x86_64_IMGREL.o, .data)
33 # We explicitly add padding to put string outside of the 16bit address space
34 # (absolute and as an offset from .data), so that relocations involving
35 # 32bit addresses / offsets are not accidentally truncated to 16 bits.
40 .asciz "Hello World\n"