RISC-V 链接问题:relocation truncated to fit: R_RISCV_PCREL_HI20
问题
在一个基于 RISC-V 架构的项目里,遇到了如下的链接问题:
xxx/file:xxx:(.text.startup+0x74): relocation truncated to fit: R_RISCV_PCREL_HI20 against symbol xxx ...
collect2: error: ld returned 1 exit status
make: *** [Makefile:xx: xxx.elf …