diff options
author | Lang Hames <lhames@gmail.com> | 2014-07-18 20:29:36 +0000 |
---|---|---|
committer | Lang Hames <lhames@gmail.com> | 2014-07-18 20:29:36 +0000 |
commit | 76774a57d8aee0066cb58b825d79aea056eb67b1 (patch) | |
tree | 57d45f1953b96c87070600d0bd58331dd75c3457 /llvm/lib/ExecutionEngine/RuntimeDyld/Targets | |
parent | a08db01b35570a04b9e753ce2b7c28a98b3ca4fa (diff) | |
download | bcm5719-llvm-76774a57d8aee0066cb58b825d79aea056eb67b1.tar.gz bcm5719-llvm-76774a57d8aee0066cb58b825d79aea056eb67b1.zip |
[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
Diffstat (limited to 'llvm/lib/ExecutionEngine/RuntimeDyld/Targets')
-rw-r--r-- | llvm/lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldMachOAArch64.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldMachOAArch64.h b/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldMachOAArch64.h index 9f48e4439a5..775ed9ec363 100644 --- a/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldMachOAArch64.h +++ b/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldMachOAArch64.h @@ -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) |