使用MounRiver Studio编译出现“relocation truncated to fit: R_RISCV_RVC_JUMP against symbol”错误

具体的错误信息:DataProcess.c:115:(.text.OnceDataProcess+0x64): relocation truncated to fit: R_RISCV_RVC_JUMP against symbol `printf' defined in .text.printf section in c:/mounriver/mounriver_studio/toolchain/risc-v embedded gcc/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/lib/rv32imac/ilp32\libprintf.a(wchprintf.o)

您好,链接时部分符号超出跳转范围,您可以按照下图添加尝试一下。

image.png


只有登录才能回复,可以选择微信账号登录