scripts/kallsyms: filter arm64's __efistub_ symbols
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Thu, 1 Mar 2018 17:19:01 +0000 (17:19 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 13 Jan 2019 09:01:06 +0000 (10:01 +0100)
commit28493b4147ea3f982e9cff269dc068ac0a98be74
tree766ac0ad9479ce5203f8cebe04e3a6b8ad1b06d5
parent01b79d20008d26d9e908551bd32f01ed0cbf6f53
scripts/kallsyms: filter arm64's __efistub_ symbols

commit 1212f7a16af492d59304ba3abccbcc5b5e41423e upstream.

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>
Cc: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
scripts/kallsyms.c