UPSTREAM: 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)
committerJeff Vander Stoep <jeffv@google.com>
Thu, 22 Sep 2016 20:38:22 +0000 (13:38 -0700)
commit01684359230797235a0bdbd9768241c41f990105
tree86ec676a90f2bf947392a48f4cd83f72d5c657fa
parent161994d19e72907ec95e545d1129675c9c966f1a
UPSTREAM: 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>
Bug: 30369029
Patchset: kaslr-arm64-4.4

(cherry picked from commit 1e48ef7fcc374051730381a2a05da77eb4eafdb0)
Signed-off-by: Jeff Vander Stoep <jeffv@google.com>
Change-Id: If02e065722d438f85feb62240fc230e16f58e912
arch/arm64/Kconfig
arch/arm64/Makefile
arch/arm64/include/asm/elf.h
arch/arm64/kernel/head.S
arch/arm64/kernel/vmlinux.lds.S