mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-18 08:38:10 +08:00
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:
@ -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
|
||||
|
Reference in New Issue
Block a user