libsanitizer/
* sanitizer_common/sanitizer_common.h (ModuleArch): New enumerator. (ModuleArchToString): New architecture option. * sanitizer_common/sanitizer_symbolizer_libcdep.cpp (GetArgV): New architecture option.
Up till now, only UndefinedBehaviorSanitizer(UBSan) is functionally supported for RISC-V on GCC. With ASan enabled in this patch, AddressSanitizer(ASan) and KernelAddressSANitizer(KASAN) will be both supported with "-fsanitize=address" added when compiling and running the tests.
The preprocessor definition should be __riscv, and the arch riscv32 or riscv64. Given that this is incorrect, I suspect this patch needs much more testing. When you update the patch please update the description with more details of why you think this is in good shape to be merged. Adding more tests would make that easier.