+2019-05-16 Alan Modra <amodra@gmail.com>
+
+ * elf32-arm.c (elf32_arm_write_section): Revert last change.
+
2019-05-15 Alan Modra <amodra@gmail.com>
* elf32-arm.c (elf32_arm_write_section): Don't leave
bfd_vma branch_to_veneer =
stm32l4xx_errnode->u.b.veneer->vma - stm32l4xx_errnode->vma;
- /* The instruction is before the label. */
- target -= 4;
-
if ((signed) branch_to_veneer < -(1 << 24)
|| (signed) branch_to_veneer >= (1 << 24))
{
output_bfd,
(uint64_t) (stm32l4xx_errnode->vma - 4),
(int64_t) out_of_range);
-
- /* Don't leave contents uninitialised. */
- bfd_put_16 (output_bfd, 0, contents + target);
continue;
}
insn = create_instruction_branch_absolute
(stm32l4xx_errnode->u.b.veneer->vma - stm32l4xx_errnode->vma);
+ /* The instruction is before the label. */
+ target -= 4;
+
put_thumb2_insn (globals, output_bfd,
(bfd_vma) insn, contents + target);
}