arm64: kexec: use ld script for relocation function
authorPasha Tatashin <pasha.tatashin@soleen.com>
Thu, 30 Sep 2021 14:31:08 +0000 (14:31 +0000)
committerWill Deacon <will@kernel.org>
Fri, 1 Oct 2021 12:31:00 +0000 (13:31 +0100)
commit19a046f07ce5a5c34ebb6432192d98cfdb38444f
tree6fef169425715072bc67c45b1bf423e241609cc0
parentba959fe96a1bbb98765762da20ecb3a6eb9c9d39
arm64: kexec: use ld script for relocation function

Currently, relocation code declares start and end variables
which are used to compute its size.

The better way to do this is to use ld script, and put relocation
function in its own section.

Signed-off-by: Pasha Tatashin <pasha.tatashin@soleen.com>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Link: https://lore.kernel.org/r/20210930143113.1502553-11-pasha.tatashin@soleen.com
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/include/asm/sections.h
arch/arm64/kernel/machine_kexec.c
arch/arm64/kernel/relocate_kernel.S
arch/arm64/kernel/vmlinux.lds.S