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.
Seems like you also need to update asan_symbolize.py according this comment, don't remove that I know it not exist in gcc source tree, but LLVM source tree have that[1].
[1] https://github.com/llvm/llvm-project/blob/master/compiler-rt/lib/asan/scripts/asan_symbolize.py