(dir: &Path)
| 82 | } |
| 83 | |
| 84 | fn find_binaries_in_dir(dir: &Path) -> Vec<PathBuf> { |
| 85 | glob::glob(&format!("{}/**/*", dir.display())) |
| 86 | .into_iter() |
| 87 | .flatten() |
| 88 | .filter_map(Result::ok) |
| 89 | .filter(|p| p.is_file() && super::is_elf(p)) |
| 90 | .collect::<Vec<_>>() |
| 91 | } |
| 92 | |
| 93 | fn find_statically_linked_allocator(path: &Path) -> Option<AllocatorKind> { |
| 94 | use object::{Object, ObjectSymbol}; |