[MCJIT] Revert partial RuntimeDyldELF cleanup that was prematurely committed in
authorLang Hames <lhames@gmail.com>
Sun, 7 Sep 2014 04:13:13 +0000 (04:13 +0000)
committerLang Hames <lhames@gmail.com>
Sun, 7 Sep 2014 04:13:13 +0000 (04:13 +0000)
r217328.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217329 91177308-0d34-0410-b5e6-96231b3b80d8

lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp

index 30c849e..803e5cb 100644 (file)
@@ -1034,11 +1034,11 @@ relocation_iterator RuntimeDyldELF::processRelocationRef(
           createStubFunction(Section.Address + Section.StubOffset);
 
       RelocationEntry REmovz_g3(SectionID, StubTargetAddr - Section.Address,
-                                ELF::R_AARCH64_MOVW_UABS_G3, Value.Offset + Addend);
+                                ELF::R_AARCH64_MOVW_UABS_G3, Value.Addend);
       RelocationEntry REmovk_g2(SectionID, StubTargetAddr - Section.Address + 4,
-                                ELF::R_AARCH64_MOVW_UABS_G2_NC, Value.Offset + Addend);
+                                ELF::R_AARCH64_MOVW_UABS_G2_NC, Value.Addend);
       RelocationEntry REmovk_g1(SectionID, StubTargetAddr - Section.Address + 8,
-                                ELF::R_AARCH64_MOVW_UABS_G1_NC, Value.Offset + Addend);
+                                ELF::R_AARCH64_MOVW_UABS_G1_NC, Value.Addend);
       RelocationEntry REmovk_g0(SectionID,
                                 StubTargetAddr - Section.Address + 12,
                                 ELF::R_AARCH64_MOVW_UABS_G0_NC, Value.Addend);