aboutsummaryrefslogtreecommitdiff
path: root/crypto/algif_skcipher.c
diff options
context:
space:
mode:
authorGravatar Alexandre Ghiti <alexghiti@rivosinc.com> 2023-03-29 06:53:26 +0200
committerGravatar Palmer Dabbelt <palmer@rivosinc.com> 2023-04-19 07:46:30 -0700
commit39b33072941f8bab82aa2c802044062385a046bf (patch)
tree1c7f43e326d8f4b896630d474829bafe7f061d6a /crypto/algif_skcipher.c
parentriscv: Move .rela.dyn outside of init to avoid empty relocations (diff)
downloadlinux-39b33072941f8bab82aa2c802044062385a046bf.tar.gz
linux-39b33072941f8bab82aa2c802044062385a046bf.tar.bz2
linux-39b33072941f8bab82aa2c802044062385a046bf.zip
riscv: Introduce CONFIG_RELOCATABLE
This config allows to compile 64b kernel as PIE and to relocate it at any virtual address at runtime: this paves the way to KASLR. Runtime relocation is possible since relocation metadata are embedded into the kernel. Note that relocating at runtime introduces an overhead even if the kernel is loaded at the same address it was linked at and that the compiler options are those used in arm64 which uses the same RELA relocation format. Signed-off-by: Alexandre Ghiti <alexghiti@rivosinc.com> Link: https://lore.kernel.org/r/20230329045329.64565-4-alexghiti@rivosinc.com Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Diffstat (limited to 'crypto/algif_skcipher.c')
0 files changed, 0 insertions, 0 deletions