[PATCH 3/4] arm64/head: avoid symbol names pointing into first 64 KB of kernel image

Will Deacon will at kernel.org
Wed Oct 28 10:12:23 EDT 2020


On Tue, Oct 27, 2020 at 08:32:08AM +0100, Ard Biesheuvel wrote:
> We no longer map the first 64 KB of the kernel image, as there is nothing
> there that we ever need to refer back to once the kernel has booted. Even
> though facilities like kallsyms are very careful to only refer to the
> region that starts at _stext when mapping virtual addresses to symbol
> names, let's avoid any confusion by switching to local .L prefixed symbol
> names for the EFI header, as none of them have any significance to the
> rest of the kernel.
> 
> Signed-off-by: Ard Biesheuvel <ardb at kernel.org>
> ---
>  arch/arm64/kernel/efi-header.S | 46 ++++++++++----------
>  1 file changed, 22 insertions(+), 24 deletions(-)

Acked-by: Will Deacon <will at kernel.org>

Will



More information about the linux-arm-kernel mailing list