mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-03 04:01:22 +08:00
Fix calculation of R_ARM_RHM_ALU_PREL_11_0 relocation when used with a SUB instruction.
PR ld/21523 * elf32-arm.c (elf32_arm_final_link_relocate): Install an absolute value when processing the R_ARM_THM_ALU_PREL_11_0 reloc.
This commit is contained in:

committed by
Nick Clifton

parent
10045478d9
commit
8c65b54f18
@ -1,3 +1,9 @@
|
|||||||
|
2017-05-30 Casey Smith <clegg89@gmail.com>
|
||||||
|
|
||||||
|
PR ld/21523
|
||||||
|
* elf32-arm.c (elf32_arm_final_link_relocate): Install an absolute
|
||||||
|
value when processing the R_ARM_THM_ALU_PREL_11_0 reloc.
|
||||||
|
|
||||||
2017-05-30 Anton Kolesov Anton.Kolesov@synopsys.com
|
2017-05-30 Anton Kolesov Anton.Kolesov@synopsys.com
|
||||||
|
|
||||||
* cpu-arc.c (arc_compatible): New function.
|
* cpu-arc.c (arc_compatible): New function.
|
||||||
|
@ -10506,7 +10506,9 @@ elf32_arm_final_link_relocate (reloc_howto_type * howto,
|
|||||||
+ input_section->output_offset
|
+ input_section->output_offset
|
||||||
+ rel->r_offset);
|
+ rel->r_offset);
|
||||||
|
|
||||||
value = relocation;
|
/* PR 21523: Use an absolute value. The user of this reloc will
|
||||||
|
have already selected an ADD or SUB insn appropriately. */
|
||||||
|
value = abs (relocation);
|
||||||
|
|
||||||
if (value >= 0x1000)
|
if (value >= 0x1000)
|
||||||
return bfd_reloc_overflow;
|
return bfd_reloc_overflow;
|
||||||
|
Reference in New Issue
Block a user