Skip to main content

Module version_note

Module version_note 

Source
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.