Expand description
ELF note types for embedding hyperlight version metadata in guest binaries. ELF note types for embedding hyperlight version metadata in guest binaries.
Guest binaries built with hyperlight-guest-bin include a .note.hyperlight-version
ELF note section containing the crate version they were compiled against.
The host reads this section at load time to verify ABI compatibility.
Structs§
- ElfNote
- An ELF note structure suitable for embedding in a
#[link_section]static.
Constants§
- HYPERLIGHT_
NOTE_ NAME - The owner name used in the ELF note header for hyperlight version metadata.
- HYPERLIGHT_
NOTE_ TYPE - The note type value used in the ELF note header for hyperlight version metadata.
- HYPERLIGHT_
VERSION_ SECTION - The ELF note section name used to embed the hyperlight-guest-bin version in guest binaries.
Functions§
- padded_
desc_ size - Compute the padded size of the descriptor field for a 64-bit ELF note.
- padded_
name_ size - Compute the padded size of the name field for a 64-bit ELF note.