diff options
| author | Alexandre Ghiti <[email protected]> | 2023-05-26 15:46:30 +0000 |
|---|---|---|
| committer | Palmer Dabbelt <[email protected]> | 2023-05-31 14:07:07 +0000 |
| commit | 8dc2a7e8027fbeca0c7df81d4c82e735a59b5741 (patch) | |
| tree | 2972f6e851fe076e8216b9581bdbabbd553798b7 /lib/string_helpers.c | |
| parent | RISC-V: mark hibernation as nonportable (diff) | |
| download | kernel-8dc2a7e8027fbeca0c7df81d4c82e735a59b5741.tar.gz kernel-8dc2a7e8027fbeca0c7df81d4c82e735a59b5741.zip | |
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 <[email protected]>
Tested-by: Conor Dooley <[email protected]> # booted on nezha & unmatched
Fixes: 39b33072941f ("riscv: Introduce CONFIG_RELOCATABLE")
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Palmer Dabbelt <[email protected]>
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions
