From: Nick Clifton Date: Wed, 11 Aug 2021 12:49:30 +0000 (+0100) Subject: Fix an internal error in the CSKY assembler when asked to resolve an overlarge constant. X-Git-Tag: binutils-2_38~1624 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5393ca689ae6801ffa4eba377d1f3b97f496b49b;p=thirdparty%2Fbinutils-gdb.git 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. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index dd19f3e57ed..098353a8f33 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,9 @@ +2021-08-11 Nick Clifton + + PR 28215 + * config/tc-csky.c (md_apply_fix): Correctly handle a fixup that + involves an overlarge constant. + 2021-08-11 Matt Jacobson * config/tc-avr.c (enum options): Add option flag. diff --git a/gas/config/tc-csky.c b/gas/config/tc-csky.c index 35a7252786c..e0133c379be 100644 --- a/gas/config/tc-csky.c +++ b/gas/config/tc-csky.c @@ -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; }