summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMason Reed <mason@vector35.com>2026-03-13 14:03:40 -0700
committerMason Reed <35282038+emesare@users.noreply.github.com>2026-03-24 18:46:48 -0700
commit197ad1e6db3c23512f154af5a04cd5ff1482368a (patch)
treea126ee7458dcf51d992a3a366588eb6209bd1e7a
parent3c88b11e5df33116580ac008e36092775df66135 (diff)
[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.
-rw-r--r--plugins/warp/src/plugin/workflow.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/plugins/warp/src/plugin/workflow.rs b/plugins/warp/src/plugin/workflow.rs
index 52c8e249..c1728b5e 100644
--- a/plugins/warp/src/plugin/workflow.rs
+++ b/plugins/warp/src/plugin/workflow.rs
@@ -44,6 +44,14 @@ impl Command for RunMatcher {
"No relocatable regions found, for best results please define sections for the binary!"
);
}
+ for region in regions {
+ if region.start < 0x1000 {
+ tracing::warn!(
+ "Relocatable region has a low start-address ({:0x}), if possible, please rebase the binary to a higher address!",
+ view.image_base()
+ );
+ }
+ }
run_matcher(&view);
});