diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2018-05-16 08:59:39 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2018-05-16 08:59:39 (GMT) |
commit | 7c564d30dd11e30602889ae42d75d200aa4d351a (patch) | |
tree | 628c1b7ac5b0e7e450729aa51bf492a3b2f73afc /plugins/elf | |
parent | 0286b53bad21abf91cbe17c4772ca9cde6a89cbc (diff) |
Fixed a bug in the relocation offset computation.
Diffstat (limited to 'plugins/elf')
-rw-r--r-- | plugins/elf/helper_arm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/elf/helper_arm.c b/plugins/elf/helper_arm.c index 111e34b..aacd1a2 100644 --- a/plugins/elf/helper_arm.c +++ b/plugins/elf/helper_arm.c @@ -175,7 +175,7 @@ bool retrieve_arm_linkage_offset(GElfFormat *format, const mrange_t *range, uint shift = 32 - ((raw & 0xf00) >> 8) * 2; - *offset += (raw & 0xf) << shift; + *offset += (raw & 0xff) << shift; result = g_binary_content_read_u32(content, &pos, format->endian, &raw); if (!result) goto ralo_exit; |