diff options
author | Andrew Kaylor <andrew.kaylor@intel.com> | 2013-08-19 19:38:06 +0000 |
---|---|---|
committer | Andrew Kaylor <andrew.kaylor@intel.com> | 2013-08-19 19:38:06 +0000 |
commit | 5f3a9989a6e028d615e60b5770c346aae1475f81 (patch) | |
tree | 958c8031b3b5c76e6a9a21f1580393efe51dffe9 /llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp | |
parent | 9ef4a26de87aaa298eb5cc5bac71afca491d29d3 (diff) | |
download | bcm5719-llvm-5f3a9989a6e028d615e60b5770c346aae1475f81.tar.gz bcm5719-llvm-5f3a9989a6e028d615e60b5770c346aae1475f81.zip |
Adding comments to document RuntimeDyld relocation handling
llvm-svn: 188697
Diffstat (limited to 'llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp')
-rw-r--r-- | llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp b/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp index 943622fba87..a00b951e0a8 100644 --- a/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp +++ b/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp @@ -41,6 +41,9 @@ void RuntimeDyldImpl::resolveRelocations() { // Just iterate over the sections we have and resolve all the relocations // in them. Gross overkill, but it gets the job done. for (int i = 0, e = Sections.size(); i != e; ++i) { + // The Section here (Sections[i]) refers to the section in which the + // symbol for the relocation is located. The SectionID in the relocation + // entry provides the section to which the relocation will be applied. uint64_t Addr = Sections[i].LoadAddress; DEBUG(dbgs() << "Resolving relocations Section #" << i << "\t" << format("%p", (uint8_t *)Addr) |