Module rvsim::elf

source ·
Expand description

A simple copy-free ELF parser.

This parser is limited, and parses only the specific kind of ELF files we expect to run.

Elf32::parse can be used to parse a byte array into structs that reference the original data. Note that these structs also hold values in the original endianness.

Structs

ELF 32-bit file structure.
ELF 32-bit header.
ELF identity header.
ELF 32-bit program header.
ELF 32-bit section header.

Constants

System V ABI type value.
32-bit ELF class value.
Little-endian ELF datatype value.
Expected ELF magic value.
Expected ELF identity version.
RISC-V machine type value.
Program header bit indicating a loadable entry.
Section header type indicating space with no data (bss).
Executable type value.
Expected ELF version.