pub struct DylibWriter { /* private fields */ }Expand description
A writer for generating dynamic library (Shared Object) ELF files.
Implementations§
Source§impl DylibWriter
impl DylibWriter
Sourcepub fn new(arch: Arch) -> Self
pub fn new(arch: Arch) -> Self
Create a new DylibWriter for the specified architecture with default configuration.
Sourcepub fn with_config(arch: Arch, config: ElfWriterConfig) -> Self
pub fn with_config(arch: Arch, config: ElfWriterConfig) -> Self
Create a new DylibWriter with a custom configuration.
Sourcepub fn write_file(
&self,
out_path: &Path,
relocs: &[RelocEntry],
symbols: &[SymbolDesc],
) -> Result<ElfWriteOutput>
pub fn write_file( &self, out_path: &Path, relocs: &[RelocEntry], symbols: &[SymbolDesc], ) -> Result<ElfWriteOutput>
Write the generated ELF to a file and return the metadata.
Sourcepub fn write(
&self,
raw_relocs: &[RelocEntry],
symbols: &[SymbolDesc],
) -> Result<ElfWriteOutput>
pub fn write( &self, raw_relocs: &[RelocEntry], symbols: &[SymbolDesc], ) -> Result<ElfWriteOutput>
Generate the ELF bytes and metadata.
Auto Trait Implementations§
impl Freeze for DylibWriter
impl RefUnwindSafe for DylibWriter
impl Send for DylibWriter
impl Sync for DylibWriter
impl Unpin for DylibWriter
impl UnwindSafe for DylibWriter
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