summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2014-08-25 23:33:48 +0000
committerLang Hames <lhames@gmail.com>2014-08-25 23:33:48 +0000
commit40e200eb695b4e00fc5a25e8ca4013b693ada7ad (patch)
treee607f555ce995f418e1677857fc40d65d9930384 /llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp
parent87dacc792211bd97a9caee384fc9d5af350d969b (diff)
downloadbcm5719-llvm-40e200eb695b4e00fc5a25e8ca4013b693ada7ad.tar.gz
bcm5719-llvm-40e200eb695b4e00fc5a25e8ca4013b693ada7ad.zip
[MCJIT][SystemZ] Use a simpler expression for indirect relocation offsets.
The expressions 'Reloc.Addend - Addend' and 'Reloc.Offset' should always be equal in this context. The latter is prefered - we want to remove the RelocationValueRef::Addend field in the future. llvm-svn: 216418
Diffstat (limited to 'llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp')
-rw-r--r--llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp b/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp
index b3c94b38628..9aa04119724 100644
--- a/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp
+++ b/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp
@@ -1317,7 +1317,7 @@ relocation_iterator RuntimeDyldELF::processRelocationRef(
Stubs[Value] = StubOffset;
createStubFunction((uint8_t *)StubAddress);
RelocationEntry RE(SectionID, StubOffset + 8, ELF::R_390_64,
- Value.Addend - Addend);
+ Value.Offset);
if (Value.SymbolName)
addRelocationForSymbol(RE, Value.SymbolName);
else
OpenPOWER on IntegriCloud