arm64: add support for building vmlinux as a relocatable PIE binary
This implements CONFIG_RELOCATABLE, which links the final vmlinux image with a dynamic relocation section, allowing the early boot code to perform a relocation to a different virtual address at runtime. This is a prerequisite for KASLR (CONFIG_RANDOMIZE_BASE). Signed-off-by:Ard Biesheuvel <ard.biesheuvel@linaro.org> Signed-off-by:
Catalin Marinas <catalin.marinas@arm.com>
Showing
- arch/arm64/Kconfig 11 additions, 0 deletionsarch/arm64/Kconfig
- arch/arm64/Makefile 4 additions, 0 deletionsarch/arm64/Makefile
- arch/arm64/include/asm/elf.h 2 additions, 0 deletionsarch/arm64/include/asm/elf.h
- arch/arm64/kernel/head.S 32 additions, 0 deletionsarch/arm64/kernel/head.S
- arch/arm64/kernel/vmlinux.lds.S 16 additions, 0 deletionsarch/arm64/kernel/vmlinux.lds.S
Loading
Please register or sign in to comment