This patch add platform and runtime support for Linux riscv64 platform. As show in test cases, atexit, __cxa_atexit, static initializer were supported.
These test cases were passed in my local machine. But it seems that LLVM buildbot doesn't have a riscv64 worker to test this test cases.