arm64: move kimage_vaddr to .rodata
authorRemi Denis-Courmont <remi.denis.courmont@huawei.com>
Thu, 12 Mar 2020 09:40:02 +0000 (11:40 +0200)
committerCatalin Marinas <catalin.marinas@arm.com>
Tue, 24 Mar 2020 11:48:24 +0000 (11:48 +0000)
commit6cf9a2dce6bd10cf454cf6299c1c23182cb486e7
tree74f2c68a6dba44562b9e42b10955f4daab0f4565
parentdc374b477f9233296bf2da31854e486e1781169e
arm64: move kimage_vaddr to .rodata

This datum is not referenced from .idmap.text: it does not need to be
mapped in idmap. Lets move it to .rodata as it is never written to after
early boot of the primary CPU.
(Maybe .data.ro_after_init would be cleaner though?)

Signed-off-by: RĂ©mi Denis-Courmont <remi@remlab.net>
Acked-by: Will Deacon <will@kernel.org>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/kernel/head.S