mirror of
https://github.com/encounter/decomp-toolkit.git
synced 2025-06-26 00:13:30 +00:00
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);
|
.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
|
// Process known functions first
|
||||||
let known_functions = self.function_entries.clone();
|
let known_functions = self.function_entries.clone();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user