Hi,
The intended target is baremetal.
I have been able to link using lld for RISC-V. Regarding linking with the appropriate libraries I see there is no current way to do that with just LLVM.
I have found this video on how to use llvm libc, although the support is not completed it may be of help for someone. However there is no support for RISC-V (link)
Thank you all for your time!