diff options
| author | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2017-09-24 19:05:19 +0200 |
|---|---|---|
| committer | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2017-09-24 19:05:19 +0200 |
| commit | f280c6053956f88912c4ff360b21ccea6e45ed43 (patch) | |
| tree | 583a1796936b72b68af459118063ab6859da2a1b | |
| parent | 962a93e30bccdbd8ef7c39b9e1cac0d16105b94d (diff) | |
| download | miasm-f280c6053956f88912c4ff360b21ccea6e45ed43.tar.gz miasm-f280c6053956f88912c4ff360b21ccea6e45ed43.zip | |
Armt: fix bl bad dst
Diffstat (limited to '')
| -rw-r--r-- | miasm2/arch/arm/arch.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/miasm2/arch/arm/arch.py b/miasm2/arch/arm/arch.py index 0d10d6f8..a8fb2650 100644 --- a/miasm2/arch/arm/arch.py +++ b/miasm2/arch/arm/arch.py @@ -456,6 +456,8 @@ class instruction_armt(instruction_arm): return if self.name == 'BLX': ad = e.arg + (self.offset & 0xfffffffc) + elif self.name == 'BL': + ad = e.arg + self.offset + self.l else: ad = e.arg + self.offset l = symbol_pool.getby_offset_create(ad) |