mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-13 23:18:51 +00:00
[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:
parent
b33343ddb1
commit
2f7d3cda4a
@ -96,7 +96,7 @@ public:
|
||||
}
|
||||
|
||||
case COFF::IMAGE_REL_AMD64_ADDR64: {
|
||||
writeBytesUnaligned(0, Target, Value + RE.Addend);
|
||||
writeBytesUnaligned(Value + RE.Addend, Target, 8);
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user