arm64/kernel: Move 'nokaslr' parsing out of early idreg code
authorArd Biesheuvel <ardb@kernel.org>
Wed, 29 Nov 2023 11:16:16 +0000 (12:16 +0100)
committerWill Deacon <will@kernel.org>
Tue, 12 Dec 2023 11:13:53 +0000 (11:13 +0000)
commit50f176175e96ea5d7cbd8536c0dd774de796ef63
treeb00b0267319f2d3dd652bdfc6cf1da3529054c9c
parentea48626f8f0efc697555d17bb5853df92461e280
arm64/kernel: Move 'nokaslr' parsing out of early idreg code

Parsing and ignoring 'nokaslr' can be done from anywhere, except from
the code that runs very early and is therefore built with limitations on
the kind of relocations it is permitted to use.

So move it to a source file that is part of the ordinary kernel build.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Link: https://lore.kernel.org/r/20231129111555.3594833-63-ardb@google.com
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/kernel/idreg-override.c
arch/arm64/kernel/kaslr.c