NDS32/gas: Limit the format of pseudo instruction la.
This commit is contained in:
parent
3bd3aeb461
commit
20d79870f3
2 changed files with 15 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2015-01-27 Kuan-Lin Chen <kuanlinchentw@gmail.com>
|
||||
|
||||
* config/tc-nds32.c (do_pseudo_la_internal): Limit the second argument
|
||||
of instruction la to a symbol.
|
||||
|
||||
2015-01-27 Kuan-Lin Chen <kuanlinchentw@gmail.com>
|
||||
|
||||
* config/tc-nds32.c (nds32_parse_name): Ignore when the input is
|
||||
|
|
|
@ -2311,9 +2311,18 @@ do_pseudo_bral (int argc, char *argv[], int pv ATTRIBUTE_UNUSED)
|
|||
}
|
||||
|
||||
static void
|
||||
do_pseudo_la_internal (const char *arg_reg, const char *arg_label,
|
||||
do_pseudo_la_internal (const char *arg_reg, char *arg_label,
|
||||
const char *line)
|
||||
{
|
||||
expressionS exp;
|
||||
|
||||
parse_expression (arg_label, &exp);
|
||||
if (exp.X_op != O_symbol)
|
||||
{
|
||||
as_bad (_("la must use with symbol. '%s'"), line);
|
||||
return;
|
||||
}
|
||||
|
||||
relaxing = TRUE;
|
||||
/* rt, label */
|
||||
if (!nds32_pic && !strstr(arg_label, "@"))
|
||||
|
|
Loading…
Reference in a new issue