[PATCH] RISC-V: errata: Use medany for relocatable builds
patchwork-bot+linux-riscv at kernel.org
patchwork-bot+linux-riscv at kernel.org
Sun Mar 30 20:00:32 PDT 2025
Hello:
This patch was applied to riscv/linux.git (for-next)
by Palmer Dabbelt <palmer at rivosinc.com>:
On Wed, 26 Mar 2025 15:45:07 -0700 you wrote:
> We're trying to mix non-PIC/PIE objects into the otherwise-PIE
> relocatable kernels, to avoid GOT/PLT references during early boot
> alternative resolution (which happens before the GOT/PLT are set up).
>
> riscv64-unknown-linux-gnu-ld: arch/riscv/errata/sifive/errata.o: relocation R_RISCV_HI20 against `tlb_flush_all_threshold' can not be used when making a shared object; recompile with -fPIC
> riscv64-unknown-linux-gnu-ld: arch/riscv/errata/thead/errata.o: relocation R_RISCV_HI20 against `riscv_cbom_block_size' can not be used when making a shared object; recompile with -fPIC
>
> [...]
Here is the summary with links:
- RISC-V: errata: Use medany for relocatable builds
https://git.kernel.org/riscv/c/bb58e1579f43
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
More information about the linux-riscv
mailing list