Fix an internal error in the CSKY assembler when asked to resolve an overlarge constant.

PR 28215
	* config/tc-csky.c (md_apply_fix): Correctly handle a fixup that
	involves an overlarge constant.
This commit is contained in:
Nick Clifton
2021-08-11 13:49:30 +01:00
parent 3af2785c97
commit 5393ca689a
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2021-08-11 Nick Clifton <nickc@redhat.com>
PR 28215
* config/tc-csky.c (md_apply_fix): Correctly handle a fixup that
involves an overlarge constant.
2021-08-11 Matt Jacobson <mhjacobson@me.com>
* config/tc-avr.c (enum options): Add option flag.

View File

@ -5476,7 +5476,8 @@ md_apply_fix (fixS *fixP,
else if (fixP->fx_size == 1 && val >= -256 && val <= 255)
;
else
abort ();
break;
md_number_to_chars (buf, val, fixP->fx_size);
fixP->fx_done = 1;
}