Skip to main content

Crate wazabin_binary

Crate wazabin_binary 

Source
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_frame unwind 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.
LoadError
Why load could not produce a binary.
TargetOs
The operating system of a loaded binary, inferred from its container format.

Traits§

BinaryFormat
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 true when b is a printable ASCII byte.
load
Detect the container format of bytes and parse it.
printable_byte
Map a byte to its printable ASCII representation.