Skip to main content

assembled

Function assembled 

Source
pub fn assembled(
    input: &Assembled,
    target: &TargetInfo,
) -> Result<Vec<u8>, Error>
Expand description

That, as a relocatable ELF object.

ELF only, where the rest of this crate writes COFF as well. What a Part carries is the section type and flags the source wrote in as many words, which are ELF’s and which a COFF section header has no field for, so a file of assembly for a Windows target is refused here rather than written with the flags guessed back from the name.

§Errors

Error::Format for a machine or a platform this does not write, and Error::Refused for a relocation against a name the list does not hold or one this machine has no relocation for.