aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2012-01-16 23:50:55 +0000
committerJim Grosbach <grosbach@apple.com>2012-01-16 23:50:55 +0000
commit020f4e861a9a32059f76377e787703c92ba55a98 (patch)
tree73b5d18c7b6491d94a4117ffe0aa3d98c44e6d1d /lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp
parent652ca2fe0c8bd406222d064937adc28b281d7b89 (diff)
downloadexternal_llvm-020f4e861a9a32059f76377e787703c92ba55a98.zip
external_llvm-020f4e861a9a32059f76377e787703c92ba55a98.tar.gz
external_llvm-020f4e861a9a32059f76377e787703c92ba55a98.tar.bz2
ExecutionEngine interface to re-map addresses for engines that support it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148264 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp')
-rw-r--r--lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp b/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp
index a3b4919..1cc021a 100644
--- a/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp
+++ b/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp
@@ -172,6 +172,7 @@ loadSegment32(const MachOObject *Obj,
// Remember what got allocated for this SectionID.
Sections.push_back(sys::MemoryBlock(Buffer, Sect->Size));
+ SectionLocalMemToID[Buffer] = SectionID;
// By default, the load address of a section is its memory buffer.
SectionLoadAddress.push_back((uint64_t)Buffer);
@@ -291,6 +292,7 @@ loadSegment64(const MachOObject *Obj,
// Remember what got allocated for this SectionID.
Sections.push_back(sys::MemoryBlock(Buffer, Sect->Size));
+ SectionLocalMemToID[Buffer] = SectionID;
// By default, the load address of a section is its memory buffer.
SectionLoadAddress.push_back((uint64_t)Buffer);