PR ld/16202
* elf32-arm.c (elf32_arm_final_link_relocate): Refetch addends for
R_ARM_ABS8 and R_ARM_ABS16.
+2014-01-13 Ma Jiang <ma.jiang@zte.com.cn>
+
+ PR ld/16202
+ * elf32-arm.c (elf32_arm_final_link_relocate): Refetch addends for
+ R_ARM_ABS8 and R_ARM_ABS16.
+
2014-01-13 Alan Modra <amodra@gmail.com>
* elf32-ppc.c (ppc_elf_check_relocs): For @local call to ifunc,
return bfd_reloc_ok;
case R_ARM_ABS8:
+ /* PR 16202: Refectch the addend using the correct size. */
+ if (globals->use_rel)
+ addend = bfd_get_8 (input_bfd, hit_data);
value += addend;
/* There is no way to tell whether the user intended to use a signed or
return bfd_reloc_ok;
case R_ARM_ABS16:
+ /* PR 16202: Refectch the addend using the correct size. */
+ if (globals->use_rel)
+ addend = bfd_get_16 (input_bfd, hit_data);
value += addend;
/* See comment for R_ARM_ABS8. */