Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions objdiff-core/src/obj/read.rs
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,14 @@ fn infer_symbol_sizes(arch: &dyn Arch, symbols: &mut [Symbol], sections: &[Secti
break None;
}
if match symbol.kind {
SymbolKind::Function
if next_symbol.kind == SymbolKind::Function
&& (next_symbol.name.starts_with("__unwind$")
|| next_symbol.name.starts_with("__catch$")) =>
{
// MSVC unwinds/catches count as functions, but shouldn't cut off the function they're from.
false
}
SymbolKind::Function | SymbolKind::Object => {
// For function/object symbols, find the next function/object
matches!(next_symbol.kind, SymbolKind::Function | SymbolKind::Object)
Expand Down
Loading