left out of r217010).
Also remove a crufty debugging output statement that was accidentally left in.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217011
91177308-0d34-0410-b5e6-
96231b3b80d8
const SectionEntry &Section = getRTDyld().Sections[SectionID];
StringRef SectionName = Section.Name;
const SectionEntry &Section = getRTDyld().Sections[SectionID];
StringRef SectionName = Section.Name;
- dbgs() << "Registering " << SectionName << "\n";
Stubs[FileName][SectionName].SectionID = SectionID;
}
Stubs[FileName][SectionName].SectionID = SectionID;
}
// Instantiate a dynamic linker.
TrivialMemoryManager MemMgr;
RuntimeDyld Dyld(&MemMgr);
// Instantiate a dynamic linker.
TrivialMemoryManager MemMgr;
RuntimeDyld Dyld(&MemMgr);
+ Dyld.setProcessAllSections(true);
RuntimeDyldChecker Checker(Dyld, Disassembler.get(), InstPrinter.get(),
llvm::dbgs());
RuntimeDyldChecker Checker(Dyld, Disassembler.get(), InstPrinter.get(),
llvm::dbgs());
// Resolve all the relocations we can.
Dyld.resolveRelocations();
// 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 "
int ErrorCode = checkAllExpressions(Checker);
if (Dyld.hasError()) {
errs() << "RTDyld reported an error applying relocations:\n "