Fix MSP430 assembler to support #hi(<symbol>).
authorNick Clifton <nickc@redhat.com>
Tue, 20 May 2014 09:28:42 +0000 (10:28 +0100)
committerNick Clifton <nickc@redhat.com>
Tue, 20 May 2014 09:28:42 +0000 (10:28 +0100)
commit00b32ff21f710a5eed92c9fdf51c32103bcc4176
treeb26adf9e6654280500869f1749f0d239f59da1c0
parent273dc279306c2b69fbc1407cc695397e4b015152
Fix MSP430 assembler to support #hi(<symbol>).

* config/tc-msp430.c (CHECK_RELOC_MSP430): Add OP parameter.
Generate BFD_RELOC_MSP430_ABS_HI16 if vshift is 1.
(msp430_srcoperand): Store vshift value in operand.

* msp430.h (struct msp430_operand_s): Add vshift field.

* gas/elf/struct.d: Expect extra output from some toolchains.
* gas/symver/symver0.d: Likewise.
* gas/symver/symver1.d: Likewise.
gas/ChangeLog
gas/config/tc-msp430.c
gas/testsuite/ChangeLog
gas/testsuite/gas/elf/struct.d
gas/testsuite/gas/symver/symver0.d
gas/testsuite/gas/symver/symver1.d
include/opcode/ChangeLog
include/opcode/msp430.h