brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.2 KiB · 3522bee Raw
41 lines · plain
1# RUN: rm -rf %t && mkdir -p %t2# RUN: llvm-mc -triple=x86_64-pc-win32 -filetype=obj -o %t/COFF_x86_64_IMGREL.o %s3# RUN: llvm-rtdyld -triple=x86_64-pc-win32 -verify -target-addr-start=40960000000000 -check=%s %t/COFF_x86_64_IMGREL.o4.text5	.def	 F;6	.scl	2;7	.type	32;8	.endef9	.globl	__constdata10 11.section    .rdata, "dr", discard, __constdata12    .align	813    __constdata:14	    .quad	015 16.text17	.globl	F18	.align	16, 0x9019 20F:                                      # @F21# rtdyld-check: decode_operand(inst1, 3) = section_addr(COFF_x86_64_IMGREL.o, .text)+0-4096000000000022inst1:23    mov %ebx, F@IMGREL24# rtdyld-check: decode_operand(inst2, 3) = section_addr(COFF_x86_64_IMGREL.o, .rdata)+5-4096000000000025inst2:26    mov %ebx, (__constdata@imgrel+5)27        .data28        .space 37529rel1:30# rtdyld-check: *{4}rel1 = string - section_addr(COFF_x86_64_IMGREL.o, .data)31	.secrel32 string32 33# We explicitly add padding to put string outside of the 16bit address space34# (absolute and as an offset from .data), so that relocations involving35# 32bit addresses / offsets are not accidentally truncated to 16 bits.36        .space 6553637        .global string38        .align 139string:40        .asciz "Hello World\n"41