Skip to content

Commit 7c424a7

Browse files
authored
Ignore switchD_ labels generated by Ghidra (#241)
Seeing how commonly used boricj's delinker extension is, it makes sense for this one to be included by default, before #238 is considered and worked on.
1 parent 678210d commit 7c424a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

objdiff-core/src/obj/read.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ fn map_symbols(
130130
/// When inferring a symbol's size, we ignore symbols that start with specific prefixes. They are
131131
/// usually emitted as branch targets and do not represent the start of a function or object.
132132
fn is_local_label(symbol: &Symbol) -> bool {
133-
const LABEL_PREFIXES: &[&str] = &[".L", "LAB_"];
133+
const LABEL_PREFIXES: &[&str] = &[".L", "LAB_", "switchD_"];
134134
symbol.size == 0
135135
&& symbol.flags.contains(SymbolFlag::Local)
136136
&& LABEL_PREFIXES.iter().any(|p| symbol.name.starts_with(p))

0 commit comments

Comments
 (0)