summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine/RuntimeDyld
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2015-06-03 05:39:59 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2015-06-03 05:39:59 +0000
commit58628425dc82fba3360fa889ed16bb6d45361b1e (patch)
treeb4ad777625bad58254a2bb20c362c99d39a77ade /llvm/lib/ExecutionEngine/RuntimeDyld
parent652052b82c1bf881d360ba27ccbb30e7ec3bfe38 (diff)
downloadbcm5719-llvm-58628425dc82fba3360fa889ed16bb6d45361b1e.tar.gz
bcm5719-llvm-58628425dc82fba3360fa889ed16bb6d45361b1e.zip
This reverts commit r238838, r238844 and r238888.
Trying to bring back a windows bot: http://lab.llvm.org:8011/builders/clang-x86-win2008-selfhost/builds/1224/steps/ninja%20check%202/logs/FAIL%3A%20LLVM%3A%3AELF_O32_PIC_relocations.s llvm-svn: 238903
Diffstat (limited to 'llvm/lib/ExecutionEngine/RuntimeDyld')
-rw-r--r--llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp b/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp
index 3bd8a477112..8679368d773 100644
--- a/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp
+++ b/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp
@@ -480,7 +480,7 @@ void RuntimeDyldELF::resolveMIPSRelocation(const SectionEntry &Section,
uint32_t *TargetPtr = (uint32_t *)(Section.Address + Offset);
Value += Addend;
- DEBUG(dbgs() << "resolveMIPSRelocation, LocalAddress: "
+ DEBUG(dbgs() << "resolveMipselocation, LocalAddress: "
<< Section.Address + Offset << " FinalAddress: "
<< format("%p", Section.LoadAddress + Offset) << " Value: "
<< format("%x", Value) << " Type: " << format("%x", Type)
@@ -504,10 +504,6 @@ void RuntimeDyldELF::resolveMIPSRelocation(const SectionEntry &Section,
case ELF::R_MIPS_LO16:
*TargetPtr = ((*TargetPtr) & 0xffff0000) | (Value & 0xffff);
break;
- case ELF::R_MIPS_PC32:
- uint32_t FinalAddress = (Section.LoadAddress + Offset);
- writeBytesUnaligned(Value + Addend - FinalAddress, (uint8_t *)TargetPtr, 4);
- break;
}
}
OpenPOWER on IntegriCloud