forked from OSchip/llvm-project
[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
8f30a65ca3
commit
3fef117ba5
|
@ -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