Function
find_section_name
(obj_file: &object::File, range: Range<u64>)
Source from the content-addressed store, hash-verified
| 295 | } |
| 296 | |
| 297 | fn 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 | /// |
Tested by
no test coverage detected