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.
This commit is contained in:
Nick Clifton
2014-05-20 10:28:42 +01:00
parent 273dc27930
commit 00b32ff21f
8 changed files with 73 additions and 29 deletions

View File

@ -26,7 +26,8 @@ struct msp430_operand_s
int ol; /* Operand length words. */
int am; /* Addr mode. */
int reg; /* Register. */
int mode; /* Pperand mode. */
int mode; /* Operand mode. */
int vshift; /* Number of bytes to shift operand down. */
#define OP_REG 0
#define OP_EXP 1
#ifndef DASM_SECTION