fix(redox-rt): add base address to e_entry

Signed-off-by: Anhad Singh <andypython@protonmail.com>
This commit is contained in:
Anhad Singh
2026-02-20 11:54:52 +11:00
parent 27b4c3ed90
commit 4fbb8ec338
+2 -2
View File
@@ -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)?;