1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 19:12:56 +02:00

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

relocation that was introduced in r250733.

llvm-svn: 251135
This commit is contained in:
Lang Hames 2015-10-23 18:46:43 +00:00
parent f03686178a
commit 0e71f9be24
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: