[PATCH] D55943: [RuntimeDyld] load all sections with ProcessAllSections
Phabricator via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 28 13:35:30 PST 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rL352432: [RuntimeDyld] load all sections with ProcessAllSections (authored by yhs, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D55943?vs=182215&id=183951#toc
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D55943/new/
https://reviews.llvm.org/D55943
Files:
llvm/trunk/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp
Index: llvm/trunk/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp
===================================================================
--- llvm/trunk/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp
+++ llvm/trunk/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp
@@ -381,6 +381,25 @@
Checker->registerStubMap(Obj.getFileName(), SectionID, Stubs);
}
+ // Process remaining sections
+ if (ProcessAllSections) {
+ LLVM_DEBUG(dbgs() << "Process remaining sections:\n");
+ for (section_iterator SI = Obj.section_begin(), SE = Obj.section_end();
+ SI != SE; ++SI) {
+
+ /* Ignore already loaded sections */
+ if (LocalSections.find(*SI) != LocalSections.end())
+ continue;
+
+ bool IsCode = SI->isText();
+ if (auto SectionIDOrErr =
+ findOrEmitSection(Obj, *SI, IsCode, LocalSections))
+ LLVM_DEBUG(dbgs() << "\tSectionID: " << (*SectionIDOrErr) << "\n");
+ else
+ return SectionIDOrErr.takeError();
+ }
+ }
+
// Give the subclasses a chance to tie-up any loose ends.
if (auto Err = finalizeLoad(Obj, LocalSections))
return std::move(Err);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D55943.183951.patch
Type: text/x-patch
Size: 1134 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190128/fb69d962/attachment.bin>
More information about the llvm-commits
mailing list