New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RISC-V relocation R_RISCV_HI20 out of range
with CONFIG_CMODEL_MEDLOW=y
#1533
Comments
Per Arnd's recommendation during our weekly meeting, I can reproduce these same errors with GCC 10.2.0 and binutils 2.35.2 from Debian:
|
Linux 5.18 nommu_qemu_defconfig in riscv64 + KALLSYM_ALL causes this error in ld.llld-14 while gcc-11+binutils 2.38 do not cause this error. Specifically,
The above script does not cause errors with
But clang 14.0.4 + lld 14.0.4 on Debian unstable cause this runtime error as
A reproducing script is below:
|
Just grepping for |
The kernel test robot reported a build failure in the stable tree with a randconfig.
Initially, I thought this was related to
CONFIG_MMU
, asdefconfig
+CONFIG_MMU=n
reproduces a similar error (also reported in #1409):However, that one goes away when
CONFIG_KALLSYMS
gets disabled. To reproduce this exact build failure onv5.16-rc4
, I disabledCONFIG_KALLSYMS
andCONFIG_MMU
then switchedCONFIG_CMODEL_MEDANY
forCONFIG_CMODEL_MEDLOW
:The text was updated successfully, but these errors were encountered: