Expand description
Interface for writing object files.
This module provides a unified write API for relocatable object files
using Object
. This does not support writing executable files.
This supports the following file formats: COFF, ELF, Mach-O, and XCOFF.
The submodules define helpers for writing the raw structs. These support writing both relocatable and executable files. There are writers for the following file formats: COFF, ELF, and PE.
Re-exports§
pub use coff::CoffExportStyle;
Modules§
Structs§
- Comdat
- A COMDAT section group.
- Comdat
Id - An identifier used to reference a COMDAT section group.
- Error
- The error type used within the write module.
- MachO
Build Version - The customizable portion of a
macho::BuildVersionCommand
. - Object
- A writable relocatable object file.
- Relocation
- A relocation in an object file.
- Section
- A section in an object file.
- Section
Id - An identifier used to reference a section.
- Streaming
Buffer - A
WritableBuffer
that streams data to aWrite
implementation. - String
Id - An identifier for an entry in a string table.
- Symbol
- A symbol in an object file.
- Symbol
Id - An identifier used to reference a symbol.
Enums§
- Address
Size - The size of an address value for an architecture.
- Architecture
- A CPU architecture.
- Binary
Format - A binary file format.
- Comdat
Kind - The selection kind for a COMDAT section group.
- File
Flags - File flags that are specific to each file format.
- Mangling
- The symbol name mangling scheme.
- Relocation
Encoding - Information about how the result of the relocation operation is encoded in the place.
- Relocation
Flags - Relocation fields that are specific to each file format and architecture.
- Relocation
Kind - The operation used to calculate the result of the relocation.
- Section
Flags - Section flags that are specific to each file format.
- Section
Kind - The kind of a section.
- Segment
Flags - Segment flags that are specific to each file format.
- Standard
Section - A standard section kind.
- Standard
Segment - A standard segment kind.
- SubArchitecture
- A CPU sub-architecture.
- Symbol
Flags - Symbol flags that are specific to each file format.
- Symbol
Kind - The kind of a symbol.
- Symbol
Scope - A symbol scope.
- Symbol
Section - The section where a symbol is defined.
Traits§
- Writable
Buffer - Trait for writable buffer.
Type Aliases§
- Result
- The result type used within the write module.