From 1cfab97af3dbbf8c00723628d8737ea35567d2c6 Mon Sep 17 00:00:00 2001 From: Guillaume Valadon Date: Sat, 30 Jun 2018 22:53:22 +0200 Subject: Remove incorrect attribute --- miasm2/arch/mips32/arch.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'miasm2/arch/mips32/arch.py') diff --git a/miasm2/arch/mips32/arch.py b/miasm2/arch/mips32/arch.py index 939ce5b0..1502cde4 100644 --- a/miasm2/arch/mips32/arch.py +++ b/miasm2/arch/mips32/arch.py @@ -97,8 +97,8 @@ class instruction_mips32(cpu.instruction): if self.name in ["J", 'JAL']: expr = self.args[0].arg addr = (self.offset & (0xFFFFFFFF ^ ((1<< 28)-1))) + expr - label = symbol_pool.getby_offset_create(addr) - self.args[0] = ExprLoc(label.loc_key, expr.size) + loc_key = symbol_pool.getby_offset_create(addr) + self.args[0] = ExprLoc(loc_key, expr.size) return ndx = self.get_dst_num() -- cgit 1.4.1