mirror of
https://github.com/encounter/objdiff.git
synced 2025-08-23 12:12:08 +00:00
Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
7c424a7966 |
@ -130,7 +130,7 @@ fn map_symbols(
|
||||
/// When inferring a symbol's size, we ignore symbols that start with specific prefixes. They are
|
||||
/// usually emitted as branch targets and do not represent the start of a function or object.
|
||||
fn is_local_label(symbol: &Symbol) -> bool {
|
||||
const LABEL_PREFIXES: &[&str] = &[".L", "LAB_"];
|
||||
const LABEL_PREFIXES: &[&str] = &[".L", "LAB_", "switchD_"];
|
||||
symbol.size == 0
|
||||
&& symbol.flags.contains(SymbolFlag::Local)
|
||||
&& LABEL_PREFIXES.iter().any(|p| symbol.name.starts_with(p))
|
||||
|
Loading…
x
Reference in New Issue
Block a user