Re: [PATCH] RISC-V: Raise error on unexpected ISA string at end.

2019-07-31 Thread Martin Sebor
On 7/31/19 5:19 AM, Maxim Blinov wrote: This patch adds the same check that is present in binutils/bfd/elfxx-riscv.c. Checks that we have reached the end of the string after all the parsing routines have been run. Without this check, GCC silently succeeds on erroneous input, and produces an asse

[PATCH] RISC-V: Raise error on unexpected ISA string at end.

2019-07-31 Thread Maxim Blinov
This patch adds the same check that is present in binutils/bfd/elfxx-riscv.c. Checks that we have reached the end of the string after all the parsing routines have been run. Without this check, GCC silently succeeds on erroneous input, and produces an assembly with a truncated arch attribute. tes