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

Function read_u32_at

crates/asm-to-binary/src/object_linker.rs:398–410  ·  view source on GitHub ↗
(buf: &[u8], off: usize)

Source from the content-addressed store, hash-verified

396 out.push(sec);
397 }
398 }
399 }
400 out
401}
402
403// Pre-compute a section map for a module: [(name, start_addr, end_addr)] in
404// the same order as `ordered_sections`.
405fn build_module_section_map(module: &AssembledOutput) -> Vec<(&str, u64, u64)> {
406 let mut map = Vec::new();
407 let mut running = 0u64;
408 for sec in ordered_sections(module) {
409 let Some(kind) = &sec.kind else {
410 continue;
411 };
412 let start = running;
413 let end = start + sec.bytes.len() as u64;

Callers 3

patch_call_pairFunction · 0.85
patch_jalFunction · 0.85
patch_laFunction · 0.85

Calls 1

getMethod · 0.80

Tested by

no test coverage detected