Community
Participate
Working Groups
we have some c++ test sample for riscv. when I debug it with TCF, there is the following error: TCF 00:00:54.200: Stack trace error: Unsupported relocation type. Format is not supported this is because there are some relocation type does not support by TCF.
by now the following relocation types is not supported. R_RISCV_32_PCREL R_RISCV_BRANCH R_RISCV_CALL R_RISCV_HI20 R_RISCV_LO12_I R_RISCV_LO12_S R_RISCV_NONE R_RISCV_RELAX R_RISCV_RVC_BRANC R_RISCV_RVC_JUMP R_RISCV_SET16 R_RISCV_SET6 R_RISCV_SET8 R_RISCV_SUB6
this is just one of test sample, does it add more relocation types?
The debugger does not need to support all relocation types. Only those used in debug info need to be supported, which is small subset of all types. Could you provide a test case? An ELF file for RISC-V Linux would be the best.
Created attachment 282776 [details] the elf file
I have attached the elf file which contains some relocation type
Fixed. Thanks!