MSP430: Fix relocation overflow when using #lo(EXP) macro
authorJozef Lawrynowicz <jozef.l@mittosystems.com>
Wed, 15 Jan 2020 13:17:27 +0000 (13:17 +0000)
committerJozef Lawrynowicz <jozef.l@mittosystems.com>
Wed, 15 Jan 2020 13:23:06 +0000 (13:23 +0000)
commit131cb553d6d10412b20cf49bb0e3a5e736a90a36
tree3965e30e6016b4b61a6bb11cb7be81bbd57a99ab
parentc24d0e8d4850d4913a1630a53e272c930849406d
MSP430: Fix relocation overflow when using #lo(EXP) macro

gas/ChangeLog:

2020-01-15  Jozef Lawrynowicz  <jozef.l@mittosystems.com>

* config/tc-msp430.c (CHECK_RELOC_MSP430): Always generate 430X
relocations when the target is 430X, except when extracting part of an
expression.
(msp430_srcoperand): Adjust comment.
Initialize the expp member of the msp430_operand_s struct as
appropriate.
(msp430_dstoperand): Likewise.
* testsuite/gas/msp430/msp430.exp: Run new test.
* testsuite/gas/msp430/reloc-lo-430x.d: New test.
* testsuite/gas/msp430/reloc-lo-430x.s: New test.

include/ChangeLog:

2020-01-15  Jozef Lawrynowicz  <jozef.l@mittosystems.com>

* opcode/msp430.h (enum msp430_expp_e): New.
(struct msp430_operand_s): Add expp member to struct.

ld/ChangeLog:

2020-01-15  Jozef Lawrynowicz  <jozef.l@mittosystems.com>

* testsuite/ld-msp430-elf/msp430-elf.exp: Run new test.
* testsuite/ld-msp430-elf/reloc-lo-430x.s: New test.
gas/ChangeLog
gas/config/tc-msp430.c
gas/testsuite/gas/msp430/msp430.exp
gas/testsuite/gas/msp430/reloc-lo-430x.d [new file with mode: 0644]
gas/testsuite/gas/msp430/reloc-lo-430x.s [new file with mode: 0644]
include/ChangeLog
include/opcode/msp430.h
ld/ChangeLog
ld/testsuite/ld-msp430-elf/msp430-elf.exp
ld/testsuite/ld-msp430-elf/reloc-lo-430x.s [new file with mode: 0644]