Raw modules need to commit an executable range too!

This commit is contained in:
Dr. Chat 2015-09-25 18:35:33 -05:00
parent 9ceab26560
commit bf39e33dc0
1 changed files with 3 additions and 0 deletions

View File

@ -55,6 +55,9 @@ bool RawModule::LoadFile(uint32_t base_address, const std::wstring& path) {
low_address_ = base_address; low_address_ = base_address;
high_address_ = base_address + file_length; high_address_ = base_address + file_length;
// Notify backend about executable code.
processor_->backend()->CommitExecutableRange(low_address_, high_address_);
return true; return true;
} }