summaryrefslogtreecommitdiff
path: root/python/lowlevelil.py
diff options
context:
space:
mode:
authorPeter LaFosse <peter@vector35.com>2018-08-14 17:14:44 -0400
committerPeter LaFosse <peter@vector35.com>2018-08-14 17:14:44 -0400
commit1ce780cd6a66a289b0422298871d61392ad3ec2a (patch)
tree1b180e6bce65fd50a757e4f19852de873f83a9e5 /python/lowlevelil.py
parent454bcf8314833269ae8be9111b2c1035fe8999d6 (diff)
Adding LLIL_RELOC_PTR
Diffstat (limited to 'python/lowlevelil.py')
-rw-r--r--python/lowlevelil.py12
1 files changed, 12 insertions, 0 deletions
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