MCPcopy Create free account
hub / github.com/LPC4/Full-Stack / ElfLoadSegment

Class ElfLoadSegment

crates/virtual-machine/src/elf_parser.rs:17–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15/// A loadable segment from an ELF `PT_LOAD` program header
16#[derive(Debug)]
17pub struct ElfLoadSegment {
18 pub offset: u64,
19 pub vaddr: u64,
20 pub file_size: u64,
21 pub mem_size: u64,
22}
23
24impl ParsedElf {
25 /// Parse an ELF-64 image from raw bytes, erroring on any format violation.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected