]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: add support for building vmlinux as a relocatable PIE binary
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Tue, 26 Jan 2016 08:13:44 +0000 (09:13 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Wed, 24 Feb 2016 14:57:27 +0000 (14:57 +0000)
commitff80a24925e2f2ebd0931800854f5142fa6f00c3
treef7f7174e996accf28dfdeef5fa79a452e4dbfa41
parent2c3a7cf59a06dcdddc0e21a15e818652018d6b36
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>
arch/arm64/Kconfig
arch/arm64/Makefile
arch/arm64/include/asm/elf.h
arch/arm64/kernel/head.S
arch/arm64/kernel/vmlinux.lds.S