From 2618b22222f8405e68e20a41d47050b0bb86318d Mon Sep 17 00:00:00 2001 From: Mason Reed Date: Wed, 30 Oct 2024 14:31:52 -0400 Subject: WARP: Fix non relocatable constant pointers being masked --- plugins/warp/src/lib.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'plugins') diff --git a/plugins/warp/src/lib.rs b/plugins/warp/src/lib.rs index c54b80ae..866f7e31 100644 --- a/plugins/warp/src/lib.rs +++ b/plugins/warp/src/lib.rs @@ -110,10 +110,14 @@ pub fn basic_block_guid VisitorAction::Halt, + ExprInfo::ConstPtr(op) if view.segment_at(op.value()).is_some() => { + // Constant Pointer must be in a segment for it to be relocatable. + VisitorAction::Halt + }, + ExprInfo::ExternPtr(_) => VisitorAction::Halt, _ => VisitorAction::Descend, }) == VisitorAction::Halt { -- cgit v1.3.1