Pre-compute a section map for a module: [(name, `start_addr`, `end_addr`)] in the same order as `ordered_sections`.
(module: &AssembledOutput)
| 355 | if sec.kind.as_ref() == Some(kind) && seen.insert(kind.clone()) { |
| 356 | out.push(kind.clone()); |
| 357 | } |
| 358 | } |
| 359 | } |
| 360 | } |
| 361 | |
| 362 | // Custom sections in their first-appearance order |
| 363 | for (_name, module) in modules { |
| 364 | for sec in &module.sections { |
| 365 | if let Some(kind) = &sec.kind |
| 366 | && !preferred.contains(kind) |
| 367 | && !matches!(kind, SectionKind::Bss) |
| 368 | && seen.insert(kind.clone()) |
| 369 | { |
| 370 | out.push(kind.clone()); |
| 371 | } |
| 372 | } |
| 373 | } |
no test coverage detected