Expand description
Binary container formats and the BinaryFormat trait.
This is a leaf crate below qcode: it holds the Arch enum, the
TargetOs enum, and the ELF/PE/LE/blob container parsers behind a single
BinaryFormat trait. qcode re-exports TargetOs and (in Stage 2b)
implements BinaryFormat for its serializable MemoryImage; harbinger
re-exports this crate as harbinger::format and harbinger::arch::Arch.
Modules§
- blob
- eh_
frame - Function starts from the ELF
.eh_frameunwind tables. - elf
- le
- Linear Executable (
LE): the 32-bit container of DOS extenders (DOS/4GW, the Watcom toolchain’s default) and of Windows 3.x VxDs. - pe
Structs§
- Section
- A named region of the image, as the container’s own layout table lists
it: an ELF section header or a PE section. Returned by
BinaryFormat::sections. - Symbol
- A named function symbol, as returned by
BinaryFormat::symbols.
Enums§
- Arch
- Endian
- The byte order a container was parsed with.
- Format
- A container format this crate can parse, as sniffed from a file’s magic.
- Load
Error - Why
loadcould not produce a binary. - Target
Os - The operating system of a loaded binary, inferred from its container format.
Traits§
- Binary
Format - A trait representing a loaded binary image with one or more mapped regions and one or more known entry points.
Functions§
- is_
printable_ ascii_ byte - Return
truewhenbis a printable ASCII byte. - load
- Detect the container format of
bytesand parse it. - printable_
byte - Map a byte to its printable ASCII representation.