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

Class ElfSec

crates/asm-to-binary/src/assembler/output.rs:234–239  ·  view source on GitHub ↗

---- Collect sections with their load addresses ----

Source from the content-addressed store, hash-verified

232
233// ELF-64 constants for RISC-V.
234mod elf64 {
235 pub const ELFMAG: [u8; 4] = [0x7f, b'E', b'L', b'F'];
236 pub const ELFCLASS64: u8 = 2;
237 pub const ELFDATA2LSB: u8 = 1; // little-endian
238 pub const ET_EXEC: u16 = 2;
239 pub const ET_REL: u16 = 1;
240 pub const EM_RISCV: u16 = 243;
241 pub const EV_CURRENT: u32 = 1;
242 pub const PT_LOAD: u32 = 1;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected