summaryrefslogtreecommitdiff
path: root/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.h
diff options
context:
space:
mode:
authorAndrew Kaylor <andrew.kaylor@intel.com>2013-10-05 01:52:09 +0000
committerAndrew Kaylor <andrew.kaylor@intel.com>2013-10-05 01:52:09 +0000
commit9cffedbbfd009131699c4fcbcb2f820555762812 (patch)
tree2e6be580397b7be7db0cf1d10ae929c1b82cedf5 /lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.h
parentc664d76716ba87577b6c2a513ce4fe0712a2d3e2 (diff)
downloadllvm-9cffedbbfd009131699c4fcbcb2f820555762812.tar.gz
llvm-9cffedbbfd009131699c4fcbcb2f820555762812.tar.bz2
llvm-9cffedbbfd009131699c4fcbcb2f820555762812.tar.xz
Adding multiple GOT handling to RuntimeDyldELF
Patch by Ashok Thirumurthi git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192020 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.h')
-rw-r--r--lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.h b/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.h
index 14fb5740e5..67dc693b1b 100644
--- a/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.h
+++ b/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.h
@@ -15,6 +15,7 @@
#define LLVM_RUNTIME_DYLD_ELF_H
#include "RuntimeDyldImpl.h"
+#include "llvm/ADT/DenseMap.h"
using namespace llvm;
@@ -91,12 +92,15 @@ class RuntimeDyldELF : public RuntimeDyldImpl {
virtual void updateGOTEntries(StringRef Name, uint64_t Addr);
- SmallVector<RelocationValueRef, 2> GOTEntries;
- unsigned GOTSectionID;
+ // Relocation entries for symbols whose position-independant offset is
+ // updated in a global offset table.
+ typedef unsigned SID; // Type for SectionIDs
+ typedef SmallVector<RelocationValueRef, 2> GOTRelocations;
+ GOTRelocations GOTEntries; // List of entries requiring finalization.
+ SmallVector<std::pair<SID, GOTRelocations>, 8> GOTs; // Allocated tables.
public:
- RuntimeDyldELF(RTDyldMemoryManager *mm) : RuntimeDyldImpl(mm),
- GOTSectionID(0)
+ RuntimeDyldELF(RTDyldMemoryManager *mm) : RuntimeDyldImpl(mm)
{}
virtual void resolveRelocation(const RelocationEntry &RE, uint64_t Value);