Skip to content

Commit 1521d8f

Browse files
committed
Do not add binary base to function address twice when a symbol with that function's raw name already exists
1 parent 4e77062 commit 1521d8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/dwarf/dwarf_import/src/dwarfdebuginfo.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,7 @@ impl DebugInfoBuilder {
608608
if func.address.is_none() && func.raw_name.is_some() {
609609
// DWARF doesn't contain GOT info, so remove any entries there...they will be wrong (relying on Binja's mechanisms for the GOT is good )
610610
if symbol.sym_type() != SymbolType::ImportAddress {
611-
func.address = Some(symbol.address());
611+
func.address = Some(symbol.address() - bv.start());
612612
}
613613
}
614614

0 commit comments

Comments
 (0)