[RuntimeDyld][COFF] Fix a think-o in the handling of the IMAGE_REL_AMD64_ADDR64

relocation that was introduced in r250733.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@251135 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Lang Hames 2015-10-23 18:46:43 +00:00
parent b33343ddb1
commit 2f7d3cda4a
2 changed files with 7 additions and 1 deletions

View File

@ -96,7 +96,7 @@ public:
}
case COFF::IMAGE_REL_AMD64_ADDR64: {
writeBytesUnaligned(0, Target, Value + RE.Addend);
writeBytesUnaligned(Value + RE.Addend, Target, 8);
break;
}

View File

@ -28,6 +28,12 @@ inst1:
.Ltmp2:
.seh_endproc
.data
.globl x # @x
# rtdyld-check: *{8}x = F
x:
.quad F
# Make sure the JIT doesn't bail out on BSS sections.
.bss
bss_check: