Skip to content

Commit b3c092f

Browse files
committed
comment
1 parent e7e1ec0 commit b3c092f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

objdiff-core/src/arch/mips.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,8 @@ impl ArchMips {
125125
let Ok(name) = obj_symbol.name() else { continue };
126126
if let Some(prefix) = name.strip_suffix(".NON_MATCHING") {
127127
ignored_symbols.insert(obj_symbol.index().0);
128+
// Only remove the prefixless symbols if we are on the Base side of the diff,
129+
// to allow diffing against target objects that contain `.NON_MATCHING` markers.
128130
if diff_side == DiffSide::Base
129131
&& let Some(target_symbol) = object.symbol_by_name(prefix)
130132
{

0 commit comments

Comments
 (0)