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