|
|
@ -42,14 +42,14 @@ where
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
pub fn link(mut self) -> Result<PathBuf, Error> {
|
|
|
|
pub fn link(mut self) -> Result<PathBuf, Error> {
|
|
|
|
self.process_symbols()?;
|
|
|
|
// self.process_symbols()?;
|
|
|
|
|
|
|
|
|
|
|
|
self.loadable.set_start_offset(4096); // TODO
|
|
|
|
self.loadable.set_start_offset(4096); // TODO
|
|
|
|
|
|
|
|
|
|
|
|
self.output
|
|
|
|
self.output
|
|
|
|
.relocate_sections(&self.objects, &mut self.loadable)?;
|
|
|
|
.relocate_sections(&self.objects, &mut self.loadable)?;
|
|
|
|
self.output
|
|
|
|
// self.output
|
|
|
|
.resolve_symbols(&self.objects, &mut self.loadable)?;
|
|
|
|
// .resolve_symbols(&self.objects, &mut self.loadable)?;
|
|
|
|
|
|
|
|
|
|
|
|
self.output.finalize()
|
|
|
|
self.output.finalize()
|
|
|
|
}
|
|
|
|
}
|
|
|
|