Community
Participate
Working Groups
Created attachment 281308 [details] the binary file generated by ccriscv. The attached file dkm.c is a c language sample for RISC-V. And the other attached file r64_dkm.out is generated from ccriscv (the c language compile in gnu-8.3.0.1 for riscv). When we loaded to run the r64_dkm.out file, TCF raised a exception about "Unsupported relocation type". We checked and found the exception is generated from at line 56 in dwarfreloc-mdep.h file. It seems both R_RISCV_ADD64 and R_RISCV_SUB64 types does not support by TCF now. -------------------------------------- readelfriscv -r r64_dkm.out Relocation section '.rela.debug_info' at offset 0x1ec0 contains 60 entries: Offset Info Type Sym. Value Sym. Name + Addend 000000000019 001b00000002 R_RISCV_64 0000000000000000 .Ltext0 + 0 000000000021 001c00000024 R_RISCV_ADD64 0000000000000084 .Letext0 + 0 000000000021 001b00000028 R_RISCV_SUB64 0000000000000000 .Ltext0 + 0 000000000029 001d00000001 R_RISCV_32 0000000000000000 .Ldebug_line0 + 0 00000000002e 001e00000001 R_RISCV_32 000000000000006e .LASF12 + 0
Created attachment 281309 [details] a c language sample
Fixed. Thanks!