Check functions at start of code sections in detect_functions
This commit is contained in:
parent
a394dfc88c
commit
908e3bb037
|
@ -88,6 +88,10 @@ impl AnalyzerState {
|
|||
.insert(symbol.address as u32, (symbol.address + symbol.size) as u32);
|
||||
}
|
||||
}
|
||||
// Also check the beginning of every code section
|
||||
for section in obj.sections.iter().filter(|s| s.kind == ObjSectionKind::Code) {
|
||||
self.function_entries.insert(section.address as u32);
|
||||
}
|
||||
|
||||
// Process known functions first
|
||||
let known_functions = self.function_entries.clone();
|
||||
|
|
Loading…
Reference in New Issue