MCPcopy Create free account
hub / github.com/encounter/objdiff / symbols_matching_section

Function symbols_matching_section

objdiff-core/src/diff/data.rs:578–589  ·  view source on GitHub ↗
(
    symbols: &[Symbol],
    section_idx: usize,
)

Source from the content-addressed store, hash-verified

576}
577
578fn symbols_matching_section(
579 symbols: &[Symbol],
580 section_idx: usize,
581) -> impl Iterator<Item = (usize, &Symbol)> + '_ {
582 symbols.iter().enumerate().filter(move |(_, s)| {
583 s.section == Some(section_idx)
584 && s.kind != SymbolKind::Section
585 && s.size > 0
586 && !s.flags.contains(SymbolFlag::Hidden)
587 && !s.flags.contains(SymbolFlag::Ignored)
588 })
589}
590
591pub const BYTES_PER_ROW: usize = 16;
592

Callers 3

diff_data_sectionFunction · 0.85
diff_generic_sectionFunction · 0.85
diff_bss_sectionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected