[llvm] r217011 - [MCJIT] Make llvm-rtdyld process eh_frame sections in -verify mode (accidentally
Lang Hames
lhames at gmail.com
Tue Sep 2 22:42:52 PDT 2014
Author: lhames
Date: Wed Sep 3 00:42:52 2014
New Revision: 217011
URL: http://llvm.org/viewvc/llvm-project?rev=217011&view=rev
Log:
[MCJIT] Make llvm-rtdyld process eh_frame sections in -verify mode (accidentally
left out of r217010).
Also remove a crufty debugging output statement that was accidentally left in.
Modified:
llvm/trunk/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldChecker.cpp
llvm/trunk/tools/llvm-rtdyld/llvm-rtdyld.cpp
Modified: llvm/trunk/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldChecker.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldChecker.cpp?rev=217011&r1=217010&r2=217011&view=diff
==============================================================================
--- llvm/trunk/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldChecker.cpp (original)
+++ llvm/trunk/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldChecker.cpp Wed Sep 3 00:42:52 2014
@@ -860,7 +860,6 @@ void RuntimeDyldCheckerImpl::registerSec
const SectionEntry &Section = getRTDyld().Sections[SectionID];
StringRef SectionName = Section.Name;
- dbgs() << "Registering " << SectionName << "\n";
Stubs[FileName][SectionName].SectionID = SectionID;
}
Modified: llvm/trunk/tools/llvm-rtdyld/llvm-rtdyld.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-rtdyld/llvm-rtdyld.cpp?rev=217011&r1=217010&r2=217011&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-rtdyld/llvm-rtdyld.cpp (original)
+++ llvm/trunk/tools/llvm-rtdyld/llvm-rtdyld.cpp Wed Sep 3 00:42:52 2014
@@ -411,6 +411,7 @@ static int linkAndVerify() {
// Instantiate a dynamic linker.
TrivialMemoryManager MemMgr;
RuntimeDyld Dyld(&MemMgr);
+ Dyld.setProcessAllSections(true);
RuntimeDyldChecker Checker(Dyld, Disassembler.get(), InstPrinter.get(),
llvm::dbgs());
@@ -439,6 +440,9 @@ static int linkAndVerify() {
// Resolve all the relocations we can.
Dyld.resolveRelocations();
+ // Register EH frames.
+ Dyld.registerEHFrames();
+
int ErrorCode = checkAllExpressions(Checker);
if (Dyld.hasError()) {
errs() << "RTDyld reported an error applying relocations:\n "
More information about the llvm-commits
mailing list