Skip to main content

assembled_described

Function assembled_described 

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

The same object as assembled, with the debug sections in info added to it.

For a compilation that went through a listing and asked for debug information, where the line table and the entries are built from the compilation rather than read from the file. A relocation in a chunk names another chunk or a name the file defines, and the second is written against the section the name is in, for the reason crate::write gives: a distance to a global name is not one a linker can work out.

ยงErrors

As for assembled, and Error::Refused for a chunk that names something the file does not define.