Explorar o código

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>
Ard Biesheuvel %!s(int64=7) %!d(string=hai) anos
pai
achega
1212f7a16a
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      scripts/kallsyms.c

+ 1 - 0
scripts/kallsyms.c

@@ -221,6 +221,7 @@ static int symbol_valid(struct sym_entry *s)
 
 
 	static char *special_prefixes[] = {
 	static char *special_prefixes[] = {
 		"__crc_",		/* modversions */
 		"__crc_",		/* modversions */
+		"__efistub_",		/* arm64 EFI stub namespace */
 		NULL };
 		NULL };
 
 
 	static char *special_suffixes[] = {
 	static char *special_suffixes[] = {