Add support for RISC-V attributes (#459)