patchRegion remove mmap to R|X, caller is responsible now

This commit is contained in:
2025-12-17 11:12:44 +01:00
parent de10ce58e2
commit 403fd6031b
2 changed files with 3 additions and 4 deletions

View File

@@ -261,6 +261,7 @@ fn patchLoadedElf(base: usize) !void {
log.info("Patching segment: 0x{x} - 0x{x}", .{ page_start, page_end });
try Patcher.patchRegion(region);
try posix.mprotect(region, elfToMmapProt(phdr.p_flags));
}
}