mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 21:00:29 +00:00
Fix incorrect call of resolveRelocation() for ARM ELF stub relocations.
llvm-svn: 154948
This commit is contained in:
parent
1cc53344a6
commit
8b77bb6238
@ -401,7 +401,7 @@ void RuntimeDyldELF::processRelocationRef(const ObjRelocationInfo &Rel,
|
||||
// Look up for existing stub.
|
||||
StubMap::const_iterator i = Stubs.find(Value);
|
||||
if (i != Stubs.end()) {
|
||||
resolveRelocation(Target, Section.LoadAddress, (uint64_t)Section.Address +
|
||||
resolveRelocation(Target, (uint64_t)Target, (uint64_t)Section.Address +
|
||||
i->second, RelType, 0);
|
||||
DEBUG(dbgs() << " Stub function found\n");
|
||||
} else {
|
||||
@ -412,7 +412,7 @@ void RuntimeDyldELF::processRelocationRef(const ObjRelocationInfo &Rel,
|
||||
Section.StubOffset);
|
||||
AddRelocation(Value, Rel.SectionID,
|
||||
StubTargetAddr - Section.Address, ELF::R_ARM_ABS32);
|
||||
resolveRelocation(Target, Section.LoadAddress, (uint64_t)Section.Address +
|
||||
resolveRelocation(Target, (uint64_t)Target, (uint64_t)Section.Address +
|
||||
Section.StubOffset, RelType, 0);
|
||||
Section.StubOffset += getMaxStubSize();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user