summaryrefslogtreecommitdiff
path: root/arch/riscv/boot/install.sh
diff options
context:
space:
mode:
authorQingfang Deng <qingfang.deng@siflower.com.cn>2024-05-11 04:57:25 +0300
committerPalmer Dabbelt <palmer@rivosinc.com>2024-05-23 02:12:46 +0300
commit2aff5f955bbae311ca4b66e1dbd934e8f346d1f1 (patch)
treebb28325c5200f313589749f0a8ab7e6cb5b4643d /arch/riscv/boot/install.sh
parent07501c4907851fa2f2038ea602bc1fcfaebd3407 (diff)
downloadlinux-2aff5f955bbae311ca4b66e1dbd934e8f346d1f1.tar.xz
riscv: do not select MODULE_SECTIONS by default
Since commit aad15bc85c18 ("riscv: Change code model of module to medany to improve data accessing"), kernel modules have not been built with -fPIC, so they wouldn't have R_RISCV_GOT_HI20 or R_RISCV_CALL_PLT relocations, and handling of those relocations is unnecessary. If RELOCATABLE=y, kernel modules will be built with -fPIE, which would reintroduce said relocations, so only select MODULE_SECTIONS when RELOCATABLE. Signed-off-by: Qingfang Deng <qingfang.deng@siflower.com.cn> Reviewed-by: Charlie Jenkins <charlie@rivosinc.com> Link: https://lore.kernel.org/r/20240511015725.1162-1-dqfext@gmail.com Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Diffstat (limited to 'arch/riscv/boot/install.sh')
0 files changed, 0 insertions, 0 deletions