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

Class Contrib

crates/asm-to-binary/src/object_linker.rs:40–43  ·  view source on GitHub ↗

Collect contributions per section kind For each module we walk its sections in ELF load order (non-BSS first, BSS last)

Source from the content-addressed store, hash-verified

38
39 // The canonical output order: Text -> RoData -> Data -> Custom(...) -> Bss.
40 let all_kinds = collect_ordered_kinds(modules);
41 let mut kind_contribs: Vec<(&SectionKind, Vec<Contrib<'_>>)> =
42 all_kinds.iter().map(|k| (k, Vec::new())).collect();
43
44 for (mi, (_name, module)) in modules.iter().enumerate() {
45 let ordered = ordered_sections(module);
46 for sec in ordered {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected