From 7c564d30dd11e30602889ae42d75d200aa4d351a Mon Sep 17 00:00:00 2001 From: Cyrille Bagard Date: Wed, 16 May 2018 10:59:39 +0200 Subject: Fixed a bug in the relocation offset computation. --- plugins/elf/helper_arm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v0.11.2-87-g4458