MCPcopy Create free account
hub / github.com/MultiFuzz/MultiFuzz / find_section_name

Function find_section_name

icicle-cortexm/src/genconfig.rs:297–303  ·  view source on GitHub ↗
(obj_file: &object::File, range: Range<u64>)

Source from the content-addressed store, hash-verified

295}
296
297fn find_section_name(obj_file: &object::File, range: Range<u64>) -> Option<String> {
298 let section = obj_file
299 .sections()
300 .filter(|section| section.size() != 0)
301 .find(|x| range.contains(&x.address()))?;
302 section.name().ok().map(|x| x.to_owned())
303}
304
305/// Manually serializes a firmware configuration to allow for more human readable formatting.
306///

Callers 1

from_elfFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected