(offset: u64, alignment: u64)
| 76 | section_sizes, |
| 77 | }) |
| 78 | } |
| 79 | |
| 80 | fn 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); |