RISC-V: tighten post-relocation-operator separator expectation
authorJan Beulich <jbeulich@suse.com>
Thu, 4 May 2023 08:24:36 +0000 (10:24 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 4 May 2023 08:24:36 +0000 (10:24 +0200)
commit654dfab0666513a4e9c053559d0c184b863139c4
tree0262142cab74aebe520e97bea2f50b4f4bda250f
parentc9819077700c5fc440981c3b14e21225f4c14d01
RISC-V: tighten post-relocation-operator separator expectation

As per the spec merely a blank isn't okay as a separator, the operand
to the relocation function ought to be parenthesized. Enforcing this
then also eliminates an inconsistency in that

lui t0, %hi sym
lui t0, %hi 0x1000

were accepted, but

lui t0, %hi +sym
lui t0, %hi -0x1000

were not.
gas/config/tc-riscv.c
gas/testsuite/gas/riscv/auipc-parsing.l
gas/testsuite/gas/riscv/auipc-parsing.s