Skip to content
Commit d8da19fb authored by Youling Tang's avatar Youling Tang Committed by Huacai Chen
Browse files

LoongArch: Add support for kernel relocation



This config allows to compile 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.

Signed-off-by: default avatarYouling Tang <tangyouling@loongson.cn>
Signed-off-by: Xi Ruoyao <xry111@xry111.site> # Use arch_initcall
Signed-off-by: Jinyang He <hejinyang@loongson.cn> # Provide la_abs relocation code
Signed-off-by: default avatarHuacai Chen <chenhuacai@loongson.cn>
parent 396233c6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment