Struct elfbin::Builder [−][src]
Expand description
Represents an ELF file under construction.
Implementations
Define a new symbol in the output file, using the contents of a given reader as the symbol contents.
add_symbol
will read the given reader to completion and copy all of
its data into the output file.
add_symbol
doesn’t check if you define the same symbol name more than
once, but doing so will create a confusing object file that may not
be accepted by an ELF linker.
Finalizes the ELF metadata in the underlying file and then returns that file.
If you don’t call close
then the file will be left in a state where
it contains any symbol data written previously but it lacks the
necessary metadata for an ELF linker to find that data, and thus the
object file will appear to have no symbols at all.
Auto Trait Implementations
impl<W> RefUnwindSafe for Builder<W> where
W: RefUnwindSafe,
impl<W> UnwindSafe for Builder<W> where
W: UnwindSafe,