arbitrary addr

This commit is contained in:
2026-06-06 21:19:09 -04:00
parent 4587f687b9
commit ef35509c98
8 changed files with 35 additions and 18 deletions
+3 -3
View File
@@ -1,11 +1,11 @@
use crate::backend::{Addr, elf};
use crate::backend::elf;
pub struct LinkedProgram {
pub struct LinkedProgram<Addr> {
pub code: Vec<u8>,
pub entry: Option<Addr>,
}
impl LinkedProgram {
impl LinkedProgram<u64> {
pub fn to_elf(&self) -> Vec<u8> {
elf::create(&self.code, self.entry.expect("no start"))
}