]> git.baikalelectronics.ru Git - kernel.git/commit
scripts/kallsyms: filter arm64's __efistub_ symbols
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Thu, 1 Mar 2018 17:19:01 +0000 (17:19 +0000)
committerWill Deacon <will.deacon@arm.com>
Tue, 6 Mar 2018 18:52:33 +0000 (18:52 +0000)
commit08836783cd950a742363735225d47b4ac7b4d799
treeedb8c23a1b890439f2a90b38285d7720d47c6ecc
parent013d59e9ff4ee9e23e74059ae6b3036b5e4bcd0a
scripts/kallsyms: filter arm64's __efistub_ symbols

On arm64, the EFI stub and the kernel proper are essentially the same
binary, although the EFI stub executes at a different virtual address
as the kernel. For this reason, the EFI stub is restricted in the
symbols it can link to, which is ensured by prefixing all EFI stub
symbols with __efistub_ (and emitting __efistub_ prefixed aliases for
routines that may be shared between the core kernel and the stub)

These symbols are leaking into kallsyms, polluting the namespace, so
let's filter them explicitly.

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
scripts/kallsyms.c