Home
last modified time | relevance | path

Searched hist:"8 dc2a7e8027fbeca0c7df81d4c82e735a59b5741" (Results 1 – 2 of 2) sorted by relevance

/linux/arch/riscv/errata/
H A DMakefilediff 8dc2a7e8027fbeca0c7df81d4c82e735a59b5741 Fri May 26 17:46:30 CEST 2023 Alexandre Ghiti <alexghiti@rivosinc.com> riscv: Fix relocatable kernels with early alternatives using -fno-pie

Early alternatives are called with the mmu disabled, and then should not
access any global symbols through the GOT since it requires relocations,
relocations that we do before but *virtually*. So only use medany code
model for this early code.

Signed-off-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Tested-by: Conor Dooley <conor.dooley@microchip.com> # booted on nezha & unmatched
Fixes: 39b33072941f ("riscv: Introduce CONFIG_RELOCATABLE")
Link: https://lore.kernel.org/r/20230526154630.289374-1-alexghiti@rivosinc.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
/linux/arch/riscv/kernel/
H A DMakefilediff 8dc2a7e8027fbeca0c7df81d4c82e735a59b5741 Fri May 26 17:46:30 CEST 2023 Alexandre Ghiti <alexghiti@rivosinc.com> riscv: Fix relocatable kernels with early alternatives using -fno-pie

Early alternatives are called with the mmu disabled, and then should not
access any global symbols through the GOT since it requires relocations,
relocations that we do before but *virtually*. So only use medany code
model for this early code.

Signed-off-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Tested-by: Conor Dooley <conor.dooley@microchip.com> # booted on nezha & unmatched
Fixes: 39b33072941f ("riscv: Introduce CONFIG_RELOCATABLE")
Link: https://lore.kernel.org/r/20230526154630.289374-1-alexghiti@rivosinc.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>