From 4fbb8ec338dadf52109ca731316da8c15ff1d01e Mon Sep 17 00:00:00 2001 From: Anhad Singh Date: Fri, 20 Feb 2026 11:54:52 +1100 Subject: [PATCH] fix(redox-rt): add base address to `e_entry` Signed-off-by: Anhad Singh --- redox-rt/src/proc.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/redox-rt/src/proc.rs b/redox-rt/src/proc.rs index f094733896..d314b6805e 100644 --- a/redox-rt/src/proc.rs +++ b/redox-rt/src/proc.rs @@ -227,7 +227,7 @@ pub fn fexec_impl( return Ok(FexecResult::Interp { path: interpreter_path, interp_override: InterpOverride { - at_entry: header.e_entry as usize, + at_entry: base_addr + header.e_entry as usize, at_phnum: phnum, at_phent: phentsize, phdrs_vaddr, @@ -297,7 +297,7 @@ pub fn fexec_impl( push(r#override.phdrs_vaddr)?; push(AT_PHDR)?; } else { - push(header.e_entry as usize)?; + push(base_addr + header.e_entry as usize)?; push(AT_ENTRY)?; push(phdrs_vaddr)?; push(AT_PHDR)?;