From 0c372263ffa2d668bfe71fec645e6b9a477c41a7 Mon Sep 17 00:00:00 2001 From: Sean Cross Date: Sun, 15 Aug 2021 21:59:19 +0800 Subject: [PATCH] loader: mark sections as +X It is unclear why this is required. More investigation is needed. Signed-off-by: Sean Cross --- loader/src/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/loader/src/main.rs b/loader/src/main.rs index f69ca90a6..c8b79937d 100644 --- a/loader/src/main.rs +++ b/loader/src/main.rs @@ -283,6 +283,7 @@ impl MiniElf { if VDBG {println!(" Section @ {:08x}", section.virt as usize);} let flag_defaults = FLG_U | FLG_R + | FLG_X | FLG_VALID | if section.flags() & 1 == 1 { FLG_W } else { 0 } | if section.flags() & 4 == 4 { FLG_X } else { 0 };