---- Collect sections with their load addresses ----
| 232 | |
| 233 | // ELF-64 constants for RISC-V. |
| 234 | mod 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; |
nothing calls this directly
no outgoing calls
no test coverage detected