mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
[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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216418 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c33fe1b296
commit
9fe621a69e
@ -1317,7 +1317,7 @@ relocation_iterator RuntimeDyldELF::processRelocationRef(
|
|||||||
Stubs[Value] = StubOffset;
|
Stubs[Value] = StubOffset;
|
||||||
createStubFunction((uint8_t *)StubAddress);
|
createStubFunction((uint8_t *)StubAddress);
|
||||||
RelocationEntry RE(SectionID, StubOffset + 8, ELF::R_390_64,
|
RelocationEntry RE(SectionID, StubOffset + 8, ELF::R_390_64,
|
||||||
Value.Addend - Addend);
|
Value.Offset);
|
||||||
if (Value.SymbolName)
|
if (Value.SymbolName)
|
||||||
addRelocationForSymbol(RE, Value.SymbolName);
|
addRelocationForSymbol(RE, Value.SymbolName);
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user