1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 12:41:49 +01:00

[MCJIT] [AArch64] Make sure to propegate ARM64_RELOC_ADDEND values into the

RelocationEntry.

No test case yet, as this primarily hits GOT entries, which RuntimeDyldChecker
can't examine yet. I'm actively working on features that will enable us to
test this.

llvm-svn: 213408
This commit is contained in:
Lang Hames 2014-07-18 20:29:36 +00:00
parent 62ccb2f8d9
commit 1bc9d3795a

View File

@ -59,8 +59,10 @@ public:
RelocationValueRef Value(
getRelocationValueRef(ObjImg, RelI, RE, ObjSectionToID, Symbols));
if (HasExplicitAddend)
if (HasExplicitAddend) {
RE.Addend = ExplicitAddend;
Value.Addend = ExplicitAddend;
}
bool IsExtern = Obj.getPlainRelocationExternal(RelInfo);
if (!IsExtern && RE.IsPCRel)