Struct elfbin::Builder[][src]

pub struct Builder<W: Write + Seek> { /* fields omitted */ }
Expand description

Represents an ELF file under construction.

Implementations

Begin constructing a new ELF file with the given header information in the given writer.

The header information also serves to select which specific ELF variant the builder will generate, by choosing a class and an encoding.

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

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.