Skip to main content

write

Function write 

Source
pub fn write(
    text: &Text,
    data: &Data,
    aliases: &[Alias],
    target: &TargetInfo,
) -> Result<Vec<u8>, Error>
Expand description

One text section and the variables beside it, as a relocatable ELF object.

§Errors

Error::Format for a machine or a platform this does not write, and Error::Refused for anything the writer underneath objected to, which would be a bug here. An alias whose target this file does not define is refused the same way, since the front end is what reports that as a program’s mistake and one reaching here means it did not. See Error.