pub struct ObjectWriter { /* private fields */ }Expand description
A writer for generating relocatable object (.o) ELF files.
Implementations§
Source§impl ObjectWriter
impl ObjectWriter
Sourcepub fn write(
&self,
symbols: &[SymbolDesc],
relocs: &[RelocEntry],
) -> Result<ObjectElfOutput>
pub fn write( &self, symbols: &[SymbolDesc], relocs: &[RelocEntry], ) -> Result<ObjectElfOutput>
Generate the relocatable ELF bytes and metadata.
Sourcepub fn write_file(
&self,
out_path: &Path,
symbols: &[SymbolDesc],
relocs: &[RelocEntry],
) -> Result<ObjectElfOutput>
pub fn write_file( &self, out_path: &Path, symbols: &[SymbolDesc], relocs: &[RelocEntry], ) -> Result<ObjectElfOutput>
Write the generated relocatable ELF to a file and return the metadata.
Auto Trait Implementations§
impl Freeze for ObjectWriter
impl RefUnwindSafe for ObjectWriter
impl Send for ObjectWriter
impl Sync for ObjectWriter
impl Unpin for ObjectWriter
impl UnwindSafe for ObjectWriter
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more