summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2016-08-19 17:06:39 +0000
committerLang Hames <lhames@gmail.com>2016-08-19 17:06:39 +0000
commit6e9f0309e9dbd63cbfe4344974cb7b745c9628e4 (patch)
treea1dbcb4ee7bd8163b648658381c39fe07c1ece75 /llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp
parent41898f0396533432d51fc34ceb9fbfb8f75efd3e (diff)
downloadbcm5719-llvm-6e9f0309e9dbd63cbfe4344974cb7b745c9628e4.tar.gz
bcm5719-llvm-6e9f0309e9dbd63cbfe4344974cb7b745c9628e4.zip
[RuntimeDyld] Revert r279182 and 279201 -- they broke some ARM bots.
llvm-svn: 279275
Diffstat (limited to 'llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp')
-rw-r--r--llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp16
1 files changed, 0 insertions, 16 deletions
diff --git a/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp b/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp
index 5bc32646226..6929732cb29 100644
--- a/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp
+++ b/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp
@@ -480,9 +480,6 @@ void RuntimeDyldELF::resolveARMRelocation(const SectionEntry &Section,
*TargetPtr |= Value & 0xFFF;
*TargetPtr |= ((Value >> 12) & 0xF) << 16;
break;
- case ELF::R_ARM_REL32:
- *TargetPtr += Value - FinalAddress;
- break;
// Write 24 bit relative value to the branch instruction.
case ELF::R_ARM_PC24: // Fall through.
case ELF::R_ARM_CALL: // Fall through.
@@ -1368,19 +1365,6 @@ RuntimeDyldELF::processRelocationRef(
RelType, 0);
Section.advanceStubOffset(getMaxStubSize());
}
- } else if (RelType == ELF::R_ARM_GOT_PREL) {
- uint32_t GOTOffset = allocateGOTEntries(SectionID, 1);
-
- RelocationEntry GOTRE(SectionID, Offset, ELF::R_ARM_REL32, GOTOffset);
- addRelocationForSection(GOTRE, GOTSectionID);
-
- // Fill in the value of the symbol we're targeting into the GOT
- RelocationEntry RE = computeGOTOffsetRE(SectionID, GOTOffset,
- Value.Offset, ELF::R_ARM_ABS32);
- if (Value.SymbolName)
- addRelocationForSymbol(RE, Value.SymbolName);
- else
- addRelocationForSection(RE, Value.SectionID);
} else {
uint32_t *Placeholder =
reinterpret_cast<uint32_t*>(computePlaceholderAddress(SectionID, Offset));
OpenPOWER on IntegriCloud