mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 12:41:49 +01: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:
parent
f03686178a
commit
0e71f9be24
@ -96,7 +96,7 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
case COFF::IMAGE_REL_AMD64_ADDR64: {
|
case COFF::IMAGE_REL_AMD64_ADDR64: {
|
||||||
writeBytesUnaligned(0, Target, Value + RE.Addend);
|
writeBytesUnaligned(Value + RE.Addend, Target, 8);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -28,6 +28,12 @@ inst1:
|
|||||||
.Ltmp2:
|
.Ltmp2:
|
||||||
.seh_endproc
|
.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.
|
# Make sure the JIT doesn't bail out on BSS sections.
|
||||||
.bss
|
.bss
|
||||||
bss_check:
|
bss_check:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user