RISC-V: don't recognize bogus relocations
authorJan Beulich <jbeulich@suse.com>
Tue, 25 Apr 2023 09:17:19 +0000 (11:17 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 25 Apr 2023 09:17:19 +0000 (11:17 +0200)
commitb33e94cfa4777b68719794ad1c1ef630e3dca3c2
treed16855d85aae46ba3905759f7defb8d5d559ce36
parenta5e756e63e170cf69e06be98287528760833aad5
RISC-V: don't recognize bogus relocations

With my_getSmallExpression() consistently and silently failing on
relocation operators not fitting an insn, it is no longer necessary to
hand it percent_op_itype[] "just in case" (i.e. to avoid errors when a
subsequent parsing attempt for another operand combination might
succeed). This also eliminates the latent problem of percent_op_itype[]
and percent_op_stype[] growing a non-identical set of recognized
relocation operators.
gas/config/tc-riscv.c