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)
commit1e48ef7fcc374051730381a2a05da77eb4eafdb0
treef7f7174e996accf28dfdeef5fa79a452e4dbfa41
parent6c94f27ac847ff8ef15b3da5b200574923bd6287
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