Skip to content

Commit 5dbe30f

Browse files
committed
[WARP] Warn when matching with relocatable regions in low address space
The heuristics will check if a constant is within the relocatable regions and mask. If we are in a low address space we might be masking regular constants like 0x10.
1 parent b6088d6 commit 5dbe30f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

plugins/warp/src/plugin/workflow.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,14 @@ impl Command for RunMatcher {
4444
"No relocatable regions found, for best results please define sections for the binary!"
4545
);
4646
}
47+
for region in regions {
48+
if region.start < 0x1000 {
49+
tracing::warn!(
50+
"Relocatable region has a low start-address ({:0x}), if possible, please rebase the binary to a higher address!",
51+
view.image_base()
52+
);
53+
}
54+
}
4755

4856
run_matcher(&view);
4957
});

0 commit comments

Comments
 (0)