Expand description
Public API for emit.
Object-file emission.
Produces a minimal ELF-64, Mach-O 64-bit, or COFF relocatable object file
containing a single .text section.
The actual byte encoding is supplied by the target via the Emitter trait.
Structs§
- Debug
Line Row - A single source mapping row for debug line table emission.
- Object
File - Assembled object file ready to be written to disk or passed to a linker.
- Reloc
- A single relocation record.
- Section
- A named output section (
.text,__TEXT,__text, etc.). - Symbol
- A symbol definition.
Enums§
- Object
Format - Supported object-file formats.
- Reloc
Kind - Kind of relocation record.
Traits§
- Emitter
- Implemented by each target to encode machine instructions into bytes.
Functions§
- emit_
object - Build a complete
ObjectFilefrom aMachineFunctionusingemitter.