Skip to content

Commit 200dd95

Browse files
ptosimasahir0y
authored andcommitted
scripts/mksysmap: Ignore __pi_ local arm64 symbols
Similarly to "__kvm_nvhe_", filter out any local symbol that was prefixed with "__pi_" (generated when CONFIG_RANDOMIZE_BASE=y) when compiling System.map and in kallsyms. Signed-off-by: Pierre-Clément Tosi <ptosi@google.com> Acked-by: Ard Biesheuvel <ardb@kernel.org> Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
1 parent ec336aa commit 200dd95

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

scripts/mksysmap

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ ${NM} -n ${1} | sed >${2} -e "
4040
# arm64 EFI stub namespace
4141
/ __efistub_/d
4242
43+
# arm64 local symbols in PIE namespace
44+
/ __pi_\\$/d
45+
/ __pi_\.L/d
46+
4347
# arm64 local symbols in non-VHE KVM namespace
4448
/ __kvm_nvhe_\\$/d
4549
/ __kvm_nvhe_\.L/d

0 commit comments

Comments
 (0)