From efc69488e5c4ec136458edf61e8c428ec5391440 Mon Sep 17 00:00:00 2001 From: KiraCoding <38864051+KiraCoding@users.noreply.github.com> Date: Wed, 28 Aug 2024 21:51:01 +0200 Subject: [PATCH] wip --- src/program.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/program.rs b/src/program.rs index e11713d..bfb239f 100644 --- a/src/program.rs +++ b/src/program.rs @@ -96,8 +96,12 @@ impl Program { unsafe { core::str::from_utf8_unchecked(&raw_name[..name_len]) } }; + + let section_base = unsafe { + Base::new_unchecked(section.VirtualAddress as *mut u8) + }; - Section::new(name, base, unsafe { section.Misc.VirtualSize as usize }) + Section::new(name, section_base, unsafe { section.Misc.VirtualSize as usize }) }) .collect();