arm64: head: move relocation handling to C code
authorArd Biesheuvel <ardb@kernel.org>
Wed, 14 Feb 2024 12:28:49 +0000 (13:28 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Fri, 16 Feb 2024 12:42:28 +0000 (12:42 +0000)
commit734958ef0b5497b1b9cb827afb541e7825477bbd
treed2a174837f077a769a2eb2dc230ff22f168359b2
parenta86aa72eb3b075b985473d1d2973c7d00f568f17
arm64: head: move relocation handling to C code

Now that we have a mini C runtime before the kernel mapping is up, we
can move the non-trivial relocation processing code out of head.S and
reimplement it in C.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Link: https://lore.kernel.org/r/20240214122845.2033971-48-ardb+git@google.com
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/kernel/Makefile
arch/arm64/kernel/head.S
arch/arm64/kernel/pi/Makefile
arch/arm64/kernel/pi/relocate.c [new file with mode: 0644]
arch/arm64/kernel/vmlinux.lds.S