From 1ce780cd6a66a289b0422298871d61392ad3ec2a Mon Sep 17 00:00:00 2001 From: Peter LaFosse Date: Tue, 14 Aug 2018 17:14:44 -0400 Subject: Adding LLIL_RELOC_PTR --- python/lowlevelil.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'python') diff --git a/python/lowlevelil.py b/python/lowlevelil.py index bd1e9349..ceae1617 100644 --- a/python/lowlevelil.py +++ b/python/lowlevelil.py @@ -223,6 +223,7 @@ class LowLevelILInstruction(object): LowLevelILOperation.LLIL_REG_STACK_FREE_REL: [("stack", "reg_stack"), ("dest", "expr")], LowLevelILOperation.LLIL_CONST: [("constant", "int")], LowLevelILOperation.LLIL_CONST_PTR: [("constant", "int")], + LowLevelILOperation.LLIL_RELOC_PTR: [("constant", "int")], LowLevelILOperation.LLIL_FLOAT_CONST: [("constant", "float")], LowLevelILOperation.LLIL_FLAG: [("src", "flag")], LowLevelILOperation.LLIL_FLAG_BIT: [("src", "flag"), ("bit", "int")], @@ -1091,6 +1092,17 @@ class LowLevelILFunction(object): """ return self.expr(LowLevelILOperation.LLIL_CONST_PTR, value, size=size) + def reloc_pointer(self, size, value): + """ + ``reloc_pointer`` returns an expression for the constant relocated pointer ``value`` with size ``size`` + + :param int size: the size of the pointer in bytes + :param int value: address referenced by pointer + :return: A constant expression of given value and size + :rtype: LowLevelILExpr + """ + return self.expr(LowLevelILOperation.LLIL_RELOC_PTR, value, size=size) + def float_const_raw(self, size, value): """ ``float_const_raw`` returns an expression for the constant raw binary floating point -- cgit v1.3.1