mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-10-25 10:27:04 +00:00
[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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217011 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -860,7 +860,6 @@ void RuntimeDyldCheckerImpl::registerSection(
|
|||||||
const SectionEntry &Section = getRTDyld().Sections[SectionID];
|
const SectionEntry &Section = getRTDyld().Sections[SectionID];
|
||||||
StringRef SectionName = Section.Name;
|
StringRef SectionName = Section.Name;
|
||||||
|
|
||||||
dbgs() << "Registering " << SectionName << "\n";
|
|
||||||
Stubs[FileName][SectionName].SectionID = SectionID;
|
Stubs[FileName][SectionName].SectionID = SectionID;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -411,6 +411,7 @@ static int linkAndVerify() {
|
|||||||
// Instantiate a dynamic linker.
|
// Instantiate a dynamic linker.
|
||||||
TrivialMemoryManager MemMgr;
|
TrivialMemoryManager MemMgr;
|
||||||
RuntimeDyld Dyld(&MemMgr);
|
RuntimeDyld Dyld(&MemMgr);
|
||||||
|
Dyld.setProcessAllSections(true);
|
||||||
RuntimeDyldChecker Checker(Dyld, Disassembler.get(), InstPrinter.get(),
|
RuntimeDyldChecker Checker(Dyld, Disassembler.get(), InstPrinter.get(),
|
||||||
llvm::dbgs());
|
llvm::dbgs());
|
||||||
|
|
||||||
@@ -439,6 +440,9 @@ static int linkAndVerify() {
|
|||||||
// Resolve all the relocations we can.
|
// Resolve all the relocations we can.
|
||||||
Dyld.resolveRelocations();
|
Dyld.resolveRelocations();
|
||||||
|
|
||||||
|
// Register EH frames.
|
||||||
|
Dyld.registerEHFrames();
|
||||||
|
|
||||||
int ErrorCode = checkAllExpressions(Checker);
|
int ErrorCode = checkAllExpressions(Checker);
|
||||||
if (Dyld.hasError()) {
|
if (Dyld.hasError()) {
|
||||||
errs() << "RTDyld reported an error applying relocations:\n "
|
errs() << "RTDyld reported an error applying relocations:\n "
|
||||||
|
|||||||
Reference in New Issue
Block a user