arbitrary addr
This commit is contained in:
+3
-3
@@ -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"))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user