diff options
author | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2018-03-01 20:19:01 +0300 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2018-03-06 21:52:33 +0300 |
commit | 1212f7a16af492d59304ba3abccbcc5b5e41423e (patch) | |
tree | edb8c23a1b890439f2a90b38285d7720d47c6ecc | |
parent | 9597e74396c02c8189215dcdfc08088a9b8d8087 (diff) | |
download | linux-1212f7a16af492d59304ba3abccbcc5b5e41423e.tar.xz |
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>
-rw-r--r-- | scripts/kallsyms.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/kallsyms.c b/scripts/kallsyms.c index 9ee9bf7fd1a2..1dd24c5b9b47 100644 --- a/scripts/kallsyms.c +++ b/scripts/kallsyms.c @@ -221,6 +221,7 @@ static int symbol_valid(struct sym_entry *s) static char *special_prefixes[] = { "__crc_", /* modversions */ + "__efistub_", /* arm64 EFI stub namespace */ NULL }; static char *special_suffixes[] = { |