Skip to main content

Module object

Module object 

Source
Expand description

Object file generation: ELF (Linux/BSD), Mach-O (macOS), COFF/PE (Windows).

Structs§

CoffWriter
ElfWriter
ExternalReloc
A relocation entry for an unresolved (external) symbol reference. offset is the byte offset within the code section of the 4-byte displacement field.
MachOWriter
ObjectSymbol
A symbol with its resolved offset within its defining section, ready for the object file symbol table. Built by the assembler after two-pass resolution.
ObjectWriteOptions
Extra sections and metadata for ObjectWriter backends.
ObjectWriteRequest
All data needed to write a single relocatable object file.

Traits§

ObjectWriter
Backend for writing relocatable object files (ELF, Mach-O, or COFF/PE).

Functions§

object_writer_for_os
Returns the object writer for target_os (ELF, Mach-O, or COFF).