mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-03 17:40:04 +00:00
![Alexandre Ghiti](/assets/img/avatar_default.png)
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: 39b3307294
("riscv: Introduce CONFIG_RELOCATABLE")
Link: https://lore.kernel.org/r/20230526154630.289374-1-alexghiti@rivosinc.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
6 lines
134 B
Makefile
6 lines
134 B
Makefile
ifdef CONFIG_RELOCATABLE
|
|
KBUILD_CFLAGS += -fno-pie
|
|
endif
|
|
|
|
obj-$(CONFIG_ERRATA_SIFIVE) += sifive/
|
|
obj-$(CONFIG_ERRATA_THEAD) += thead/
|