From 197ad1e6db3c23512f154af5a04cd5ff1482368a Mon Sep 17 00:00:00 2001 From: Mason Reed Date: Fri, 13 Mar 2026 14:03:40 -0700 Subject: [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. --- plugins/warp/src/plugin/workflow.rs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'plugins') 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); }); -- cgit v1.3.1