]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - bfd/ChangeLog
MSP430: Enable relaxation of relocs in JMP instructions
authorJozef Lawrynowicz <jozef.l@mittosystems.com>
Mon, 10 Feb 2020 20:33:21 +0000 (20:33 +0000)
committerJozef Lawrynowicz <jozef.l@mittosystems.com>
Mon, 10 Feb 2020 20:35:52 +0000 (20:35 +0000)
commit8d6cb116f47b5edb2a7c2fa540fcb9dbcd3effc2
treed2a49f50c1a879aad09dee29a966b3970a67ae78
parentd60f54486a99e6b702cccdb16b3429f3524021fd
MSP430: Enable relaxation of relocs in JMP instructions

This patch fixes relocation overflows caused by an inability to relax
unconditional JMP instructions to BR instructions.

bfd/ChangeLog:

2020-02-10  Jozef Lawrynowicz  <jozef.l@mittosystems.com>

* elf32-msp430.c (msp430_elf_relax_add_two_words): Rename to
msp430_elf_relax_add_words. Support insertion of either one or two
words.
(msp430_elf_relax_section): Catch opcode of 0x3c00 when relocation
needs to be grown. Handle insertion of branch instruction to replace
jump.
bfd/ChangeLog
bfd/elf32-msp430.c