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

Function align_up

crates/asm-to-binary/src/assembler/layout.rs:78–81  ·  view source on GitHub ↗
(offset: u64, alignment: u64)

Source from the content-addressed store, hash-verified

76 section_sizes,
77 })
78}
79
80fn canonical_section_order(encountered: &[SectionKind]) -> Vec<SectionKind> {
81 let mut ordered = Vec::with_capacity(encountered.len());
82 for preferred in [SectionKind::Text, SectionKind::RoData, SectionKind::Data] {
83 if encountered.contains(&preferred) {
84 ordered.push(preferred);

Callers 1

compute_layoutFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected