arm64: kernel: Don't rely on objcopy to make code under pi/ __init
authorArd Biesheuvel <ardb@kernel.org>
Wed, 14 Feb 2024 12:28:48 +0000 (13:28 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Fri, 16 Feb 2024 12:42:28 +0000 (12:42 +0000)
commita86aa72eb3b075b985473d1d2973c7d00f568f17
treecdabf6802c4259f72f83ba181a6bbe558f82c8b1
parent48157aa39286b8eddfb81eeaab4d64d0231450e7
arm64: kernel: Don't rely on objcopy to make code under pi/ __init

We will add some code under pi/ that contains global variables that
should not end up in __initdata, as they will not be writable via the
initial ID map. So only rely on objcopy for making the libfdt code
__init, and use explicit annotations for the rest.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Link: https://lore.kernel.org/r/20240214122845.2033971-47-ardb+git@google.com
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/kernel/pi/Makefile
arch/arm64/kernel/pi/kaslr_early.c