This commit is contained in:
2026-06-07 21:22:32 -04:00
parent a086fa6590
commit c9add923be
14 changed files with 413 additions and 46 deletions
-8
View File
@@ -1,12 +1,4 @@
use crate::backend::elf;
pub struct LinkedProgram<Addr> {
pub code: Vec<u8>,
pub entry: Option<Addr>,
}
impl LinkedProgram<u64> {
pub fn to_elf(&self) -> Vec<u8> {
elf::create(&self.code, self.entry.expect("no start"))
}
}