Add support for backtrace in DEBUG builds for RISC-V. Signed-off-by: Tuan Phan <tphan@ventanamicro.com>